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 50201 - Runtime exception in code completion for imports
Summary: Runtime exception in code completion for imports
Status: RESOLVED DUPLICATE of bug 50161
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-10 00:53 UTC by _ tboudreau
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 _ tboudreau 2004-10-10 00:53:23 UTC
Created a new java class.  Put caret in import section, typed 
ja[ctrl-space].  Code completion popped up.  Pressed down 
arrow to select "javax".  Runtime exception occurs.


java.lang.RuntimeException: Invalid AST returned from parser or 
error parsing 'org/netbeans/modules/newsreader/Account.java'. 
Please report a bug against java module and attach dump file '/
Users/tim/.netbeans/dev/var/log/Account.java_1.dump'.
	at 
org.netbeans.modules.javacore.parser.ASTProvider.dumpSource(
ASTProvider.java:520)
	at 
org.netbeans.modules.javacore.parser.ASTProvider.createASTree
(ASTProvider.java:85)
	at 
org.netbeans.modules.javacore.parser.ASTProvider.getASTree(AS
TProvider.java:108)
	at 
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.
directUpdate(ResourceImpl.java:523)
	at 
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.
checkUpToDate(ResourceImpl.java:480)
	at 
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.
updateFromDataObject(ResourceImpl.java:386)
	at 
org.netbeans.modules.javacore.ExclusiveMutex.parseIfNeeded(E
xclusiveMutex.java:222)
	at 
org.netbeans.modules.javacore.ExclusiveMutex.enter(ExclusiveM
utex.java:141)
	at 
org.netbeans.mdr.NBMDRepositoryImpl.beginTrans(NBMDReposi
toryImpl.java:227)
	at 
org.netbeans.modules.java.JavaEditor$2.run(JavaEditor.java:230)
	at org.openide.util.Task.run(Task.java:136)
	at 
org.openide.util.RequestProcessor$Task.run(RequestProcessor.ja
va:330)
[catch] at 
org.openide.util.RequestProcessor$Processor.run(RequestProces
sor.java:686)
Comment 1 Martin Matula 2004-10-11 09:05:27 UTC

*** This issue has been marked as a duplicate of 50161 ***