4 Replies Latest reply on Apr 12, 2013 1:24 AM by Jesper Skov

    Occasional NPE

    Jesper Skov Newbie

      We get the occasional NPE in 4.0.0.Final:

       

      Stacktrace:

      !ENTRY org.eclipse.ui 4 4 2013-04-10 08:41:59.264

      !MESSAGE An internal error has occurred.

      !STACK 0

      java.lang.NullPointerException

      at org.jboss.tools.common.validation.TempMarkerManager$1.runInUIThread(TempMarkerManager.java:270)

      at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:95)

      at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)

      at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)

      at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4145)

      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3762)

      at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1108)

      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

      at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:992)

      at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:137)

      at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:600)

      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:555)

      at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)

      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(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

      at java.lang.reflect.Method.invoke(Unknown Source)

      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)

       

      This is with Kepler M6, so it may be a side effect of it not being entirely compatible?

       

       

      It happens while editing in a Team comparison view.

       

      A modal error dialog shows up with a message like "'As-you-type JBT validation. Disabling the marker annotations' has encountered a problem."

       

      I only have this from a single developer, but I'll see if I can reproduce in the 4.1.0b2 nightly we are using now.

        • 1. Re: Occasional NPE
          Jesper Skov Newbie

          More stack traces from 4.1.0.alpha2 nightly B6241 and Kepler M6 below.

           

          This happened while making changes to an XML file with a custom editor. The changes were not yet saved when I got the exception.

           

          {noformat}

          !ENTRY org.jboss.tools.common 4 0 2013-04-10 14:30:31.348

          !MESSAGE

          !STACK 0

          org.jboss.tools.common.validation.JBTValidationException

              at org.jboss.tools.common.validation.AsYouTypeValidatorManager.validate(AsYouTypeValidatorManager.java:188)

              at org.jboss.tools.common.validation.AsYouTypeValidatorManager.validateString(AsYouTypeValidatorManager.java:209)

              at org.jboss.tools.common.validation.AsYouTypeValidatorManager.validateString(AsYouTypeValidatorManager.java:200)

              at org.jboss.tools.common.validation.java.JavaDirtyRegionProcessor.endProcessing(JavaDirtyRegionProcessor.java:498)

              at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:697)

          Caused by: java.lang.NullPointerException

              at org.jboss.tools.jst.web.kb.internal.validation.ELValidator.validate(ELValidator.java:254)

              at org.jboss.tools.common.validation.AsYouTypeValidatorManager.validate(AsYouTypeValidatorManager.java:183)

              ... 4 more

           

          !ENTRY org.jboss.tools.common 4 0 2013-04-10 14:30:33.854

          !MESSAGE

          !STACK 0

          org.jboss.tools.common.validation.JBTValidationException

              at org.jboss.tools.common.validation.AsYouTypeValidatorManager.validate(AsYouTypeValidatorManager.java:188)

              at org.jboss.tools.common.validation.AsYouTypeValidatorManager.validateString(AsYouTypeValidatorManager.java:209)

              at org.jboss.tools.common.validation.AsYouTypeValidatorManager.validateString(AsYouTypeValidatorManager.java:200)

              at org.jboss.tools.common.validation.java.JavaDirtyRegionProcessor.endProcessing(JavaDirtyRegionProcessor.java:498)

              at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:697)

          Caused by: java.lang.NullPointerException

              at org.jboss.tools.jst.web.kb.internal.validation.ELValidator.validate(ELValidator.java:254)

              at org.jboss.tools.common.validation.AsYouTypeValidatorManager.validate(AsYouTypeValidatorManager.java:183)

              ... 4 more

           

          !ENTRY org.jboss.tools.common 4 0 2013-04-10 14:30:55.478

          !MESSAGE

          !STACK 0

          org.jboss.tools.common.validation.JBTValidationException

              at org.jboss.tools.common.validation.AsYouTypeValidatorManager.validate(AsYouTypeValidatorManager.java:188)

              at org.jboss.tools.common.validation.AsYouTypeValidatorManager.validateString(AsYouTypeValidatorManager.java:209)

              at org.jboss.tools.common.validation.AsYouTypeValidatorManager.validateString(AsYouTypeValidatorManager.java:200)

              at org.jboss.tools.common.validation.java.JavaDirtyRegionProcessor.endProcessing(JavaDirtyRegionProcessor.java:498)

              at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:697)

          Caused by: java.lang.NullPointerException

              at org.jboss.tools.jst.web.kb.internal.validation.ELValidator.validate(ELValidator.java:254)

              at org.jboss.tools.common.validation.AsYouTypeValidatorManager.validate(AsYouTypeValidatorManager.java:183)

              ... 4 more

           

          !ENTRY org.jboss.tools.common 4 0 2013-04-10 14:31:09.531

          !MESSAGE

          !STACK 0

          org.jboss.tools.common.validation.JBTValidationException

              at org.jboss.tools.common.validation.AsYouTypeValidatorManager.validate(AsYouTypeValidatorManager.java:188)

              at org.jboss.tools.common.validation.AsYouTypeValidatorManager.validateString(AsYouTypeValidatorManager.java:209)

              at org.jboss.tools.common.validation.AsYouTypeValidatorManager.validateString(AsYouTypeValidatorManager.java:200)

              at org.jboss.tools.common.validation.java.JavaDirtyRegionProcessor.endProcessing(JavaDirtyRegionProcessor.java:498)

              at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:697)

          Caused by: java.lang.NullPointerException

              at org.jboss.tools.jst.web.kb.internal.validation.ELValidator.validate(ELValidator.java:254)

              at org.jboss.tools.common.validation.AsYouTypeValidatorManager.validate(AsYouTypeValidatorManager.java:183)

              ... 4 more

           

          !ENTRY org.jboss.tools.common 4 0 2013-04-10 14:31:12.537

          !MESSAGE

          !STACK 0

          org.jboss.tools.common.validation.JBTValidationException

              at org.jboss.tools.common.validation.AsYouTypeValidatorManager.validate(AsYouTypeValidatorManager.java:188)

              at org.jboss.tools.common.validation.AsYouTypeValidatorManager.validateString(AsYouTypeValidatorManager.java:209)

              at org.jboss.tools.common.validation.AsYouTypeValidatorManager.validateString(AsYouTypeValidatorManager.java:200)

              at org.jboss.tools.common.validation.java.JavaDirtyRegionProcessor.endProcessing(JavaDirtyRegionProcessor.java:498)

              at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:697)

          Caused by: java.lang.NullPointerException

              at org.jboss.tools.jst.web.kb.internal.validation.ELValidator.validate(ELValidator.java:254)

              at org.jboss.tools.common.validation.AsYouTypeValidatorManager.validate(AsYouTypeValidatorManager.java:183)

              ... 4 more

           

          !ENTRY org.eclipse.ui 4 4 2013-04-10 14:33:13.372

          !MESSAGE An internal error has occurred.

          !STACK 0

          java.lang.NullPointerException

              at org.jboss.tools.common.validation.TempMarkerManager$1.runInUIThread(TempMarkerManager.java:271)

              at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:95)

              at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)

              at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)

              at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4145)

              at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3762)

              at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1108)

              at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

              at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:992)

              at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:137)

              at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:600)

              at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

              at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:555)

              at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)

              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:601)

              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)

          {noformat}

          • 2. Re: Occasional NPE
            Alexey Kazakov Master

            Looks like a bug. Could you please create an issue in https://issues.jboss.org/browse/JBIDE ? Thanks.

            • 3. Re: Occasional NPE
              Alexey Kazakov Master

              Thank you for reporting the issue https://issues.jboss.org/browse/JBIDE-13982

              • 4. Re: Occasional NPE
                Jesper Skov Newbie

                No problem, happy to help.

                 

                And sorry I forgot to post the link to the issue after creating it. Glad you picked it up