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.
Summary: | WebApp with a library throws exceptions | ||
---|---|---|---|
Product: | editor | Reporter: | zikmund <zikmund> |
Component: | Refactoring | Assignee: | Tomas Zezula <tzezula> |
Status: | CLOSED FIXED | ||
Severity: | blocker | ||
Priority: | P1 | ||
Version: | 4.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
java.lang.NullPointerException
java.lang.RuntimeException org.netbeans.mdr.persistence.StorageBadRequestException |
Description
zikmund
2004-06-11 13:52:05 UTC
Created attachment 15655 [details]
java.lang.NullPointerException
Created attachment 15656 [details]
java.lang.RuntimeException
Probably a bug in refactoring code, but assigning to web apps for initial evaluation to see if this is reproducible etc. On my build (co from cvs and built myself today) I can reproduce the first EX but does not seem to do any harm. Even w/o compilation code completion in web app offers a class I created in java library. Does not look like anything in web apps. Refactoring please evaluate and probably downgrade to P2 or P3. Created attachment 15675 [details]
org.netbeans.mdr.persistence.StorageBadRequestException
Similar stacktrace is in Issue 44907 java.lang.NullPointerException org.netbeans.modules.javacore.JMManager.cleanUpCodebases(JMManager.java:675) org.netbeans.modules.javacore.JMManager.access$200(JMManager.java:59) *** Issue 44907 has been marked as a duplicate of this issue. *** First NPE is 100% reproducible [build from CVS 20040616]. (JMManager.java:675) Evaluation: 1. this.classPath.getRoots returns null (which would never happen, according to javadoc in ClassPath.getRoots) 2. roots.length causes the exception Questions to ask: Q1: Why cleanUpCodebases is called at all, if we are adding a library Q2: Why ClassPath.getRoots returns null This is due to a race condition in the ClassPath implementation. Reassigning to Tomas Zezula... Checking in ClassPath.java; /cvs/java/api/src/org/netbeans/api/java/classpath/ClassPath.java,v <-- ClassPath.java new revision: 1.21; previous revision: 1.20 done It works now. No NPE. Verified. |