java.lang.NullPointerException: null

Jenkins JIRA | julianhall | 7 years ago
  1. 0

    I've got a simple job configured where it pulls from cvs and then invokes a gradle build. I've used both 0.8 and 0.9preview1 and I get the following NPE i'm not sure if this is a gradle issue or hudson. If I remove the CVS update and just run the gradle build it is fine. 09:24:36.736 [main] INFO org.gradle.launcher.Main - Starting Build 09:24:36.752 [main] DEBUG org.gradle.launcher.Main - Gradle home: C:\Java\gradle-0.9-preview-1 09:24:36.752 [main] DEBUG org.gradle.launcher.Main - Gradle user home: C:\Documents and Settings\jhall\.gradle 09:24:36.752 [main] DEBUG org.gradle.launcher.Main - Current dir: C:\Documents and Settings\jhall\.hudson\jobs\enterprise_head\build scripts\workspace\deploy scripts\gradle 09:24:36.752 [main] DEBUG org.gradle.launcher.Main - Settings file: null 09:24:36.752 [main] DEBUG org.gradle.launcher.Main - Build file: C:\Documents and Settings\jhall\.hudson\jobs\enterprise_head\build scripts\workspace\deploy scripts\gradle\build.gradle 09:24:36.752 [main] DEBUG org.gradle.launcher.Main - Select default project: project has build file 'C:\Documents and Settings\jhall\.hudson\jobs\enterprise_head\build scripts\workspace\deploy scripts\gradle\build.gradle' 09:24:36.752 [main] DEBUG org.gradle.launcher.Main - Default imports file: C:\Java\gradle-0.9-preview-1\gradle-imports 09:24:37.018 [main] ERROR org.gradle.launcher.Main - FAILURE: Build aborted because of an internal error. * What went wrong: Build aborted because of an unexpected internal error. Please file an issue at: www.gradle.org. * Try: Run with -d option to get additional debug info. * Exception is: java.lang.NullPointerException: null at org.gradle.initialization.MasterDirSettingsFinderStrategy.findBeyondCurrentDir(MasterDirSettingsFinderStrategy.java:32) at org.gradle.initialization.AbstractSettingsFileSearchStrategyTemplate.find(AbstractSettingsFileSearchStrategyTemplate.java:32) at org.gradle.initialization.DefaultSettingsFinder.find(DefaultSettingsFinder.java:38) at org.gradle.initialization.EmbeddedScriptSettingsFinder.find(EmbeddedScriptSettingsFinder.java:33) at org.gradle.initialization.SettingsHandler.findSettings(SettingsHandler.java:91) at org.gradle.initialization.SettingsHandler.findSettingsAndLoadIfAppropriate(SettingsHandler.java:78) at org.gradle.initialization.SettingsHandler.findAndLoadSettings(SettingsHandler.java:46) at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:152) at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:112) at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:80) at org.gradle.launcher.Main.execute(Main.java:93) at org.gradle.launcher.Main.main(Main.java:42) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.gradle.launcher.GradleMain.main(GradleMain.java:54) 09:24:37.018 [main] ERROR org.gradle.launcher.Main - BUILD FAILED

    Jenkins JIRA | 7 years ago | julianhall
    java.lang.NullPointerException: null
  2. 0

    I've got a simple job configured where it pulls from cvs and then invokes a gradle build. I've used both 0.8 and 0.9preview1 and I get the following NPE i'm not sure if this is a gradle issue or hudson. If I remove the CVS update and just run the gradle build it is fine. 09:24:36.736 [main] INFO org.gradle.launcher.Main - Starting Build 09:24:36.752 [main] DEBUG org.gradle.launcher.Main - Gradle home: C:\Java\gradle-0.9-preview-1 09:24:36.752 [main] DEBUG org.gradle.launcher.Main - Gradle user home: C:\Documents and Settings\jhall\.gradle 09:24:36.752 [main] DEBUG org.gradle.launcher.Main - Current dir: C:\Documents and Settings\jhall\.hudson\jobs\enterprise_head\build scripts\workspace\deploy scripts\gradle 09:24:36.752 [main] DEBUG org.gradle.launcher.Main - Settings file: null 09:24:36.752 [main] DEBUG org.gradle.launcher.Main - Build file: C:\Documents and Settings\jhall\.hudson\jobs\enterprise_head\build scripts\workspace\deploy scripts\gradle\build.gradle 09:24:36.752 [main] DEBUG org.gradle.launcher.Main - Select default project: project has build file 'C:\Documents and Settings\jhall\.hudson\jobs\enterprise_head\build scripts\workspace\deploy scripts\gradle\build.gradle' 09:24:36.752 [main] DEBUG org.gradle.launcher.Main - Default imports file: C:\Java\gradle-0.9-preview-1\gradle-imports 09:24:37.018 [main] ERROR org.gradle.launcher.Main - FAILURE: Build aborted because of an internal error. * What went wrong: Build aborted because of an unexpected internal error. Please file an issue at: www.gradle.org. * Try: Run with -d option to get additional debug info. * Exception is: java.lang.NullPointerException: null at org.gradle.initialization.MasterDirSettingsFinderStrategy.findBeyondCurrentDir(MasterDirSettingsFinderStrategy.java:32) at org.gradle.initialization.AbstractSettingsFileSearchStrategyTemplate.find(AbstractSettingsFileSearchStrategyTemplate.java:32) at org.gradle.initialization.DefaultSettingsFinder.find(DefaultSettingsFinder.java:38) at org.gradle.initialization.EmbeddedScriptSettingsFinder.find(EmbeddedScriptSettingsFinder.java:33) at org.gradle.initialization.SettingsHandler.findSettings(SettingsHandler.java:91) at org.gradle.initialization.SettingsHandler.findSettingsAndLoadIfAppropriate(SettingsHandler.java:78) at org.gradle.initialization.SettingsHandler.findAndLoadSettings(SettingsHandler.java:46) at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:152) at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:112) at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:80) at org.gradle.launcher.Main.execute(Main.java:93) at org.gradle.launcher.Main.main(Main.java:42) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.gradle.launcher.GradleMain.main(GradleMain.java:54) 09:24:37.018 [main] ERROR org.gradle.launcher.Main - BUILD FAILED

    Jenkins JIRA | 7 years ago | julianhall
    java.lang.NullPointerException: null
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      null

      at org.gradle.initialization.MasterDirSettingsFinderStrategy.findBeyondCurrentDir()
    2. Gradle Core
      DefaultGradleLauncher.run
      1. org.gradle.initialization.MasterDirSettingsFinderStrategy.findBeyondCurrentDir(MasterDirSettingsFinderStrategy.java:32)
      2. org.gradle.initialization.AbstractSettingsFileSearchStrategyTemplate.find(AbstractSettingsFileSearchStrategyTemplate.java:32)
      3. org.gradle.initialization.DefaultSettingsFinder.find(DefaultSettingsFinder.java:38)
      4. org.gradle.initialization.EmbeddedScriptSettingsFinder.find(EmbeddedScriptSettingsFinder.java:33)
      5. org.gradle.initialization.SettingsHandler.findSettings(SettingsHandler.java:91)
      6. org.gradle.initialization.SettingsHandler.findSettingsAndLoadIfAppropriate(SettingsHandler.java:78)
      7. org.gradle.initialization.SettingsHandler.findAndLoadSettings(SettingsHandler.java:46)
      8. org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:152)
      9. org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:112)
      10. org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:80)
      10 frames
    3. Gradle Launcher
      Main.main
      1. org.gradle.launcher.Main.execute(Main.java:93)
      2. org.gradle.launcher.Main.main(Main.java:42)
      2 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    5. Gradle Launcher
      GradleMain.main
      1. org.gradle.launcher.GradleMain.main(GradleMain.java:54)
      1 frame