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

Null Pointer when code assumes runtime type cannot be null

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 4.2.0.Beta2
    • None
    • server
    • None

      • Installed JBoss Developer 7.0.0GA using
      • Upgraded to 7.0.1GA
      • Starting JBoss Developer Studio shows the following error window
        An internal error occurred during: "Refreshing JBoss Tutorials...".
        java.lang.NullPointerException
      • The error mentioned before also occurs when doing a refresh inside JBoss Central in the Start from a sample "portlet"
      • Starting a new Java EE Web project results in the following error
        An error has occurred. See error log for more details.
        java.lang.NullPointerException
        No error log is created in ~/workspace, tried to find *.log file in JBoss Developer Studio installation directory, no log files.
        Found .log in ~/workspace/.metadata
        !SESSION 2013-10-08 16:14:47.792 -----------------------------------------------
        eclipse.buildId=unknown
        java.version=1.7.0_40
        java.vendor=Oracle Corporation
        BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
        Framework arguments: -product com.jboss.jbds.product.product -keyring /Users/cballego/.eclipse_keyring -showlocation
        Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product com.jboss.jbds.product.product -keyring /Users/cballego/.eclipse_keyring -consoleLog -showlocation

      !ENTRY org.eclipse.core.net 1 0 2013-10-08 16:14:52.252
      !MESSAGE System property http.nonProxyHosts has been set to local|.local|169.254/16|.169.254/16 by an external source. This value will be overwritten using the values from the preferences

      !ENTRY org.eclipse.jface 2 0 2013-10-08 16:14:52.626
      !MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
      !SUBENTRY 1 org.eclipse.jface 2 0 2013-10-08 16:14:52.626
      !MESSAGE A conflict occurred for ALT+COMMAND+Z:
      Binding(ALT+COMMAND+Z,
      ParameterizedCommand(Command(org.jboss.tools.cdi.ui.open.namedBean,Open CDI Named Bean,
      Open CDI Named Bean,
      Category(org.eclipse.ui.category.navigate,Navigate,null,true),
      org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@54158353,
      ,,true),null),
      org.eclipse.ui.defaultAcceleratorConfiguration,
      org.eclipse.ui.contexts.window,,,system)
      Binding(ALT+COMMAND+Z,
      ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.surround.with.quickMenu,Surround With Quick Menu,
      Shows the Surround With quick menu,
      Category(org.eclipse.jdt.ui.category.source,Source,Java Source Actions,true),
      org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@5060e945,
      ,,true),null),
      org.eclipse.ui.defaultAcceleratorConfiguration,
      org.eclipse.ui.contexts.window,,cocoa,system)
      !SUBENTRY 1 org.eclipse.jface 2 0 2013-10-08 16:14:52.626
      !MESSAGE A conflict occurred for COMMAND+SHIFT+F10:
      Binding(COMMAND+SHIFT+F10,
      ParameterizedCommand(Command(org.jboss.tools.common.ui.RegisterAsService,Register As Service,
      Adds class name to META-INF/services/%serviceType% file after service type is selected in the dialog from types extended and implemented by the class.,
      Category(org.eclipse.ui.category.file,File,null,true),
      org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@a72da3d,
      ,,true),null),
      org.eclipse.ui.defaultAcceleratorConfiguration,
      org.eclipse.ui.contexts.window,,,system)
      Binding(COMMAND+SHIFT+F10,
      ParameterizedCommand(Command(org.eclipse.ui.window.showSystemMenu,Show System Menu,
      Show the system menu,
      Category(org.eclipse.ui.category.window,Window,null,true),
      org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@7a55e026,
      ,,true),null),
      org.eclipse.ui.defaultAcceleratorConfiguration,
      org.eclipse.ui.contexts.window,,cocoa,system)
      !ENTRY org.eclipse.core.jobs 4 2 2013-10-08 16:15:04.413
      !MESSAGE An internal error occurred during: "Refreshing JBoss Tutorials...".
      !STACK 0
      java.lang.NullPointerException
      at org.jboss.tools.as.runtimes.integration.util.RuntimeMatcher.findExistingRuntimes(RuntimeMatcher.java:158)
      at org.jboss.tools.as.runtimes.integration.util.RuntimeMatcher.findExistingRuntimes(RuntimeMatcher.java:151)
      at org.jboss.tools.project.examples.fixes.WTPRuntimeFix.getRuntimesFromPattern(WTPRuntimeFix.java:102)
      at org.jboss.tools.project.examples.fixes.WTPRuntimeFix.getBestRuntime(WTPRuntimeFix.java:248)
      at org.jboss.tools.project.examples.fixes.WTPRuntimeFix.canFix(WTPRuntimeFix.java:130)
      at org.jboss.tools.project.examples.ProjectExamplesActivator.canFix(ProjectExamplesActivator.java:796)
      at org.jboss.tools.central.jobs.RefreshTutorialsJob.run(RefreshTutorialsJob.java:68)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

            rob.stryker Rob Stryker (Inactive)
            cvanball_jira Cojan van Ballegooijen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: