You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Mark Hobson (JIRA)" <ji...@codehaus.org> on 2005/10/28 12:17:11 UTC
[jira] Created: (MNG-1354) NPE when plugins throw certain exceptions
NPE when plugins throw certain exceptions
-----------------------------------------
Key: MNG-1354
URL: http://jira.codehaus.org/browse/MNG-1354
Project: Maven 2
Type: Bug
Components: maven-core
Versions: 2.0
Reporter: Mark Hobson
Regularly see this, although it's entirely obvious why looking at the source:
java.lang.NullPointerException
at org.apache.maven.usability.diagnostics.DiagnosisUtils.appendRootCauseIfPresentAndUnique(DiagnosisUtils.java:89)
at org.apache.maven.usability.diagnostics.ErrorDiagnostics$PuntErrorDiagnoser.diagnose(ErrorDiagnostics.java:132)
at org.apache.maven.usability.diagnostics.ErrorDiagnostics.diagnose(ErrorDiagnostics.java:104)
at org.apache.maven.DefaultMaven.logDiagnostics(DefaultMaven.java:693)
at org.apache.maven.DefaultMaven.logFatal(DefaultMaven.java:627)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:143)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
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:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Can spend time creating a testcase if it's not immediately obvious.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Commented: (MNG-1354) NPE when plugins throw certain exceptions
Posted by "Mark Hobson (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-1354?page=comments#action_50023 ]
Mark Hobson commented on MNG-1354:
----------------------------------
Agreed, but decompiling the 2.0 distributable shows that the patch hasn't been applied. I was just unsure why there's a discrepancy between the 2.0 tag and the 2.0 distributable.
> NPE when plugins throw certain exceptions
> -----------------------------------------
>
> Key: MNG-1354
> URL: http://jira.codehaus.org/browse/MNG-1354
> Project: Maven 2
> Type: Bug
> Components: maven-core
> Versions: 2.0
> Reporter: Mark Hobson
> Assignee: Brett Porter
>
>
> Regularly see this, although it's entirely obvious why looking at the source:
> java.lang.NullPointerException
> at org.apache.maven.usability.diagnostics.DiagnosisUtils.appendRootCauseIfPresentAndUnique(DiagnosisUtils.java:89)
> at org.apache.maven.usability.diagnostics.ErrorDiagnostics$PuntErrorDiagnoser.diagnose(ErrorDiagnostics.java:132)
> at org.apache.maven.usability.diagnostics.ErrorDiagnostics.diagnose(ErrorDiagnostics.java:104)
> at org.apache.maven.DefaultMaven.logDiagnostics(DefaultMaven.java:693)
> at org.apache.maven.DefaultMaven.logFatal(DefaultMaven.java:627)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:143)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
> 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:585)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Can spend time creating a testcase if it's not immediately obvious.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Commented: (MNG-1354) NPE when plugins throw certain exceptions
Posted by "Mark Hobson (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-1354?page=comments#action_49486 ]
Mark Hobson commented on MNG-1354:
----------------------------------
s/it's entirely obvious/it's not entirely obvious
:)
> NPE when plugins throw certain exceptions
> -----------------------------------------
>
> Key: MNG-1354
> URL: http://jira.codehaus.org/browse/MNG-1354
> Project: Maven 2
> Type: Bug
> Components: maven-core
> Versions: 2.0
> Reporter: Mark Hobson
>
>
> Regularly see this, although it's entirely obvious why looking at the source:
> java.lang.NullPointerException
> at org.apache.maven.usability.diagnostics.DiagnosisUtils.appendRootCauseIfPresentAndUnique(DiagnosisUtils.java:89)
> at org.apache.maven.usability.diagnostics.ErrorDiagnostics$PuntErrorDiagnoser.diagnose(ErrorDiagnostics.java:132)
> at org.apache.maven.usability.diagnostics.ErrorDiagnostics.diagnose(ErrorDiagnostics.java:104)
> at org.apache.maven.DefaultMaven.logDiagnostics(DefaultMaven.java:693)
> at org.apache.maven.DefaultMaven.logFatal(DefaultMaven.java:627)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:143)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
> 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:585)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Can spend time creating a testcase if it's not immediately obvious.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Closed: (MNG-1354) NPE when plugins throw certain exceptions
Posted by "fabrizio giustina (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-1354?page=all ]
fabrizio giustina closed MNG-1354:
----------------------------------
Resolution: Duplicate
Fix Version: 2.0.1
duplicated of MNG-1220
> NPE when plugins throw certain exceptions
> -----------------------------------------
>
> Key: MNG-1354
> URL: http://jira.codehaus.org/browse/MNG-1354
> Project: Maven 2
> Type: Bug
> Components: maven-core
> Versions: 2.0
> Reporter: Mark Hobson
> Fix For: 2.0.1
>
>
> Regularly see this, although it's entirely obvious why looking at the source:
> java.lang.NullPointerException
> at org.apache.maven.usability.diagnostics.DiagnosisUtils.appendRootCauseIfPresentAndUnique(DiagnosisUtils.java:89)
> at org.apache.maven.usability.diagnostics.ErrorDiagnostics$PuntErrorDiagnoser.diagnose(ErrorDiagnostics.java:132)
> at org.apache.maven.usability.diagnostics.ErrorDiagnostics.diagnose(ErrorDiagnostics.java:104)
> at org.apache.maven.DefaultMaven.logDiagnostics(DefaultMaven.java:693)
> at org.apache.maven.DefaultMaven.logFatal(DefaultMaven.java:627)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:143)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
> 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:585)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Can spend time creating a testcase if it's not immediately obvious.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Reopened: (MNG-1354) NPE when plugins throw certain exceptions
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-1354?page=all ]
Brett Porter reopened MNG-1354:
-------------------------------
> NPE when plugins throw certain exceptions
> -----------------------------------------
>
> Key: MNG-1354
> URL: http://jira.codehaus.org/browse/MNG-1354
> Project: Maven 2
> Type: Bug
> Components: maven-core
> Versions: 2.0
> Reporter: Mark Hobson
> Fix For: 2.0.1
>
>
> Regularly see this, although it's entirely obvious why looking at the source:
> java.lang.NullPointerException
> at org.apache.maven.usability.diagnostics.DiagnosisUtils.appendRootCauseIfPresentAndUnique(DiagnosisUtils.java:89)
> at org.apache.maven.usability.diagnostics.ErrorDiagnostics$PuntErrorDiagnoser.diagnose(ErrorDiagnostics.java:132)
> at org.apache.maven.usability.diagnostics.ErrorDiagnostics.diagnose(ErrorDiagnostics.java:104)
> at org.apache.maven.DefaultMaven.logDiagnostics(DefaultMaven.java:693)
> at org.apache.maven.DefaultMaven.logFatal(DefaultMaven.java:627)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:143)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
> 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:585)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Can spend time creating a testcase if it's not immediately obvious.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Commented: (MNG-1354) NPE when plugins throw certain exceptions
Posted by "Mark Hobson (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-1354?page=comments#action_49491 ]
Mark Hobson commented on MNG-1354:
----------------------------------
Thanks - looks like my jira search was inadvertantly filtered. Also a bit misleading since MNG-1220 is fixed against 2.0 and the 2.0 tag shows the patch already applied, but maven-error-diagnostics-2.0.jar hasn't been patched.
> NPE when plugins throw certain exceptions
> -----------------------------------------
>
> Key: MNG-1354
> URL: http://jira.codehaus.org/browse/MNG-1354
> Project: Maven 2
> Type: Bug
> Components: maven-core
> Versions: 2.0
> Reporter: Mark Hobson
> Fix For: 2.0.1
>
>
> Regularly see this, although it's entirely obvious why looking at the source:
> java.lang.NullPointerException
> at org.apache.maven.usability.diagnostics.DiagnosisUtils.appendRootCauseIfPresentAndUnique(DiagnosisUtils.java:89)
> at org.apache.maven.usability.diagnostics.ErrorDiagnostics$PuntErrorDiagnoser.diagnose(ErrorDiagnostics.java:132)
> at org.apache.maven.usability.diagnostics.ErrorDiagnostics.diagnose(ErrorDiagnostics.java:104)
> at org.apache.maven.DefaultMaven.logDiagnostics(DefaultMaven.java:693)
> at org.apache.maven.DefaultMaven.logFatal(DefaultMaven.java:627)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:143)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
> 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:585)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Can spend time creating a testcase if it's not immediately obvious.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Commented: (MNG-1354) NPE when plugins throw certain exceptions
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-1354?page=comments#action_50137 ]
Brett Porter commented on MNG-1354:
-----------------------------------
ok, it seems I made a mistake on this particular one, not updating the version to 2.0-1.
I'll remark it as fixed in 2.0.1.
> NPE when plugins throw certain exceptions
> -----------------------------------------
>
> Key: MNG-1354
> URL: http://jira.codehaus.org/browse/MNG-1354
> Project: Maven 2
> Type: Bug
> Components: maven-core
> Versions: 2.0
> Reporter: Mark Hobson
> Assignee: Brett Porter
>
>
> Regularly see this, although it's entirely obvious why looking at the source:
> java.lang.NullPointerException
> at org.apache.maven.usability.diagnostics.DiagnosisUtils.appendRootCauseIfPresentAndUnique(DiagnosisUtils.java:89)
> at org.apache.maven.usability.diagnostics.ErrorDiagnostics$PuntErrorDiagnoser.diagnose(ErrorDiagnostics.java:132)
> at org.apache.maven.usability.diagnostics.ErrorDiagnostics.diagnose(ErrorDiagnostics.java:104)
> at org.apache.maven.DefaultMaven.logDiagnostics(DefaultMaven.java:693)
> at org.apache.maven.DefaultMaven.logFatal(DefaultMaven.java:627)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:143)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
> 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:585)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Can spend time creating a testcase if it's not immediately obvious.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Closed: (MNG-1354) NPE when plugins throw certain exceptions
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-1354?page=all ]
Brett Porter closed MNG-1354:
-----------------------------
Assign To: Brett Porter
Resolution: Duplicate
Fix Version: (was: 2.0.1)
it was on the tag:
http://svn.apache.org/viewcvs.cgi/maven/components/tags/maven-2.0/maven-error-diagnostics/src/main/java/org/apache/maven/usability/diagnostics/DiagnosisUtils.java?rev=326250&view=log
> NPE when plugins throw certain exceptions
> -----------------------------------------
>
> Key: MNG-1354
> URL: http://jira.codehaus.org/browse/MNG-1354
> Project: Maven 2
> Type: Bug
> Components: maven-core
> Versions: 2.0
> Reporter: Mark Hobson
> Assignee: Brett Porter
>
>
> Regularly see this, although it's entirely obvious why looking at the source:
> java.lang.NullPointerException
> at org.apache.maven.usability.diagnostics.DiagnosisUtils.appendRootCauseIfPresentAndUnique(DiagnosisUtils.java:89)
> at org.apache.maven.usability.diagnostics.ErrorDiagnostics$PuntErrorDiagnoser.diagnose(ErrorDiagnostics.java:132)
> at org.apache.maven.usability.diagnostics.ErrorDiagnostics.diagnose(ErrorDiagnostics.java:104)
> at org.apache.maven.DefaultMaven.logDiagnostics(DefaultMaven.java:693)
> at org.apache.maven.DefaultMaven.logFatal(DefaultMaven.java:627)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:143)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
> 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:585)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Can spend time creating a testcase if it's not immediately obvious.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org