You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Hiram Chirino <hi...@hiramchirino.com> on 2006/03/13 20:57:24 UTC

NPE in Surefire

Hi Everybody,

I was just using the latest deployed 2.1.3-SNAPSHOT version of
surefire and I got this error on the activemq/activemq-jaas module. 
Any idea?


[WARNING] POM for 'directory-asn1:asn1-der:pom:0.3.2' is invalid. It
will be ignored for artifact resolution. Reason: Not a v4.0.0 POM.
[WARNING] POM for 'directory-asn1:asn1-ber:pom:0.3.2' is invalid. It
will be ignored for artifact resolution. Reason: Not a v4.0.0 POM.
[WARNING] POM for 'directory-network:mina:pom:0.7.3' is invalid. It
will be ignored for artifact resolution. Reason: Not a v4.0.0 POM.
[WARNING] POM for 'directory-shared:apache-ldapber-provider:pom:0.9.2'
is invalid. It will be ignored for artifact resolution. Reason: Not a
v4.0.0 POM.
[INFO] snapshot
org.apache.maven.surefire:surefire-booter:1.5.3-SNAPSHOT: checking for
updates from codehaus.snapshots
[INFO] snapshot
org.apache.maven.surefire:surefire-booter:1.5.3-SNAPSHOT: checking for
updates from maven-csharp-plugins
[WARNING] *** CHECKSUM FAILED - Invalid checksum file - RETRYING
[WARNING] *** CHECKSUM FAILED - Invalid checksum file - IGNORING
[INFO] snapshot
org.apache.maven.surefire:surefire-booter:1.5.3-SNAPSHOT: checking for
updates from snapshots
[INFO] snapshot
org.apache.maven.surefire:surefire-booter:1.5.3-SNAPSHOT: checking for
updates from apache.snapshots

[INFO] snapshot org.apache.maven.surefire:surefire:1.5.3-SNAPSHOT:
checking for updates from codehaus.snapshots
[INFO] snapshot org.apache.maven.surefire:surefire:1.5.3-SNAPSHOT:
checking for updates from maven-csharp-plugins
[WARNING] *** CHECKSUM FAILED - Invalid checksum file - RETRYING
[WARNING] *** CHECKSUM FAILED - Invalid checksum file - IGNORING
[INFO] snapshot org.apache.maven.surefire:surefire:1.5.3-SNAPSHOT:
checking for updates from snapshots
[INFO] snapshot org.apache.maven.surefire:surefire:1.5.3-SNAPSHOT:
checking for updates from apache.snapshots
[INFO] [surefire:test]
[INFO] Setting reports dir:
/Users/chirino/sandbox/activemq-4-branch/activemq-jaas/target/surefire-reports
[INFO] ----------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ----------------------------------------------------------------------------
[INFO] null
[INFO] ----------------------------------------------------------------------------
[INFO] Trace
java.lang.NullPointerException
        at java.util.Hashtable.put(Hashtable.java:396)
        at java.util.Properties.setProperty(Properties.java:128)
        at java.lang.System.setProperty(System.java:700)
        at org.apache.maven.test.SurefirePlugin.processSystemProperties(SurefirePlugin.java:408)
        at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:335)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:531)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        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(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: 36 seconds
[INFO] Finished at: Mon Mar 13 14:24:13 EST 2006
[INFO] Final Memory: 6M/18M
[INFO] ----------------------------------------------------------------------------

--
Regards,
Hiram

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: NPE in Surefire

Posted by Hiram Chirino <hi...@hiramchirino.com>.
Thanks!  But I worked around it by removing the system properties that
I was trying to define (the unit test case now defines them.)

Regards,
Hiram

On 3/14/06, Jacek Laskowski <el...@gmail.com> wrote:
> 2006/3/13, Hiram Chirino <hi...@hiramchirino.com>:
>
> > I was just using the latest deployed 2.1.3-SNAPSHOT version of
> > surefire and I got this error on the activemq/activemq-jaas module.
> > Any idea?
> ...
> > java.lang.NullPointerException
> >         at java.util.Hashtable.put(Hashtable.java:396)
> >         at java.util.Properties.setProperty(Properties.java:128)
> >         at java.lang.System.setProperty(System.java:700)
> >         at org.apache.maven.test.SurefirePlugin.processSystemProperties(SurefirePlugin.java:408)
>
> Hi Hiram,
>
> I've seen it a couple of times during the Geronimo build migration to
> M2. It happens whenever not-that-recent version of
> maven-surefire-plugin is used (that's at least is my perception of
> what happens). Make sure you're using
> maven-surefire-plugin-2.1.3-20060228.012944-10.jar as otherwise you
> run across the issue.
>
> It works fine in security module of Geronimo (cf.
> http://svn.apache.org/viewcvs.cgi/*checkout*/geronimo/trunk/modules/security/pom.xml?rev=383234&content-type=text%2Fplain)
>
> You may also need to adjust your plugin repositories.
>
> > Hiram
>
> Jacek
>
> --
> Jacek Laskowski
> http://www.laskowski.org.pl
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>


--
Regards,
Hiram

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: NPE in Surefire

Posted by Jacek Laskowski <el...@gmail.com>.
2006/3/13, Hiram Chirino <hi...@hiramchirino.com>:

> I was just using the latest deployed 2.1.3-SNAPSHOT version of
> surefire and I got this error on the activemq/activemq-jaas module.
> Any idea?
...
> java.lang.NullPointerException
>         at java.util.Hashtable.put(Hashtable.java:396)
>         at java.util.Properties.setProperty(Properties.java:128)
>         at java.lang.System.setProperty(System.java:700)
>         at org.apache.maven.test.SurefirePlugin.processSystemProperties(SurefirePlugin.java:408)

Hi Hiram,

I've seen it a couple of times during the Geronimo build migration to
M2. It happens whenever not-that-recent version of
maven-surefire-plugin is used (that's at least is my perception of
what happens). Make sure you're using
maven-surefire-plugin-2.1.3-20060228.012944-10.jar as otherwise you
run across the issue.

It works fine in security module of Geronimo (cf.
http://svn.apache.org/viewcvs.cgi/*checkout*/geronimo/trunk/modules/security/pom.xml?rev=383234&content-type=text%2Fplain)

You may also need to adjust your plugin repositories.

> Hiram

Jacek

--
Jacek Laskowski
http://www.laskowski.org.pl

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: NPE in Surefire

Posted by Carlos Sanchez <ca...@apache.org>.
i don't see this problem

On 3/14/06, Hiram Chirino <hi...@hiramchirino.com> wrote:
> Hi Everybody,
>
> I was just using the latest deployed 2.1.3-SNAPSHOT version of
> surefire and I got this error on the activemq/activemq-jaas module.
> Any idea?
>
>
> [WARNING] POM for 'directory-asn1:asn1-der:pom:0.3.2' is invalid. It
> will be ignored for artifact resolution. Reason: Not a v4.0.0 POM.
> [WARNING] POM for 'directory-asn1:asn1-ber:pom:0.3.2' is invalid. It
> will be ignored for artifact resolution. Reason: Not a v4.0.0 POM.
> [WARNING] POM for 'directory-network:mina:pom:0.7.3' is invalid. It
> will be ignored for artifact resolution. Reason: Not a v4.0.0 POM.
> [WARNING] POM for 'directory-shared:apache-ldapber-provider:pom:0.9.2'
> is invalid. It will be ignored for artifact resolution. Reason: Not a
> v4.0.0 POM.
> [INFO] snapshot
> org.apache.maven.surefire:surefire-booter:1.5.3-SNAPSHOT: checking for
> updates from codehaus.snapshots
> [INFO] snapshot
> org.apache.maven.surefire:surefire-booter:1.5.3-SNAPSHOT: checking for
> updates from maven-csharp-plugins
> [WARNING] *** CHECKSUM FAILED - Invalid checksum file - RETRYING
> [WARNING] *** CHECKSUM FAILED - Invalid checksum file - IGNORING
> [INFO] snapshot
> org.apache.maven.surefire:surefire-booter:1.5.3-SNAPSHOT: checking for
> updates from snapshots
> [INFO] snapshot
> org.apache.maven.surefire:surefire-booter:1.5.3-SNAPSHOT: checking for
> updates from apache.snapshots
>
> [INFO] snapshot org.apache.maven.surefire:surefire:1.5.3-SNAPSHOT:
> checking for updates from codehaus.snapshots
> [INFO] snapshot org.apache.maven.surefire:surefire:1.5.3-SNAPSHOT:
> checking for updates from maven-csharp-plugins
> [WARNING] *** CHECKSUM FAILED - Invalid checksum file - RETRYING
> [WARNING] *** CHECKSUM FAILED - Invalid checksum file - IGNORING
> [INFO] snapshot org.apache.maven.surefire:surefire:1.5.3-SNAPSHOT:
> checking for updates from snapshots
> [INFO] snapshot org.apache.maven.surefire:surefire:1.5.3-SNAPSHOT:
> checking for updates from apache.snapshots
> [INFO] [surefire:test]
> [INFO] Setting reports dir:
> /Users/chirino/sandbox/activemq-4-branch/activemq-jaas/target/surefire-reports
> [INFO] ----------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ----------------------------------------------------------------------------
> [INFO] null
> [INFO] ----------------------------------------------------------------------------
> [INFO] Trace
> java.lang.NullPointerException
>         at java.util.Hashtable.put(Hashtable.java:396)
>         at java.util.Properties.setProperty(Properties.java:128)
>         at java.lang.System.setProperty(System.java:700)
>         at org.apache.maven.test.SurefirePlugin.processSystemProperties(SurefirePlugin.java:408)
>         at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:335)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:531)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>         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(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: 36 seconds
> [INFO] Finished at: Mon Mar 13 14:24:13 EST 2006
> [INFO] Final Memory: 6M/18M
> [INFO] ----------------------------------------------------------------------------
>
> --
> Regards,
> Hiram
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>


--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
                             -- The Princess Bride

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org