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 157918 - IAE when Call EJB within Maven EAR
Summary: IAE when Call EJB within Maven EAR
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Maven (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on: 157985
Blocks:
  Show dependency tree
 
Reported: 2009-02-04 14:03 UTC by Jaroslav Pospisil
Modified: 2009-03-17 11:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Pospisil 2009-02-04 14:03:10 UTC
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)
Comment 1 Jaroslav Pospisil 2009-02-04 16:41:57 UTC
Issue is not restricted to EAR,reproducible with sole Maven Web App and EJB.
Comment 2 Milos Kleint 2009-02-11 07:35:52 UTC
http://hg.netbeans.org/main/rev/690de4c88a44
Comment 3 Quality Engineering 2009-02-18 10:45:52 UTC
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.
Comment 4 Jaroslav Pospisil 2009-03-17 11:18:58 UTC
v.