This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
NB5.5 build 200601302300 1)Start IDE with new userdir and add Glassfish server 2)Create new Enterprise application 3)Add persistance unit into EJB Module- default, just click finish 4)Add Entity class 5)Update source code by adding some lines, which will be then marked as compillation error and red underlined, for example "implements Serializable" to class definition or add fields "Date date;Collection<Item> items; 6)Click then on error lines and help lightbulb should appear at the beginning of line. 7)Click on lightbulb and select a choice. ERROR: Not everytime,but at least in 60% of cases I got IllegalStateException window, which tended to open again and again if closed, till I shutted down whole IDE. Is strange, that sometimes it appeared just when I clicked on lightbulb,sometimes i had to select a choice from list, sometimes it went O.K. for two times and appeared third time. I'm attaching the exception from messages.log
Created attachment 28693 [details] IllegalStateException
The issue is stopper since is reproducible very often in user tutorials.
I _think_ this is a duplicate of #72039. I fixed that one yesterday - it has an RTE on the same line. Reopen if you can still reproduce it. Tx. *** This issue has been marked as a duplicate of 72039 ***
I've been able to reproduce it easy in 200602012300 build, so reopening.
Tomas, can you take a look? It comes from Persistence hints.
The quickest and safest fix would be to disable persistence hints provider functionality by removing it from the layer. As it was commited to the jee5 branch it anyway had to little functionality to be useful for the user and is not included in any demo scenario. I have a much modified version of this module on my private branch. So I will remove it from the layer if nobody objects.
I agree, please disable it for preview release. thanks
That's OK with me.
done. IDE: [2/2/06 4:51 PM] Committing "layer.xml" started Checking in layer.xml; /cvs/j2ee/ejbcore/src/org/netbeans/modules/j2ee/ejbcore/resources/layer.xml,v <-- layer.xml new revision: 1.1.2.6; previous revision: 1.1.2.5 done
Verified
I have re-enabled hints support in the release55 and the problem occurs again. It seems to be located in the JMI.
Here is another interesting stack trace coming from the getElementByOffset(): javax.jmi.reflect.InvalidObjectException: Object with MOFID 24E9C2A1-A1F0-11DA-9ACA-BB196394AA77:0000000000000FB4 no longer exists, class: org.netbeans.jmi.javamodel.Method$Impl at org.netbeans.mdr.handlers.BaseObjectHandler._getDelegate(BaseObjectHandler.java:359) at org.netbeans.mdr.storagemodel.AttrCollection.clearAttribComposite(AttrCollection.java:281) at org.netbeans.mdr.storagemodel.AttrCollection.remove(AttrCollection.java:227) at org.netbeans.mdr.handlers.AttrCollWrapper.remove(AttrCollWrapper.java:98) at org.netbeans.mdr.handlers.AttrCollWrapper.clear(AttrCollWrapper.java:62) at org.netbeans.modules.javacore.jmiimpl.javamodel.LightAttrList.clear(LightAttrList.java:260) at org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.processMembers(SemiPersistentElement.java:513) at org.netbeans.modules.javacore.jmiimpl.javamodel.JavaClassImpl.matchPersistent(JavaClassImpl.java:581) at org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.updatePersistent(SemiPersistentElement.java:364) at org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.matchMember(SemiPersistentElement.java:650) at org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.processMembers(SemiPersistentElement.java:541) at org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.matchPersistent(ResourceImpl.java:206) at org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.updatePersistent(SemiPersistentElement.java:364) at org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.updateMetadata(ResourceImpl.java:761) at org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.directUpdate(ResourceImpl.java:754) at org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.checkUpToDate(ResourceImpl.java:644) at org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.checkUpToDate(ResourceImpl.java:587) at org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.initResource(ResourceImpl.java:430) at org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement.initCheck(MetadataElement.java:134) at org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.getElementInfo(SemiPersistentElement.java:185) at org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.getInternalForm(SemiPersistentElement.java:843) at org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement.getASTree(MetadataElement.java:515) at org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement.getPosition(MetadataElement.java:521) at org.netbeans.modules.javacore.jmiimpl.javamodel.ElementFinder.getElementByOffset(ElementFinder.java:37) at org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.getElementByOffset(ResourceImpl.java:1661) at org.netbeans.modules.j2ee.ejbcore.hints.EjbHintsProvider.getHints(EjbHintsProvider.java:87) [catch] at org.netbeans.modules.editor.hints.HintsOperator$HintPopupTaskImpl.run(HintsOperator.java:255) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:493) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:926)
Please attach system log.
I cannot reproduce the issue in recent builds
Reorganization of java component