- This topic has 3 replies, 2 voices, and was last updated 19 years, 11 months ago by Riyad Kalla.
-
AuthorPosts
-
Andrew RendleMemberI am attempting to do the Struts Quickstart demo. When I try to use “New Form, Action and JSP” I get the following exception. I also get it when just trying to create a form and associated. I think I managed to create a form and jsp once but never again. Any ideas? Thankyou
Info Nov 04, 2004 16:21:34.929
java.lang.reflect.InvocationTargetException
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:335)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:269)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:824)
at org.easystruts.eclipse.xslgen.EclipseJdtWriter.write(Unknown Source)
at org.easystruts.xslgen.JavaClass.write(Unknown Source)
at org.easystruts.xslgen.struts.XsltStrutsGenerator.createActionForm(Unknown Source)
at com.genuitec.eclipse.struts.wizards.NewFormCreationWizard.perform(Unknown Source)
at com.genuitec.eclipse.struts.wizards.NewEasyStrutsWizard.performFinish(Unknown Source)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:670)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:342)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:538)
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:2783)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2442)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:706)
at org.eclipse.jface.window.Window.open(Window.java:684)
at com.genuitec.eclipse.struts.editor.outline.BasicOpenWizardAction$1.run(Unknown Source)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at com.genuitec.eclipse.struts.editor.outline.BasicOpenWizardAction.launchWizard(Unknown Source)
at com.genuitec.eclipse.struts.editor.outline.BasicOpenWizardAction.runWithEvent(Unknown Source)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:555)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:505)
at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:419)
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:2783)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2442)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1443)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1414)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:271)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:144)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:102)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:704)
at org.eclipse.core.launcher.Main.main(Main.java:688)
Caused by: java.lang.IllegalAccessError: tried to access method org.eclipse.jdt.internal.ui.preferences.ImportOrganizePreferencePage.getImportOrderPreference()[Ljava/lang/String; from class org.easystruts.eclipse.xslgen.EclipseJdtWriter
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:68)
at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:98)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1674)
at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:110)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:322)
… 43 more
Root exception:
java.lang.IllegalAccessError: tried to access method org.eclipse.jdt.internal.ui.preferences.ImportOrganizePreferencePage.getImportOrderPreference()[Ljava/lang/String; from class org.easystruts.eclipse.xslgen.EclipseJdtWriter
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:68)
at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:98)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1674)
at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:110)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:322)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:269)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:824)
at org.easystruts.eclipse.xslgen.EclipseJdtWriter.write(Unknown Source)
at org.easystruts.xslgen.JavaClass.write(Unknown Source)
at org.easystruts.xslgen.struts.XsltStrutsGenerator.createActionForm(Unknown Source)
at com.genuitec.eclipse.struts.wizards.NewFormCreationWizard.perform(Unknown Source)
at com.genuitec.eclipse.struts.wizards.NewEasyStrutsWizard.performFinish(Unknown Source)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:670)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:342)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:538)
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:2783)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2442)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:706)
at org.eclipse.jface.window.Window.open(Window.java:684)
at com.genuitec.eclipse.struts.editor.outline.BasicOpenWizardAction$1.run(Unknown Source)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at com.genuitec.eclipse.struts.editor.outline.BasicOpenWizardAction.launchWizard(Unknown Source)
at com.genuitec.eclipse.struts.editor.outline.BasicOpenWizardAction.runWithEvent(Unknown Source)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:555)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:505)
at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:419)
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:2783)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2442)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1443)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1414)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:271)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:144)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:102)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:704)
at org.eclipse.core.launcher.Main.main(Main.java:688)
Riyad KallaMemberDid you install the Eclipse SDK or the JDT/Platform install? You need to install the entire Eclipse SDK when used with MyEclipse.
Andrew RendleMemberI installed eclipse-SDK-3.1M2-win32.zip and EnterpriseWorkbenchInstaller_030802.exe with no other plugins. When clicking “finish” on “New Form, Action and JSP” I get 2 classes created the userLoginForm and userLoginAction but they have errors as there are no imports created. I suspect the generation didn’t complete as there is no userLogin.jsp created either.
Riyad KallaMemberAhh, Eclipse 3.1 is not supported at this time as it is not slated for a final release until atleast May of next year, we encourage you to use Eclipse 3.0.1 as it is the most stable combination with MyEclipse.
-
AuthorPosts