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 2009020402232, Win Vista, JDK 1.6 Create new Maven EAR project,create new remote session bean with bussiness class in its EJB module, build EAR with dependencies and then add new Servlet into EAR's war module and Call EJB(through Insert code).IAE appears. java.lang.IllegalArgumentException: Cannot create a QualIdent for javax.ejb.EJB at org.netbeans.modules.j2ee.core.api.support.java.GenerationUtils.createQualIdent(GenerationUtils.java:734) at org.netbeans.modules.j2ee.core.api.support.java.GenerationUtils.createAnnotation(GenerationUtils.java:270) at org.netbeans.modules.j2ee.ejbcore._RetoucheUtil$3.run(_RetoucheUtil.java:191) at org.netbeans.modules.j2ee.ejbcore._RetoucheUtil$3.run(_RetoucheUtil.java:170) at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:647) at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:123) at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:105) at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:191) at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:96) at org.netbeans.api.java.source.JavaSource.runModificationTask(JavaSource.java:663) at org.netbeans.modules.j2ee.ejbcore._RetoucheUtil.generateAnnotatedField(_RetoucheUtil.java:170) at org.netbeans.modules.j2ee.ejbcore.action.CallEjbGenerator.generateInjection(CallEjbGenerator.java:307) at org.netbeans.modules.j2ee.ejbcore.action.CallEjbGenerator.generateReferenceCode(CallEjbGenerator.java:234) at org.netbeans.modules.j2ee.ejbcore.action.CallEjbGenerator.addReference(CallEjbGenerator.java:149) at org.netbeans.modules.j2ee.ejbcore.ui.logicalview.entres.CallEjbDialog.open(CallEjbDialog.java:150) at org.netbeans.modules.j2ee.ejbcore.ui.logicalview.entres.CallEjbCodeGenerator.invoke(CallEjbCodeGenerator.java:122) at org.netbeans.modules.editor.codegen.GenerateCodePanel.invokeSelected(GenerateCodePanel.java:159) at org.netbeans.modules.editor.codegen.GenerateCodePanel.listMouseReleased(GenerateCodePanel.java:122) at org.netbeans.modules.editor.codegen.GenerateCodePanel.access$200(GenerateCodePanel.java:60) at org.netbeans.modules.editor.codegen.GenerateCodePanel$3.mouseReleased(GenerateCodePanel.java:108) at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:273) at java.awt.Component.processMouseEvent(Component.java:6134) at javax.swing.JComponent.processMouseEvent(JComponent.java:3265) at java.awt.Component.processEvent(Component.java:5899) at java.awt.Container.processEvent(Container.java:2023) at java.awt.Component.dispatchEventImpl(Component.java:4501) at java.awt.Container.dispatchEventImpl(Container.java:2081) at java.awt.Component.dispatchEvent(Component.java:4331) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4301) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3965) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3895) at java.awt.Container.dispatchEventImpl(Container.java:2067) at java.awt.Window.dispatchEventImpl(Window.java:2458) at java.awt.Component.dispatchEvent(Component.java:4331) [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Issue is not restricted to EAR,reproducible with sole Maven Web App and EJB.
http://hg.netbeans.org/main/rev/690de4c88a44
Integrated into 'main-golden', will be available in build *200902180201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/690de4c88a44 User: Milos Kleint <mkleint@netbeans.org> Log: #157918 when generating ejb reference, make sure to add ejb api on project's classpath in case of maven projects.
v.