You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michiel Kalkman (JIRA)" <ji...@codehaus.org> on 2011/02/04 09:04:22 UTC
[jira] Created: (SUREFIRE-694) NPE when empty
additionalClasspathElement
NPE when empty additionalClasspathElement
-----------------------------------------
Key: SUREFIRE-694
URL: http://jira.codehaus.org/browse/SUREFIRE-694
Project: Maven Surefire
Issue Type: Bug
Components: JUnit 3.x support
Affects Versions: 2.7.2
Reporter: Michiel Kalkman
Priority: Trivial
Just add to your pom something like:
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.7.2</version>
<configuration>
<additionalClasspathElements>
<additionalClasspathElement> </additionalClasspathElement>
</additionalClasspathElements>
or
<additionalClasspathElement>${abc}</additionalClasspathElement>
where ${abc} does not resolve.
This results in a npe:
[INFO] Trace
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:394)
at java.util.Properties.setProperty(Properties.java:143)
at org.apache.maven.surefire.booter.Classpath.setForkProperties(Classpath.java:139)
at org.apache.maven.surefire.booter.ClasspathConfiguration.setForkProperties(ClasspathConfiguration.java:89)
at org.apache.maven.plugin.surefire.booterclient.BooterSerializer.serialize(BooterSerializer.java:79)
at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:180)
--
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: (SUREFIRE-694) NPE when empty
additionalClasspathElement
Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SUREFIRE-694?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kristian Rosenvold closed SUREFIRE-694.
---------------------------------------
Resolution: Fixed
Fix Version/s: 2.7.3
Assignee: Kristian Rosenvold
Fixed in r1069066
Patch applied with an interesting merge ;) git-svn rocks.
> NPE when empty additionalClasspathElement
> -----------------------------------------
>
> Key: SUREFIRE-694
> URL: http://jira.codehaus.org/browse/SUREFIRE-694
> Project: Maven Surefire
> Issue Type: Bug
> Components: JUnit 3.x support
> Affects Versions: 2.7.2
> Reporter: Michiel Kalkman
> Assignee: Kristian Rosenvold
> Priority: Trivial
> Fix For: 2.7.3
>
> Attachments: SUREFIRE-694.patch
>
>
> Just add to your pom something like:
> <build>
> <plugins>
> <plugin>
> <artifactId>maven-surefire-plugin</artifactId>
> <version>2.7.2</version>
> <configuration>
> <additionalClasspathElements>
> <additionalClasspathElement> </additionalClasspathElement>
> </additionalClasspathElements>
> or
> <additionalClasspathElement>${abc}</additionalClasspathElement>
> where ${abc} does not resolve.
> This results in a npe:
> [INFO] Trace
> java.lang.NullPointerException
> at java.util.Hashtable.put(Hashtable.java:394)
> at java.util.Properties.setProperty(Properties.java:143)
> at org.apache.maven.surefire.booter.Classpath.setForkProperties(Classpath.java:139)
> at org.apache.maven.surefire.booter.ClasspathConfiguration.setForkProperties(ClasspathConfiguration.java:89)
> at org.apache.maven.plugin.surefire.booterclient.BooterSerializer.serialize(BooterSerializer.java:79)
> at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:180)
--
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] Updated: (SUREFIRE-694) NPE when empty
additionalClasspathElement
Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SUREFIRE-694?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kristian Rosenvold updated SUREFIRE-694:
----------------------------------------
Fix Version/s: (was: 2.7.3)
2.8
> NPE when empty additionalClasspathElement
> -----------------------------------------
>
> Key: SUREFIRE-694
> URL: http://jira.codehaus.org/browse/SUREFIRE-694
> Project: Maven Surefire
> Issue Type: Bug
> Components: JUnit 3.x support
> Affects Versions: 2.7.2
> Reporter: Michiel Kalkman
> Assignee: Kristian Rosenvold
> Priority: Trivial
> Fix For: 2.8
>
> Attachments: SUREFIRE-694.patch
>
>
> Just add to your pom something like:
> <build>
> <plugins>
> <plugin>
> <artifactId>maven-surefire-plugin</artifactId>
> <version>2.7.2</version>
> <configuration>
> <additionalClasspathElements>
> <additionalClasspathElement> </additionalClasspathElement>
> </additionalClasspathElements>
> or
> <additionalClasspathElement>${abc}</additionalClasspathElement>
> where ${abc} does not resolve.
> This results in a npe:
> [INFO] Trace
> java.lang.NullPointerException
> at java.util.Hashtable.put(Hashtable.java:394)
> at java.util.Properties.setProperty(Properties.java:143)
> at org.apache.maven.surefire.booter.Classpath.setForkProperties(Classpath.java:139)
> at org.apache.maven.surefire.booter.ClasspathConfiguration.setForkProperties(ClasspathConfiguration.java:89)
> at org.apache.maven.plugin.surefire.booterclient.BooterSerializer.serialize(BooterSerializer.java:79)
> at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:180)
--
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] Updated: (SUREFIRE-694) NPE when empty
additionalClasspathElement
Posted by "Stefan Birkner (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SUREFIRE-694?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Birkner updated SUREFIRE-694:
------------------------------------
Attachment: SUREFIRE-694.patch
With this patch the plugin only logs a warning for empty classpath entries.
> NPE when empty additionalClasspathElement
> -----------------------------------------
>
> Key: SUREFIRE-694
> URL: http://jira.codehaus.org/browse/SUREFIRE-694
> Project: Maven Surefire
> Issue Type: Bug
> Components: JUnit 3.x support
> Affects Versions: 2.7.2
> Reporter: Michiel Kalkman
> Priority: Trivial
> Attachments: SUREFIRE-694.patch
>
>
> Just add to your pom something like:
> <build>
> <plugins>
> <plugin>
> <artifactId>maven-surefire-plugin</artifactId>
> <version>2.7.2</version>
> <configuration>
> <additionalClasspathElements>
> <additionalClasspathElement> </additionalClasspathElement>
> </additionalClasspathElements>
> or
> <additionalClasspathElement>${abc}</additionalClasspathElement>
> where ${abc} does not resolve.
> This results in a npe:
> [INFO] Trace
> java.lang.NullPointerException
> at java.util.Hashtable.put(Hashtable.java:394)
> at java.util.Properties.setProperty(Properties.java:143)
> at org.apache.maven.surefire.booter.Classpath.setForkProperties(Classpath.java:139)
> at org.apache.maven.surefire.booter.ClasspathConfiguration.setForkProperties(ClasspathConfiguration.java:89)
> at org.apache.maven.plugin.surefire.booterclient.BooterSerializer.serialize(BooterSerializer.java:79)
> at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:180)
--
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