For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 3 replies, 3 voices, and was last updated 21 years, 5 months ago by
Riyad Kalla.
-
AuthorPosts
-
Brian JimersonMemberWhen trying to create a new Struts 1.1 Form, Action, & JSP, the dialog appears. However, after when I click ‘Finish’, nothing happens, and no classes or jsps are created. The workspace log has the following exception:
!ENTRY com.genuitec.eclipse.struts 1 1 Jun 24, 2004 11:59:17.29
!MESSAGE
!STACK 0
java.lang.reflect.InvocationTargetException
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:314)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:253)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:752)
at org.easystruts.eclipse.xslgen.EclipseJdtWriter.write(Unknown Source)
at org.easystruts.xslgen.JavaClass.write(Unknown Source)
at org.easystruts.xslgen.struts.XsltStrutsGenerator.createAction(Unknown Source)
at com.genuitec.eclipse.struts.wizards.NewActionAndFormCreationWizard.performCreateAction(Unknown Source)
at com.genuitec.eclipse.struts.wizards.NewActionAndFormCreationWizard.perform(Unknown Source)
at com.genuitec.eclipse.struts.wizards.NewEasyStrutsWizard.performFinish(Unknown Source)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:609)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:305)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:506)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2732)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2398)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:668)
at org.eclipse.jface.window.Window.open(Window.java:648)
at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.java:161)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:881)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:915)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:866)
at org.eclipse.jface.action.ActionContributionItem$7.handleEvent(ActionContributionItem.java:785)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2732)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2398)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1362)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1333)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:252)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:334)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:272)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:128)
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.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:638)
at org.eclipse.core.launcher.Main.main(Main.java:622)
Caused by: java.lang.NullPointerException
at org.easystruts.eclipse.xslgen.EclipseJdtWriter.createType(Unknown Source)
at org.easystruts.eclipse.xslgen.EclipseJdtWriter$1.run(Unknown Source)
at org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation.execute(WorkspaceModifyDelegatingOperation.java:67)
at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:91)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1673)
at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:105)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:303)
… 42 more
Root exception:
java.lang.NullPointerException
at org.easystruts.eclipse.xslgen.EclipseJdtWriter.createType(Unknown Source)
at org.easystruts.eclipse.xslgen.EclipseJdtWriter$1.run(Unknown Source)
at org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation.execute(WorkspaceModifyDelegatingOperation.java:67)
at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:91)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1673)
at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:105)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:303)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:253)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:752)
at org.easystruts.eclipse.xslgen.EclipseJdtWriter.write(Unknown Source)
at org.easystruts.xslgen.JavaClass.write(Unknown Source)
at org.easystruts.xslgen.struts.XsltStrutsGenerator.createAction(Unknown Source)
at com.genuitec.eclipse.struts.wizards.NewActionAndFormCreationWizard.performCreateAction(Unknown Source)
at com.genuitec.eclipse.struts.wizards.NewActionAndFormCreationWizard.perform(Unknown Source)
at com.genuitec.eclipse.struts.wizards.NewEasyStrutsWizard.performFinish(Unknown Source)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:609)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:305)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:506)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2732)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2398)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:668)
at org.eclipse.jface.window.Window.open(Window.java:648)
at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.java:161)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:881)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:915)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:866)
at org.eclipse.jface.action.ActionContributionItem$7.handleEvent(ActionContributionItem.java:785)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2732)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2398)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1362)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1333)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:252)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:334)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:272)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:128)
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.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:638)
at org.eclipse.core.launcher.Main.main(Main.java:622)June 24, 2004 at 1:54 pm #209039
support-michaelKeymasterWe haven’t seen this problem before so we need more info to research it.
1) Please post your environment and configuration per the posting guidelines
2) Please provide the steps that we can use to replicate the problem (assumes the problem is repeatable).
2a) Include the input data you submitted to each wizard page.
2b) Include a brief description of how the WebProject was created with Struts capabilities.Thanks in advance.
June 25, 2004 at 7:21 am #209063
Brian JimersonMemberSorry about that. Here’s my environment:
– Windows 2000 SP4
– JDK 1.4.2
– Eclipse 3.0 M9 (build 200405211200). This is fresh install with no other plug-ins.
– MyEclipse 3.7.101
– WebLogic 7 w/ JDK 1.3.1Here’s how I can repeat the problem every time:
1. Create a new Web Module project (StrutsTestWeb) w/ ‘src’ and ‘WebRoot’ default folders.
2. Right-click the project and select MyEclipse -> Add Struts capabilities…
3. Leave the defaults for Struts configuration (v1.1, action, *.do), and change the base package (I use btj).
4. Right-click the project and select New -> Other… -> J2EE -> Struts 1.1 -> Struts 1.1 Form, Action, & JSP.
5. For the form, I use ‘LoginForm’ for name, ‘btj.forms.LoginForm’ for the type, add ‘userName’ and ‘password’ (both Strings) for properties, check ‘Create JSP form?’, and name it login.jsp. I leave the defaults for everything else.
6. For the action, I use ‘/LoginAction’ for the path, ‘btj.actions.LoginAction’ for the type, ‘btj.forms.LoginForm’ for the form name and attribute, login.jsp for the input jsp, and add a forward of ‘/loginsuccess’, ‘loginsuccess.jsp’. I leave the defaults for everything else.
7. When I click ‘Finish’, the dialog does nothing. This is when the error is generated in workspace log.I’ve also followed the same procedure using Eclipse 2.1 and MyEclipse 2.7 Beta, and Eclipse RC3 and MyEclipse 3.7 Beta, with the same results.
Also, here is the dir output of my eclipse plugin directory:
Volume in drive C has no label.
Volume Serial Number is 50F8-D6D2Directory of C:\eclipse\plugins
06/25/2004 07:57a <DIR> .
06/25/2004 07:57a <DIR> ..
06/25/2004 07:56a <DIR> org.apache.ant_1.6.1
06/25/2004 07:57a <DIR> org.apache.lucene_1.3.0
06/25/2004 07:57a <DIR> org.eclipse.ant.core_3.0.0
06/25/2004 07:56a <DIR> org.eclipse.ant.ui_3.0.0
06/25/2004 07:57a <DIR> org.eclipse.compare_3.0.0
06/25/2004 07:56a <DIR> org.eclipse.core.boot_3.0.0
06/25/2004 07:57a <DIR> org.eclipse.core.expressions_3.0.0
06/25/2004 07:57a <DIR> org.eclipse.core.filebuffers_3.0.0
06/25/2004 07:56a <DIR> org.eclipse.core.resources.win32_3.0.0
06/25/2004 07:56a <DIR> org.eclipse.core.resources_3.0.0
06/25/2004 07:57a <DIR> org.eclipse.core.runtime.compatibility_3.0.0
06/25/2004 07:57a <DIR> org.eclipse.core.runtime_3.0.0
06/25/2004 07:57a <DIR> org.eclipse.core.variables_3.0.0
06/25/2004 07:57a <DIR> org.eclipse.debug.core_3.0.0
06/25/2004 07:56a <DIR> org.eclipse.debug.ui_3.0.0
06/25/2004 07:56a <DIR> org.eclipse.help.appserver_3.0.0
06/25/2004 07:57a <DIR> org.eclipse.help.base_3.0.0
06/25/2004 07:56a <DIR> org.eclipse.help.ide_3.0.0
06/25/2004 07:56a <DIR> org.eclipse.help.ui_3.0.0
06/25/2004 07:56a <DIR> org.eclipse.help.webapp_3.0.0
06/25/2004 07:56a <DIR> org.eclipse.help_3.0.0
06/25/2004 07:56a <DIR> org.eclipse.jdt.core_3.0.0
06/25/2004 07:57a <DIR> org.eclipse.jdt.debug.ui_3.0.0
06/25/2004 07:57a <DIR> org.eclipse.jdt.debug_3.0.0
06/25/2004 07:56a <DIR> org.eclipse.jdt.doc.isv_3.0.0
06/25/2004 07:56a <DIR> org.eclipse.jdt.doc.user_3.0.0
06/25/2004 07:56a <DIR> org.eclipse.jdt.junit.runtime_3.0.0
06/25/2004 07:56a <DIR> org.eclipse.jdt.junit_3.0.0
06/25/2004 07:57a <DIR> org.eclipse.jdt.launching_3.0.0
06/25/2004 07:56a <DIR> org.eclipse.jdt.source_3.0.0
06/25/2004 07:57a <DIR> org.eclipse.jdt.ui_3.0.0
06/25/2004 07:57a <DIR> org.eclipse.jdt_3.0.0
06/25/2004 07:57a <DIR> org.eclipse.jface.text_3.0.0
06/25/2004 07:56a <DIR> org.eclipse.jface_3.0.0
06/25/2004 07:56a <DIR> org.eclipse.ltk.core.refactoring_3.0.0
06/25/2004 07:56a <DIR> org.eclipse.ltk.ui.refactoring_3.0.0
06/25/2004 07:57a <DIR> org.eclipse.osgi.services_3.0.0
06/25/2004 07:56a <DIR> org.eclipse.osgi.util_3.0.0
06/25/2004 07:57a <DIR> org.eclipse.osgi_3.0.0
06/25/2004 07:57a <DIR> org.eclipse.pde.build_3.0.0
06/25/2004 07:57a <DIR> org.eclipse.pde.core_3.0.0
06/25/2004 07:56a <DIR> org.eclipse.pde.doc.user_3.0.0
06/25/2004 07:57a <DIR> org.eclipse.pde.junit.runtime_3.0.0
06/25/2004 07:57a <DIR> org.eclipse.pde.runtime_3.0.0
06/25/2004 07:56a <DIR> org.eclipse.pde.source_3.0.0
06/25/2004 07:56a <DIR> org.eclipse.pde.ui_3.0.0
06/25/2004 07:57a <DIR> org.eclipse.pde_3.0.0
06/25/2004 07:56a <DIR> org.eclipse.platform.doc.isv_3.0.0
06/25/2004 07:57a <DIR> org.eclipse.platform.doc.user_3.0.0
06/25/2004 07:56a <DIR> org.eclipse.platform.source.win32.win32.x86_3.0.0
06/25/2004 07:56a <DIR> org.eclipse.platform.source_3.0.0
06/25/2004 07:57a <DIR> org.eclipse.platform_3.0.0
06/25/2004 07:56a <DIR> org.eclipse.sdk_3.0.0
06/25/2004 07:56a <DIR> org.eclipse.search_3.0.0
06/25/2004 07:57a <DIR> org.eclipse.swt.win32_3.0.0
06/25/2004 07:57a <DIR> org.eclipse.swt_3.0.0
06/25/2004 07:57a <DIR> org.eclipse.team.core_3.0.0
06/25/2004 07:56a <DIR> org.eclipse.team.cvs.core_3.0.0
06/25/2004 07:57a <DIR> org.eclipse.team.cvs.ssh2_3.0.0
06/25/2004 07:57a <DIR> org.eclipse.team.cvs.ssh_3.0.0
06/25/2004 07:56a <DIR> org.eclipse.team.cvs.ui_3.0.0
06/25/2004 07:57a <DIR> org.eclipse.team.ui_3.0.0
06/25/2004 07:57a <DIR> org.eclipse.text_3.0.0
06/25/2004 07:57a <DIR> org.eclipse.tomcat_4.1.30
06/25/2004 07:56a <DIR> org.eclipse.ui.cheatsheets_3.0.0
06/25/2004 07:56a <DIR> org.eclipse.ui.console_3.0.0
06/25/2004 07:56a <DIR> org.eclipse.ui.editors_3.0.0
06/25/2004 07:56a <DIR> org.eclipse.ui.externaltools_3.0.0
06/25/2004 07:56a <DIR> org.eclipse.ui.forms_3.0.0
06/25/2004 07:57a <DIR> org.eclipse.ui.ide_3.0.0
06/25/2004 07:56a <DIR> org.eclipse.ui.internal.r21presentation_3.0.0
06/25/2004 07:56a <DIR> org.eclipse.ui.intro_3.0.0
06/25/2004 07:56a <DIR> org.eclipse.ui.views_3.0.0
06/25/2004 07:57a <DIR> org.eclipse.ui.win32_3.0.0
06/25/2004 07:56a <DIR> org.eclipse.ui.workbench.compatibility_3.0.0
06/25/2004 07:57a <DIR> org.eclipse.ui.workbench.texteditor_3.0.0
06/25/2004 07:56a <DIR> org.eclipse.ui.workbench_3.0.0
06/25/2004 07:57a <DIR> org.eclipse.ui_3.0.0
06/25/2004 07:57a <DIR> org.eclipse.update.configurator_3.0.0
06/25/2004 07:56a <DIR> org.eclipse.update.core.win32_3.0.0
06/25/2004 07:57a <DIR> org.eclipse.update.core_3.0.0
06/25/2004 07:56a <DIR> org.eclipse.update.scheduler_3.0.0
06/25/2004 07:56a <DIR> org.eclipse.update.ui_3.0.0
06/25/2004 07:56a <DIR> org.junit_3.8.1
0 File(s) 0 bytes
86 Dir(s) 54,879,125,504 bytes freeJune 25, 2004 at 1:32 pm #209084
Riyad KallaMemberYour step-by-step description was great, I was able to reproduce the problem, the problem is that you didn’t give a use-case name to the form, once you do that, everything works. I will file this so we can add that sanity check in the next release.
-
AuthorPosts
