That particular bug should have been fixed in the 2.0.1 release of Maven (The NPE in the DiagnosisUtils, I mean). The checkstyle plugin fix has been patched, and I'll apply it within the next day or so, if it hasn't already been applied. However, unless you've configured a pluginRepository pointing at the snapshots repository in your POM, you won't get that particular fix until the checkstyle plugin is released (which also shouldn't be long).

HTH,

john

Deepika.M wrote:
Hi,

   Inorder to get checkstyle report of my project I executed following
command

   C:\>mvn checkstyle:checkstyle

  For this I am getting following exception:

constituent[22]: file:/C:/maven-2.0/bin/../lib/doxia-
sink-api-1.0-alpha-4.jar
---------------------------------------------------
java.lang.NullPointerException
        at
org.apache.maven.usability.diagnostics.DiagnosisUtils.appendRootCause
IfPresentAndUnique(DiagnosisUtils.java:89)
        at
org.apache.maven.usability.diagnostics.ErrorDiagnostics$PuntErrorDiag
noser.diagnose(ErrorDiagnostics.java:132)
        at org.apache.maven.usability.diagnostics.ErrorDiagnostics.diagnose
(Erro
rDiagnostics.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
(DelegatingMethodAcces
sorImpl.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)


I want reason for this exception...

Thanks in advance

-----

Deepika.S


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to