facebook

Deployment Wizard fails with NullPointerException [Closed]

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

    ruettimac
    Member

    I like to deploy a Web Module Project. I open the dialog to manage deployments, choose my project, click Add, choose Tomcat 5 as my container and click Finish. Nothing happens. Following are the entries in the error log.

    This is the first project the deployment fails. I have another 5 projects where the deployment was never a problem and I can still deploy.

    MacOS X 10.3.2, JVM 1.4.2, Eclipse 2.1.2, MyEclipseIDE 2.7RC2

    Log Session:
    java.version=1.3.1
    java.vendor=Apple Computer, Inc.
    BootLoader constants: OS=macosx, ARCH=ppc, WS=carbon, NL=en_US
    Command-line arguments: -noupdate -consoleLog -showlocation -os macosx -ws carbon -install file:/Applications/Eclipse/

    Status Details:
    java.lang.NullPointerException
    at com.genuitec.eclipse.easie.tomcat.TomcatLauncherPlugin.isConfigured(Unknown Source)
    at com.genuitec.eclipse.easie.tomcat.B.?(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ui.wizard.NewDeploymentWizard.performFinish(Unknown Source)
    at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:608)
    at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:321)
    at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:423)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
    at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1012)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2249)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1965)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:583)
    at org.eclipse.jface.window.Window.open(Window.java:563)
    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:81)
    at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1012)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2249)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1965)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:583)
    at org.eclipse.jface.window.Window.open(Window.java:563)
    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.notifyListeners(Widget.java:1012)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2249)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1965)
    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 java.lang.reflect.Method.invoke(Native Method)
    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)
    at java.lang.reflect.Method.invoke(Native Method)
    at apple.launcher.LaunchRunner.run(LaunchRunner.java:88)
    at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:50)
    at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)

    Log Session:
    java.version=1.3.1
    java.vendor=Apple Computer, Inc.
    BootLoader constants: OS=macosx, ARCH=ppc, WS=carbon, NL=en_US
    Command-line arguments: -noupdate -consoleLog -showlocation -os macosx -ws carbon -install file:/Applications/Eclipse/

    Status Details:
    Unhandled exception caught in event loop.

    Log Session:
    java.version=1.3.1
    java.vendor=Apple Computer, Inc.
    BootLoader constants: OS=macosx, ARCH=ppc, WS=carbon, NL=en_US
    Command-line arguments: -noupdate -consoleLog -showlocation -os macosx -ws carbon -install file:/Applications/Eclipse/

    Status Details:
    EASIE CORE: VMInstall named ‘JVM 1.4.1 (MacOS X Default)’ could not be found.

    Regards,

    Cyrill

    #203477 Reply

    Riyad Kalla
    Member

    Cyrill,
    Is there a possible name conflict between the two projects deployments? Are you deploying as exploded or packaged WAR? What happens when you try and deploy using the alternative method (as to the one you are currently using)?

    Are you low on diskspace where Tomcat resides?

    #203478 Reply

    Scott Anderson
    Participant

    Cyrill,

    I believe this problem has occurred because you upgraded your JVM but Tomcat is still configured to run with the old one (1.4.1) which cannot be found. Please navigate to Window > Workbench > Installed JREs and add the path to your 1.4.2 JDK install directory. Then, go to your Window > Workbench > MyEclipse > Application Servers > Tomcat5 > JDK and set the JDK used to launch Tomcat to the JDK you just added to the Installed JREs tab.

    #203567 Reply

    ruettimac
    Member

    Hello,

    Riyad; exploded or packaged does not matter, not low on disk space

    I tried Scott’s advices but it does not work because exceptions are thrown while specifying the JDK of Tomcat 5:

    While opening the preferences for Tomcat 5, the following exception is thrown:

    java.lang.NullPointerException
    at com.genuitec.eclipse.easie.tomcat.preference.TomcatLauncherJVMPreferencePage.getVMArgsString(Unknown Source)
    at com.genuitec.eclipse.easie.tomcat.preference.TomcatLauncherJVMPreferencePage.performOk(Unknown Source)
    at org.eclipse.jface.preference.PreferenceDialog.okPressed(PreferenceDialog.java:671)
    at org.eclipse.jface.preference.PreferenceDialog.buttonPressed(PreferenceDialog.java:218)
    at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.buttonPressed(WorkbenchPreferenceDialog.java:109)
    at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:423)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
    at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1012)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2249)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1965)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:583)
    at org.eclipse.jface.window.Window.open(Window.java:563)
    at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:53)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:842)
    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.notifyListeners(Widget.java:1012)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2249)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1965)
    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 java.lang.reflect.Method.invoke(Native Method)
    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)
    at java.lang.reflect.Method.invoke(Native Method)
    at apple.launcher.LaunchRunner.run(LaunchRunner.java:88)
    at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:50)
    at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)

    While manipulating the JDK for Tomcat 5:

    java.lang.IllegalArgumentException: Index out of bounds
    at org.eclipse.swt.SWT.error(SWT.java:2316)
    at org.eclipse.swt.SWT.error(SWT.java:2260)
    at org.eclipse.swt.widgets.Widget.error(Widget.java:545)
    at org.eclipse.swt.widgets.Combo.select(Combo.java:1140)
    at com.genuitec.eclipse.easie.tomcat.preference.TomcatLauncherJVMPreferencePage.?(Unknown Source)
    at com.genuitec.eclipse.easie.tomcat.preference.TomcatLauncherJVMPreferencePage.?(Unknown Source)
    at com.genuitec.eclipse.easie.tomcat.preference.TomcatLauncherJVMPreferencePage.createContents(Unknown Source)
    at org.eclipse.jface.preference.PreferencePage.createControl(PreferencePage.java:215)
    at org.eclipse.jface.preference.PreferenceDialog.showPage(PreferenceDialog.java:1016)
    at org.eclipse.jface.preference.PreferenceDialog$9.run(PreferenceDialog.java:495)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
    at org.eclipse.jface.preference.PreferenceDialog$8.widgetSelected(PreferenceDialog.java:489)
    at org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(OpenStrategy.java:198)
    at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:193)
    at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java:333)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:98)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:2134)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1983)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:583)
    at org.eclipse.jface.window.Window.open(Window.java:563)
    at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:53)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:842)
    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.notifyListeners(Widget.java:1012)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2249)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1965)
    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 java.lang.reflect.Method.invoke(Native Method)
    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)
    at java.lang.reflect.Method.invoke(Native Method)
    at apple.launcher.LaunchRunner.run(LaunchRunner.java:88)
    at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:50)
    at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)

    Failed to execute runnable
    org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.IllegalArgumentException: Index out of bounds)
    at org.eclipse.swt.SWT.error(SWT.java:2330)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:101)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:2134)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1983)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:583)
    at org.eclipse.jface.window.Window.open(Window.java:563)
    at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:53)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:842)
    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.notifyListeners(Widget.java:1012)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2249)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1965)
    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 java.lang.reflect.Method.invoke(Native Method)
    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)
    at java.lang.reflect.Method.invoke(Native Method)
    at apple.launcher.LaunchRunner.run(LaunchRunner.java:88)
    at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:50)
    at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)

    I hope this helps you to track down the problem. In my opinion, it has something to do with the upgrade to JDK 1.4.2 on MacOS X. Still do not know why the removed the JDK 1.4.1 while upgrading to JDK 1.4.2.

    Regards,

    Cyrill

    #203571 Reply

    Riyad Kalla
    Member

    Cyrill,
    These exceptions seem to be occuring at very simple places which indicates to me that you are probably right, it is more system-level.

    What happens when you run eclipse with:

    
    eclipse -vm <path to 1.4.2 vm on MacOSX>
    

    do things work then?

    #203626 Reply

    ruettimac
    Member

    I can not run Eclipse 2.1.2 with the VM 1.4.2. While starting up, the Eclipse crashes with a core dump related to some native libraries. I edited Info.plist and replaced 1.3.1 with 1.4+ as documented by apple to use the JDK 1.4 line.

    How can I delete the preferences of myeclipseide? I have a powerbook at work without these problems, upgraded to 1.4.2 before installing myeclipseide.

    Regards,

    Cyrill

    #203627 Reply

    Riyad Kalla
    Member

    In your <eclipse install>/workspace/.metadata/.plugins directory, you can delete all the dirs related to genuitec and org.jboss and see if that helps. Probably good idea to move them somewhere just incase. Also don’t forget to delete the MyEclipse install directory and most importantly the <eclipse install>/links/com.genuitec.eclipse.MyEclipse.link file

    #203637 Reply

    ruettimac
    Member

    I have removed the preferences files. Now I can set the default JDK of Tomcat 5 and I can deploy the project. I assume, something in you code is wrong handling the preferences. If you like, I can send you the preferences files which cause the troubles.

    Regards,

    Cyrill

    #203647 Reply

    Riyad Kalla
    Member

    Hmm strange, yes Cyrill please send the file to support@genuitec.com so we can take a look at it. We appreciate you be patient during this troubleshooting stage. When you do send the email, reference this thread so we know why you are sending us this file 🙂

    I’m glad you are up and running however.

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: Deployment Wizard fails with NullPointerException [Closed]

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