facebook

Error when opening struts2 xml

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

    juliencr
    Participant

    When I try to open the struts.xml I get this error
    org.eclipse.core.runtime.AssertionFailedException: assertion failed:
    at org.eclipse.core.runtime.Assert.isTrue(Assert.java:110)
    at org.eclipse.core.runtime.Assert.isTrue(Assert.java:96)
    at org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiPageEditorPart.java:1065)
    at com.genuitec.eclipse.struts2.editor.Struts2ConfigEditor.createPages(Struts2ConfigEditor.java:62)
    at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:348)
    at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670)
    at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
    at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
    at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2863)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2768)
    at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2760)
    at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2711)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2707)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2691)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2682)
    at org.eclipse.ui.ide.IDE.openEditor(IDE.java:651)
    at org.eclipse.ui.ide.IDE.openEditor(IDE.java:610)
    at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:365)
    at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:168)
    at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:229)
    at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:208)
    at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:274)
    at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:250)
    at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:373)
    at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:526)
    at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)
    at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:845)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
    at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:843)
    at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1131)
    at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1235)
    at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:264)
    at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:258)
    at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:298)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
    at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    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:597)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1407)

    #314814 Reply

    support-swapna
    Moderator

    juliencr,

    1) Can you please share your installation details from menu MyEclipse > Installation Summary > Installation details ? Please paste them here for me.

    2) How are you trying to open the Struts-config.xml? Is it using the MyEclipse Struts Config editor or MyEclipse XML editor?

    3) Start MyEclipse with – clean as argument. Here is how it can be done :
    https://www.genuitec.com/forums/topic/troubleshoot-using-the-clean-command-line-argument/

    4) Switch to a new workspace, create a new Web project and add struts capabilities to it.

    Here is a thread which shows how to build a struts project :
    http://www.myeclipseide.com/documentation/quickstarts/struts/

    Now try opening the struts-config file and check if the issue persists.

    Let us know how it works for you.

    #314833 Reply

    juliencr
    Participant

    Here you go, it started happenning after I did the upgrade to the 9.0M2 version

    *** Date:
    Monday, February 28, 2011 10:45:17 AM EST

    ** System properties:
    OS=WindowsVista
    OS version=6.1.0
    Java version=1.6.0_13

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 9.0M2
    Build id: 9.0M2-20110209

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 9.0M2
    Build id: 9.0M2-20110209

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    -launcher
    C:\Users\Julien\AppData\Local\Genuitec\MyEclipse-9.0M1\myeclipse.exe
    -name
    Myeclipse
    –launcher.library
    C:\Users\Julien\AppData\Local\Genuitec\MyEclipse-9.0M1\../Common/plugins/org.eclipse.equinox.launcher.i18n.win32.win32.x86_3.2.0.v201012131400\eclipse_3210.dll
    -startup
    C:\Users\Julien\AppData\Local\Genuitec\MyEclipse-9.0M1\../Common/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
    -install
    C:\Users\Julien\AppData\Local\Genuitec\MyEclipse-9.0M1
    -configuration
    C:\Users\Julien\AppData\Local\Genuitec\MyEclipse-9.0M1\configuration
    -vm
    C:/Users/Julien/AppData/Local/Genuitec/Common/binary/com.sun.java.jdk.win32.x86_1.6.0.013/jre/bin/client/jvm.dll

    #314834 Reply

    juliencr
    Participant

    I am trying to open a struts.xml with MyEclipse Struts Config Editor, xml works fine

    #314846 Reply

    support-swapna
    Moderator

    juliencr,

    1) How did you perform the update? ? Is it using Pulse/All-In One installer/Archived Update site?
    2) What was your previous version of ME?
    3) Are you trying to open an existing struts.xml ? Did you check for a new project?

    I would recommend you a quick fix using pulse. Please do the following –
    1. Open Pulse. (Start > Programs > Pulse > Pulse Explorer or download the same from http://www.poweredbypulse.com)
    2. Start Pulse
    3. Select appropriate Eclipse realm from the dropdown list. If you are on ME 8.6, select Eclipse Galileo; in case you are on 9.0, select Eclipse – Helios
    4. From My Profiles, Select your MyEclipse profile
    5. Right click on the same and click on re-install and run
    6. This will open a wizard which will guide you through the rest of the steps.
    7. Switch to a new workspace and check if the issue persists. If yes then copy paste the contents of the .log file which is located at <workspace dir>/.metadata/.log.

    Let me know how this works for you.

    #314861 Reply

    juliencr
    Participant

    I did the update via pulse, All in one installer
    it was the version before 9
    using an existing struts.xml

    I removed eclipse deleted the .metada folder and reinstalled a new version, could wait another day because it was crapping out, needed to work but, it is working now

    #314885 Reply

    support-swapna
    Moderator

    juliencr,

    Glad that it is working fine.
    Do let us know if you have any other issues.

    #321770 Reply

    jwindberg
    Member

    I’ve been struggling with this error as well, and I’ve tossed the workspace and rebuilt it a few times.

    MyEclipse Enterprise Workbench

    Version: 10.0
    Build id: 10.0-20111028

    (c) Copyright Genuitec, L.L.C. 2000-2011. All rights reserved.
    Visit http://www.myeclipseide.com/

    This product includes software developed by the following
    Eclipse Foundation http://www.eclipse.org/
    Apache Software Foundation http://www.apache.org/

    #321776 Reply

    support-swapna
    Moderator

    jwindberg ,

    Sorry that you are seeing this issue with MyEclipse.

    Can you answer some more questions for us ?

    1) Can you share your OS and version details ?

    2) Are you working with an existing struts.xml ? Create a new struts project and check if you see the issue.

    3) Did you try starting the IDE with -clean as suggested in the earlier responses ? Also clarify if you have tried a reinstall of MyEclipse from Pulse. If no then please try and check if the issue persists.

    4) Did you try the solution posted by user juliencr of removing the .metadata folder and reinstalling MyEclipse ? If no then please give it a try.

    Let us know how it works for you.

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: Error when opening struts2 xml

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