Brett,

Thanks for your reply.

I think that the underlying issue is that the Windows input line is too
long when Maven attempts to execute the Surefire tests.

When I run:

mvn -X verify 

I get the NullPointerException that is masking the real Exception and I
also get a list of  the jar files that are in the classpath.

>From this list, I have created a java command:

java <someClass> -cp <the jars from classpath above>

When I run run the java command from the Windows command line, I get:

The input line is too long.

Have you seen this before? Is there a work-around? 
>From my dim and distant past I seem to remember that there is some way
to increase the Windows input line size.

Michael


_____________________________________________ 
Fixed in SVN.

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

- Brett 
> _____________________________________________ 
> From:         Michael McCrann  
> Sent: Tuesday, 8 November 2005 4:14 PM
> To:   '[email protected]'
> Subject:      [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
> .jar
> 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.appendRootCauseI
> fPresentAndUnique(DiagnosisUtils.java:8
> 9)
>         at
> org.apache.maven.usability.MojoExecutionExceptionDiagnoser.diagnose(Mo
> joExecutionExceptionDiagnoser.java:66)
>         at
> org.apache.maven.usability.diagnostics.ErrorDiagnostics.diagnose(Error
> Diagnostics.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.j
> ava:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
> orImpl.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.

Reply via email to