- This topic has 8 replies, 2 voices, and was last updated 21 years, 3 months ago by support-michael.
-
AuthorPosts
-
philippe.surayMemberHi sir,
Thanks for your great plug-in.
I have upgraded MyEclipse from 2.5 to 2.6.1 following the instructions from the forum.
I am not able to launch the deployment manager and have a bug report in the eclipse log file:
!ENTRY org.eclipse.ui 4 4 sept. 02, 2003 15:06:27.07
!MESSAGE Unhandled exception caught in event loop.
!ENTRY org.eclipse.ui 4 0 sept. 02, 2003 15:06:27.17
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
at com.genuitec.eclipse.j2eedt.core.J2EEProject.hashCode(Unknown Source)
at java.util.HashMap.hash(HashMap.java:261)
at java.util.HashMap.get(HashMap.java:317)
at com.genuitec.eclipse.ast.deploy.core.DeploymentManager.addDeployment(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.DeploymentManager.loadFromPreferences(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.DeploymentManager.init(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.DeploymentManager.<init>(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.DeploymentManager.getDefault(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.ui.dialog.DeploymentManagerDialog.updateDeploymentsViewerForProject(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.ui.dialog.DeploymentManagerDialog.createDialogArea(Unknown Source)
at org.eclipse.jface.dialogs.TitleAreaDialog.createContents(TitleAreaDialog.java:131)
at org.eclipse.jface.window.Window.create(Window.java:302)
at org.eclipse.jface.window.Window.open(Window.java:552)
at com.genuitec.eclipse.ast.deploy.core.ui.action.DeploymentMgmtActionDelegate.runWithEvent(Unknown Source)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:241)
at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:207)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:456)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionContributionItem.java:403)
at org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionItem.java:397)
at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(ActionContributionItem.java:72)
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:1838)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1545)
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)I work with Eclipse 2.1.1, JDK 1.4.2, Win2000 Pro
Please help me.
PH.S.
support-michaelKeymasterFrom the stacktrace it appears that the deployment manager is having difficulty restoring a deployment reference to a J2EE project (Web or EJB project). What I suggest is resetting your deployment system and then redeploying the project and see if the problem persists.
Here are the steps:
1) shutdown your Eclipse/MyEclipse instance
2) delete the file <your eclipse workspace>/.metadata/.plugins/com.genuitec.eclipse.ast.deploy.core/pref_store.ini. This clears the deployment manager’s persistent state.
3) restart Eclipse/MyEclipse
4) redeploy problematic project
5) stop Eclipse
6) restart Eclipse, open deployment manager, and inspect for similar exceptionLet us know how this turns out.
Michael
MyEclipse Support
philippe.surayMemberI have tried what you suggest but i have the same behavior, with the same error message:
!SESSION sept. 03, 2003 12:11:53.962 ——————————————-
java.version=1.4.2
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR
Command-line arguments: -os win32 -ws win32 -arch x86 -install file:C:/Eclipse.org/
!ENTRY org.eclipse.ui 4 4 sept. 03, 2003 12:11:53.962
!MESSAGE Unhandled exception caught in event loop.
!ENTRY org.eclipse.ui 4 0 sept. 03, 2003 12:11:53.972
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
at com.genuitec.eclipse.j2eedt.core.J2EEProject.hashCode(Unknown Source)
at java.util.HashMap.hash(HashMap.java:261)
at java.util.HashMap.get(HashMap.java:317)
at com.genuitec.eclipse.ast.deploy.core.DeploymentManager.getDeploymentsForProject(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.ui.dialog.DeploymentManagerDialog.updateDeploymentsViewerForProject(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.ui.dialog.DeploymentManagerDialog.createDialogArea(Unknown Source)
at org.eclipse.jface.dialogs.TitleAreaDialog.createContents(TitleAreaDialog.java:131)
at org.eclipse.jface.window.Window.create(Window.java:302)
at org.eclipse.jface.window.Window.open(Window.java:552)
at com.genuitec.eclipse.ast.deploy.core.ui.action.DeploymentMgmtActionDelegate.runWithEvent(Unknown Source)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:241)
at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:207)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:456)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionContributionItem.java:403)
at org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionItem.java:397)
at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(ActionContributionItem.java:72)
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:1838)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1545)
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)
support-michaelKeymasterSeveral of more questions to help us isolate the cause of this situation:
1) Can you describe the type of application (Web, EJB, EAR) that is problematic?
2) Is this problem experienced on all deployments? That is, can you create a simple test project and deploy it without error?
3) When does the problem occur, e.g., during startup, during the deployment process, other?
We have a maintenance release to address some last minute JSP features and issues being prepared now. If we can isolate this issue quickly we might be able to squeeze it into the maintenance release in the next few days.
Michael
MyEclipse Support
philippe.surayMemberIt is a web application. I have created a new project and i can deploy and undeploy this new project.
The problem is :
i select the project folder in the package explorer, then i click on the ‘Deploy J2EE project to server …’ button, the project deployments window still closed. If i select my test project, the window open and i can deploy. I can also see the other project in the combo box, but when i select it, all buttons (Add, Remove, Redeploy, Browse) where grayed.
Thanks for your help.
PH.S.
support-michaelKeymasterPhilippe,
I’m starting to suspect that the problem project’s metadata is dorked. Please send me a copy of the .metadata file in your problem project and the copy of the pref_store.ini file in your <workspace>/.metadata/.plugins/com.genuitec.eclipse.ast.deploy.core directory. While you’re at go ahead and send me the .project file also. Just address them to my attention at support@genuitec.com.
Thanks.
Michael
MyEclipse Support
support-michaelKeymasterSuray,
Thanks for sending the information. The problem is in the .mymetadata file of your project. For the GA release we added an “id” attribute to all J2EE projects which is missing from your project’s .mymetadata file. That is why new projects deploy but this one does not. Here is a short term fix while our development team researches this further. Add an “id” attribute to the “project-module” element as shown below. Note I renamed your project details to “yourproject” for this post.
<project-module context-root="/yourproject" name="YourProject" archive="YourProject.war" type="WEB" id="myeclipse.1060788111831">
Michael
MyEclipse Support
philippe.surayMemberI have added the “id” attribute and it’s OK now.
Thanks a lot for tour help .
support-michaelKeymasterYou very welcome. Thanks for your patience and for using MyEclipse.
Regards,
Michael
MyEclipse Support -
AuthorPosts