[ 
https://issues.apache.org/jira/browse/SUREFIRE-1884?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17275467#comment-17275467
 ] 

Anjiang Wei commented on SUREFIRE-1884:
---------------------------------------

Another plausible explanation for this bug is that when running the whole test 
suite, all test methods are running inside one JVM, so some prior tests running 
before TransformedMultiValuedMapTest may help setting up Surefire to be in a 
good state.

However, when running TransformedMultiValuedMapTest alone in one JVM, 
Surefire's setup may be incorrect, thus throwing exception.

> Forked JVM Throws an Exception When Running TransformedMultiValuedMapTest 
> from apache/commons-collections
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-1884
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1884
>             Project: Maven Surefire
>          Issue Type: Wish
>          Components: Maven Surefire Plugin, process forking
>    Affects Versions: 2.22.2
>         Environment: The following is the Java / Maven version info:
> openjdk version "1.8.0_252"
> OpenJDK Runtime Environment (build 1.8.0_252-8u252-b09-1~18.04-b09)
> OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)
> --
> Apache Maven 3.6.0
> Maven home: /usr/share/maven
> Java version: 1.8.0_252, vendor: Private Build, runtime: 
> /usr/lib/jvm/java-8-openjdk-amd64/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "4.15.0-20-generic", arch: "amd64", family: "unix
>            Reporter: Anjiang Wei
>            Priority: Major
>         Attachments: Full Stack Trace.txt
>
>   Original Estimate: 72h
>  Remaining Estimate: 72h
>
> Steps to reproduce:
> git clone [https://github.com/apache/commons-collections;]
> cd commons-collections
> git checkout dc01c2583a6d77242862f92b38908d1fc28e90de
> mvnops='-Dlicense.skip -Dcheckstyle.skip -Drat.skip -Denforcer.skip 
> -Danimal.sniffer.skip -Dmaven.javadoc.skip -Dfindbugs.skip -Dwarbucks.skip 
> -Dmodernizer.skip -Dimpsort.skip -Dmdep.analyze.skip -Dpgpverify.skip 
> -Dxml.skip -Ddependency-check.skip=true -Dgpg.skip -fn'
> mvn test-compile $mvnops
> mvn test $mvnops # Running whole test suite works fine
> mvn test -Dtest=TransformedMultiValuedMapTest $mvnops # forked JVM throws an 
> exception # [ERROR] 
> org.apache.maven.surefire.booter.SurefireBooterForkException: There was an 
> error in the forked process
>  
> The full stack trace has been uploaded in the attachment.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to