You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tibor Digana (Jira)" <ji...@apache.org> on 2020/04/13 23:24:00 UTC

[jira] [Commented] (SUREFIRE-1773) ExecutionException The forked VM terminated without properly saying goodbye. VM crash or System.exit called?

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

Tibor Digana commented on SUREFIRE-1773:
----------------------------------------

[~Tuxiaodong]
I think you have a problem that you use ArgLineFromJacocoUt without property-interpolation in the process arg line.
You have to find out where it is coming from. It may be JAVA_OPTS or your build process and system properties.
If you want to know how to configure the JaCoCo, see out [POM|https://github.com/apache/maven-surefire/blob/master/pom.xml].

>  ExecutionException The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-1773
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1773
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Plugin
>    Affects Versions: 2.22.1
>            Reporter: Tu,Xiaodong
>            Priority: Major
>         Attachments: 2020-04-13T21-43-24_857.dumpstream, FullErrorLog
>
>
> Attempting to run integration tests using maven-failsafe-plugin and get error below.
> {code:java}
> [ERROR] ExecutionException The forked VM terminated without properly saying goodbye. VM crash or System.exit called? [ERROR] Command was /bin/sh -c cd /Users/xiaotu/Documents/WorkCode/modelinsightservice && /Users/xiaotu/Documents/WorkEnviroment/ebay_jdk_1.8.221/1.8.221_mac/jre/bin/java -Djdk.attach.allowAttachSelf -Djava.locale.providers=JRE,SPI '${ArgLineFromJacocoUt}' -Xverify:none -Xmx1024m -XX:MaxMetaspaceSize=512m -jar /Users/xiaotu/Documents/WorkCode/modelinsightservice/target/surefire/surefirebooter7810841987757310542.jar /Users/xiaotu/Documents/WorkCode/modelinsightservice/target/surefire 2020-04-13T21-43-24_857-jvmRun2 surefire5674009295883666539tmp surefire_13303426714213707853tmp [ERROR] Error occurred in starting fork, check output in log [ERROR] Process Exit Code: 1 [ERROR] ExecutionException The forked VM terminated without properly saying goodbye. VM crash or System.exit called? [ERROR] Command was /bin/sh -c cd /Users/xiaotu/Documents/WorkCode/modelinsightservice && /Users/xiaotu/Documents/WorkEnviroment/ebay_jdk_1.8.221/1.8.221_mac/jre/bin/java -Djdk.attach.allowAttachSelf -Djava.locale.providers=JRE,SPI '${ArgLineFromJacocoUt}' -Xverify:none -Xmx1024m -XX:MaxMetaspaceSize=512m -jar /Users/xiaotu/Documents/WorkCode/modelinsightservice/target/surefire/surefirebooter1185519684559162293.jar /Users/xiaotu/Documents/WorkCode/modelinsightservice/target/surefire 2020-04-13T21-43-24_857-jvmRun4 surefire3761879713715389341tmp surefire_28680022230240461764tmp
> {code}
> using maven command :  mvn clean install -P static-check,default-plugins.
> Related maven setting:
>  
> {code:java}
> <build> <pluginManagement> <plugins> <plugin> <groupId>org.sonarsource.scanner.maven</groupId> <artifactId>sonar-maven-plugin</artifactId> <version>3.4.0.905</version> </plugin> </plugins> </pluginManagement> <plugins> <!-- spring boot plugin --> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>${jacoco.version}</version> <executions> <execution> <id>pre-unit-test</id> <goals> <goal>prepare-agent</goal> </goals> <configuration> <!-- Sets the path to the file which contains the execution data. --> <destFile>${project.build.directory}/jacoco-ut.exec</destFile> <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. --> <propertyName>surefireArgLine</propertyName> </configuration> </execution> <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. --> <execution> <id>post-unit-test</id> <phase>test</phase> <goals> <goal>report</goal> </goals> <configuration> <!-- Sets the path to the file which contains the execution data. --> <dataFile>${project.build.directory}/jacoco-ut.exec</dataFile> <!-- Sets the output directory for the code coverage report. --> <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory> </configuration> </execution> <!-- Prepares the property pointing to the JaCoCo runtime agent which is passed as VM argument when Maven the Failsafe plugin is executed. --> <execution> <id>pre-integration-test</id> <phase>pre-integration-test</phase> <goals> <goal>prepare-agent</goal> </goals> <configuration> <!-- Sets the path to the file which contains the execution data. --> <destFile>${project.build.directory}/jacoco-it.exec</destFile> <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. --> <propertyName>failsafeArgLine</propertyName> </configuration> </execution> <!-- Ensures that the code coverage report for integration tests after integration tests have been run. --> <execution> <id>post-integration-test</id> <phase>post-integration-test</phase> <goals> <goal>report</goal> </goals> <configuration> <!-- Sets the path to the file which contains the execution data. --> <dataFile>${project.build.directory}/jacoco-it.exec</dataFile> <!-- Sets the output directory for the code coverage report. --> <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-pmd-plugin</artifactId> <version>3.8</version> <configuration> <rulesets> <ruleset>rulesets/java/ali-comment.xml</ruleset> <ruleset>rulesets/java/ali-concurrent.xml</ruleset> <ruleset>rulesets/java/ali-constant.xml</ruleset> <ruleset>rulesets/java/ali-exception.xml</ruleset> <ruleset>rulesets/java/ali-flowcontrol.xml</ruleset> <ruleset>rulesets/java/ali-naming.xml</ruleset> <ruleset>rulesets/java/ali-oop.xml</ruleset> <ruleset>rulesets/java/ali-orm.xml</ruleset> <ruleset>rulesets/java/ali-other.xml</ruleset> <ruleset>rulesets/java/ali-set.xml</ruleset> </rulesets> <failOnViolation>true</failOnViolation> <printFailingErrors>true</printFailingErrors> <minimumPriority>3</minimumPriority> </configuration> <executions> <execution> <phase>package</phase> <goals> <goal>check</goal> </goals> </execution> </executions> <dependencies> <dependency> <groupId>com.ebay.marketing</groupId> <artifactId>p3c-pmd</artifactId> <version>1.0.0-SNAPSHOT</version> </dependency> </dependencies> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.22.1</version> <configuration> <forkMode>once</forkMode> <forkCount>1.0C</forkCount> <reuseForks>false</reuseForks> <argLine>${surefireArgLine} -Xverify:none -Xmx1024m -XX:MaxMetaspaceSize=512m</argLine> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> <version>2.22.1</version> <executions> <!-- Ensures that both integration-test and verify goals of the Failsafe Maven plugin are executed. --> <execution> <id>integration-tests</id> <goals> <goal>integration-test</goal> <goal>verify</goal> </goals> <configuration> <!-- Sets the VM argument line used when integration tests are run. --> <argLine>${failsafeArgLine}</argLine> <!-- Skips integration tests if the value of skip.integration.tests property is true --> <!-- <skipTests>true</skipTests>--> </configuration> </execution> </executions> </plugin> </plugins> </build>{code}
>  
> Got more details in FullErrorLog and dump file.
> Thanks!



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