Not able to edit feature dataset layers once accessed through Java add-in.

1563
3
Jump to solution
10-15-2014 06:49 AM
Highlighted
Occasional Contributor

I have created an add-in to that takes in a unique ID, searches through the TOC for the appropriate layer and then zooms to feature with that ID. However, once that action is performed, I am not able to start editing any of the features in that Feature Dataset without warnings and errors. How do I release locks on these objects so that the main ArcMap thread can have access again?

Thank you

Arjun

Reply
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Occasional Contributor

Hi Dallas,

  I'm actually using the Java SDK. I finally figured the problem out yesterday afternoon. I was using the arcengine license with my add-in. I used an out of the box sample for accessing the license. Even though we have desktop advanced, if you use an engine license, it downgrades the whole mxd for that session. I changed it to using the advanced license, and now I have no errors. Thank you for your response!

Arjun

View solution in original post

Reply
0 Kudos
3 Replies
Highlighted
Occasional Contributor

are you using the ESRI.ArcGIS.ADF.ComReleaser to marshal  the search objects. If not that's likely your problem. Check out these to links they have examples and instruction on how to use it.

ArcObjects 10 .NET SDK Help

ArcObjects 10 .NET SDK Help

Reply
0 Kudos
Highlighted
Occasional Contributor

Hi Dallas,

  I'm actually using the Java SDK. I finally figured the problem out yesterday afternoon. I was using the arcengine license with my add-in. I used an out of the box sample for accessing the license. Even though we have desktop advanced, if you use an engine license, it downgrades the whole mxd for that session. I changed it to using the advanced license, and now I have no errors. Thank you for your response!

Arjun

View solution in original post

Reply
0 Kudos
Highlighted
Occasional Contributor

I'd like to try and integrate more java for addins and engine, but I always run into strange problems - the last engine app I tried to write in Java gave me 'cannot find main class' errors (I was using jre1.6, but have java 1.8 installed, perhaps that is an issue).  Also, I have problems where my buttons don't show up in the Java Commands or any other category I enter.

Have you experienced anything like this with Java?

Reply
0 Kudos