You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Michael McCrann <Mi...@macquarie.com> on 2005/11/08 06:14:06 UTC

[m2] NullPointerException running maven package

Hi,

Has anyone seen the NullPointerException, below, before?

I have searched for it in Nabble, but I can't find any references to it.

Michael McCrann

[INFO] [surefire:test]
[INFO] Setting reports dir:
c:\maven_projects\myhome\target\checkout\target/surefire-reports
[INFO]
------------------------------------------------------------------------
----
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
----
---------------------------------------------------
constituent[0]: file:/c:/applications/maven-2.0/lib/commons-cli-1.0.jar
constituent[1]:
file:/c:/applications/maven-2.0/lib/doxia-sink-api-1.0-alpha-4.jar
constituent[2]: file:/c:/applications/maven-2.0/lib/jsch-0.1.23.jar
constituent[3]:
file:/c:/applications/maven-2.0/lib/maven-artifact-2.0-1.jar
constituent[4]:
file:/c:/applications/maven-2.0/lib/maven-artifact-manager-2.0-1.jar
constituent[5]: file:/c:/applications/maven-2.0/lib/maven-core-2.0.jar
constituent[6]:
file:/c:/applications/maven-2.0/lib/maven-error-diagnostics-2.0.jar
constituent[7]: file:/c:/applications/maven-2.0/lib/maven-model-2.0.jar
constituent[8]:
file:/c:/applications/maven-2.0/lib/maven-monitor-2.0.jar
constituent[9]:
file:/c:/applications/maven-2.0/lib/maven-plugin-api-2.0.jar
constituent[10]:
file:/c:/applications/maven-2.0/lib/maven-plugin-descriptor-2.0.jar
constituent[11]:
file:/c:/applications/maven-2.0/lib/maven-plugin-parameter-documenter-2.
0.jar
constituent[12]:
file:/c:/applications/maven-2.0/lib/maven-plugin-registry-2.0.jar
constituent[13]:
file:/c:/applications/maven-2.0/lib/maven-profile-2.0.jar
constituent[14]:
file:/c:/applications/maven-2.0/lib/maven-project-2.0-1.jar
constituent[15]:
file:/c:/applications/maven-2.0/lib/maven-reporting-api-2.0.jar
constituent[16]:
file:/c:/applications/maven-2.0/lib/maven-repository-metadata-2.0.jar
constituent[17]:
file:/c:/applications/maven-2.0/lib/maven-settings-2.0.jar
constituent[18]:
file:/c:/applications/maven-2.0/lib/plexus-interactivity-api-1.0-alpha-4
.jar
constituent[19]:
file:/c:/applications/maven-2.0/lib/wagon-file-1.0-alpha-5.jar
constituent[20]:
file:/c:/applications/maven-2.0/lib/wagon-http-lightweight-1.0-alpha-5.j
ar
constituent[21]:
file:/c:/applications/maven-2.0/lib/wagon-provider-api-1.0-alpha-5.jar
constituent[22]:
file:/c:/applications/maven-2.0/lib/wagon-ssh-1.0-alpha-5.jar
---------------------------------------------------
java.lang.NullPointerException
        at
org.apache.maven.usability.diagnostics.DiagnosisUtils.appendRootCauseIfP
resentAndUnique(DiagnosisUtils.java:8
9)
        at
org.apache.maven.usability.MojoExecutionExceptionDiagnoser.diagnose(Mojo
ExecutionExceptionDiagnoser.java:66)
        at
org.apache.maven.usability.diagnostics.ErrorDiagnostics.diagnose(ErrorDi
agnostics.java:81)
        at
org.apache.maven.DefaultMaven.logDiagnostics(DefaultMaven.java:693)
        at org.apache.maven.DefaultMaven.logError(DefaultMaven.java:640)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:119)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        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)
[INFO]
------------------------------------------------------------------------
----
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
----
[INFO] Total time: 14 seconds
[INFO] Finished at: Tue Nov 08 16:10:05 EST 2005
[INFO] Final Memory: 3M/5M
[INFO]
------------------------------------------------------------------------
----


NOTICE
This e-mail and any attachments are confidential and may contain copyright material of Macquarie Bank or third parties. If you are not the intended recipient of this email you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. Macquarie Bank does not guarantee the integrity of any emails or any attached files. The views or opinions expressed are the author's own and may not reflect the views or opinions of Macquarie Bank.


Re: [m2] NullPointerException running maven package

Posted by Brett Porter <br...@gmail.com>.
Fixed in SVN.

(There is another problem it is trying to report, but the cause was unknown).

- Brett

On 11/8/05, Michael McCrann <Mi...@macquarie.com> wrote:
> Hi,
>
> Has anyone seen the NullPointerException, below, before?
>
> I have searched for it in Nabble, but I can't find any references to it.
>
> Michael McCrann
>
> [INFO] [surefire:test]
> [INFO] Setting reports dir:
> c:\maven_projects\myhome\target\checkout\target/surefire-reports
> [INFO]
> ------------------------------------------------------------------------
> ----
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> ----
> ---------------------------------------------------
> constituent[0]: file:/c:/applications/maven-2.0/lib/commons-cli-1.0.jar
> constituent[1]:
> file:/c:/applications/maven-2.0/lib/doxia-sink-api-1.0-alpha-4.jar
> constituent[2]: file:/c:/applications/maven-2.0/lib/jsch-0.1.23.jar
> constituent[3]:
> file:/c:/applications/maven-2.0/lib/maven-artifact-2.0-1.jar
> constituent[4]:
> file:/c:/applications/maven-2.0/lib/maven-artifact-manager-2.0-1.jar
> constituent[5]: file:/c:/applications/maven-2.0/lib/maven-core-2.0.jar
> constituent[6]:
> file:/c:/applications/maven-2.0/lib/maven-error-diagnostics-2.0.jar
> constituent[7]: file:/c:/applications/maven-2.0/lib/maven-model-2.0.jar
> constituent[8]:
> file:/c:/applications/maven-2.0/lib/maven-monitor-2.0.jar
> constituent[9]:
> file:/c:/applications/maven-2.0/lib/maven-plugin-api-2.0.jar
> constituent[10]:
> file:/c:/applications/maven-2.0/lib/maven-plugin-descriptor-2.0.jar
> constituent[11]:
> file:/c:/applications/maven-2.0/lib/maven-plugin-parameter-documenter-2.
> 0.jar
> constituent[12]:
> file:/c:/applications/maven-2.0/lib/maven-plugin-registry-2.0.jar
> constituent[13]:
> file:/c:/applications/maven-2.0/lib/maven-profile-2.0.jar
> constituent[14]:
> file:/c:/applications/maven-2.0/lib/maven-project-2.0-1.jar
> constituent[15]:
> file:/c:/applications/maven-2.0/lib/maven-reporting-api-2.0.jar
> constituent[16]:
> file:/c:/applications/maven-2.0/lib/maven-repository-metadata-2.0.jar
> constituent[17]:
> file:/c:/applications/maven-2.0/lib/maven-settings-2.0.jar
> constituent[18]:
> file:/c:/applications/maven-2.0/lib/plexus-interactivity-api-1.0-alpha-4
> .jar
> constituent[19]:
> file:/c:/applications/maven-2.0/lib/wagon-file-1.0-alpha-5.jar
> constituent[20]:
> file:/c:/applications/maven-2.0/lib/wagon-http-lightweight-1.0-alpha-5.j
> ar
> constituent[21]:
> file:/c:/applications/maven-2.0/lib/wagon-provider-api-1.0-alpha-5.jar
> constituent[22]:
> file:/c:/applications/maven-2.0/lib/wagon-ssh-1.0-alpha-5.jar
> ---------------------------------------------------
> java.lang.NullPointerException
>         at
> org.apache.maven.usability.diagnostics.DiagnosisUtils.appendRootCauseIfP
> resentAndUnique(DiagnosisUtils.java:8
> 9)
>         at
> org.apache.maven.usability.MojoExecutionExceptionDiagnoser.diagnose(Mojo
> ExecutionExceptionDiagnoser.java:66)
>         at
> org.apache.maven.usability.diagnostics.ErrorDiagnostics.diagnose(ErrorDi
> agnostics.java:81)
>         at
> org.apache.maven.DefaultMaven.logDiagnostics(DefaultMaven.java:693)
>         at org.apache.maven.DefaultMaven.logError(DefaultMaven.java:640)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:119)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         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)
> [INFO]
> ------------------------------------------------------------------------
> ----
> [INFO] BUILD SUCCESSFUL
> [INFO]
> ------------------------------------------------------------------------
> ----
> [INFO] Total time: 14 seconds
> [INFO] Finished at: Tue Nov 08 16:10:05 EST 2005
> [INFO] Final Memory: 3M/5M
> [INFO]
> ------------------------------------------------------------------------
> ----
>
>
> NOTICE
> This e-mail and any attachments are confidential and may contain copyright material of Macquarie Bank or third parties. If you are not the intended recipient of this email you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. Macquarie Bank does not guarantee the integrity of any emails or any attached files. The views or opinions expressed are the author's own and may not reflect the views or opinions of Macquarie Bank.
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org