[GRADLE-1562] NPE on running a task Created: 18/May/11  Updated: 10/Feb/17  Resolved: 10/Feb/17

Status: Resolved
Project: Gradle
Affects Version/s: 1.0-milestone-3
Fix Version/s: None

Type: Bug
Reporter: phil swenson Assignee: Unassigned
Resolution: Won't Fix Votes: 0

Issue Links:
Duplicate
Duplicated by GRADLE-1745 NPE in client when daemon crashes Resolved

 Description   

I run a task from a custom plugin and get this stack dump after it's done:

10:25:57.400 [QUIET] [system.out] Batch execution completed successfully
10:25:57.763 [ERROR] [org.gradle.BuildExceptionReporter]
10:25:57.765 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build aborted because of an internal error.
10:25:57.766 [ERROR] [org.gradle.BuildExceptionReporter]
10:25:57.766 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
10:25:57.767 [ERROR] [org.gradle.BuildExceptionReporter] Build aborted because of an unexpected internal error. Please file an issue at: http://www.gradle.org.
10:25:57.767 [ERROR] [org.gradle.BuildExceptionReporter]
10:25:57.767 [ERROR] [org.gradle.BuildExceptionReporter] * Try:
10:25:57.769 [ERROR] [org.gradle.BuildExceptionReporter] Run with --debug option to get additional debug info.
10:25:57.770 [ERROR] [org.gradle.BuildExceptionReporter]
10:25:57.770 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is:
10:25:57.772 [ERROR] [org.gradle.BuildExceptionReporter] java.lang.NullPointerException
10:25:57.772 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.logging.internal.OutputEventRenderer.onOutput(OutputEventRenderer.java:157)
10:25:57.772 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.DaemonClient.run(DaemonClient.java:96)
10:25:57.773 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.DaemonClient.execute(DaemonClient.java:79)
10:25:57.773 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.DaemonBuildAction.run(DaemonBuildAction.java:45)
10:25:57.773 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.CommandLineActionFactory$ActionAdapter.execute(CommandLineActionFactory.java:199)
10:25:57.777 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.CommandLineActionFactory$ActionAdapter.execute(CommandLineActionFactory.java:191)
10:25:57.778 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.ExceptionReportingAction.execute(ExceptionReportingAction.java:32)
10:25:57.778 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.ExceptionReportingAction.execute(ExceptionReportingAction.java:21)
10:25:57.779 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.CommandLineActionFactory$WithLoggingAction.execute(CommandLineActionFactory.java:219)
10:25:57.779 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.CommandLineActionFactory$WithLoggingAction.execute(CommandLineActionFactory.java:203)
10:25:57.780 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.Main.execute(Main.java:55)
10:25:57.780 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.Main.main(Main.java:40)
10:25:57.781 [ERROR] [org.gradle.BuildExceptionReporter] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
10:25:57.781 [ERROR] [org.gradle.BuildExceptionReporter] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
10:25:57.781 [ERROR] [org.gradle.BuildExceptionReporter] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
10:25:57.781 [ERROR] [org.gradle.BuildExceptionReporter] at java.lang.reflect.Method.invoke(Method.java:597)
10:25:57.782 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.ProcessBootstrap.runNoExit(ProcessBootstrap.java:46)
10:25:57.782 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.ProcessBootstrap.run(ProcessBootstrap.java:28)
10:25:57.782 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.GradleMain.main(GradleMain.java:24)
10:25:57.783 [ERROR] [org.gradle.BuildExceptionReporter]
> Building > :bas-plugins-core:exportMessageszoso:trunk phil$



 Comments   
Comment by phil swenson [ 19/May/11 ]

Just found out this error only pops up if daemon is running.

Comment by Szczepan Faber [ 11/Aug/11 ]

The workaround for this issue at the moment is to kill the daemon.

Comment by Benjamin Muschko [ 15/Nov/16 ]

As announced on the Gradle blog we are planning to completely migrate issues from JIRA to GitHub.

We intend to prioritize issues that are actionable and impactful while working more closely with the community. Many of our JIRA issues are inactionable or irrelevant. We would like to request your help to ensure we can appropriately prioritize JIRA issues you’ve contributed to.

Please confirm that you still advocate for your JIRA issue before December 10th, 2016 by:

  • Checking that your issues contain requisite context, impact, behaviors, and examples as described in our published guidelines.
  • Leave a comment on the JIRA issue or open a new GitHub issue confirming that the above is complete.

We look forward to collaborating with you more closely on GitHub. Thank you for your contribution to Gradle!

Comment by Benjamin Muschko [ 10/Feb/17 ]

Thanks again for reporting this issue. We haven't heard back from you after our inquiry from November 15th. We are closing this issue now. Please create an issue on GitHub if you still feel passionate about getting it resolved.

Generated at Wed Jun 30 11:58:42 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.