bug while creating new ejb-Project [message #116662] |
Wed, 06 July 2005 10:21 |
Eclipse User |
|
|
|
If I use the "new-ejb-project" - Wizzard, after pressing the
"Finish"-Button I get - depending on some circumstances - a
bug-dialog-window with the stack-trace shown below. If you want to enforce
the bug to appear, you have to fill the "new-ejb-project" - wizzard like
this:
1)Target-Server: your Server
2)ejb-Version: your ejb-Version
3)add Module to an ear - Application: no
4)create an ejb-client jar.. : yes
5)add support for annotated java - classes: yes.
The occurence of the bug is depending on the three values you select for
the yes/no - fields mentioned above with the numbers 3), 4), 5). In the
example I gave above the submitted values are no, yes, yes. If you play
around with these values, you have 2*2*2 possibilities. I tested all of
them and found the following two patterns for receiving the bug: the first
one is the pattern I gave above (no, yes, yes) and the second is (no, yes,
no). The value for Target-Server and ejb-Version doesn seem to play a role
for the bug because I got the same results for JBOSS 3.2.3 with EJB 2.0
and for GERONIMO 1.0 with EJB 2.1.
Here's the stack-Trace of the bug:
java.lang.reflect.InvocationTargetException
at
org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:357)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:291)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java: 830)
at
org.eclipse.wst.common.frameworks.internal.datamodel.ui.Data ModelWizard.performFinish(DataModelWizard.java:245)
at
org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:676)
at
org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:349)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav a:556)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3080)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2713)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:809 )
at org.eclipse.jface.window.Window.open(Window.java:787)
at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:181)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:996 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:538)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3080)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2713)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
Caused by: java.lang.NullPointerException
at
org.eclipse.wst.common.componentcore.internal.resources.Virt ualComponent.getReferences(VirtualComponent.java:185)
at
org.eclipse.wst.common.componentcore.internal.operation.Crea teReferenceComponentsOp.addReferencedComponents(CreateRefere nceComponentsOp.java:58)
at
org.eclipse.wst.common.componentcore.internal.operation.Crea teReferenceComponentsOp.execute(CreateReferenceComponentsOp. java:30)
at
org.eclipse.jst.j2ee.application.internal.operations.AddComp onentToEnterpriseApplicationOp.execute(AddComponentToEnterpr iseApplicationOp.java:34)
at
org.eclipse.wst.common.frameworks.internal.datamodel.Extenda bleOperationImpl.doExecute(ExtendableOperationImpl.java:129)
at
org.eclipse.wst.common.frameworks.internal.datamodel.Extenda bleOperationImpl$1.run(ExtendableOperationImpl.java:109)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1719)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1739)
at
org.eclipse.wst.common.frameworks.internal.datamodel.Extenda bleOperationImpl.execute(ExtendableOperationImpl.java:115)
at
org.eclipse.jst.j2ee.internal.ejb.archiveoperations.EJBClien tComponentCreationOperation.runAddToEAROperation(EJBClientCo mponentCreationOperation.java:92)
at
org.eclipse.jst.j2ee.internal.ejb.archiveoperations.EJBClien tComponentCreationOperation.execute(EJBClientComponentCreati onOperation.java:65)
at
org.eclipse.wst.common.frameworks.internal.datamodel.Extenda bleOperationImpl.doExecute(ExtendableOperationImpl.java:129)
at
org.eclipse.wst.common.frameworks.internal.datamodel.Extenda bleOperationImpl$1.run(ExtendableOperationImpl.java:109)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1719)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1739)
at
org.eclipse.wst.common.frameworks.internal.datamodel.Extenda bleOperationImpl.execute(ExtendableOperationImpl.java:115)
at
org.eclipse.jst.j2ee.internal.ejb.archiveoperations.EjbCompo nentCreationOperation.execute(EjbComponentCreationOperation. java:96)
at
org.eclipse.wst.common.frameworks.internal.datamodel.Extenda bleOperationImpl.doExecute(ExtendableOperationImpl.java:129)
at
org.eclipse.wst.common.frameworks.internal.datamodel.Extenda bleOperationImpl$1.run(ExtendableOperationImpl.java:109)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1719)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1739)
at
org.eclipse.wst.common.frameworks.internal.datamodel.Extenda bleOperationImpl.execute(ExtendableOperationImpl.java:115)
at
org.eclipse.wst.common.frameworks.internal.ui.RunnableOperat ionWrapper.run(RunnableOperationWrapper.java:32)
at
org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:346)
... 38 more
I wish someone can tell me if the bug might cause some problems I run into
when trying to work the tutorial "Building a Simple EJB Application".
Thanks
Matthias
|
|
|
Powered by
FUDForum. Page generated in 0.03705 seconds