[ 
http://jira.codehaus.org/browse/MEXEC-29?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jerome Lacoste closed MEXEC-29.
-------------------------------

         Assignee: Jerome Lacoste
       Resolution: Fixed
    Fix Version/s: 1.1

Committed a fix with unit tests.

Sending        src/main/java/org/codehaus/mojo/exec/ExecJavaMojo.java
Sending        src/test/java/org/codehaus/mojo/exec/ExecJavaMojoTest.java
Adding         src/test/java/org/codehaus/mojo/exec/NoMain.java
Adding         src/test/projects/project12
Adding         src/test/projects/project12/pom.xml
Transmitting file data ....
Committed revision 5073.


> exec:java throws NPE if the mainClass main method has not a correct signature
> -----------------------------------------------------------------------------
>
>                 Key: MEXEC-29
>                 URL: http://jira.codehaus.org/browse/MEXEC-29
>             Project: Maven 2.x Exec Plugin
>          Issue Type: Bug
>            Reporter: Valerio Schiavoni
>            Assignee: Jerome Lacoste
>             Fix For: 1.1
>
>
> If the main method of the mainClass hasn't the correct signature, a NPE is 
> thrown, something like:
> java.lang.NullPointerException
>         at 
> org.apache.maven.usability.MojoExecutionExceptionDiagnoser.diagnose(MojoExecutionExceptionDiagnoser.java:64)
>         at 
> org.apache.maven.usability.diagnostics.ErrorDiagnostics.diagnose(ErrorDiagnostics.java:84)
>         at org.apache.maven.DefaultMaven.logDiagnostics(DefaultMaven.java:711)
>         at org.apache.maven.DefaultMaven.logError(DefaultMaven.java:656)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:131)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
>         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)

-- 
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 from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to