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 73935 - Child tree not found
Summary: Child tree not found
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-23 18:11 UTC by rolf_schumacher
Modified: 2007-11-06 12:16 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log from .netbeans\var\log\ (205.52 KB, text/plain)
2006-03-23 18:13 UTC, rolf_schumacher
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rolf_schumacher 2006-03-23 18:11:29 UTC
The error pops up every other second, while in editor and the editor tries to
scan for code compleation.

(I don't know where to submit the messages.log, so I include the stack trace)

java.lang.IllegalArgumentException: Child tree not found (type: 54 firstToken: 9
lastToken: 23 resource: de/august/example/pdfbox/TestPDFParser.java) class
org.netbeans.jmi.javamodel.Import$Impl java.io.in valid:true | class
org.netbeans.jmi.javamodel.Resource$Impl
de/august/example/pdfbox/TestPDFParser.java valid:true | 
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement.getASTree(MetadataElement.java:1272)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement.getASTree(MetadataElement.java:515)
	at org.netbeans.modules.javacore.parser.ElementInfo.getTypeAST(ElementInfo.java:86)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.ImportImpl.initChildren(ImportImpl.java:225)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.ImportImpl.getIdentifier(ImportImpl.java:210)
	at org.netbeans.jmi.javamodel.Import$Impl.getIdentifier(Unknown Source)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.ImportImpl.setName(ImportImpl.java:94)
	at org.netbeans.jmi.javamodel.Import$Impl.setName(Unknown Source)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.ImportImpl.matchElementInfo(ImportImpl.java:68)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.setElementInfo(SemiPersistentElement.java:140)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.createChildrenList(SemiPersistentElement.java:887)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.initChildren(ResourceImpl.java:337)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.initChildren(ResourceImpl.java:316)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.getImports(ResourceImpl.java:271)
	at org.netbeans.jmi.javamodel.Resource$Impl.getImports(Unknown Source)
	at org.netbeans.modules.editor.java.JMIUtils.getImportedClass(JMIUtils.java:494)
	at
org.netbeans.modules.editor.java.NbJavaJMISyntaxSupport.getTypeFromName(NbJavaJMISyntaxSupport.java:394)
	at
org.netbeans.modules.editor.java.NbJavaJMISyntaxSupport.getType(NbJavaJMISyntaxSupport.java:356)
	at
org.netbeans.modules.editor.java.NbJavaJMISyntaxSupport.getType(NbJavaJMISyntaxSupport.java:299)
	at
org.netbeans.modules.editor.java.NbJavaJMISyntaxSupport.findType(NbJavaJMISyntaxSupport.java:160)
	at
org.netbeans.modules.editor.java.NbJavaJMICompletionQuery$Context.resolveItem(NbJavaJMICompletionQuery.java:483)
	at
org.netbeans.modules.editor.java.NbJavaJMICompletionQuery$Context.resolveExp(NbJavaJMICompletionQuery.java:391)
	at
org.netbeans.modules.editor.java.NbJavaJMICompletionQuery.getResult(NbJavaJMICompletionQuery.java:59)
	at
org.netbeans.editor.ext.java.JavaCompletionQuery.query(JavaCompletionQuery.java:140)
	at
org.netbeans.editor.ext.java.JavaCompletionQuery.query(JavaCompletionQuery.java:75)
	at
org.netbeans.modules.editor.java.JavaCompletionProvider$Query.query(JavaCompletionProvider.java:106)
	at
org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:189)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:514)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:947)
Comment 1 rolf_schumacher 2006-03-23 18:13:25 UTC
Created attachment 29386 [details]
messages.log from .netbeans\var\log\
Comment 2 rolf_schumacher 2006-03-23 18:16:46 UTC
ok, I found the place for .netbeans\var\log\messages.log

I'd like to admitt that I'm usually develop on linux where I do not have this issue.
Comment 3 Jiri Prox 2006-03-24 08:55:34 UTC
Isn't it duplicate of issue 70319? The stacktraces are very similar (but not
excactly same)
Comment 4 Jan Becicka 2006-03-30 16:14:10 UTC
Can you attach de/august/example/pdfbox/TestPDFParser.java
This file cause the problem. Thanks
Comment 5 Tomas Hurka 2006-03-31 10:29:59 UTC
We need your file de/august/example/pdfbox/TestPDFParser.java at the time when this error happens. 
The problem seems to be caused by source code around 
import java.io.in
in your file.
Does changing the file helps? Does restating NetBeans helps? 
Comment 6 Jan Becicka 2006-10-26 16:26:34 UTC
Javacore module was replaced by Retouche infrastructure. This bug is not valid
in trunk any more.
Comment 7 Quality Engineering 2007-09-20 12:08:18 UTC
Reorganization of java component
Comment 8 Jiri Prox 2007-11-06 12:16:02 UTC
verified/close