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 202495 - NullPointerException at org.netbeans.modules.j2ee.ejbcore._RetoucheUtil.resolveFileObjectForClass
Summary: NullPointerException at org.netbeans.modules.j2ee.ejbcore._RetoucheUtil.resol...
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: EJB (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-22 12:35 UTC by Jiri Skrivanek
Modified: 2012-01-19 13:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 181303


Attachments
stacktrace (2.05 KB, text/plain)
2011-09-22 12:35 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2011-09-22 12:35:33 UTC
Build: NetBeans IDE 7.1 Beta (Build 201109212202)
VM: Java HotSpot(TM) Client VM, 21.0-b17, Java(TM) SE Runtime Environment, 1.7.0-b147
OS: Windows XP

User Comments:
jskrivanek: To reproduce:
- create EJB project
- open new file wizard
- choose Enterprise JavaBeans|Timer Session Bean and click Next
- check the Local checkbox and click Finish




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.j2ee.ejbcore._RetoucheUtil.resolveFileObjectForClass(_RetoucheUtil.java:298)
   at org.netbeans.modules.j2ee.ejbcore.action.AbstractMethodGenerator.addMethodToInterface(AbstractMethodGenerator.java:100)
   at org.netbeans.modules.j2ee.ejbcore.action.BusinessMethodGenerator.generate(BusinessMethodGenerator.java:103)
   at org.netbeans.modules.j2ee.ejbcore.api.codegeneration.SessionGenerator$1.run(SessionGenerator.java:355)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1424)
   at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1973)
Comment 1 Jiri Skrivanek 2011-09-22 12:35:37 UTC
Created attachment 111038 [details]
stacktrace
Comment 2 Martin Fousek 2011-09-22 14:45:38 UTC
Not able to reproduce that, but now I'm seeing that you had jdk1.7, so I will try that (but most probably there will be race condition). Are you able to reproduce that always (with your steps)?  Thanks.
Comment 3 Jiri Skrivanek 2011-09-23 09:02:19 UTC
Now I am not able to reproduce it in new beta build nor in trunk build. Feel free to close it if you can't find problem from stack trace.
Comment 4 Martin Fousek 2011-10-06 13:47:56 UTC
Actually it's not problem to identify where it happens but hard to say why it happens. The cause could be probably similar to issue #202917. I added on that place logging code again and lets wait for the issue with additional debug information. TomasZ's advice was checking for MIME type and FO validity + I added FO path to check that the source  is creating for correct FO.

Closing this issue, new one will be reported when it happens again.
web-main #1b9c5ba7b4f9
Comment 5 Quality Engineering 2011-10-07 14:36:54 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/1b9c5ba7b4f9
User: Martin Fousek <marfous@netbeans.org>
Log: #202495 - NullPointerException at org.netbeans.modules.j2ee.ejbcore._RetoucheUtil.resolveFileObjectForClass
Comment 6 Martin Fousek 2012-01-19 13:48:19 UTC
BTW, should not happen any more. I rewrote generation of TSB and it's created from the template - so no generation calls happen anymore there.

Jirko, it also means that disappeared strange behaviour with adding timer method later (not immediately with the SB).

web-main #c31b2eb9ca9f
Comment 7 Jiri Skrivanek 2012-01-19 13:51:36 UTC
Great!