- This topic has 24 replies, 4 voices, and was last updated 20 years, 11 months ago by Scott Anderson.
-
AuthorPosts
-
Steve BromleyMember– System Setup ——————————-
Operating System and version: Windoes XP SP1
Eclipse version: 2.1.2
Eclipse build id: 200311030802
MyEclipse version: 2.6.200
Eclipse JDK version: Sun 1.4.2_03
Application Server JDK version: WebLogic 7.1 SP2– Message Body ——————————-
While loading an existing project’s Stut-Config.xml file within MyEclipse, I get the following error:java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Integer.java:436)
at java.lang.Integer.parseInt(Integer.java:518)
at org.easystruts.eclipse.project.Properties.getStrutsVersion(Unknown Source)
at com.genuitec.eclipse.struts.editor.model.StrutsModuleRegistry.ā(Unknown Source)
at com.genuitec.eclipse.struts.editor.model.StrutsModuleRegistry.registerModules(Unknown Source)
at com.genuitec.eclipse.struts.editor.model.StrutsModuleRegistry.registerModules(Unknown Source)
at com.genuitec.eclipse.struts.editor.multipage.StrutsConfigEditor.init(Unknown Source)
at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:604)
at org.eclipse.ui.internal.EditorManager.openInternalEditor(EditorManager.java:666)
at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:459)
at org.eclipse.ui.internal.EditorManager.openEditorFromInput(EditorManager.java:333)
at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:424)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2056)
at org.eclipse.ui.internal.WorkbenchPage.access$6(WorkbenchPage.java:2004)
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:1991)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:1986)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:1887)
at org.eclipse.ui.actions.OpenFileAction.openFile(OpenFileAction.java:96)
at org.eclipse.ui.actions.OpenSystemEditorAction.run(OpenSystemEditorAction.java:96)
at org.eclipse.ui.views.navigator.OpenActionGroup.runDefaultAction(OpenActionGroup.java:111)
at org.eclipse.ui.views.navigator.MainActionGroup.runDefaultAction(MainActionGroup.java:250)
at org.eclipse.ui.views.navigator.ResourceNavigator.handleOpen(ResourceNavigator.java:613)
at org.eclipse.ui.views.navigator.ResourceNavigator$6.open(ResourceNavigator.java:384)
at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:397)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006)
at org.eclipse.core.runtime.Platform.run(Platform.java:413)
at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:395)
at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:605)
at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:694)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:209)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:204)
at org.eclipse.jface.util.OpenStrategy$1.mouseSelectItem(OpenStrategy.java:343)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:311)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2022)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
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:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
at org.eclipse.core.launcher.Main.run(Main.java:747)
at org.eclipse.core.launcher.Main.main(Main.java:583)None of the “Right Click” creations work. I can create a new project and everything works correctly.
This project was created using the RC1 version but I received the same error using that version also. Any ideas?undefined
Riyad KallaMemberAfter you create this web module project, and imported all your files and so forth, did you make sure to right click on the project root and “Add Struts capabilities” to it?
Steve BromleyMemberYes, the option now is to “Remove WebProject Capabilities”.
Steve BromleyMember@bromley wrote:
Yes, the option now is to “Remove WebProject Capabilities”.
Sorry, the response should have said ” Yes, the only option now available is to “Remove WebProject Capabilities.”
Riyad KallaMemberCan you post your struts-config file? I’m curious because of the exception and that it came from the getStrutsVersion method, I’m wondering if it is not well formed…
Steve BromleyMemberI’ve done a validate and did not receive any errors. Here is the config:
<?xml version=”1.0″ encoding=”UTF-8″?>
<!DOCTYPE struts-config PUBLIC “-//Apache Software Foundation//DTD Struts Configuration 1.1//EN” “http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd”>
<struts-config><!– Data Sources –>
<data-sources /><!– Form Beans –>
<form-beans>
<form-bean name=”selectspoolform” type=”com.erac.arch.erpm.form.SelectSpoolsForm” />
<form-bean name=”selectfileform” type=”com.erac.arch.erpm.form.SelectFilesForm” />
</form-beans><!– Global Exceptions –>
<global-exceptions /><!– Global forwards –>
<global-forwards>
<forward name=”error” path=”/error.jsp” />
</global-forwards><!– Action Mappings –>
<action-mappings>
<action
path=”/selectspools”
type=”com.erac.arch.erpm.action.SelectSpoolsAction”
name=”selectspoolform”
input=”/SelectSpools.jsp”
attribute=”selectspoolform”>
<forward name=”success” path=”/ShowSpools.jsp” />
<forward name=”failure” path=”/SelectSpools.jsp” />
</action>
<action path=”/showspoolreports” type=”com.erac.arch.erpm.action.ShowReportSpoolsAction”>
<forward name=”success” path=”/Report.jsp” />
<forward name=”failure” path=”/ShowSpools.jsp” />
</action>
<action path=”/showspoolexcel” type=”com.erac.arch.erpm.action.ShowExcelSpoolsAction”>
<forward name=”success” path=”/Excel.jsp” />
<forward name=”failure” path=”/ShowSpools.jsp” />
</action>
<action path=”/showspoolexcelxml” type=”com.erac.arch.erpm.action.ShowExcelXMLSpoolsAction”>
<forward name=”failure” path=”/ShowSpools.jsp” />
</action><action
path=”/messages”
parameter=”/errorMessages.jsp”
type=”org.apache.struts.actions.ForwardAction”
validate=”false” />
<action
path=”/selectfiles”
type=”com.erac.arch.erpm.action.SelectFilesAction”
name=”selectfileform”
input=”/SelectFiles.jsp”
attribute=”selectfileform”>
<forward name=”success” path=”/ShowFiles.jsp” />
<forward name=”failure” path=”/SelectFiles.jsp” />
</action>
<action path=”/showfilereports” type=”com.erac.arch.erpm.action.ShowReportFilesAction”>
<forward name=”success” path=”/Report.jsp” />
<forward name=”failure” path=”/ShowFiles.jsp” />
</action>
<action path=”/showfileexcel” type=”com.erac.arch.erpm.action.ShowExcelFilesAction”>
<forward name=”success” path=”/Excel.jsp” />
<forward name=”failure” path=”/ShowFiles.jsp” />
</action>
<action path=”/showfileexcelxml” type=”com.erac.arch.erpm.action.ShowExcelXMLFilesAction”>
<forward name=”failure” path=”/ShowFiles.jsp” />
</action></action-mappings>
<controller /><!– Message Resources –>
<message-resources parameter=”com.erac.erpm.resources.ApplicationResources” />
</struts-config>
Riyad KallaMemberHmm this looks fine, I’m going to forward your report off to Scott/Michael.
Scott AndersonParticipantSteve,
MyEclipse version: 2.6.200
This bug was quashed in the 2.7 release candidate builds. You can upgrade to 2.7 RC2 (version 2.6.200) to resolve this issue and many others.
Steve BromleyMemberScott,
That’s what I am using..
Scott AndersonParticipantSteve,
Whoops. I misread our own versioning number system. 🙂
Is this occuring on only one project, or on all? Can you create a new project and does that one work properly? Anything you can do to help isolate how to reproduce this reliably in this version will help ensure that we get it fixed for the GA release.
Steve BromleyMemberScott,
This is happening on one project that was originally created with 2.7 RC1. I’ve created new projects and they seem to work fine. I’ve held off doing anything more than the obvious to see what you needed.
I can try to remove the “WebProject Capabilities” and re-add them if you think it would help.
What can I send you to help? I’ve already sent the Struts-config.xml.
Scott AndersonParticipantSteve,
This looks like a version migration issue between the release candidates. I’m kicking this one over to Michael since he’s more familiar with this part of the application. He’ll be able to follow up and let you know what he needs you to send in order to aide diagnosis. Thanks for working with us on this one.
support-michaelKeymasterWe modified the preferences in the RC2 upgrade. Close all editors, stop MyEclipse, and check the file
<your eclipse install>eclipse/plugins/.metadata/.plugins/com.genuitec.eclipse.cross.easystruts.eclipse/pref_store.ini for the following property:me.rc2.upgraded=true
If the property is set, delete it. Restart MyEclipse.
Also check for the file .mystrutsdata in the root folder of your project after the restart. If it is missing this is part of the problem.
Steve BromleyMemberMichael,
No luck. The me.rc2.upgraded=true statment was there in the ini and I did delete it.
I still have the same problem but now when loading the Struts-config.xml, I get the following popup dialog box:
Unable to load module: <default>This is the contents of the .mystrutsdata
<?xml version=”1.0″ encoding=”UTF-8″?>
<MyEclipseStrutsProperties>
<strutsConfig>/WEB-INF/struts-config.xml</strutsConfig>
<strutsVersion>1</strutsVersion>
<basePackage>/WebContent</basePackage>
<strutsRootDir>com.erac.arch.erpm</strutsRootDir>
<strutsApplicationResources>com.erac.arch.erpm.ApplicationResources</strutsApplicationResources>
<strutsPattern>0</strutsPattern>
<webVersion>3</webVersion>
<servletName>action</servletName>
</MyEclipseStrutsProperties>
Riyad KallaMemberIs “/WebContent” your webroot?
-
AuthorPosts