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 - JavaProject.getCompilationUnits() throws an exception
Summary: JavaProject.getCompilationUnits() throws an exception
Status: RESOLVED DUPLICATE of bug 33621
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-15 16:26 UTC by Ondrej Rypacek
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
the exception show on the console output (1.37 KB, text/plain)
2003-05-15 16:29 UTC, Ondrej Rypacek
Details
the exception thrown out of getCompilationUnits (1.99 KB, text/plain)
2003-05-15 16:31 UTC, Ondrej Rypacek
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***