directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pierre-Arnaud Marcelot" ...@marcelot.net>
Subject NullPointerException when using mvn rat:rat on Studio
Date Fri, 29 Aug 2008 14:46:02 GMT
Hi Felix,

I tried to generate the RAT report on Studio and all I got was a NPE. Is
this the same for you ?

Here's the output:
$ MAVEN_OPTS="-Xmx512m" mvn rat:rat
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Apache Directory Studio
[INFO]   Apache Directory Studio Repository
[INFO]   Apache Directory Studio DSML Parser
[INFO]   Apache Directory Studio Jars
[INFO]   Apache Directory Studio LDIF Parser
[INFO]   Apache Directory Studio Connection Core
[INFO]   Apache Directory Studio LDAP Browser Core
[INFO]   Apache Directory Studio Connection UI
[INFO]   Apache Directory Studio LDAP Browser Common
[INFO]   Apache Directory Studio Value Editors
[INFO]   Apache Directory Studio ACI Item Editor
[INFO]   Apache Directory Studio Schema Editor
[INFO]   Apache Directory Studio Schema Editor Feature
[INFO]   Apache Directory Studio Schema Editor Help
[INFO]   Apache Directory Studio RCP
[INFO]   Apache Directory Studio RCP Feature
[INFO]   Apache Directory Studio RCP Help
[INFO]   Apache Directory Studio LDIF Editor
[INFO]   Apache Directory Studio LDIF Editor Feature
[INFO]   Apache Directory Studio LDIF Editor Help
[INFO]   Apache Directory Studio LDAP Browser UI
[INFO]   Apache Directory Studio LDAP Browser Feature
[INFO]   Apache Directory Studio LDAP Browser Help
[INFO]   Apache Directory Studio Apache DS Configuration
[INFO]   Apache Directory Studio Apache DS Configuration Feature
[INFO]   Apache Directory Studio Apache DS Configuration Help
[INFO]   Apache Directory Studio Apache DS Launcher
[INFO]   Apache Directory Studio Apache DS
[INFO]   Apache Directory Studio Apache DS Help
[INFO]   Apache Directory Studio Apache DS Feature
[INFO]   Apache Directory Studio Core Integration Tests
[INFO]   Apache Directory Studio UI Integration Tests
[INFO]   Apache Directory Studio Update Site
[INFO]   Apache Directory Studio Build
[INFO] Searching repository for plugin with prefix: 'rat'.
[INFO]
----------------------------------------------------------------------------
[INFO] Building Apache Directory Studio
[INFO]    task-segment: [rat:rat]
[INFO]
----------------------------------------------------------------------------
[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [rat:rat]
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] null
[INFO]
------------------------------------------------------------------------
[INFO] Trace
java.lang.NullPointerException
    at
org.codehaus.mojo.rat.RatReportMojo.getRatVersion(RatReportMojo.java:259)
    at org.codehaus.mojo.rat.RatReportMojo.generate(RatReportMojo.java:302)
    at org.codehaus.mojo.rat.RatReportMojo.execute(RatReportMojo.java:217)
    at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
    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)
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 8 seconds
[INFO] Finished at: Fri Aug 29 16:44:16 CEST 2008
[INFO] Final Memory: 19M/34M
[INFO]
------------------------------------------------------------------------

Thanks,
Pierre-Arnaud

Mime
View raw message