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: | NullPointerException at org.netbeans.modules.j2ee.ejbcore._RetoucheUtil.resolveFileObjectForClass | ||
---|---|---|---|
Product: | javaee | Reporter: | Jiri Skrivanek <jskrivanek> |
Component: | EJB | Assignee: | Martin Fousek <marfous> |
Status: | VERIFIED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 7.1 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 182512 |
Attachments: | stacktrace |
Description
Jiri Skrivanek
2011-11-02 09:19:33 UTC
Created attachment 112714 [details]
stacktrace
Looks like issue similar to bug #202495, but I don't understand why did you not get additional debug/logging information. Definitely valid issue, I will investigate what could happen there. What do you mean by additional debug/logging information? This bug was reported by the exception reporter, so I expect you have as much data as possible. Since http://hg.netbeans.org/web-main/rev/1b9c5ba7b4f9 I would expect more information about the fileObject for javaSource creation, but probably the problem wasn't directly there. You were right, I forgot that the rest of needed information will be in the log. So the cause of these troubles is non-valid fileobject - the javaSource is not returned then. Problem will be probably in codes which calls this method. CmFieldGenerator should got javaSource for the same class twice and failed (returned null) only in the second creation. Means that it can cause code between those two calls. This code makes changes in the ejbClass and rewrite its source Tree. I'm not aware that it should make any troubles but for assurance there will be the modificationTask on the ejbClass source called at the end of the method. web-main #5f1df1b8e16a Integrated into 'main-golden', will be available in build *201111050600* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/5f1df1b8e16a User: Martin Fousek <marfous@netbeans.org> Log: #204564 - NullPointerException at org.netbeans.modules.j2ee.ejbcore._RetoucheUtil.resolveFileObjectForClass |