You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Paul Benedict (JIRA)" <ji...@codehaus.org> on 2009/10/27 07:08:26 UTC

[jira] Created: (MNG-4409) NPE when reporting command line error for non-existent option

NPE when reporting command line error for non-existent option
-------------------------------------------------------------

                 Key: MNG-4409
                 URL: http://jira.codehaus.org/browse/MNG-4409
             Project: Maven 2
          Issue Type: Bug
          Components: Command Line
    Affects Versions: 3.0-alpha-3
            Reporter: Paul Benedict
            Priority: Critical


If I type in a command option that does not exist, this results:
java.lang.NullPointerException
        at org.apache.maven.cli.CLIReportingUtils.showError(CLIReportingUtils.java:194)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:132)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:104)
        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:597)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)

-- 
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

        

[jira] Closed: (MNG-4409) NPE when reporting command line error for non-existent option

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-4409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann closed MNG-4409.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0-alpha-3
         Assignee: Benjamin Bentmann

Fixed in [r830017|http://svn.apache.org/viewvc?view=revision&revision=830017].

> NPE when reporting command line error for non-existent option
> -------------------------------------------------------------
>
>                 Key: MNG-4409
>                 URL: http://jira.codehaus.org/browse/MNG-4409
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Command Line
>    Affects Versions: 3.0-alpha-3
>            Reporter: Paul Benedict
>            Assignee: Benjamin Bentmann
>            Priority: Critical
>             Fix For: 3.0-alpha-3
>
>
> If I type in a command option that does not exist, this results:
> java.lang.NullPointerException
>         at org.apache.maven.cli.CLIReportingUtils.showError(CLIReportingUtils.java:194)
>         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:132)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:104)
>         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:597)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)

-- 
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