- This topic has 8 replies, 3 voices, and was last updated 14 years, 2 months ago by
ifmEssen.
-
AuthorPosts
-
Hello,
I am always having problems when I want to open the struts2 editor. In the error log I get the following Exception:
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.PartPane.setVisible(PartPane.java:313) at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180) at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270) at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65) at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473) at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1254) at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1207) at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1606) at org.eclipse.ui.internal.PartStack.add(PartStack.java:497) at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103) at org.eclipse.ui.internal.PartStack.add(PartStack.java:483) at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112) at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:63) at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:225) at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:213) at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:778) at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:677) at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:638) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2860) 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)
This is my struts.xml file:
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"> <struts> <package name="userDataPortlet" extends="struts-portlet-default" namespace="/userDataPortlet"> <action name="view" class="com.xxxx.portlets.xxxx.account.UserDataPortlet" method="input"> <result name="input">/html/userData/view.jsp</result> </action> <action name="save" class="com.xxxx.portlets.xxxx.account.UserDataPortlet" method="execute"> <result name="success" type="redirectAction"> <param name="actionName">view</param> <param name="namespace">/userDataPortlet</param> </result> <result name="input" type="redirectAction"> <param name="actionName">view</param> <param name="namespace">/userDataPortlet</param> </result> </action> </package> </struts>
Any ideas?
March 30, 2011 at 11:47 pm #315639
support-swapnaModeratorifmEssen,
Sorry that you are running into this issue.
Can you answer some questions for me to be able to replicate it at my end?
1) Can you share your installation details from menu MyEclipse > Installation Summary > Installation Details ? Paste them here for me.
2) How did you perform the update? ? Is it using Pulse/All-In One installer/Archived Update site?
3) What was your previous version of ME?
4) Are you trying to open an existing struts.xml ? Did you check for a new project?
Here is a thread which discusses the same issue.
https://myeclipseide.org/index.php?name=PNphpBB2&file=viewtopic&p=121446Let me know how it works for you.
March 31, 2011 at 12:05 am #315640Ok so here are my details:
1)
*** Date: Donnerstag, 31. März 2011 06:59 Uhr MESZ ** System properties: OS=WindowsXP OS version=5.1.0 Java version=1.6.0_13 *** MyEclipse details: MyEclipse Enterprise Workbench Version: 9.0 Build id: 9.0-20110318 *** Eclipse details: MyEclipse Enterprise Workbench Version: 9.0 Build id: 9.0-20110318 Eclipse startup command=-os win32 -ws win32 -arch x86 -showsplash -launcher C:\Programme\MyEclipse\MyEclipse 9\myeclipse.exe -name Myeclipse --launcher.library C:\Programme\MyEclipse\MyEclipse 9\../Common/plugins/org.eclipse.equinox.launcher.i18n.win32.win32.x86_3.2.0.v201102231800\eclipse_3213.dll -startup C:\Programme\MyEclipse\MyEclipse 9\../Common/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar -install C:\Programme\MyEclipse\MyEclipse 9 -configuration C:\Programme\MyEclipse\MyEclipse 9\configuration -vm C:\Programme\MyEclipse\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\jre\bin\client\jvm.dll
2) I used MyEclipse 8.6 before (which had the same problem). I deinstalled 8.6 and downloaded the MyEclipse9 All-In-One Installer for Windows. Installed and the same problem occures. Did nothing with pulse though.
3) 8.6
4) I try to open an existing struts.xml (see above). I cannot use a new project here because this is a portlet for Liferay which has a structure different from the MyEclipse WebApplication structure.March 31, 2011 at 6:23 am #315653
support-swapnaModeratorifmEssen,
4) I try to open an existing struts.xml (see above). I cannot use a new project here because this is a portlet for Liferay which has a structure different from the MyEclipse WebApplication structure.
Can you create a simple struts project and try opening the struts.xml to check if the issue persists ?
Also since the structure of your portlet is not the same as MyEclipse Web Application structure, you will have to create a new web project and copy paste your files into the structure.
Let me know how this works for you.
April 1, 2011 at 7:34 am #315693
support-neerajMemberifmEssen,
We were able to reproduce this issue. An immediate workaround is to delete the “com.genuitec.eclipse.struts2.prefs” file present in this location – yourworkspace\.metadata\.plugins\org.eclipse.core.runtime folder and restart the workbench. A fix for this issue will be available in the coming build.April 5, 2011 at 2:44 am #315748@support-neeraj wrote:
ifmEssen,
We were able to reproduce this issue. An immediate workaround is to delete the “com.genuitec.eclipse.struts2.prefs” file present in this location – yourworkspace\.metadata\.plugins\org.eclipse.core.runtime folder and restart the workbench. A fix for this issue will be available in the coming build.I deleted this file and restarted the workbench. After restart, a dialog box popped up with the Message: “Updating Struts 2 Model has encountered a problem. An internal error occured during: ‘Updating Struts 2 Model'”.
Seems to be a similar problem than before.
java.lang.NullPointerException at com.genuitec.eclipse.struts2.model.Struts2XMLFile.processConfigFile(Struts2XMLFile.java:407) at com.genuitec.eclipse.struts2.model.Struts2XMLFile.processIncludedConfig(Struts2XMLFile.java:395) at com.genuitec.eclipse.struts2.model.Struts2Project.synchronize(Struts2Project.java:127) at com.genuitec.eclipse.struts2.model.Struts2Project.access$1(Struts2Project.java:116) at com.genuitec.eclipse.struts2.model.Struts2Project$StrutsModelJob.run(Struts2Project.java:539) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
April 5, 2011 at 2:46 am #315749When I open the struts.xml with the struts2 editor, I just get a blank page with a grey text “Updating Struts 2 Model…”. Nothing happens.
April 5, 2011 at 6:37 am #315762
support-neerajMemberifmEssen,
After you came across this issue, did you try restarting the workbench and opening the file again in the Struts 2 editor? If not, can you please try the same and check whether you see the issue. Secondly, you said that the project is not a MyEclipse web project. Can you please provide some details on the structure of the project that you are using (like the location where the struts.xml file is located, the classpath containers).April 18, 2011 at 2:25 am #316114I restarted MyEclipse several times and every time the same issue occured. I will try to describe the project structure with my next post. It is the project structure that Liferay Portal uses within their plugins-sdk for portlets.
-
AuthorPosts