facebook

[SOLVED] NullPointerException in DeploymentManager

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

    Mike Haller
    Member

    NullPointerException in MyEclipseIDE while trying to create a new Deploy Location for a J2EE project. Other projects work fine, but a single project is not working. I can’t deploy it, because MyEclipseIDE doesn’t enable the Finish-button for deploying after selecting the target location (e.g. Tomcat 5)

    
    !ENTRY org.eclipse.ui 4 4 2005-07-25 09:03:47.625
    !MESSAGE Unhandled event loop exception
    Unhandled event loop exception
    Reason:
    
    !ENTRY org.eclipse.ui 4 0 2005-07-25 09:03:47.640
    !MESSAGE java.lang.NullPointerException
    !STACK 0
    java.lang.NullPointerException
            at org.eclipse.core.runtime.Path.<init>(Path.java:152)
            at com.genuitec.eclipse.ast.deploy.core.DeploymentManager.computeDeploymentLocation(Unknown Source)
            at com.genuitec.eclipse.ast.deploy.core.ui.wizard.NewDeploymentWizardPage.updateLocationField(Unknown Source)
            at com.genuitec.eclipse.ast.deploy.core.ui.wizard.NewDeploymentWizardPage.handleServersComboBoxModified(Unknown Source)
            at com.genuitec.eclipse.ast.deploy.core.ui.wizard.NewDeploymentWizardPage$1.modifyText(Unknown Source)
            at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:188)
            at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:867)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:848)
            at org.eclipse.swt.widgets.Combo.wmCommandChild(Combo.java:2025)
            at org.eclipse.swt.widgets.Control.WM_COMMAND(Control.java:3164)
            at org.eclipse.swt.widgets.Control.windowProc(Control.java:3041)
            at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706)
            at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
            at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:1580)
            at org.eclipse.swt.widgets.Combo.callWindowProc(Combo.java:276)
            at org.eclipse.swt.widgets.Control.windowProc(Control.java:3123)
            at org.eclipse.swt.widgets.Combo.windowProc(Combo.java:1755)
            at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706)
            at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
            at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1656)
            at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2711)
            at org.eclipse.jface.window.Window.runEventLoop(Window.java:809)
            at org.eclipse.jface.window.Window.open(Window.java:787)
            at com.genuitec.eclipse.ast.deploy.core.ui.dialog.DeploymentManagerDialog.?(Unknown Source)
            at com.genuitec.eclipse.ast.deploy.core.ui.dialog.DeploymentManagerDialog.access$0(Unknown Source)
            at com.genuitec.eclipse.ast.deploy.core.ui.dialog.DeploymentManagerDialog$3.handleEvent(Unknown Source)
            at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
            at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
            at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
            at org.eclipse.jface.window.Window.runEventLoop(Window.java:809)
            at org.eclipse.jface.window.Window.open(Window.java:787)
            at com.genuitec.eclipse.ast.deploy.core.ui.action.DeploymentMgmtActionDelegate.runWithEvent(Unknown Source)
            at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:236)
            at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:223)
            at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
            at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
            at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:441)
            at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
            at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
            at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
            at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
            at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
            at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
            at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
            at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
            at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
            at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
            at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
            at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
            at org.eclipse.core.launcher.Main.run(Main.java:973)
            at org.eclipse.core.launcher.Main.main(Main.java:948)
    java.lang.NullPointerException
    
    !ENTRY org.eclipse.ui 4 4 2005-07-25 09:04:00.171
    !MESSAGE Unhandled event loop exception
    Unhandled event loop exception
    Reason:
    
    !ENTRY org.eclipse.ui 4 0 2005-07-25 09:04:00.171
    !MESSAGE java.lang.NullPointerException
    !STACK 0
    java.lang.NullPointerException
            at org.eclipse.core.runtime.Path.<init>(Path.java:152)
            at com.genuitec.eclipse.ast.deploy.core.DeploymentManager.computeDeploymentLocation(Unknown Source)
            at com.genuitec.eclipse.ast.deploy.core.ui.wizard.NewDeploymentWizardPage.updateLocationField(Unknown Source)
            at com.genuitec.eclipse.ast.deploy.core.ui.wizard.NewDeploymentWizardPage.handleServersComboBoxModified(Unknown Source)
            at com.genuitec.eclipse.ast.deploy.core.ui.wizard.NewDeploymentWizardPage$1.modifyText(Unknown Source)
            at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:188)
            at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:867)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:848)
            at org.eclipse.swt.widgets.Combo.wmCommandChild(Combo.java:2025)
            at org.eclipse.swt.widgets.Control.WM_COMMAND(Control.java:3164)
            at org.eclipse.swt.widgets.Control.windowProc(Control.java:3041)
            at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706)
            at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
            at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:1580)
            at org.eclipse.swt.widgets.Combo.callWindowProc(Combo.java:276)
            at org.eclipse.swt.widgets.Control.windowProc(Control.java:3123)
            at org.eclipse.swt.widgets.Combo.windowProc(Combo.java:1755)
            at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706)
            at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
            at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1656)
            at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2711)
            at org.eclipse.jface.window.Window.runEventLoop(Window.java:809)
    

    I’d like to attache some screenshots, but that doesn’t seem to be possible in this forum 🙁

    Version: 3.9.210 (some plugins .211)
    Build id: 20050627-4.0-Milestone-2

    #233555 Reply

    Mike Haller
    Member

    Problem solved:
    Cause: Missing attribute “context-root” in .mymetadata File

    After adding this attribute to the .mymetadata file of the project (then close project and re-open it), the Deployment Wizard works again.

    Sorry for bothering

    
    <?xml version="1.0" encoding="UTF-8"?>
    <project-module
      type="WEB"
      name="my.package.name.projectname"
      id="myeclipse.1122036823500"
      context-root="/mycontext"        <---- THIS ONE
      j2ee-spec="1.3"
      archive="my.package.name.projectname.war">
      <attributes>
        <attribute name="webrootdir" value="WebRoot" />
      </attributes>
    </project-module>
    
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: [SOLVED] NullPointerException in DeploymentManager

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