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.
build 200604190200 -create EJB module -create Entity class -add this field: public Date date; -after some time of using hints I get endless loop of exceptions: java.lang.IllegalStateException: The model was modified. Unable to return start offset. at org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement.testResourceChange(MetadataElement.java:1185) at org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement.getPosition(MetadataElement.java:519) 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) at org.netbeans.modules.editor.hints.HintsOperator$HintPopupTaskImpl.run(HintsOperator.java:254) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:493) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:926)
This issue seems to be located in the JMI area: the cache becomes inconsistent and the workaround is to clear it (by removing it from the user dir). After that it is not easy to reproduce it (once reproduced it keeps on reoccuring though). I saw such exception coming also from the JEEVerificationHintsProvider. Thus the "common divider" seems to be the IllegalStateException from getElementByOffset() in a hints provider. The bug is not easy to reproduce, but extremely trouble to the user once it shows up. JMI team, please have a look at it.
*** Issue 75458 has been marked as a duplicate of this issue. ***
This issue is 100% reproducible. See step-by-step procedure in issue #75458.
This must be fixed as soon as possible. Increasing priority.
I am taking back my comment about cleaning the user dir. Daniel Prusa from the JMI team is currently looking into this issue.
Fixed in release55 branch (will be merged into trunk). /cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/AnnotationImpl.java new revision: 1.19.4.5.2.3; previous revision: 1.19.4.5.2.2
*** Issue 75545 has been marked as a duplicate of this issue. ***
Merged into trunk. /cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/AnnotationImpl.java new revision: 1.32; previous revision: 1.31
Please, merge the fix in release55_beta branch as well. Thanks.
Petre, the fix was commited into 'release55' branch before the branches were split (Wed Apr 26 12:20:)
I'm sorry, my mistake. Thanks Tomas.
*** Issue 75217 has been marked as a duplicate of this issue. ***
*** Issue 75531 has been marked as a duplicate of this issue. ***
Verified NetBeans 5.5Dev 200606270200
Reorganization of java component