Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: eclipse
    • Labels:
      None
    • Environment:

      Windows 8 64 Bits
      Java version "1.7.0_21"
      Eclipse Java EE IDE for Web Developers - JUNO - SR2
      GlasshFish Server Web B88
      GlassFish Tools for Juno (Pre-Release Developer Stream) (5.2.2.201305090916)

      Description

      When I try to start my GlassFish server via eclipse I have this error:

      An internal error occurred during: "Starting GlassFish 4.0 at localhost". java.lang.NullPointerException

        Activity

        Hide
        Stefan Horochovec added a comment -

        I have the same problem with Eclipse Kepler.

        Show
        Stefan Horochovec added a comment - I have the same problem with Eclipse Kepler.
        Hide
        Stefan Horochovec added a comment - - edited

        I change my environment and server works fine

        • Ubuntu 13.04;
        • OpenJDK7;
        • Eclipse Juno SR2;
        • Glassfish Tools: 5.2.2.201305090916
        Show
        Stefan Horochovec added a comment - - edited I change my environment and server works fine Ubuntu 13.04; OpenJDK7; Eclipse Juno SR2; Glassfish Tools: 5.2.2.201305090916
        Hide
        piotrik added a comment -

        Hi Stefan,
        so you are still experiencing the issue on Windows? I tried on Win 7 with very similar environment and couldn't simulate it. It will be great if you provide more details, e.g. steps, your eclipse workspace description and logs.

        Show
        piotrik added a comment - Hi Stefan, so you are still experiencing the issue on Windows? I tried on Win 7 with very similar environment and couldn't simulate it. It will be great if you provide more details, e.g. steps, your eclipse workspace description and logs.
        Hide
        Stefan Horochovec added a comment -

        Yes, I´m using Windows 8 too. Today a new version of Glassfish is published (b89). I will test again and post the results.

        Show
        Stefan Horochovec added a comment - Yes, I´m using Windows 8 too. Today a new version of Glassfish is published (b89). I will test again and post the results.
        Hide
        Stefan Horochovec added a comment -

        OK

        I´m testing again on Windows 8 and everything works fine.

        I think this Issue can be closed.

        Regards

        Show
        Stefan Horochovec added a comment - OK I´m testing again on Windows 8 and everything works fine. I think this Issue can be closed. Regards
        Hide
        balusc added a comment - - edited

        I encountered exactly this problem after upgrading JDK. It turns out that GlassFish plugin was still referring the old JDK installation which does not exist anymore. You need to fix it by doubleclicking the GlassFish server entry in Servers view and then click the "Runtime Environment" link and then set the JRE entry to the right JDK.

        A "quick'n'dirty" fix would be removing the GlassFish server entry altogether and create a new one.

        Show
        balusc added a comment - - edited I encountered exactly this problem after upgrading JDK. It turns out that GlassFish plugin was still referring the old JDK installation which does not exist anymore. You need to fix it by doubleclicking the GlassFish server entry in Servers view and then click the "Runtime Environment" link and then set the JRE entry to the right JDK. A "quick'n'dirty" fix would be removing the GlassFish server entry altogether and create a new one.
        Hide
        Palmer_Eldritch added a comment - - edited

        Tried to do as BalusC suggests and encountered :

        1. Open up Preferences > Server >Runtime Environments
        2. Click on edit for a glassfish 3.1 server
        3. Edit (I changed the JRE) and hit OK
        4. NPE :

        – Error Details –
        Date: Thu Oct 31 15:14:57 EET 2013
        Message: Unhandled event loop exception
        Severity: Error
        Product: Eclipse 2.0.1.20130919-0803 (org.eclipse.epp.package.jee.product)
        Plugin: org.eclipse.ui
        Session Data:
        eclipse.buildId=4.3.0.M20130911-1000
        java.version=1.7.0_25
        java.vendor=Oracle Corporation
        BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
        Framework arguments: -product org.eclipse.epp.package.jee.product
        Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product

        Exception Stack Trace:
        java.lang.NullPointerException
        at oracle.eclipse.tools.glassfish.ui.wizards.GlassfishRuntimeWizardFragmentDecorator.validate(GlassfishRuntimeWizardFragmentDecorator.java:244)
        at oracle.eclipse.tools.glassfish.ui.wizards.GlassfishRuntimeWizardFragment.exit(GlassfishRuntimeWizardFragment.java:89)
        at org.eclipse.wst.server.ui.internal.wizard.TaskWizard.performFinish(TaskWizard.java:163)
        at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:827)
        at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:432)
        at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:628)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:826)
        at org.eclipse.jface.window.Window.open(Window.java:802)
        at org.eclipse.wst.server.ui.internal.RuntimePreferencePage.showWizard(RuntimePreferencePage.java:396)
        at org.eclipse.wst.server.ui.internal.RuntimePreferencePage$3.widgetSelected(RuntimePreferencePage.java:159)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:826)
        at org.eclipse.jface.window.Window.open(Window.java:802)
        at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.open(WorkbenchPreferenceDialog.java:215)
        at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:65)
        at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
        at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
        at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
        at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
        at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
        at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:138)
        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1426)

        Please verify

        Should I report at eclipse or you ?

        EDIT : reported here : https://java.net/jira/browse/GLASSFISHPLUGINS-375

        Show
        Palmer_Eldritch added a comment - - edited Tried to do as BalusC suggests and encountered : 1. Open up Preferences > Server >Runtime Environments 2. Click on edit for a glassfish 3.1 server 3. Edit (I changed the JRE) and hit OK 4. NPE : – Error Details – Date: Thu Oct 31 15:14:57 EET 2013 Message: Unhandled event loop exception Severity: Error Product: Eclipse 2.0.1.20130919-0803 (org.eclipse.epp.package.jee.product) Plugin: org.eclipse.ui Session Data: eclipse.buildId=4.3.0.M20130911-1000 java.version=1.7.0_25 java.vendor=Oracle Corporation BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Framework arguments: -product org.eclipse.epp.package.jee.product Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product Exception Stack Trace: java.lang.NullPointerException at oracle.eclipse.tools.glassfish.ui.wizards.GlassfishRuntimeWizardFragmentDecorator.validate(GlassfishRuntimeWizardFragmentDecorator.java:244) at oracle.eclipse.tools.glassfish.ui.wizards.GlassfishRuntimeWizardFragment.exit(GlassfishRuntimeWizardFragment.java:89) at org.eclipse.wst.server.ui.internal.wizard.TaskWizard.performFinish(TaskWizard.java:163) at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:827) at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:432) at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:628) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759) at org.eclipse.jface.window.Window.runEventLoop(Window.java:826) at org.eclipse.jface.window.Window.open(Window.java:802) at org.eclipse.wst.server.ui.internal.RuntimePreferencePage.showWizard(RuntimePreferencePage.java:396) at org.eclipse.wst.server.ui.internal.RuntimePreferencePage$3.widgetSelected(RuntimePreferencePage.java:159) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759) at org.eclipse.jface.window.Window.runEventLoop(Window.java:826) at org.eclipse.jface.window.Window.open(Window.java:802) at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.open(WorkbenchPreferenceDialog.java:215) at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:65) at org.eclipse.jface.action.Action.runWithEvent(Action.java:499) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:138) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591) at org.eclipse.equinox.launcher.Main.run(Main.java:1450) at org.eclipse.equinox.launcher.Main.main(Main.java:1426) Please verify Should I report at eclipse or you ? EDIT : reported here : https://java.net/jira/browse/GLASSFISHPLUGINS-375

          People

          • Assignee:
            Unassigned
            Reporter:
            Stefan Horochovec
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: