Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-9991

NPE in JBoss Central (Refreshing JBoss Tutorials)

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: 3.3.0.M4
    • Fix Version/s: 3.3.0.M4
    • Component/s: central
    • Labels:
      None

      Description

      Since yesterday, I've been experiencing NPE's on JBoss Central startups :

      java.lang.NullPointerException
      	at org.jboss.tools.project.examples.fixes.WTPRuntimeFix.getBestRuntime(WTPRuntimeFix.java:204)
      	at org.jboss.tools.project.examples.fixes.WTPRuntimeFix.canFix(WTPRuntimeFix.java:70)
      	at org.jboss.tools.project.examples.ProjectExamplesActivator.canFix(ProjectExamplesActivator.java:488)
      	at org.jboss.tools.central.jobs.RefreshTutorialsJob.run(RefreshTutorialsJob.java:82)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      

      It turns out that runtime.getRuntimeType() returns null for some Weblogic server I installed yesterday (with OEPE).

      A null check should be added whereever runtime.getRuntimeType() is called.

        Gliffy Diagrams

          Activity

          Hide
          fbricon Fred Bricon added a comment - - edited

          Fixed in trunk.
          Attached patch with null check to apply to 3.3.0.M4 branch.

          Show
          fbricon Fred Bricon added a comment - - edited Fixed in trunk. Attached patch with null check to apply to 3.3.0.M4 branch.
          Hide
          maxandersen Max Rydahl Andersen added a comment -

          approved for M4 since this could happen a lot in the wild.

          Show
          maxandersen Max Rydahl Andersen added a comment - approved for M4 since this could happen a lot in the wild.
          Hide
          fbricon Fred Bricon added a comment -

          Patch applied in branch 3.3.0.M4

          Show
          fbricon Fred Bricon added a comment - Patch applied in branch 3.3.0.M4
          Hide
          psrna Pavol Srna added a comment -

          Verified on jbosstools-3.3_stable_branch.aggregate-Update-2011-10-24_19-28-33-H32.

          Show
          psrna Pavol Srna added a comment - Verified on jbosstools-3.3_stable_branch.aggregate-Update-2011-10-24_19-28-33-H32.

            People

            • Assignee:
              fbricon Fred Bricon
              Reporter:
              fbricon Fred Bricon
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development