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, 2 voices, and was last updated 18 years, 1 month ago by
Loyal Water.
-
AuthorPosts
-
newbie22MemberOS: Mac OSX 1.4
Eclipse: 3.2.2
my struts-config.xml only opens in design mode. I have tried changing the mode back and forth in preference, restarted the app, did a clean. But I just don’t see tabs to switch between design and source modes or a design pallet. It only opens up the file in edit/source mode.If I right click on file and try to open it with struts config editor it throws the following error/exception:
“Unable to create this part due to an internal error. Reason for the failure: An unexpected exception was thrown”
java.lang.NullPointerException
at com.genuitec.eclipse.struts.editor.xml.SourceEditor.createPartControl(SourceEditor.java:314)
at org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:183)
at org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:153)
at com.genuitec.eclipse.struts.editor.multipage.StrutsConfigEditor.createSourceEditorPage(StrutsConfigEditor.java:232)
at com.genuitec.eclipse.struts.editor.multipage.StrutsConfigEditor.createPages(StrutsConfigEditor.java:288)
at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:276)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:596)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:372)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:566)
at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:214)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2595)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2528)
at org.eclipse.ui.internal.WorkbenchPage.access$10(WorkbenchPage.java:2520)
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2505)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2500)
at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:288)
at org.eclipse.ui.actions.OpenWithMenu.access$0(OpenWithMenu.java:280)
at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:184)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1496)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1520)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1505)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3312)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2941)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1930)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:422)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
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.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)Here’s what my struts-config.xml looks like:
<?xml version=”1.0″ encoding=”UTF-8″?>
<!DOCTYPE struts-config PUBLIC “-//Apache Software Foundation//DTD Struts Configuration 1.2//EN” “http://struts.apache.org/dtds/struts-config_1_2.dtd”><struts-config>
<data-sources />
<form-beans />
<global-exceptions />
<global-forwards />
<action-mappings />
<message-resources parameter=”com.visualbuilder.struts.ApplicationResources” />
</struts-config>July 14, 2008 at 6:52 am #287072
Loyal WaterMemberCan you go to MyEclipse > Installation Summary > Installation Details and paste the information here for me.
Does this happen with all struts config files ?
Can you try using the -clean and test this again.
https://www.genuitec.com/forums/topic/troubleshoot-using-the-clean-command-line-argument/Let me know if the problem persists.
July 14, 2008 at 11:57 am #287098
newbie22MemberI have already tried -clean, that doesn’t do it… I also went through earlier posts and tried to find similar issues, nothing that I found here or on google has worked so far.
I just purchased a myeclipse license last week, and have never been able to open any file in design mode.
Here’s requested installation Details:
*** Date:
Monday, July 14, 2008 12:51:18 PM EDT** System properties:
OS=mac os x
OS version=10.4.11
Java version=1.5.0_13*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 5.5.1 GA
Build id: 20070521-5.5.1-GA*** Eclipse details:
MyEclipse Enterprise WorkbenchVersion: 5.5.1 GA
Build id: 20070521-5.5.1-GAEclipse Platform
Version: 3.2.2.r322_v20070119-RQghndJN8IM0MsK
Build id: M20070212-1330Eclipse RCP
Version: 3.2.2.r322_v20070104-8pcviKVqd8J7C1U
Build id: M20070212-1330Eclipse Java Development Tools
Version: 3.2.2.r322_v20070104-R4CR0Znkvtfjv9-
Build id: M20070212-1330Eclipse Plug-in Development Environment
Version: 3.2.1.r321_v20060823-6vYLLdQ3Nk8DrFG
Build id: M20070212-1330Eclipse Project SDK
Version: 3.2.2.r322_v20070104-dCGKm0Ln38lm-8s
Build id: M20070212-1330Eclipse Graphical Editing Framework
Version: 3.2.2.v20070208
Build id: 20070208-1315Eclipse startup command=-os
macosx
-ws
carbon
-launcher
/Applications/Third Party/eclipse/Eclipse.app/Contents/Resources/Splash.app/Contents/MacOS/eclipse
-name
Eclipse
-showsplash
600
-exitdata
a0001
-clean
-keyring
/Users/aaa/.eclipse_keyring
-consoleLog
-showlocation
-product
com.genuitec.myeclipse.product.ide
-product
com.genuitec.myeclipse.product.ide
-product
com.genuitec.myeclipse.product.ide
-vm
/usr/bin/javaJuly 15, 2008 at 9:16 am #287135
Loyal WaterMembernewbie22,
There is one more thing that I would like you to try out. Can you switch to a new workspace, create a new project and test the editor once again.Incase the problem persists in the new workspace as well, I would suggest you go to http://www.poweredbypulse.com and grab the pulse launcher. After launching pulse, add the MyEclipse profile to it and hopefully that should resolve the issue.
Let me know incase the problem persists.
-
AuthorPosts
