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.

Bug 62512 - java.lang.IllegalStateException: Recursive call to getElementInfo()
Summary: java.lang.IllegalStateException: Recursive call to getElementInfo()
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Matula
URL:
Keywords:
: 65646 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-08-17 17:15 UTC by Martin Ryzl
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Ryzl 2005-08-17 17:15:35 UTC
Custom build 20050815, J2SE project:

I was typing the following code, when I typed . after File an exception got thrown:
StringTokenizer stt = new StringTokenizer(path, File.)

Unfortunately I was not able to reproduce it.


java.lang.IllegalStateException: Recursive call to getElementInfo()
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.getElementInfo(SemiPersistentElement.java:201)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.initChildren(ResourceImpl.java:321)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.initChildren(ResourceImpl.java:315)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement.initCheck(MetadataElement.java:140)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.checkUpToDate(SemiPersistentElement.java:269)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.JavaClassImpl.getContents(JavaClassImpl.java:408)
	at org.netbeans.jmi.javamodel.JavaClass$Impl.getContents(Unknown Source)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.FeaturesList.toArray(FeaturesList.java:101)
	at org.netbeans.modules.editor.java.JMIUtils.findFeatures(JMIUtils.java:828)
	at org.netbeans.modules.editor.java.JMIUtils.findFeatures(JMIUtils.java:392)
	at
org.netbeans.modules.editor.java.NbJavaJMICompletionQuery$Context.findFieldsMethodsAndInnerClasses(NbJavaJMICompletionQuery.java:1003)
	at
org.netbeans.modules.editor.java.NbJavaJMICompletionQuery$Context.resolveExp(NbJavaJMICompletionQuery.java:252)
	at
org.netbeans.modules.editor.java.NbJavaJMICompletionQuery.getResult(NbJavaJMICompletionQuery.java:56)
	at
org.netbeans.editor.ext.java.JavaCompletionQuery.query(JavaCompletionQuery.java:144)
	at
org.netbeans.editor.ext.java.JavaCompletionQuery.query(JavaCompletionQuery.java:79)
	at
org.netbeans.modules.editor.java.JavaCompletionProvider$Query.query(JavaCompletionProvider.java:99)
	at
org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:181)
	at org.openide.util.Task.run(Task.java:207)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:469)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:870)
Comment 1 Martin Matula 2005-08-20 00:53:43 UTC
this has nothing to do with mdr -> reassigning to java/javacore
Comment 2 Martin Matula 2005-08-20 01:03:49 UTC
Any chance you still have messages.log from your session? There should be much
more useful info - starting with: ***** Info is null for element: ....
Then some debug data and a couple of informational stacktraces.
Please provide this info if you can.
Comment 3 Martin Ryzl 2005-08-20 20:50:50 UTC
Here's everything between start and ISEx. 

[org.netbeans.javacore] INFORMATIONAL *********** Exception occurred
************ at 4:40 PM on Aug 17, 2005
java.lang.Exception: ***** Info is null for element: java/io/File.java
(instanceof: org.netbeans.jmi.javamodel.Resource$Impl MOFID:
B7BB160D-0B78-11DA-8630-5664C4CDAA77:0000000000002431)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.getElementInfo(SemiPersistentElement.java:193)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.initChildren(ResourceImpl.java:321)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.initChildren(ResourceImpl.java:315)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement.initCheck(MetadataElement.java:140)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.checkUpToDate(SemiPersistentElement.java:269)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.JavaClassImpl.getContents(JavaClassImpl.java:408)
	at org.netbeans.jmi.javamodel.JavaClass$Impl.getContents(Unknown Source)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.FeaturesList.toArray(FeaturesList.java:101)
	at org.netbeans.modules.editor.java.JMIUtils.findFeatures(JMIUtils.java:828)
	at org.netbeans.modules.editor.java.JMIUtils.findFeatures(JMIUtils.java:392)
	at
org.netbeans.modules.editor.java.NbJavaJMICompletionQuery$Context.findFieldsMethodsAndInnerClasses(NbJavaJMICompletionQuery.java:1003)
	at
org.netbeans.modules.editor.java.NbJavaJMICompletionQuery$Context.resolveExp(NbJavaJMICompletionQuery.java:252)
	at
org.netbeans.modules.editor.java.NbJavaJMICompletionQuery.getResult(NbJavaJMICompletionQuery.java:56)
	at
org.netbeans.editor.ext.java.JavaCompletionQuery.query(JavaCompletionQuery.java:144)
	at
org.netbeans.editor.ext.java.JavaCompletionQuery.query(JavaCompletionQuery.java:79)
	at
org.netbeans.modules.editor.java.JavaCompletionProvider$Query.query(JavaCompletionProvider.java:99)
	at
org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:181)
	at org.openide.util.Task.run(Task.java:207)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:469)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:870)
[org.netbeans.javacore] isChanged: false, alreadyChecking: true
[org.netbeans.javacore] isValid: true
[org.netbeans.javacore] alreadyChecking stacktrace:
[org.netbeans.javacore] INFORMATIONAL *********** Exception occurred
************ at 4:40 PM on Aug 17, 2005
java.lang.RuntimeException
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.checkUpToDate(ResourceImpl.java:596)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.checkUpToDate(ResourceImpl.java:573)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.isValid(SemiPersistentElement.java:67)
	at org.netbeans.modules.javacore.ClassIndex.getClassByFqn(ClassIndex.java:263)
	at
org.netbeans.modules.javacore.JMManager.getSourceElementIfExists(JMManager.java:1336)
	at
org.netbeans.modules.editor.java.JMIUtils.getSourceElementIfExists(JMIUtils.java:748)
	at
org.netbeans.modules.editor.java.JavaCompletionProvider$DocQuery.getAssociatedObject(JavaCompletionProvider.java:210)
[catch] at
org.netbeans.modules.editor.java.JavaCompletionProvider$DocQuery.query(JavaCompletionProvider.java:190)
	at
org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:181)
	at org.openide.util.Task.run(Task.java:207)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:469)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:870)
Comment 4 Martin Matula 2005-08-22 14:43:05 UTC
Thanks for the additional info - that's exactly what I requested!
Comment 5 Martin Matula 2005-08-22 15:40:03 UTC
Fixed.

Checking in src/org/netbeans/modules/javacore/JMManager.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/JMManager.java,v  <-- 
JMManager.java
new revision: 1.118; previous revision: 1.117
done
Comment 6 Jan Becicka 2005-11-21 15:47:27 UTC
*** Issue 65646 has been marked as a duplicate of this issue. ***
Comment 7 Quality Engineering 2007-09-20 10:00:17 UTC
Reorganization of java component