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 33654

Summary: JavaProject.getCompilationUnits() throws an exception
Product: java Reporter: Ondrej Rypacek <rypacek>
Component: UnsupportedAssignee: issues@java <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P2    
Version: 3.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: the exception show on the console output
the exception thrown out of getCompilationUnits

Description Ondrej Rypacek 2003-05-15 16:26:29 UTC
I call
JavaProject.getJavaProject(project).getCompilationUnits()
from a unit xtest and the method throws exception.
One exception is displayed on the console and
caught inside JavaProject. Then
NullPointerException falls out of the method. I
attach both exceptions. 

The project is created using ProjectDecoratorHid.
I sleep 15seconds after calling
ProjectsDecoratorHid.openProject to let everything
settle down and it looks like everything in the
project opened in this way works fine. 

Steps to reproduce: get the latest JarPackager
from cvs and run tests (cd to test, type "ant").
The test suite PackagingTest forces the exception.
Comment 1 Ondrej Rypacek 2003-05-15 16:29:24 UTC
Created attachment 10316 [details]
the exception show on the console output
Comment 2 Ondrej Rypacek 2003-05-15 16:31:31 UTC
Created attachment 10317 [details]
the exception thrown out of getCompilationUnits
Comment 3 Pavel Buzek 2003-05-15 20:57:45 UTC
the same problem appears in web module tests

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