facebook

Unable to add Struts support to existing project in 3.8 beta

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #207978 Reply

    When I try to open struts-config.xml in MyEclipse, the editor starts up, bu just contains this message: An error has occurred when creating this editor

    The eclipse .log file contains this info:

    eclipse.buildId=I200405211200
    java.version=1.4.2_03
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=no_NO
    Command-line arguments: C:\Java\eclipse\eclipse3M8\eclipse.exe
    !ENTRY org.eclipse.osgi jun 04, 2004 15:36:13.657
    !MESSAGE While loading class "org.eclipse.core.internal.localstore.IsSynchronizedVisitor", thread "Worker-0" timed out waiting (5000ms) for thread "main" to finish starting bundle "org.eclipse.core.resources". To avoid deadlock, thread "Worker-0" is proceeding but "org.eclipse.core.internal.localstore.IsSynchronizedVisitor" may not be fully initialized.
    !STACK 0
    java.lang.Exception: Generated exception.
        at org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass(EclipseClassLoader.java:99)
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:371)
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:402)
        at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:93)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
        at org.eclipse.core.internal.localstore.FileSystemResourceManager.isSynchronized(FileSystemResourceManager.java:369)
        at org.eclipse.core.internal.resources.Resource.isSynchronized(Resource.java:1105)
        at org.eclipse.core.internal.refresh.PollingMonitor.poll(PollingMonitor.java:141)
        at org.eclipse.core.internal.refresh.PollingMonitor.run(PollingMonitor.java:105)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
    !ENTRY org.eclipse.osgi jun 04, 2004 15:36:18.704
    !MESSAGE While loading class "org.eclipse.core.internal.localstore.CollectSyncStatusVisitor", thread "Worker-0" timed out waiting (5000ms) for thread "main" to finish starting bundle "org.eclipse.core.resources". To avoid deadlock, thread "Worker-0" is proceeding but "org.eclipse.core.internal.localstore.CollectSyncStatusVisitor" may not be fully initialized.
    !STACK 0
    java.lang.Exception: Generated exception.
        at org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass(EclipseClassLoader.java:99)
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:371)
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:402)
        at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:93)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at org.eclipse.osgi.framework.internal.defaultadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:298)
        at org.eclipse.core.runtime.adaptor.EclipseClassLoader.defineClass(EclipseClassLoader.java:212)
        at org.eclipse.osgi.framework.internal.defaultadaptor.DefaultClassLoader.findClassImpl(DefaultClassLoader.java:281)
        at org.eclipse.osgi.framework.internal.defaultadaptor.DefaultClassLoader.findClass(DefaultClassLoader.java:172)
        at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.findLocalClass(AbstractClassLoader.java:220)
        at org.eclipse.core.runtime.adaptor.EclipseClassLoader.basicFindLocalClass(EclipseClassLoader.java:131)
        at org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass(EclipseClassLoader.java:101)
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:371)
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:402)
        at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:93)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
        at org.eclipse.core.internal.localstore.FileSystemResourceManager.isSynchronized(FileSystemResourceManager.java:369)
        at org.eclipse.core.internal.resources.Resource.isSynchronized(Resource.java:1105)
        at org.eclipse.core.internal.refresh.PollingMonitor.poll(PollingMonitor.java:141)
        at org.eclipse.core.internal.refresh.PollingMonitor.run(PollingMonitor.java:105)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
    !ENTRY org.eclipse.core.runtime 4 2 jun 04, 2004 15:49:52.480
    !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.runtime".
    !STACK 0
    java.lang.NullPointerException
        at com.genuitec.eclipse.struts.editor.model.ModelManager.getActionConfigs(Unknown Source)
        at com.genuitec.eclipse.struts.editor.modeler.model.StrutsConfigDiagram.synchronizeDiagram(Unknown Source)
        at com.genuitec.eclipse.struts.editor.modeler.model.StrutsConfigDiagram.<init>(Unknown Source)
        at com.genuitec.eclipse.struts.editor.modeler.core.StrutsEditor.setInput(Unknown Source)
        at org.eclipse.gef.ui.parts.GraphicalEditor.init(GraphicalEditor.java:271)
        at org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:117)
        at com.genuitec.eclipse.struts.editor.multipage.StrutsConfigEditor.Ä…(Unknown Source)
        at com.genuitec.eclipse.struts.editor.multipage.StrutsConfigEditor.createPages(Unknown Source)
        at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:187)
        at org.eclipse.ui.internal.PartPane$2.run(PartPane.java:124)
        at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:608)
        at org.eclipse.core.runtime.Platform.run(Platform.java:758)
        at org.eclipse.ui.internal.PartPane.createChildControl(PartPane.java:120)
        at org.eclipse.ui.internal.PartPane.createControl(PartPane.java:182)
        at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:912)
        at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:894)
        at org.eclipse.ui.internal.PartStack.add(PartStack.java:283)
        at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
        at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:57)
        at org.eclipse.ui.internal.EditorAreaHelper.openEditor(EditorAreaHelper.java:264)
        at org.eclipse.ui.internal.EditorManager$2.run(EditorManager.java:552)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
        at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:541)
        at org.eclipse.ui.internal.EditorManager.openInternalEditor(EditorManager.java:637)
        at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:440)
        at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:428)
        at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2165)
        at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2098)
        at org.eclipse.ui.internal.WorkbenchPage.access$6(WorkbenchPage.java:2090)
        at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2077)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
        at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2072)
        at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2055)
        at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:258)
        at org.eclipse.ui.actions.OpenWithMenu.access$0(OpenWithMenu.java:251)
        at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:166)
        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:2716)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2382)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1363)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1334)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:253)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
        at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:97)
        at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:307)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:256)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:127)
        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)
    !ENTRY org.eclipse.core.runtime 4 2 jun 04, 2004 15:49:52.570
    !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.runtime".
    !STACK 0
    java.lang.NullPointerException
        at org.eclipse.gef.ui.actions.ActionBarContributor.setActiveEditor(ActionBarContributor.java:133)
        at com.genuitec.eclipse.struts.editor.multipage.MultiPageActionContributor.setActivePage(Unknown Source)
        at org.eclipse.ui.part.MultiPageEditorActionBarContributor.setActiveEditor(MultiPageEditorActionBarContributor.java:49)
        at org.eclipse.ui.internal.EditorActionBars.partChanged(EditorActionBars.java:291)
        at org.eclipse.ui.internal.WorkbenchPage$2.run(WorkbenchPage.java:474)
        at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:608)
        at org.eclipse.core.runtime.Platform.run(Platform.java:758)
        at org.eclipse.ui.internal.WorkbenchPage.activatePart(WorkbenchPage.java:466)
        at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:2615)
        at org.eclipse.ui.internal.WorkbenchPage.activate(WorkbenchPage.java:455)
        at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2179)
        at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2098)
        at org.eclipse.ui.internal.WorkbenchPage.access$6(WorkbenchPage.java:2090)
        at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2077)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
        at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2072)
        at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2055)
        at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:258)
        at org.eclipse.ui.actions.OpenWithMenu.access$0(OpenWithMenu.java:251)
        at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:166)
        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:2716)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2382)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1363)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1334)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:253)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
        at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:97)
        at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:307)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:256)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:127)
        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)
    !ENTRY org.eclipse.ui 4 4 jun 04, 2004 15:49:53.412
    !MESSAGE Unhandled event loop exception
    !ENTRY org.eclipse.ui 4 0 jun 04, 2004 15:49:53.412
    !MESSAGE Failed to execute runnable (java.lang.NullPointerException)
    !STACK 0
    org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException)
        at org.eclipse.swt.SWT.error(SWT.java:2689)
        at org.eclipse.swt.SWT.error(SWT.java:2614)
        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:109)
        at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:2693)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2385)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1363)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1334)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:253)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
        at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:97)
        at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:307)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:256)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:127)
        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)
    !ENTRY org.eclipse.ui 4 4 jun 04, 2004 15:49:53.422
    !MESSAGE *** SWT nested exception
    !ENTRY org.eclipse.ui 4 0 jun 04, 2004 15:49:53.422
    !MESSAGE java.lang.NullPointerException
    !STACK 0
    java.lang.NullPointerException
        at com.genuitec.eclipse.struts.editor.outline.StrutsConfigOutlinePage.redrawTree(Unknown Source)
        at org.xmen.internal.ui.text.DampenedXMLStructureUpdaterPage$1.run(Unknown Source)
        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:106)
        at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:2693)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2385)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1363)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1334)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:253)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
        at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:97)
        at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:307)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:256)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:127)
        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)
    
    #208059

    support-michael
    Keymaster

    The thread title states “Unable to add Struts support…” but the stacktrace is “can’t open StrutsConfigEditor”. Can you provide more contextual information such as:

    1) Were you able to successfully “Add Struts Capabilities…” to your
    project?
    2) Did you use the “Add Struts Cap..” wizard to create the struts-config.xml file or other?
    3) Please verify that the .project file contains the following line:

    <nature>com.genuitec.eclipse.cross.easystruts.eclipse.easystrutsnature</nature>

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Unable to add Struts support to existing project in 3.8 beta

You must be logged in to post in the forum log in