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.
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)
Created attachment 111038 [details] stacktrace
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.
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.
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
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
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
Great!