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.
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)
this has nothing to do with mdr -> reassigning to java/javacore
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.
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)
Thanks for the additional info - that's exactly what I requested!
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
*** Issue 65646 has been marked as a duplicate of this issue. ***
Reorganization of java component