The forked VM terminated without saying properly goodbye. VM crash or System.exit called











up vote
87
down vote

favorite
15












Please help me to solve this issue. I do not exactly understand what the error in the log means.



[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21.749s
[INFO] Finished at: Thu Apr 24 10:10:20 IST 2014
[INFO] Final Memory: 15M/37M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.15:test (default-test) on project samples.simpleforwarding: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.15:test failed: The forked VM terminated without saying properly goodbye. VM crash or System.exit called ?
[ERROR] Command wascmd.exe /X /C ""C:Program FilesJavajdk1.7.0_55jrebinjava" -Xmx1024m -XX:MaxPermSize=256m -jar E:OpenDayLightcontrolleropendaylightsamplessimpleforwardingtargetsurefiresurefirebooter53410321571238933.jar E:OpenDayLightcontrolleropendaylightsamplessimpleforwardingtargetsurefiresurefire86076271125218001tmp E:OpenDayLightcontrolleropendaylightsamplessimpleforwardingtargetsurefiresurefire_01846991116135903536tmp"
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException









share|improve this question




















  • 4




    Please re-run Maven with -e and -X like the output suggests, and paste what it gives you. Also, are you building your own code or an existing library? If you are building your own code, are you calling System.exit(int) anywhere? If you are building an existing library, where did you get the source?
    – Dylon
    Apr 24 '14 at 4:53












  • @Dylon Edwards: It's an existing source code, OpenDayLight project for SDN implementation.
    – astack
    Apr 24 '14 at 5:13












  • A recent scenario I had that reproduces the issue was when I ran test suites from xml files. In case a xml file defines a class that no longer exists, or refers to the old fully-qualified name of a class has been moved, then the JVM fails to load the class. This results in the strange message you've observed. Looking closer to any stack-trace could help you identify such issues, no need to pass the -e or -X switches in this case.
    – Ivaylo Slavov
    Sep 18 '14 at 7:52












  • @astack what came out to be the solution for this? could you mark an answer or write your own please.
    – nullpointer
    Oct 13 '16 at 15:12















up vote
87
down vote

favorite
15












Please help me to solve this issue. I do not exactly understand what the error in the log means.



[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21.749s
[INFO] Finished at: Thu Apr 24 10:10:20 IST 2014
[INFO] Final Memory: 15M/37M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.15:test (default-test) on project samples.simpleforwarding: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.15:test failed: The forked VM terminated without saying properly goodbye. VM crash or System.exit called ?
[ERROR] Command wascmd.exe /X /C ""C:Program FilesJavajdk1.7.0_55jrebinjava" -Xmx1024m -XX:MaxPermSize=256m -jar E:OpenDayLightcontrolleropendaylightsamplessimpleforwardingtargetsurefiresurefirebooter53410321571238933.jar E:OpenDayLightcontrolleropendaylightsamplessimpleforwardingtargetsurefiresurefire86076271125218001tmp E:OpenDayLightcontrolleropendaylightsamplessimpleforwardingtargetsurefiresurefire_01846991116135903536tmp"
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException









share|improve this question




















  • 4




    Please re-run Maven with -e and -X like the output suggests, and paste what it gives you. Also, are you building your own code or an existing library? If you are building your own code, are you calling System.exit(int) anywhere? If you are building an existing library, where did you get the source?
    – Dylon
    Apr 24 '14 at 4:53












  • @Dylon Edwards: It's an existing source code, OpenDayLight project for SDN implementation.
    – astack
    Apr 24 '14 at 5:13












  • A recent scenario I had that reproduces the issue was when I ran test suites from xml files. In case a xml file defines a class that no longer exists, or refers to the old fully-qualified name of a class has been moved, then the JVM fails to load the class. This results in the strange message you've observed. Looking closer to any stack-trace could help you identify such issues, no need to pass the -e or -X switches in this case.
    – Ivaylo Slavov
    Sep 18 '14 at 7:52












  • @astack what came out to be the solution for this? could you mark an answer or write your own please.
    – nullpointer
    Oct 13 '16 at 15:12













up vote
87
down vote

favorite
15









up vote
87
down vote

favorite
15






15





Please help me to solve this issue. I do not exactly understand what the error in the log means.



[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21.749s
[INFO] Finished at: Thu Apr 24 10:10:20 IST 2014
[INFO] Final Memory: 15M/37M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.15:test (default-test) on project samples.simpleforwarding: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.15:test failed: The forked VM terminated without saying properly goodbye. VM crash or System.exit called ?
[ERROR] Command wascmd.exe /X /C ""C:Program FilesJavajdk1.7.0_55jrebinjava" -Xmx1024m -XX:MaxPermSize=256m -jar E:OpenDayLightcontrolleropendaylightsamplessimpleforwardingtargetsurefiresurefirebooter53410321571238933.jar E:OpenDayLightcontrolleropendaylightsamplessimpleforwardingtargetsurefiresurefire86076271125218001tmp E:OpenDayLightcontrolleropendaylightsamplessimpleforwardingtargetsurefiresurefire_01846991116135903536tmp"
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException









share|improve this question















Please help me to solve this issue. I do not exactly understand what the error in the log means.



[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21.749s
[INFO] Finished at: Thu Apr 24 10:10:20 IST 2014
[INFO] Final Memory: 15M/37M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.15:test (default-test) on project samples.simpleforwarding: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.15:test failed: The forked VM terminated without saying properly goodbye. VM crash or System.exit called ?
[ERROR] Command wascmd.exe /X /C ""C:Program FilesJavajdk1.7.0_55jrebinjava" -Xmx1024m -XX:MaxPermSize=256m -jar E:OpenDayLightcontrolleropendaylightsamplessimpleforwardingtargetsurefiresurefirebooter53410321571238933.jar E:OpenDayLightcontrolleropendaylightsamplessimpleforwardingtargetsurefiresurefire86076271125218001tmp E:OpenDayLightcontrolleropendaylightsamplessimpleforwardingtargetsurefiresurefire_01846991116135903536tmp"
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException






java maven-surefire-plugin opendaylight






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 7 '16 at 8:23









entpnerd

4,57711742




4,57711742










asked Apr 24 '14 at 4:47









astack

68241320




68241320








  • 4




    Please re-run Maven with -e and -X like the output suggests, and paste what it gives you. Also, are you building your own code or an existing library? If you are building your own code, are you calling System.exit(int) anywhere? If you are building an existing library, where did you get the source?
    – Dylon
    Apr 24 '14 at 4:53












  • @Dylon Edwards: It's an existing source code, OpenDayLight project for SDN implementation.
    – astack
    Apr 24 '14 at 5:13












  • A recent scenario I had that reproduces the issue was when I ran test suites from xml files. In case a xml file defines a class that no longer exists, or refers to the old fully-qualified name of a class has been moved, then the JVM fails to load the class. This results in the strange message you've observed. Looking closer to any stack-trace could help you identify such issues, no need to pass the -e or -X switches in this case.
    – Ivaylo Slavov
    Sep 18 '14 at 7:52












  • @astack what came out to be the solution for this? could you mark an answer or write your own please.
    – nullpointer
    Oct 13 '16 at 15:12














  • 4




    Please re-run Maven with -e and -X like the output suggests, and paste what it gives you. Also, are you building your own code or an existing library? If you are building your own code, are you calling System.exit(int) anywhere? If you are building an existing library, where did you get the source?
    – Dylon
    Apr 24 '14 at 4:53












  • @Dylon Edwards: It's an existing source code, OpenDayLight project for SDN implementation.
    – astack
    Apr 24 '14 at 5:13












  • A recent scenario I had that reproduces the issue was when I ran test suites from xml files. In case a xml file defines a class that no longer exists, or refers to the old fully-qualified name of a class has been moved, then the JVM fails to load the class. This results in the strange message you've observed. Looking closer to any stack-trace could help you identify such issues, no need to pass the -e or -X switches in this case.
    – Ivaylo Slavov
    Sep 18 '14 at 7:52












  • @astack what came out to be the solution for this? could you mark an answer or write your own please.
    – nullpointer
    Oct 13 '16 at 15:12








4




4




Please re-run Maven with -e and -X like the output suggests, and paste what it gives you. Also, are you building your own code or an existing library? If you are building your own code, are you calling System.exit(int) anywhere? If you are building an existing library, where did you get the source?
– Dylon
Apr 24 '14 at 4:53






Please re-run Maven with -e and -X like the output suggests, and paste what it gives you. Also, are you building your own code or an existing library? If you are building your own code, are you calling System.exit(int) anywhere? If you are building an existing library, where did you get the source?
– Dylon
Apr 24 '14 at 4:53














@Dylon Edwards: It's an existing source code, OpenDayLight project for SDN implementation.
– astack
Apr 24 '14 at 5:13






@Dylon Edwards: It's an existing source code, OpenDayLight project for SDN implementation.
– astack
Apr 24 '14 at 5:13














A recent scenario I had that reproduces the issue was when I ran test suites from xml files. In case a xml file defines a class that no longer exists, or refers to the old fully-qualified name of a class has been moved, then the JVM fails to load the class. This results in the strange message you've observed. Looking closer to any stack-trace could help you identify such issues, no need to pass the -e or -X switches in this case.
– Ivaylo Slavov
Sep 18 '14 at 7:52






A recent scenario I had that reproduces the issue was when I ran test suites from xml files. In case a xml file defines a class that no longer exists, or refers to the old fully-qualified name of a class has been moved, then the JVM fails to load the class. This results in the strange message you've observed. Looking closer to any stack-trace could help you identify such issues, no need to pass the -e or -X switches in this case.
– Ivaylo Slavov
Sep 18 '14 at 7:52














@astack what came out to be the solution for this? could you mark an answer or write your own please.
– nullpointer
Oct 13 '16 at 15:12




@astack what came out to be the solution for this? could you mark an answer or write your own please.
– nullpointer
Oct 13 '16 at 15:12












35 Answers
35






active

oldest

votes













1 2
next











up vote
54
down vote













I had the same problem and solved by adding:



<argLine>-Xmx1024m -XX:MaxPermSize=256m</argLine>


The whole plugin element is:



<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<forkCount>3</forkCount>
<reuseForks>true</reuseForks>
<argLine>-Xmx1024m -XX:MaxPermSize=256m</argLine>
</configuration>
</plugin>





share|improve this answer



















  • 7




    +1 I used this snippet, verbatim, and it fixed my issue with Travis-CI. We weren't getting this on any of our developer's workstations.
    – Michael Mügge
    Feb 17 '16 at 20:00












  • It worked for me, too, on a machine with insufficient memory resources for the tasks.
    – Mateva
    Nov 7 '17 at 16:21






  • 3




    Above did not fix the issue for me. This issue 'may' occur when one of the dependencies(jar etc) in .m2 is corrupt. Deleting ~/.m2/repository rm -rf ~/.m2/repository and then mvn install resolved it for me.
    – ch4nd4n
    Jun 12 at 12:16






  • 2




    Copy and pasted this into my pom file and it worked like a charm, thanks
    – Flaom
    Jul 12 at 5:08






  • 2




    OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
    – Julien
    Nov 15 at 9:25


















up vote
22
down vote













As of today (10/30/2018), we noticed our builds breaking in Jenkins with this error.



The error is a bit misleading and required looking at the output of the dump in target/surefire-reports/ to see the following error message:



Error: Could not find or load main class org.apache.maven.surefire.booter.ForkedBooter


That lead me to the following SO post which mentions a possible bug in OpenJDK 181: Maven surefire could not find ForkedBooter class



Either of the fixes in that post solve my issue. To be specific, I used either one of these:




  1. Switching from building in the docker container maven:3.5.4-jdk-8 to maven:3.5.4-jdk-8-alpine

  2. Overriding Spring Boot's class loader detailed here: https://stackoverflow.com/a/50661649/1228408






share|improve this answer























  • Thanks. Switching from 1.8.0_161-b12 to 11.0.1+13 helped in our case.
    – Karussell
    Nov 3 at 23:58










  • Thanks a lot! It is solve my problem
    – bigspawn
    Nov 13 at 16:16










  • This is the exact problem I was facing on my Jenkins and it's resolved now. Thanks.
    – Vighnesh Pai
    Nov 14 at 6:26


















up vote
17
down vote













This part of the Surefire FAQ could help you:




Surefire fails with the message "The forked VM terminated without properly saying goodbye"



Surefire does not support tests or any referenced libraries calling System.exit() at any time. If they do so, they are incompatible with surefire and you should probably file an issue with the library/vendor. Alternatively the forked VM could also crash for a number of reasons, which can also make this issue happen. Look for the classical "hs_err*" files indicating VM crashes or examine the log output from running maven when the tests execute. Some "extraordinary" output from crashing processes may be dumped to the console/log. If this happens on a CI environment and only after some time runs there is a fair chance your test suite is leaking some kind of OS-level resource that makes things worse for every run. Regular os-level monitoring tools may give you some indication.







share|improve this answer




























    up vote
    15
    down vote













    I have very similar problem (Maven build and maven-failsafe-plugin - The forked VM terminated without properly saying goodbye) and found three solutions which working for me:



    Problem description



    Problem is with maven plugin maven-surefire-plugin only in version 2.20.1 and 2.21.0. I checked and you use version 2.20.1.



    Solution 1



    Upgrade plugin version to 2.22.0. Add in pom.xml:



    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <version>2.22.0</version>
    </plugin>


    Solution 2



    Downgrade plugin version to 2.20. Add in pom.xml:



    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <version>2.20</version>
    </plugin>


    Solution 3



    Use plugin configuration testFailureIgnore. Add in pom.xml:



    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <configuration>
    <testFailureIgnore>true</testFailureIgnore>
    </configuration>
    </plugin>





    share|improve this answer





















    • Awesome. Solution 1 worked for me this time :)
      – teni
      Oct 11 at 10:31


















    up vote
    6
    down vote













    Was just facing the same problem, java 8 on ubuntu



    then came across https://stackoverflow.com/a/53016532/1676516



    It seems a recent bug in the surefire plugin version 2.22.1 with java 8 https://issues.apache.org/jira/browse/SUREFIRE-1588



    followed the suggested workaround through local mvn settings ~/.m2/settings.xml



    <profiles>
    <profile>
    <id>SUREFIRE-1588</id>
    <activation>
    <activeByDefault>true</activeByDefault>
    </activation>
    <properties>
    <argLine>-Djdk.net.URLClassPath.disableClassPathURLCheck=true</argLine>
    </properties>
    </profile>
    </profiles>





    share|improve this answer





















    • A simple add of a more recente version 3.0.0-M1 (for example) have solve the problem.
      – Galigator
      Nov 29 at 8:36


















    up vote
    5
    down vote













    I had the same issue today and for me the real problem was reported further up in the log with message Cannot use a threadCount parameter less than 1; 1 > 0.
    When adding <threadCount>1</threadCount> in the surefire-plugin config the other error disappeared.



    Full plugin config:

            <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <version>2.18.1</version>
    <dependencies>
    <dependency>
    <groupId>org.apache.maven.surefire</groupId>
    <artifactId>surefire-junit47</artifactId>
    <version>2.18.1</version>
    </dependency>
    <dependency>
    <groupId>org.apache.maven.surefire</groupId>
    <artifactId>surefire-testng</artifactId>
    <version>2.18.1</version>
    </dependency>
    </dependencies>
    <configuration>
    <threadCount>1</threadCount>
    </configuration>
    </plugin>


    ...and yes, I am using both junit and testng in this test framework for backward compatibility reasons.






    share|improve this answer




























      up vote
      4
      down vote













      If anyone is including a custom argLine argument, you must reconsider because it is likely the source of your issues with the memory allocation.



      For Example (I used to have):



      <argLine>XX:MaxPermSize=4096m ${argLine}</argLine>


      Now I use hard specified values:



      <argLine>-Xmx1024m -XX:MaxPermSize=256m</argLine>


      For whatever reason, Applications that integrate with Surefire such as Jacoco, dont request enough memory to coexist with the testing that happens at build time.






      share|improve this answer




























        up vote
        4
        down vote













        Had similar problem when running mvn command with Jacoco plugin on JDK 1.8.0_65



        [INFO]
        A fatal error has been detected by the Java Runtime Environment:

        JRE version: Java(TM) SE Runtime Environment (8.0_65-b17) (build 1.8.0_65-b17).........
        Problematic frame:
        PhaseIdealLoop::build_loop_late_post(Node*)+0x144
        ............
        ............
        [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19:test (default-test) on project

        The forked VM terminated without properly saying goodbye. VM crash or System.exit called?


        There was a bug in JDK https://bugs.openjdk.java.net/browse/JDK-8081379



        And the solution was to run mvn clean install with param -XX:-UseLoopPredicate



        Or just make an update to JDK (I think newer minor version works)






        share|improve this answer




























          up vote
          3
          down vote













          You need to check if your machine is 64 bit or 32bit. If your machine is 32 bit then your memory argument should not exceed 4096, even it should be below 4 GB.
          but if your machine is 64 bit then, install Java 64 bit and provide JAVA_HOME in mvn.bat which point to java 64 bit installation.






          share|improve this answer





















          • Isn't 32 bit java complain about incorrect option?
            – om-nom-nom
            Apr 8 '15 at 11:25


















          up vote
          2
          down vote













          I recently stuck in with this error while building my containerized jar applications with Bamboo:




          org.apache.maven.surefire.booter.SurefireBooterForkException: The forked VM terminated without properly saying goodbye




          After many hours of researching I fixed it. And I thought it would be useful to share my solution here.



          So the error happen every time when bamboo run mvn clean package command for java applications in the docker containers. I am no Maven expert but the trouble was in Surefire and Junit4 plugins included in spring-boot as maven dependency.



          To fix it you need to replace Junit4 for Junit5 and override Surefire plugin in you pom.xml.



          1.Inside spring boot dependency insert exclusion:



          <dependency>
          <groupId>org.springframework.boot</groupId>
          <artifactId>spring-boot-starter-test</artifactId>
          <scope>test</scope>
          <!-- FIX BAMBOO DEPLOY>
          <exclusions>
          <exclusion>
          <groupId>junit</groupId>
          <artifactId>junit</artifactId>
          </exclusion>
          </exclusions>
          <!---->
          </dependency>


          2. Add new Junit5 dependencies:



          <dependency>
          <groupId>org.junit.jupiter</groupId>
          <artifactId>junit-jupiter-api</artifactId>
          <scope>test</scope>
          </dependency>
          <dependency>
          <groupId>org.junit.jupiter</groupId>
          <artifactId>junit-jupiter-engine</artifactId>
          <version>5.1.0</version>
          <scope>test</scope>
          </dependency>
          <dependency>
          <groupId>org.junit.vintage</groupId>
          <artifactId>junit-vintage-engine</artifactId>
          <version>5.1.0</version>
          <scope>test</scope>
          </dependency>
          <dependency>
          <groupId>org.junit.platform</groupId>
          <artifactId>junit-platform-launcher</artifactId>
          <version>1.1.0</version>
          <scope>test</scope>
          </dependency>
          <dependency>
          <groupId>org.junit.platform</groupId>
          <artifactId>junit-platform-runner</artifactId>
          <version>1.1.0</version>
          <scope>test</scope>
          </dependency>
          <dependency>
          <groupId>org.junit.platform</groupId>
          <artifactId>junit-platform-surefire-provider</artifactId>
          <version>1.1.0</version>
          <scope>test</scope>
          </dependency>


          3. Insert new plugin inside plugins section



          <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-failsafe-plugin</artifactId>
          </plugin>
          <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-surefire-plugin</artifactId>
          <version>2.19.1</version>
          <dependencies>
          <dependency>
          <groupId>org.junit.platform</groupId>
          <artifactId>junit-platform-surefire-provider</artifactId>
          <version>1.1.0</version>
          </dependency>
          <dependency>
          <groupId>org.junit.jupiter</groupId>
          <artifactId>junit-jupiter-engine</artifactId>
          <version>5.1.0</version>
          </dependency>
          </dependencies>
          </plugin>


          That's should be enough to repair bamboo builds. Don't forget also transform all Junit4 tests to support Junit5.






          share|improve this answer






























            up vote
            1
            down vote













            I ran into this problem during Jenkins builds on an Ubuntu machine.



            /var/log/syslog reported Out of memory: Kill process 19557 (java) score 207 or sacrifice child.



            I therefore gave the Ubuntu machine more swap space. Since then, the problem is gone.






            share|improve this answer






























              up vote
              1
              down vote













              In my case the issue was related to too long log outputting into IntelliJ IDEA console (OS windows 10).


              Command:



              mvn clean install


              This command solved the issue to me:



              mvn clean install > log-file.log





              share|improve this answer






























                up vote
                1
                down vote













                Setting this in pom.xml worked for me.
                But you should check the documentation for other workarounds
                https://maven.apache.org/surefire/maven-surefire-plugin/examples/class-loading.html



                       <plugin>

                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                <!--these strange settings fixes a chrash and dumpstream from surefire when run from command line
                Caused by: java.lang.ClassNotFoundException: org.apache.maven.surefire.booter.ForkedBooter
                -->
                <useSystemClassLoader>true</useSystemClassLoader>
                <useManifestOnlyJar>false</useManifestOnlyJar>
                </configuration>
                </plugin>





                share|improve this answer




























                  up vote
                  0
                  down vote













                  I experienced this error after a static member variable in my test class called a method to create an object (which was used in test cases throughout the class), and the method caused an exception.



                  // Object created inside test class by calling a static getter.
                  // Exception thrown in getter:
                  private static Object someObject = SomeObject.getObject(...);

                  // ... <Object later used in class>


                  Some fixes include recreating the object inside each test case and catching any exceptions accordingly. Or by initializing the object inside an @BeforeTest method and ensuring that it is built properly.






                  share|improve this answer




























                    up vote
                    0
                    down vote













                    In my case, the issue was related to workspace path which was to much long. So I did a path refactoring and this solved the issue to me.






                    share|improve this answer





















                    • Was that on a windows machine?
                      – hithwen
                      May 17 '16 at 1:42










                    • Yes, it is running in Windows .
                      – thiago-devel
                      May 17 '16 at 19:05










                    • How did you found that?
                      – dzieciou
                      Jun 6 '16 at 5:52


















                    up vote
                    0
                    down vote













                    When I encountered this error it was due to my ulimit for open files (ulimit -n) being too low. It had (somehow) got set to only 256:



                    % ulimit -n
                    256


                    The error went away after I increased the limit:



                    % ulimit -n 3072
                    % ulimit -n
                    3072


                    Your system might not allow the limit to be set so high. e.g., this happens when I try to use a larger number:



                    % ulimit -n 3073
                    ulimit: setrlimit failed: invalid argument


                    Or this might be lower than your existing limit and you could be facing a different root cause.






                    share|improve this answer




























                      up vote
                      0
                      down vote













                      In my case, I forgot to add the dependency in the pom:



                            <dependency>
                      <groupId>org.aspectj</groupId>
                      <artifactId>aspectjweaver</artifactId>
                      <version>1.8.5</version>
                      </dependency>


                      Just make sure that you pick the right version (as for today 1.8.9 is latest)






                      share|improve this answer




























                        up vote
                        0
                        down vote













                        I also experienced this - but in my case I had written a custom hook for cucumber



                        public class MappingFormatter implements gherkin.formatter.Formatter {


                        ...



                        one of my methods was producing a Null pointer exception, which caused the surefire to exit without logging the error.






                        share|improve this answer




























                          up vote
                          0
                          down vote













                          Recently travis killed the execution of a test (without having changed anything related (and successful builds on developer machines!)), thus BUILD FAILURE.
                          One of the causes was this (see @agudian answer):




                          Surefire does not support tests or any referenced libraries calling System.exit()`




                          (since the test class indeed called System.exit(-1)).




                          1. Using a simple return statement instead helps.


                          2. To make travis happy again, I also had to add the surefire parameters (<argLine>) provided by @xiaohuo. (also, I had to remove -XX:MaxPermSize=256m to be able to build on one of my desktops)



                          Doing only one of the two things didn't worked.



                          For more background read When should we call System.exit in Java.






                          share|improve this answer






























                            up vote
                            0
                            down vote













                            This could also happen due to a totally different issue. For example in my case our Jenkins build was failing intermittently while executing tests without any reason.



                            I sifted through our tests to find any occurrence of System.exit() but there was none.



                            After more digging I found out that this could be happening because of a JDK bug which could have caused this regression.



                            JDK-6675699



                            I am still working on making this fix in our builds, will come back and update the thread again.






                            share|improve this answer




























                              up vote
                              0
                              down vote













                              This may occur due to inadequate memory. Make sure you don't have any applications running on background while running mvn. In my case Firefox was running on background with high memory usage.






                              share|improve this answer




























                                up vote
                                0
                                down vote













                                This will work definitely.....



                                Add the below lines in the POM file and give a build.



                                <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-surefire-plugin</artifactId>
                                <version>2.19.1</version>
                                <configuration>
                                <trimStackTrace>false</trimStackTrace>
                                <includes>
                                <include>**/*Test.class</include>
                                </includes>
                                </configuration>
                                </plugin>





                                share|improve this answer




























                                  up vote
                                  0
                                  down vote













                                  Did encounter the same problem as I was trying to compile a maven project set to 1.7 on a windows 10 environment running JAVA = 1.8.



                                  I resolved it by changing the java version from 1.7 to 1.8 as shown below.



                                   <plugin>
                                  <groupId>org.apache.maven.plugins</groupId>
                                  <artifactId>maven-compiler-plugin</artifactId>
                                  <version>3.3</version>
                                  <configuration>
                                  <source>1.8</source>
                                  <target>1.8</target>
                                  </configuration>
                                  </plugin>





                                  share|improve this answer




























                                    up vote
                                    0
                                    down vote













                                    I've met a case when none of the answers provided solved the issue. It was with a legacy application which happens to be using log4j and SLF4J/logback.



                                    The previous situation: clean test builds were running fine when launched from within Eclipse, but when launched in the command line, this error occurred. CI builds on CircleCI ran fine too.



                                    What I did: out of pure guess, is configure a proper logback-test.xml and dial down the verbosity of the logging. Lo and behold, I no longer experienced this error and I can now build the project (as well as the module in which this error was occurring) from the command line.



                                    My point is that the way that the logging frameworks are used or configured may be another explanation.



                                    Was it really a conflict between log4j and logback ? Or was it just that the high volume of logging produced by the tests somehow overflowed a command line buffer? I don't know. It remains a mystery to me.






                                    share|improve this answer




























                                      up vote
                                      0
                                      down vote













                                      My resolution to this issue was to Close the damn chrome browser which was choking my computer's memory 🙄






                                      share|improve this answer




























                                        up vote
                                        0
                                        down vote













                                        You can set java options



                                        SET JAVA_OPTS='-Xmx1024m' XX:+UseLoopPredicate



                                        mvn clean install






                                        share|improve this answer






























                                          up vote
                                          0
                                          down vote













                                          On Windows (OpenJDK11, Maven 3.6.0, SUREFIRE 3.0.0-M1) I got that root cause:



                                          # Created at 2018-11-14T14:28:15.629
                                          OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000006c7500000, 522190848, 0) failed; error='The paging file is too small for this operation to complete' (DOS error/errno=1455)


                                          and resolved by increasing the paging file size, e.g like this.






                                          share|improve this answer




























                                            up vote
                                            0
                                            down vote













                                            tried all above, didn't work. below solution works for me:



                                            <plugin>
                                            <groupId>org.apache.maven.plugins</groupId>
                                            <artifactId>maven-surefire-plugin</artifactId>
                                            <version>2.19.1</version>
                                            <configuration>
                                            <argLine>-Dfile.encoding=UTF-8</argLine>
                                            </configuration>







                                            share|improve this answer




























                                              up vote
                                              0
                                              down vote













                                              Turn off useSystemClassLoader of maven-surefile-plugin should help



                                                      <plugin>
                                              <groupId>org.apache.maven.plugins</groupId>
                                              <artifactId>maven-surefire-plugin</artifactId>
                                              <version>2.22.0</version>
                                              <configuration>
                                              <useSystemClassLoader>false</useSystemClassLoader>
                                              </configuration>
                                              </plugin>





                                              share|improve this answer




























                                                up vote
                                                0
                                                down vote













                                                I had the same issue and solved by using Java 8 from Oracle instead of Java 10 from Openjdk






                                                share|improve this answer

























                                                  1 2
                                                  next



                                                  Your Answer






                                                  StackExchange.ifUsing("editor", function () {
                                                  StackExchange.using("externalEditor", function () {
                                                  StackExchange.using("snippets", function () {
                                                  StackExchange.snippets.init();
                                                  });
                                                  });
                                                  }, "code-snippets");

                                                  StackExchange.ready(function() {
                                                  var channelOptions = {
                                                  tags: "".split(" "),
                                                  id: "1"
                                                  };
                                                  initTagRenderer("".split(" "), "".split(" "), channelOptions);

                                                  StackExchange.using("externalEditor", function() {
                                                  // Have to fire editor after snippets, if snippets enabled
                                                  if (StackExchange.settings.snippets.snippetsEnabled) {
                                                  StackExchange.using("snippets", function() {
                                                  createEditor();
                                                  });
                                                  }
                                                  else {
                                                  createEditor();
                                                  }
                                                  });

                                                  function createEditor() {
                                                  StackExchange.prepareEditor({
                                                  heartbeatType: 'answer',
                                                  convertImagesToLinks: true,
                                                  noModals: true,
                                                  showLowRepImageUploadWarning: true,
                                                  reputationToPostImages: 10,
                                                  bindNavPrevention: true,
                                                  postfix: "",
                                                  imageUploader: {
                                                  brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                                                  contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                                                  allowUrls: true
                                                  },
                                                  onDemand: false,
                                                  discardSelector: ".discard-answer"
                                                  ,immediatelyShowMarkdownHelp:true
                                                  });


                                                  }
                                                  });














                                                  draft saved

                                                  draft discarded


















                                                  StackExchange.ready(
                                                  function () {
                                                  StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f23260057%2fthe-forked-vm-terminated-without-saying-properly-goodbye-vm-crash-or-system-exi%23new-answer', 'question_page');
                                                  }
                                                  );

                                                  Post as a guest















                                                  Required, but never shown




















                                                  StackExchange.ready(function () {
                                                  $("#show-editor-button input, #show-editor-button button").click(function () {
                                                  var showEditor = function() {
                                                  $("#show-editor-button").hide();
                                                  $("#post-form").removeClass("dno");
                                                  StackExchange.editor.finallyInit();
                                                  };

                                                  var useFancy = $(this).data('confirm-use-fancy');
                                                  if(useFancy == 'True') {
                                                  var popupTitle = $(this).data('confirm-fancy-title');
                                                  var popupBody = $(this).data('confirm-fancy-body');
                                                  var popupAccept = $(this).data('confirm-fancy-accept-button');

                                                  $(this).loadPopup({
                                                  url: '/post/self-answer-popup',
                                                  loaded: function(popup) {
                                                  var pTitle = $(popup).find('h2');
                                                  var pBody = $(popup).find('.popup-body');
                                                  var pSubmit = $(popup).find('.popup-submit');

                                                  pTitle.text(popupTitle);
                                                  pBody.html(popupBody);
                                                  pSubmit.val(popupAccept).click(showEditor);
                                                  }
                                                  })
                                                  } else{
                                                  var confirmText = $(this).data('confirm-text');
                                                  if (confirmText ? confirm(confirmText) : true) {
                                                  showEditor();
                                                  }
                                                  }
                                                  });
                                                  });






                                                  35 Answers
                                                  35






                                                  active

                                                  oldest

                                                  votes








                                                  35 Answers
                                                  35






                                                  active

                                                  oldest

                                                  votes









                                                  active

                                                  oldest

                                                  votes






                                                  active

                                                  oldest

                                                  votes








                                                  1 2
                                                  next









                                                  up vote
                                                  54
                                                  down vote













                                                  I had the same problem and solved by adding:



                                                  <argLine>-Xmx1024m -XX:MaxPermSize=256m</argLine>


                                                  The whole plugin element is:



                                                  <plugin>
                                                  <groupId>org.apache.maven.plugins</groupId>
                                                  <artifactId>maven-surefire-plugin</artifactId>
                                                  <configuration>
                                                  <forkCount>3</forkCount>
                                                  <reuseForks>true</reuseForks>
                                                  <argLine>-Xmx1024m -XX:MaxPermSize=256m</argLine>
                                                  </configuration>
                                                  </plugin>





                                                  share|improve this answer



















                                                  • 7




                                                    +1 I used this snippet, verbatim, and it fixed my issue with Travis-CI. We weren't getting this on any of our developer's workstations.
                                                    – Michael Mügge
                                                    Feb 17 '16 at 20:00












                                                  • It worked for me, too, on a machine with insufficient memory resources for the tasks.
                                                    – Mateva
                                                    Nov 7 '17 at 16:21






                                                  • 3




                                                    Above did not fix the issue for me. This issue 'may' occur when one of the dependencies(jar etc) in .m2 is corrupt. Deleting ~/.m2/repository rm -rf ~/.m2/repository and then mvn install resolved it for me.
                                                    – ch4nd4n
                                                    Jun 12 at 12:16






                                                  • 2




                                                    Copy and pasted this into my pom file and it worked like a charm, thanks
                                                    – Flaom
                                                    Jul 12 at 5:08






                                                  • 2




                                                    OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
                                                    – Julien
                                                    Nov 15 at 9:25















                                                  up vote
                                                  54
                                                  down vote













                                                  I had the same problem and solved by adding:



                                                  <argLine>-Xmx1024m -XX:MaxPermSize=256m</argLine>


                                                  The whole plugin element is:



                                                  <plugin>
                                                  <groupId>org.apache.maven.plugins</groupId>
                                                  <artifactId>maven-surefire-plugin</artifactId>
                                                  <configuration>
                                                  <forkCount>3</forkCount>
                                                  <reuseForks>true</reuseForks>
                                                  <argLine>-Xmx1024m -XX:MaxPermSize=256m</argLine>
                                                  </configuration>
                                                  </plugin>





                                                  share|improve this answer



















                                                  • 7




                                                    +1 I used this snippet, verbatim, and it fixed my issue with Travis-CI. We weren't getting this on any of our developer's workstations.
                                                    – Michael Mügge
                                                    Feb 17 '16 at 20:00












                                                  • It worked for me, too, on a machine with insufficient memory resources for the tasks.
                                                    – Mateva
                                                    Nov 7 '17 at 16:21






                                                  • 3




                                                    Above did not fix the issue for me. This issue 'may' occur when one of the dependencies(jar etc) in .m2 is corrupt. Deleting ~/.m2/repository rm -rf ~/.m2/repository and then mvn install resolved it for me.
                                                    – ch4nd4n
                                                    Jun 12 at 12:16






                                                  • 2




                                                    Copy and pasted this into my pom file and it worked like a charm, thanks
                                                    – Flaom
                                                    Jul 12 at 5:08






                                                  • 2




                                                    OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
                                                    – Julien
                                                    Nov 15 at 9:25













                                                  up vote
                                                  54
                                                  down vote










                                                  up vote
                                                  54
                                                  down vote









                                                  I had the same problem and solved by adding:



                                                  <argLine>-Xmx1024m -XX:MaxPermSize=256m</argLine>


                                                  The whole plugin element is:



                                                  <plugin>
                                                  <groupId>org.apache.maven.plugins</groupId>
                                                  <artifactId>maven-surefire-plugin</artifactId>
                                                  <configuration>
                                                  <forkCount>3</forkCount>
                                                  <reuseForks>true</reuseForks>
                                                  <argLine>-Xmx1024m -XX:MaxPermSize=256m</argLine>
                                                  </configuration>
                                                  </plugin>





                                                  share|improve this answer














                                                  I had the same problem and solved by adding:



                                                  <argLine>-Xmx1024m -XX:MaxPermSize=256m</argLine>


                                                  The whole plugin element is:



                                                  <plugin>
                                                  <groupId>org.apache.maven.plugins</groupId>
                                                  <artifactId>maven-surefire-plugin</artifactId>
                                                  <configuration>
                                                  <forkCount>3</forkCount>
                                                  <reuseForks>true</reuseForks>
                                                  <argLine>-Xmx1024m -XX:MaxPermSize=256m</argLine>
                                                  </configuration>
                                                  </plugin>






                                                  share|improve this answer














                                                  share|improve this answer



                                                  share|improve this answer








                                                  edited Dec 7 '16 at 19:55









                                                  entpnerd

                                                  4,57711742




                                                  4,57711742










                                                  answered Nov 17 '15 at 13:12









                                                  xiaohuo

                                                  67258




                                                  67258








                                                  • 7




                                                    +1 I used this snippet, verbatim, and it fixed my issue with Travis-CI. We weren't getting this on any of our developer's workstations.
                                                    – Michael Mügge
                                                    Feb 17 '16 at 20:00












                                                  • It worked for me, too, on a machine with insufficient memory resources for the tasks.
                                                    – Mateva
                                                    Nov 7 '17 at 16:21






                                                  • 3




                                                    Above did not fix the issue for me. This issue 'may' occur when one of the dependencies(jar etc) in .m2 is corrupt. Deleting ~/.m2/repository rm -rf ~/.m2/repository and then mvn install resolved it for me.
                                                    – ch4nd4n
                                                    Jun 12 at 12:16






                                                  • 2




                                                    Copy and pasted this into my pom file and it worked like a charm, thanks
                                                    – Flaom
                                                    Jul 12 at 5:08






                                                  • 2




                                                    OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
                                                    – Julien
                                                    Nov 15 at 9:25














                                                  • 7




                                                    +1 I used this snippet, verbatim, and it fixed my issue with Travis-CI. We weren't getting this on any of our developer's workstations.
                                                    – Michael Mügge
                                                    Feb 17 '16 at 20:00












                                                  • It worked for me, too, on a machine with insufficient memory resources for the tasks.
                                                    – Mateva
                                                    Nov 7 '17 at 16:21






                                                  • 3




                                                    Above did not fix the issue for me. This issue 'may' occur when one of the dependencies(jar etc) in .m2 is corrupt. Deleting ~/.m2/repository rm -rf ~/.m2/repository and then mvn install resolved it for me.
                                                    – ch4nd4n
                                                    Jun 12 at 12:16






                                                  • 2




                                                    Copy and pasted this into my pom file and it worked like a charm, thanks
                                                    – Flaom
                                                    Jul 12 at 5:08






                                                  • 2




                                                    OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
                                                    – Julien
                                                    Nov 15 at 9:25








                                                  7




                                                  7




                                                  +1 I used this snippet, verbatim, and it fixed my issue with Travis-CI. We weren't getting this on any of our developer's workstations.
                                                  – Michael Mügge
                                                  Feb 17 '16 at 20:00






                                                  +1 I used this snippet, verbatim, and it fixed my issue with Travis-CI. We weren't getting this on any of our developer's workstations.
                                                  – Michael Mügge
                                                  Feb 17 '16 at 20:00














                                                  It worked for me, too, on a machine with insufficient memory resources for the tasks.
                                                  – Mateva
                                                  Nov 7 '17 at 16:21




                                                  It worked for me, too, on a machine with insufficient memory resources for the tasks.
                                                  – Mateva
                                                  Nov 7 '17 at 16:21




                                                  3




                                                  3




                                                  Above did not fix the issue for me. This issue 'may' occur when one of the dependencies(jar etc) in .m2 is corrupt. Deleting ~/.m2/repository rm -rf ~/.m2/repository and then mvn install resolved it for me.
                                                  – ch4nd4n
                                                  Jun 12 at 12:16




                                                  Above did not fix the issue for me. This issue 'may' occur when one of the dependencies(jar etc) in .m2 is corrupt. Deleting ~/.m2/repository rm -rf ~/.m2/repository and then mvn install resolved it for me.
                                                  – ch4nd4n
                                                  Jun 12 at 12:16




                                                  2




                                                  2




                                                  Copy and pasted this into my pom file and it worked like a charm, thanks
                                                  – Flaom
                                                  Jul 12 at 5:08




                                                  Copy and pasted this into my pom file and it worked like a charm, thanks
                                                  – Flaom
                                                  Jul 12 at 5:08




                                                  2




                                                  2




                                                  OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
                                                  – Julien
                                                  Nov 15 at 9:25




                                                  OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
                                                  – Julien
                                                  Nov 15 at 9:25












                                                  up vote
                                                  22
                                                  down vote













                                                  As of today (10/30/2018), we noticed our builds breaking in Jenkins with this error.



                                                  The error is a bit misleading and required looking at the output of the dump in target/surefire-reports/ to see the following error message:



                                                  Error: Could not find or load main class org.apache.maven.surefire.booter.ForkedBooter


                                                  That lead me to the following SO post which mentions a possible bug in OpenJDK 181: Maven surefire could not find ForkedBooter class



                                                  Either of the fixes in that post solve my issue. To be specific, I used either one of these:




                                                  1. Switching from building in the docker container maven:3.5.4-jdk-8 to maven:3.5.4-jdk-8-alpine

                                                  2. Overriding Spring Boot's class loader detailed here: https://stackoverflow.com/a/50661649/1228408






                                                  share|improve this answer























                                                  • Thanks. Switching from 1.8.0_161-b12 to 11.0.1+13 helped in our case.
                                                    – Karussell
                                                    Nov 3 at 23:58










                                                  • Thanks a lot! It is solve my problem
                                                    – bigspawn
                                                    Nov 13 at 16:16










                                                  • This is the exact problem I was facing on my Jenkins and it's resolved now. Thanks.
                                                    – Vighnesh Pai
                                                    Nov 14 at 6:26















                                                  up vote
                                                  22
                                                  down vote













                                                  As of today (10/30/2018), we noticed our builds breaking in Jenkins with this error.



                                                  The error is a bit misleading and required looking at the output of the dump in target/surefire-reports/ to see the following error message:



                                                  Error: Could not find or load main class org.apache.maven.surefire.booter.ForkedBooter


                                                  That lead me to the following SO post which mentions a possible bug in OpenJDK 181: Maven surefire could not find ForkedBooter class



                                                  Either of the fixes in that post solve my issue. To be specific, I used either one of these:




                                                  1. Switching from building in the docker container maven:3.5.4-jdk-8 to maven:3.5.4-jdk-8-alpine

                                                  2. Overriding Spring Boot's class loader detailed here: https://stackoverflow.com/a/50661649/1228408






                                                  share|improve this answer























                                                  • Thanks. Switching from 1.8.0_161-b12 to 11.0.1+13 helped in our case.
                                                    – Karussell
                                                    Nov 3 at 23:58










                                                  • Thanks a lot! It is solve my problem
                                                    – bigspawn
                                                    Nov 13 at 16:16










                                                  • This is the exact problem I was facing on my Jenkins and it's resolved now. Thanks.
                                                    – Vighnesh Pai
                                                    Nov 14 at 6:26













                                                  up vote
                                                  22
                                                  down vote










                                                  up vote
                                                  22
                                                  down vote









                                                  As of today (10/30/2018), we noticed our builds breaking in Jenkins with this error.



                                                  The error is a bit misleading and required looking at the output of the dump in target/surefire-reports/ to see the following error message:



                                                  Error: Could not find or load main class org.apache.maven.surefire.booter.ForkedBooter


                                                  That lead me to the following SO post which mentions a possible bug in OpenJDK 181: Maven surefire could not find ForkedBooter class



                                                  Either of the fixes in that post solve my issue. To be specific, I used either one of these:




                                                  1. Switching from building in the docker container maven:3.5.4-jdk-8 to maven:3.5.4-jdk-8-alpine

                                                  2. Overriding Spring Boot's class loader detailed here: https://stackoverflow.com/a/50661649/1228408






                                                  share|improve this answer














                                                  As of today (10/30/2018), we noticed our builds breaking in Jenkins with this error.



                                                  The error is a bit misleading and required looking at the output of the dump in target/surefire-reports/ to see the following error message:



                                                  Error: Could not find or load main class org.apache.maven.surefire.booter.ForkedBooter


                                                  That lead me to the following SO post which mentions a possible bug in OpenJDK 181: Maven surefire could not find ForkedBooter class



                                                  Either of the fixes in that post solve my issue. To be specific, I used either one of these:




                                                  1. Switching from building in the docker container maven:3.5.4-jdk-8 to maven:3.5.4-jdk-8-alpine

                                                  2. Overriding Spring Boot's class loader detailed here: https://stackoverflow.com/a/50661649/1228408







                                                  share|improve this answer














                                                  share|improve this answer



                                                  share|improve this answer








                                                  edited Oct 30 at 18:30

























                                                  answered Oct 30 at 18:24









                                                  majikman

                                                  537513




                                                  537513












                                                  • Thanks. Switching from 1.8.0_161-b12 to 11.0.1+13 helped in our case.
                                                    – Karussell
                                                    Nov 3 at 23:58










                                                  • Thanks a lot! It is solve my problem
                                                    – bigspawn
                                                    Nov 13 at 16:16










                                                  • This is the exact problem I was facing on my Jenkins and it's resolved now. Thanks.
                                                    – Vighnesh Pai
                                                    Nov 14 at 6:26


















                                                  • Thanks. Switching from 1.8.0_161-b12 to 11.0.1+13 helped in our case.
                                                    – Karussell
                                                    Nov 3 at 23:58










                                                  • Thanks a lot! It is solve my problem
                                                    – bigspawn
                                                    Nov 13 at 16:16










                                                  • This is the exact problem I was facing on my Jenkins and it's resolved now. Thanks.
                                                    – Vighnesh Pai
                                                    Nov 14 at 6:26
















                                                  Thanks. Switching from 1.8.0_161-b12 to 11.0.1+13 helped in our case.
                                                  – Karussell
                                                  Nov 3 at 23:58




                                                  Thanks. Switching from 1.8.0_161-b12 to 11.0.1+13 helped in our case.
                                                  – Karussell
                                                  Nov 3 at 23:58












                                                  Thanks a lot! It is solve my problem
                                                  – bigspawn
                                                  Nov 13 at 16:16




                                                  Thanks a lot! It is solve my problem
                                                  – bigspawn
                                                  Nov 13 at 16:16












                                                  This is the exact problem I was facing on my Jenkins and it's resolved now. Thanks.
                                                  – Vighnesh Pai
                                                  Nov 14 at 6:26




                                                  This is the exact problem I was facing on my Jenkins and it's resolved now. Thanks.
                                                  – Vighnesh Pai
                                                  Nov 14 at 6:26










                                                  up vote
                                                  17
                                                  down vote













                                                  This part of the Surefire FAQ could help you:




                                                  Surefire fails with the message "The forked VM terminated without properly saying goodbye"



                                                  Surefire does not support tests or any referenced libraries calling System.exit() at any time. If they do so, they are incompatible with surefire and you should probably file an issue with the library/vendor. Alternatively the forked VM could also crash for a number of reasons, which can also make this issue happen. Look for the classical "hs_err*" files indicating VM crashes or examine the log output from running maven when the tests execute. Some "extraordinary" output from crashing processes may be dumped to the console/log. If this happens on a CI environment and only after some time runs there is a fair chance your test suite is leaking some kind of OS-level resource that makes things worse for every run. Regular os-level monitoring tools may give you some indication.







                                                  share|improve this answer

























                                                    up vote
                                                    17
                                                    down vote













                                                    This part of the Surefire FAQ could help you:




                                                    Surefire fails with the message "The forked VM terminated without properly saying goodbye"



                                                    Surefire does not support tests or any referenced libraries calling System.exit() at any time. If they do so, they are incompatible with surefire and you should probably file an issue with the library/vendor. Alternatively the forked VM could also crash for a number of reasons, which can also make this issue happen. Look for the classical "hs_err*" files indicating VM crashes or examine the log output from running maven when the tests execute. Some "extraordinary" output from crashing processes may be dumped to the console/log. If this happens on a CI environment and only after some time runs there is a fair chance your test suite is leaking some kind of OS-level resource that makes things worse for every run. Regular os-level monitoring tools may give you some indication.







                                                    share|improve this answer























                                                      up vote
                                                      17
                                                      down vote










                                                      up vote
                                                      17
                                                      down vote









                                                      This part of the Surefire FAQ could help you:




                                                      Surefire fails with the message "The forked VM terminated without properly saying goodbye"



                                                      Surefire does not support tests or any referenced libraries calling System.exit() at any time. If they do so, they are incompatible with surefire and you should probably file an issue with the library/vendor. Alternatively the forked VM could also crash for a number of reasons, which can also make this issue happen. Look for the classical "hs_err*" files indicating VM crashes or examine the log output from running maven when the tests execute. Some "extraordinary" output from crashing processes may be dumped to the console/log. If this happens on a CI environment and only after some time runs there is a fair chance your test suite is leaking some kind of OS-level resource that makes things worse for every run. Regular os-level monitoring tools may give you some indication.







                                                      share|improve this answer












                                                      This part of the Surefire FAQ could help you:




                                                      Surefire fails with the message "The forked VM terminated without properly saying goodbye"



                                                      Surefire does not support tests or any referenced libraries calling System.exit() at any time. If they do so, they are incompatible with surefire and you should probably file an issue with the library/vendor. Alternatively the forked VM could also crash for a number of reasons, which can also make this issue happen. Look for the classical "hs_err*" files indicating VM crashes or examine the log output from running maven when the tests execute. Some "extraordinary" output from crashing processes may be dumped to the console/log. If this happens on a CI environment and only after some time runs there is a fair chance your test suite is leaking some kind of OS-level resource that makes things worse for every run. Regular os-level monitoring tools may give you some indication.








                                                      share|improve this answer












                                                      share|improve this answer



                                                      share|improve this answer










                                                      answered Jun 2 '14 at 19:04









                                                      agudian

                                                      27715




                                                      27715






















                                                          up vote
                                                          15
                                                          down vote













                                                          I have very similar problem (Maven build and maven-failsafe-plugin - The forked VM terminated without properly saying goodbye) and found three solutions which working for me:



                                                          Problem description



                                                          Problem is with maven plugin maven-surefire-plugin only in version 2.20.1 and 2.21.0. I checked and you use version 2.20.1.



                                                          Solution 1



                                                          Upgrade plugin version to 2.22.0. Add in pom.xml:



                                                          <plugin>
                                                          <groupId>org.apache.maven.plugins</groupId>
                                                          <artifactId>maven-surefire-plugin</artifactId>
                                                          <version>2.22.0</version>
                                                          </plugin>


                                                          Solution 2



                                                          Downgrade plugin version to 2.20. Add in pom.xml:



                                                          <plugin>
                                                          <groupId>org.apache.maven.plugins</groupId>
                                                          <artifactId>maven-surefire-plugin</artifactId>
                                                          <version>2.20</version>
                                                          </plugin>


                                                          Solution 3



                                                          Use plugin configuration testFailureIgnore. Add in pom.xml:



                                                          <plugin>
                                                          <groupId>org.apache.maven.plugins</groupId>
                                                          <artifactId>maven-surefire-plugin</artifactId>
                                                          <configuration>
                                                          <testFailureIgnore>true</testFailureIgnore>
                                                          </configuration>
                                                          </plugin>





                                                          share|improve this answer





















                                                          • Awesome. Solution 1 worked for me this time :)
                                                            – teni
                                                            Oct 11 at 10:31















                                                          up vote
                                                          15
                                                          down vote













                                                          I have very similar problem (Maven build and maven-failsafe-plugin - The forked VM terminated without properly saying goodbye) and found three solutions which working for me:



                                                          Problem description



                                                          Problem is with maven plugin maven-surefire-plugin only in version 2.20.1 and 2.21.0. I checked and you use version 2.20.1.



                                                          Solution 1



                                                          Upgrade plugin version to 2.22.0. Add in pom.xml:



                                                          <plugin>
                                                          <groupId>org.apache.maven.plugins</groupId>
                                                          <artifactId>maven-surefire-plugin</artifactId>
                                                          <version>2.22.0</version>
                                                          </plugin>


                                                          Solution 2



                                                          Downgrade plugin version to 2.20. Add in pom.xml:



                                                          <plugin>
                                                          <groupId>org.apache.maven.plugins</groupId>
                                                          <artifactId>maven-surefire-plugin</artifactId>
                                                          <version>2.20</version>
                                                          </plugin>


                                                          Solution 3



                                                          Use plugin configuration testFailureIgnore. Add in pom.xml:



                                                          <plugin>
                                                          <groupId>org.apache.maven.plugins</groupId>
                                                          <artifactId>maven-surefire-plugin</artifactId>
                                                          <configuration>
                                                          <testFailureIgnore>true</testFailureIgnore>
                                                          </configuration>
                                                          </plugin>





                                                          share|improve this answer





















                                                          • Awesome. Solution 1 worked for me this time :)
                                                            – teni
                                                            Oct 11 at 10:31













                                                          up vote
                                                          15
                                                          down vote










                                                          up vote
                                                          15
                                                          down vote









                                                          I have very similar problem (Maven build and maven-failsafe-plugin - The forked VM terminated without properly saying goodbye) and found three solutions which working for me:



                                                          Problem description



                                                          Problem is with maven plugin maven-surefire-plugin only in version 2.20.1 and 2.21.0. I checked and you use version 2.20.1.



                                                          Solution 1



                                                          Upgrade plugin version to 2.22.0. Add in pom.xml:



                                                          <plugin>
                                                          <groupId>org.apache.maven.plugins</groupId>
                                                          <artifactId>maven-surefire-plugin</artifactId>
                                                          <version>2.22.0</version>
                                                          </plugin>


                                                          Solution 2



                                                          Downgrade plugin version to 2.20. Add in pom.xml:



                                                          <plugin>
                                                          <groupId>org.apache.maven.plugins</groupId>
                                                          <artifactId>maven-surefire-plugin</artifactId>
                                                          <version>2.20</version>
                                                          </plugin>


                                                          Solution 3



                                                          Use plugin configuration testFailureIgnore. Add in pom.xml:



                                                          <plugin>
                                                          <groupId>org.apache.maven.plugins</groupId>
                                                          <artifactId>maven-surefire-plugin</artifactId>
                                                          <configuration>
                                                          <testFailureIgnore>true</testFailureIgnore>
                                                          </configuration>
                                                          </plugin>





                                                          share|improve this answer












                                                          I have very similar problem (Maven build and maven-failsafe-plugin - The forked VM terminated without properly saying goodbye) and found three solutions which working for me:



                                                          Problem description



                                                          Problem is with maven plugin maven-surefire-plugin only in version 2.20.1 and 2.21.0. I checked and you use version 2.20.1.



                                                          Solution 1



                                                          Upgrade plugin version to 2.22.0. Add in pom.xml:



                                                          <plugin>
                                                          <groupId>org.apache.maven.plugins</groupId>
                                                          <artifactId>maven-surefire-plugin</artifactId>
                                                          <version>2.22.0</version>
                                                          </plugin>


                                                          Solution 2



                                                          Downgrade plugin version to 2.20. Add in pom.xml:



                                                          <plugin>
                                                          <groupId>org.apache.maven.plugins</groupId>
                                                          <artifactId>maven-surefire-plugin</artifactId>
                                                          <version>2.20</version>
                                                          </plugin>


                                                          Solution 3



                                                          Use plugin configuration testFailureIgnore. Add in pom.xml:



                                                          <plugin>
                                                          <groupId>org.apache.maven.plugins</groupId>
                                                          <artifactId>maven-surefire-plugin</artifactId>
                                                          <configuration>
                                                          <testFailureIgnore>true</testFailureIgnore>
                                                          </configuration>
                                                          </plugin>






                                                          share|improve this answer












                                                          share|improve this answer



                                                          share|improve this answer










                                                          answered Jun 29 at 10:33









                                                          Michał Orliński

                                                          501710




                                                          501710












                                                          • Awesome. Solution 1 worked for me this time :)
                                                            – teni
                                                            Oct 11 at 10:31


















                                                          • Awesome. Solution 1 worked for me this time :)
                                                            – teni
                                                            Oct 11 at 10:31
















                                                          Awesome. Solution 1 worked for me this time :)
                                                          – teni
                                                          Oct 11 at 10:31




                                                          Awesome. Solution 1 worked for me this time :)
                                                          – teni
                                                          Oct 11 at 10:31










                                                          up vote
                                                          6
                                                          down vote













                                                          Was just facing the same problem, java 8 on ubuntu



                                                          then came across https://stackoverflow.com/a/53016532/1676516



                                                          It seems a recent bug in the surefire plugin version 2.22.1 with java 8 https://issues.apache.org/jira/browse/SUREFIRE-1588



                                                          followed the suggested workaround through local mvn settings ~/.m2/settings.xml



                                                          <profiles>
                                                          <profile>
                                                          <id>SUREFIRE-1588</id>
                                                          <activation>
                                                          <activeByDefault>true</activeByDefault>
                                                          </activation>
                                                          <properties>
                                                          <argLine>-Djdk.net.URLClassPath.disableClassPathURLCheck=true</argLine>
                                                          </properties>
                                                          </profile>
                                                          </profiles>





                                                          share|improve this answer





















                                                          • A simple add of a more recente version 3.0.0-M1 (for example) have solve the problem.
                                                            – Galigator
                                                            Nov 29 at 8:36















                                                          up vote
                                                          6
                                                          down vote













                                                          Was just facing the same problem, java 8 on ubuntu



                                                          then came across https://stackoverflow.com/a/53016532/1676516



                                                          It seems a recent bug in the surefire plugin version 2.22.1 with java 8 https://issues.apache.org/jira/browse/SUREFIRE-1588



                                                          followed the suggested workaround through local mvn settings ~/.m2/settings.xml



                                                          <profiles>
                                                          <profile>
                                                          <id>SUREFIRE-1588</id>
                                                          <activation>
                                                          <activeByDefault>true</activeByDefault>
                                                          </activation>
                                                          <properties>
                                                          <argLine>-Djdk.net.URLClassPath.disableClassPathURLCheck=true</argLine>
                                                          </properties>
                                                          </profile>
                                                          </profiles>





                                                          share|improve this answer





















                                                          • A simple add of a more recente version 3.0.0-M1 (for example) have solve the problem.
                                                            – Galigator
                                                            Nov 29 at 8:36













                                                          up vote
                                                          6
                                                          down vote










                                                          up vote
                                                          6
                                                          down vote









                                                          Was just facing the same problem, java 8 on ubuntu



                                                          then came across https://stackoverflow.com/a/53016532/1676516



                                                          It seems a recent bug in the surefire plugin version 2.22.1 with java 8 https://issues.apache.org/jira/browse/SUREFIRE-1588



                                                          followed the suggested workaround through local mvn settings ~/.m2/settings.xml



                                                          <profiles>
                                                          <profile>
                                                          <id>SUREFIRE-1588</id>
                                                          <activation>
                                                          <activeByDefault>true</activeByDefault>
                                                          </activation>
                                                          <properties>
                                                          <argLine>-Djdk.net.URLClassPath.disableClassPathURLCheck=true</argLine>
                                                          </properties>
                                                          </profile>
                                                          </profiles>





                                                          share|improve this answer












                                                          Was just facing the same problem, java 8 on ubuntu



                                                          then came across https://stackoverflow.com/a/53016532/1676516



                                                          It seems a recent bug in the surefire plugin version 2.22.1 with java 8 https://issues.apache.org/jira/browse/SUREFIRE-1588



                                                          followed the suggested workaround through local mvn settings ~/.m2/settings.xml



                                                          <profiles>
                                                          <profile>
                                                          <id>SUREFIRE-1588</id>
                                                          <activation>
                                                          <activeByDefault>true</activeByDefault>
                                                          </activation>
                                                          <properties>
                                                          <argLine>-Djdk.net.URLClassPath.disableClassPathURLCheck=true</argLine>
                                                          </properties>
                                                          </profile>
                                                          </profiles>






                                                          share|improve this answer












                                                          share|improve this answer



                                                          share|improve this answer










                                                          answered Nov 5 at 7:06









                                                          Mahmoud Said

                                                          12117




                                                          12117












                                                          • A simple add of a more recente version 3.0.0-M1 (for example) have solve the problem.
                                                            – Galigator
                                                            Nov 29 at 8:36


















                                                          • A simple add of a more recente version 3.0.0-M1 (for example) have solve the problem.
                                                            – Galigator
                                                            Nov 29 at 8:36
















                                                          A simple add of a more recente version 3.0.0-M1 (for example) have solve the problem.
                                                          – Galigator
                                                          Nov 29 at 8:36




                                                          A simple add of a more recente version 3.0.0-M1 (for example) have solve the problem.
                                                          – Galigator
                                                          Nov 29 at 8:36










                                                          up vote
                                                          5
                                                          down vote













                                                          I had the same issue today and for me the real problem was reported further up in the log with message Cannot use a threadCount parameter less than 1; 1 > 0.
                                                          When adding <threadCount>1</threadCount> in the surefire-plugin config the other error disappeared.



                                                          Full plugin config:

                                                                  <plugin>
                                                          <groupId>org.apache.maven.plugins</groupId>
                                                          <artifactId>maven-surefire-plugin</artifactId>
                                                          <version>2.18.1</version>
                                                          <dependencies>
                                                          <dependency>
                                                          <groupId>org.apache.maven.surefire</groupId>
                                                          <artifactId>surefire-junit47</artifactId>
                                                          <version>2.18.1</version>
                                                          </dependency>
                                                          <dependency>
                                                          <groupId>org.apache.maven.surefire</groupId>
                                                          <artifactId>surefire-testng</artifactId>
                                                          <version>2.18.1</version>
                                                          </dependency>
                                                          </dependencies>
                                                          <configuration>
                                                          <threadCount>1</threadCount>
                                                          </configuration>
                                                          </plugin>


                                                          ...and yes, I am using both junit and testng in this test framework for backward compatibility reasons.






                                                          share|improve this answer

























                                                            up vote
                                                            5
                                                            down vote













                                                            I had the same issue today and for me the real problem was reported further up in the log with message Cannot use a threadCount parameter less than 1; 1 > 0.
                                                            When adding <threadCount>1</threadCount> in the surefire-plugin config the other error disappeared.



                                                            Full plugin config:

                                                                    <plugin>
                                                            <groupId>org.apache.maven.plugins</groupId>
                                                            <artifactId>maven-surefire-plugin</artifactId>
                                                            <version>2.18.1</version>
                                                            <dependencies>
                                                            <dependency>
                                                            <groupId>org.apache.maven.surefire</groupId>
                                                            <artifactId>surefire-junit47</artifactId>
                                                            <version>2.18.1</version>
                                                            </dependency>
                                                            <dependency>
                                                            <groupId>org.apache.maven.surefire</groupId>
                                                            <artifactId>surefire-testng</artifactId>
                                                            <version>2.18.1</version>
                                                            </dependency>
                                                            </dependencies>
                                                            <configuration>
                                                            <threadCount>1</threadCount>
                                                            </configuration>
                                                            </plugin>


                                                            ...and yes, I am using both junit and testng in this test framework for backward compatibility reasons.






                                                            share|improve this answer























                                                              up vote
                                                              5
                                                              down vote










                                                              up vote
                                                              5
                                                              down vote









                                                              I had the same issue today and for me the real problem was reported further up in the log with message Cannot use a threadCount parameter less than 1; 1 > 0.
                                                              When adding <threadCount>1</threadCount> in the surefire-plugin config the other error disappeared.



                                                              Full plugin config:

                                                                      <plugin>
                                                              <groupId>org.apache.maven.plugins</groupId>
                                                              <artifactId>maven-surefire-plugin</artifactId>
                                                              <version>2.18.1</version>
                                                              <dependencies>
                                                              <dependency>
                                                              <groupId>org.apache.maven.surefire</groupId>
                                                              <artifactId>surefire-junit47</artifactId>
                                                              <version>2.18.1</version>
                                                              </dependency>
                                                              <dependency>
                                                              <groupId>org.apache.maven.surefire</groupId>
                                                              <artifactId>surefire-testng</artifactId>
                                                              <version>2.18.1</version>
                                                              </dependency>
                                                              </dependencies>
                                                              <configuration>
                                                              <threadCount>1</threadCount>
                                                              </configuration>
                                                              </plugin>


                                                              ...and yes, I am using both junit and testng in this test framework for backward compatibility reasons.






                                                              share|improve this answer












                                                              I had the same issue today and for me the real problem was reported further up in the log with message Cannot use a threadCount parameter less than 1; 1 > 0.
                                                              When adding <threadCount>1</threadCount> in the surefire-plugin config the other error disappeared.



                                                              Full plugin config:

                                                                      <plugin>
                                                              <groupId>org.apache.maven.plugins</groupId>
                                                              <artifactId>maven-surefire-plugin</artifactId>
                                                              <version>2.18.1</version>
                                                              <dependencies>
                                                              <dependency>
                                                              <groupId>org.apache.maven.surefire</groupId>
                                                              <artifactId>surefire-junit47</artifactId>
                                                              <version>2.18.1</version>
                                                              </dependency>
                                                              <dependency>
                                                              <groupId>org.apache.maven.surefire</groupId>
                                                              <artifactId>surefire-testng</artifactId>
                                                              <version>2.18.1</version>
                                                              </dependency>
                                                              </dependencies>
                                                              <configuration>
                                                              <threadCount>1</threadCount>
                                                              </configuration>
                                                              </plugin>


                                                              ...and yes, I am using both junit and testng in this test framework for backward compatibility reasons.







                                                              share|improve this answer












                                                              share|improve this answer



                                                              share|improve this answer










                                                              answered Jul 30 '15 at 9:22









                                                              javabeangrinder

                                                              4,48042534




                                                              4,48042534






















                                                                  up vote
                                                                  4
                                                                  down vote













                                                                  If anyone is including a custom argLine argument, you must reconsider because it is likely the source of your issues with the memory allocation.



                                                                  For Example (I used to have):



                                                                  <argLine>XX:MaxPermSize=4096m ${argLine}</argLine>


                                                                  Now I use hard specified values:



                                                                  <argLine>-Xmx1024m -XX:MaxPermSize=256m</argLine>


                                                                  For whatever reason, Applications that integrate with Surefire such as Jacoco, dont request enough memory to coexist with the testing that happens at build time.






                                                                  share|improve this answer

























                                                                    up vote
                                                                    4
                                                                    down vote













                                                                    If anyone is including a custom argLine argument, you must reconsider because it is likely the source of your issues with the memory allocation.



                                                                    For Example (I used to have):



                                                                    <argLine>XX:MaxPermSize=4096m ${argLine}</argLine>


                                                                    Now I use hard specified values:



                                                                    <argLine>-Xmx1024m -XX:MaxPermSize=256m</argLine>


                                                                    For whatever reason, Applications that integrate with Surefire such as Jacoco, dont request enough memory to coexist with the testing that happens at build time.






                                                                    share|improve this answer























                                                                      up vote
                                                                      4
                                                                      down vote










                                                                      up vote
                                                                      4
                                                                      down vote









                                                                      If anyone is including a custom argLine argument, you must reconsider because it is likely the source of your issues with the memory allocation.



                                                                      For Example (I used to have):



                                                                      <argLine>XX:MaxPermSize=4096m ${argLine}</argLine>


                                                                      Now I use hard specified values:



                                                                      <argLine>-Xmx1024m -XX:MaxPermSize=256m</argLine>


                                                                      For whatever reason, Applications that integrate with Surefire such as Jacoco, dont request enough memory to coexist with the testing that happens at build time.






                                                                      share|improve this answer












                                                                      If anyone is including a custom argLine argument, you must reconsider because it is likely the source of your issues with the memory allocation.



                                                                      For Example (I used to have):



                                                                      <argLine>XX:MaxPermSize=4096m ${argLine}</argLine>


                                                                      Now I use hard specified values:



                                                                      <argLine>-Xmx1024m -XX:MaxPermSize=256m</argLine>


                                                                      For whatever reason, Applications that integrate with Surefire such as Jacoco, dont request enough memory to coexist with the testing that happens at build time.







                                                                      share|improve this answer












                                                                      share|improve this answer



                                                                      share|improve this answer










                                                                      answered Aug 12 '16 at 19:59









                                                                      Chad Van De Hey

                                                                      1,019716




                                                                      1,019716






















                                                                          up vote
                                                                          4
                                                                          down vote













                                                                          Had similar problem when running mvn command with Jacoco plugin on JDK 1.8.0_65



                                                                          [INFO]
                                                                          A fatal error has been detected by the Java Runtime Environment:

                                                                          JRE version: Java(TM) SE Runtime Environment (8.0_65-b17) (build 1.8.0_65-b17).........
                                                                          Problematic frame:
                                                                          PhaseIdealLoop::build_loop_late_post(Node*)+0x144
                                                                          ............
                                                                          ............
                                                                          [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19:test (default-test) on project

                                                                          The forked VM terminated without properly saying goodbye. VM crash or System.exit called?


                                                                          There was a bug in JDK https://bugs.openjdk.java.net/browse/JDK-8081379



                                                                          And the solution was to run mvn clean install with param -XX:-UseLoopPredicate



                                                                          Or just make an update to JDK (I think newer minor version works)






                                                                          share|improve this answer

























                                                                            up vote
                                                                            4
                                                                            down vote













                                                                            Had similar problem when running mvn command with Jacoco plugin on JDK 1.8.0_65



                                                                            [INFO]
                                                                            A fatal error has been detected by the Java Runtime Environment:

                                                                            JRE version: Java(TM) SE Runtime Environment (8.0_65-b17) (build 1.8.0_65-b17).........
                                                                            Problematic frame:
                                                                            PhaseIdealLoop::build_loop_late_post(Node*)+0x144
                                                                            ............
                                                                            ............
                                                                            [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19:test (default-test) on project

                                                                            The forked VM terminated without properly saying goodbye. VM crash or System.exit called?


                                                                            There was a bug in JDK https://bugs.openjdk.java.net/browse/JDK-8081379



                                                                            And the solution was to run mvn clean install with param -XX:-UseLoopPredicate



                                                                            Or just make an update to JDK (I think newer minor version works)






                                                                            share|improve this answer























                                                                              up vote
                                                                              4
                                                                              down vote










                                                                              up vote
                                                                              4
                                                                              down vote









                                                                              Had similar problem when running mvn command with Jacoco plugin on JDK 1.8.0_65



                                                                              [INFO]
                                                                              A fatal error has been detected by the Java Runtime Environment:

                                                                              JRE version: Java(TM) SE Runtime Environment (8.0_65-b17) (build 1.8.0_65-b17).........
                                                                              Problematic frame:
                                                                              PhaseIdealLoop::build_loop_late_post(Node*)+0x144
                                                                              ............
                                                                              ............
                                                                              [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19:test (default-test) on project

                                                                              The forked VM terminated without properly saying goodbye. VM crash or System.exit called?


                                                                              There was a bug in JDK https://bugs.openjdk.java.net/browse/JDK-8081379



                                                                              And the solution was to run mvn clean install with param -XX:-UseLoopPredicate



                                                                              Or just make an update to JDK (I think newer minor version works)






                                                                              share|improve this answer












                                                                              Had similar problem when running mvn command with Jacoco plugin on JDK 1.8.0_65



                                                                              [INFO]
                                                                              A fatal error has been detected by the Java Runtime Environment:

                                                                              JRE version: Java(TM) SE Runtime Environment (8.0_65-b17) (build 1.8.0_65-b17).........
                                                                              Problematic frame:
                                                                              PhaseIdealLoop::build_loop_late_post(Node*)+0x144
                                                                              ............
                                                                              ............
                                                                              [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19:test (default-test) on project

                                                                              The forked VM terminated without properly saying goodbye. VM crash or System.exit called?


                                                                              There was a bug in JDK https://bugs.openjdk.java.net/browse/JDK-8081379



                                                                              And the solution was to run mvn clean install with param -XX:-UseLoopPredicate



                                                                              Or just make an update to JDK (I think newer minor version works)







                                                                              share|improve this answer












                                                                              share|improve this answer



                                                                              share|improve this answer










                                                                              answered Jan 26 '17 at 10:43









                                                                              andreyro

                                                                              463715




                                                                              463715






















                                                                                  up vote
                                                                                  3
                                                                                  down vote













                                                                                  You need to check if your machine is 64 bit or 32bit. If your machine is 32 bit then your memory argument should not exceed 4096, even it should be below 4 GB.
                                                                                  but if your machine is 64 bit then, install Java 64 bit and provide JAVA_HOME in mvn.bat which point to java 64 bit installation.






                                                                                  share|improve this answer





















                                                                                  • Isn't 32 bit java complain about incorrect option?
                                                                                    – om-nom-nom
                                                                                    Apr 8 '15 at 11:25















                                                                                  up vote
                                                                                  3
                                                                                  down vote













                                                                                  You need to check if your machine is 64 bit or 32bit. If your machine is 32 bit then your memory argument should not exceed 4096, even it should be below 4 GB.
                                                                                  but if your machine is 64 bit then, install Java 64 bit and provide JAVA_HOME in mvn.bat which point to java 64 bit installation.






                                                                                  share|improve this answer





















                                                                                  • Isn't 32 bit java complain about incorrect option?
                                                                                    – om-nom-nom
                                                                                    Apr 8 '15 at 11:25













                                                                                  up vote
                                                                                  3
                                                                                  down vote










                                                                                  up vote
                                                                                  3
                                                                                  down vote









                                                                                  You need to check if your machine is 64 bit or 32bit. If your machine is 32 bit then your memory argument should not exceed 4096, even it should be below 4 GB.
                                                                                  but if your machine is 64 bit then, install Java 64 bit and provide JAVA_HOME in mvn.bat which point to java 64 bit installation.






                                                                                  share|improve this answer












                                                                                  You need to check if your machine is 64 bit or 32bit. If your machine is 32 bit then your memory argument should not exceed 4096, even it should be below 4 GB.
                                                                                  but if your machine is 64 bit then, install Java 64 bit and provide JAVA_HOME in mvn.bat which point to java 64 bit installation.







                                                                                  share|improve this answer












                                                                                  share|improve this answer



                                                                                  share|improve this answer










                                                                                  answered Feb 16 '15 at 7:32









                                                                                  Naresh Singh

                                                                                  312




                                                                                  312












                                                                                  • Isn't 32 bit java complain about incorrect option?
                                                                                    – om-nom-nom
                                                                                    Apr 8 '15 at 11:25


















                                                                                  • Isn't 32 bit java complain about incorrect option?
                                                                                    – om-nom-nom
                                                                                    Apr 8 '15 at 11:25
















                                                                                  Isn't 32 bit java complain about incorrect option?
                                                                                  – om-nom-nom
                                                                                  Apr 8 '15 at 11:25




                                                                                  Isn't 32 bit java complain about incorrect option?
                                                                                  – om-nom-nom
                                                                                  Apr 8 '15 at 11:25










                                                                                  up vote
                                                                                  2
                                                                                  down vote













                                                                                  I recently stuck in with this error while building my containerized jar applications with Bamboo:




                                                                                  org.apache.maven.surefire.booter.SurefireBooterForkException: The forked VM terminated without properly saying goodbye




                                                                                  After many hours of researching I fixed it. And I thought it would be useful to share my solution here.



                                                                                  So the error happen every time when bamboo run mvn clean package command for java applications in the docker containers. I am no Maven expert but the trouble was in Surefire and Junit4 plugins included in spring-boot as maven dependency.



                                                                                  To fix it you need to replace Junit4 for Junit5 and override Surefire plugin in you pom.xml.



                                                                                  1.Inside spring boot dependency insert exclusion:



                                                                                  <dependency>
                                                                                  <groupId>org.springframework.boot</groupId>
                                                                                  <artifactId>spring-boot-starter-test</artifactId>
                                                                                  <scope>test</scope>
                                                                                  <!-- FIX BAMBOO DEPLOY>
                                                                                  <exclusions>
                                                                                  <exclusion>
                                                                                  <groupId>junit</groupId>
                                                                                  <artifactId>junit</artifactId>
                                                                                  </exclusion>
                                                                                  </exclusions>
                                                                                  <!---->
                                                                                  </dependency>


                                                                                  2. Add new Junit5 dependencies:



                                                                                  <dependency>
                                                                                  <groupId>org.junit.jupiter</groupId>
                                                                                  <artifactId>junit-jupiter-api</artifactId>
                                                                                  <scope>test</scope>
                                                                                  </dependency>
                                                                                  <dependency>
                                                                                  <groupId>org.junit.jupiter</groupId>
                                                                                  <artifactId>junit-jupiter-engine</artifactId>
                                                                                  <version>5.1.0</version>
                                                                                  <scope>test</scope>
                                                                                  </dependency>
                                                                                  <dependency>
                                                                                  <groupId>org.junit.vintage</groupId>
                                                                                  <artifactId>junit-vintage-engine</artifactId>
                                                                                  <version>5.1.0</version>
                                                                                  <scope>test</scope>
                                                                                  </dependency>
                                                                                  <dependency>
                                                                                  <groupId>org.junit.platform</groupId>
                                                                                  <artifactId>junit-platform-launcher</artifactId>
                                                                                  <version>1.1.0</version>
                                                                                  <scope>test</scope>
                                                                                  </dependency>
                                                                                  <dependency>
                                                                                  <groupId>org.junit.platform</groupId>
                                                                                  <artifactId>junit-platform-runner</artifactId>
                                                                                  <version>1.1.0</version>
                                                                                  <scope>test</scope>
                                                                                  </dependency>
                                                                                  <dependency>
                                                                                  <groupId>org.junit.platform</groupId>
                                                                                  <artifactId>junit-platform-surefire-provider</artifactId>
                                                                                  <version>1.1.0</version>
                                                                                  <scope>test</scope>
                                                                                  </dependency>


                                                                                  3. Insert new plugin inside plugins section



                                                                                  <plugin>
                                                                                  <groupId>org.apache.maven.plugins</groupId>
                                                                                  <artifactId>maven-failsafe-plugin</artifactId>
                                                                                  </plugin>
                                                                                  <plugin>
                                                                                  <groupId>org.apache.maven.plugins</groupId>
                                                                                  <artifactId>maven-surefire-plugin</artifactId>
                                                                                  <version>2.19.1</version>
                                                                                  <dependencies>
                                                                                  <dependency>
                                                                                  <groupId>org.junit.platform</groupId>
                                                                                  <artifactId>junit-platform-surefire-provider</artifactId>
                                                                                  <version>1.1.0</version>
                                                                                  </dependency>
                                                                                  <dependency>
                                                                                  <groupId>org.junit.jupiter</groupId>
                                                                                  <artifactId>junit-jupiter-engine</artifactId>
                                                                                  <version>5.1.0</version>
                                                                                  </dependency>
                                                                                  </dependencies>
                                                                                  </plugin>


                                                                                  That's should be enough to repair bamboo builds. Don't forget also transform all Junit4 tests to support Junit5.






                                                                                  share|improve this answer



























                                                                                    up vote
                                                                                    2
                                                                                    down vote













                                                                                    I recently stuck in with this error while building my containerized jar applications with Bamboo:




                                                                                    org.apache.maven.surefire.booter.SurefireBooterForkException: The forked VM terminated without properly saying goodbye




                                                                                    After many hours of researching I fixed it. And I thought it would be useful to share my solution here.



                                                                                    So the error happen every time when bamboo run mvn clean package command for java applications in the docker containers. I am no Maven expert but the trouble was in Surefire and Junit4 plugins included in spring-boot as maven dependency.



                                                                                    To fix it you need to replace Junit4 for Junit5 and override Surefire plugin in you pom.xml.



                                                                                    1.Inside spring boot dependency insert exclusion:



                                                                                    <dependency>
                                                                                    <groupId>org.springframework.boot</groupId>
                                                                                    <artifactId>spring-boot-starter-test</artifactId>
                                                                                    <scope>test</scope>
                                                                                    <!-- FIX BAMBOO DEPLOY>
                                                                                    <exclusions>
                                                                                    <exclusion>
                                                                                    <groupId>junit</groupId>
                                                                                    <artifactId>junit</artifactId>
                                                                                    </exclusion>
                                                                                    </exclusions>
                                                                                    <!---->
                                                                                    </dependency>


                                                                                    2. Add new Junit5 dependencies:



                                                                                    <dependency>
                                                                                    <groupId>org.junit.jupiter</groupId>
                                                                                    <artifactId>junit-jupiter-api</artifactId>
                                                                                    <scope>test</scope>
                                                                                    </dependency>
                                                                                    <dependency>
                                                                                    <groupId>org.junit.jupiter</groupId>
                                                                                    <artifactId>junit-jupiter-engine</artifactId>
                                                                                    <version>5.1.0</version>
                                                                                    <scope>test</scope>
                                                                                    </dependency>
                                                                                    <dependency>
                                                                                    <groupId>org.junit.vintage</groupId>
                                                                                    <artifactId>junit-vintage-engine</artifactId>
                                                                                    <version>5.1.0</version>
                                                                                    <scope>test</scope>
                                                                                    </dependency>
                                                                                    <dependency>
                                                                                    <groupId>org.junit.platform</groupId>
                                                                                    <artifactId>junit-platform-launcher</artifactId>
                                                                                    <version>1.1.0</version>
                                                                                    <scope>test</scope>
                                                                                    </dependency>
                                                                                    <dependency>
                                                                                    <groupId>org.junit.platform</groupId>
                                                                                    <artifactId>junit-platform-runner</artifactId>
                                                                                    <version>1.1.0</version>
                                                                                    <scope>test</scope>
                                                                                    </dependency>
                                                                                    <dependency>
                                                                                    <groupId>org.junit.platform</groupId>
                                                                                    <artifactId>junit-platform-surefire-provider</artifactId>
                                                                                    <version>1.1.0</version>
                                                                                    <scope>test</scope>
                                                                                    </dependency>


                                                                                    3. Insert new plugin inside plugins section



                                                                                    <plugin>
                                                                                    <groupId>org.apache.maven.plugins</groupId>
                                                                                    <artifactId>maven-failsafe-plugin</artifactId>
                                                                                    </plugin>
                                                                                    <plugin>
                                                                                    <groupId>org.apache.maven.plugins</groupId>
                                                                                    <artifactId>maven-surefire-plugin</artifactId>
                                                                                    <version>2.19.1</version>
                                                                                    <dependencies>
                                                                                    <dependency>
                                                                                    <groupId>org.junit.platform</groupId>
                                                                                    <artifactId>junit-platform-surefire-provider</artifactId>
                                                                                    <version>1.1.0</version>
                                                                                    </dependency>
                                                                                    <dependency>
                                                                                    <groupId>org.junit.jupiter</groupId>
                                                                                    <artifactId>junit-jupiter-engine</artifactId>
                                                                                    <version>5.1.0</version>
                                                                                    </dependency>
                                                                                    </dependencies>
                                                                                    </plugin>


                                                                                    That's should be enough to repair bamboo builds. Don't forget also transform all Junit4 tests to support Junit5.






                                                                                    share|improve this answer

























                                                                                      up vote
                                                                                      2
                                                                                      down vote










                                                                                      up vote
                                                                                      2
                                                                                      down vote









                                                                                      I recently stuck in with this error while building my containerized jar applications with Bamboo:




                                                                                      org.apache.maven.surefire.booter.SurefireBooterForkException: The forked VM terminated without properly saying goodbye




                                                                                      After many hours of researching I fixed it. And I thought it would be useful to share my solution here.



                                                                                      So the error happen every time when bamboo run mvn clean package command for java applications in the docker containers. I am no Maven expert but the trouble was in Surefire and Junit4 plugins included in spring-boot as maven dependency.



                                                                                      To fix it you need to replace Junit4 for Junit5 and override Surefire plugin in you pom.xml.



                                                                                      1.Inside spring boot dependency insert exclusion:



                                                                                      <dependency>
                                                                                      <groupId>org.springframework.boot</groupId>
                                                                                      <artifactId>spring-boot-starter-test</artifactId>
                                                                                      <scope>test</scope>
                                                                                      <!-- FIX BAMBOO DEPLOY>
                                                                                      <exclusions>
                                                                                      <exclusion>
                                                                                      <groupId>junit</groupId>
                                                                                      <artifactId>junit</artifactId>
                                                                                      </exclusion>
                                                                                      </exclusions>
                                                                                      <!---->
                                                                                      </dependency>


                                                                                      2. Add new Junit5 dependencies:



                                                                                      <dependency>
                                                                                      <groupId>org.junit.jupiter</groupId>
                                                                                      <artifactId>junit-jupiter-api</artifactId>
                                                                                      <scope>test</scope>
                                                                                      </dependency>
                                                                                      <dependency>
                                                                                      <groupId>org.junit.jupiter</groupId>
                                                                                      <artifactId>junit-jupiter-engine</artifactId>
                                                                                      <version>5.1.0</version>
                                                                                      <scope>test</scope>
                                                                                      </dependency>
                                                                                      <dependency>
                                                                                      <groupId>org.junit.vintage</groupId>
                                                                                      <artifactId>junit-vintage-engine</artifactId>
                                                                                      <version>5.1.0</version>
                                                                                      <scope>test</scope>
                                                                                      </dependency>
                                                                                      <dependency>
                                                                                      <groupId>org.junit.platform</groupId>
                                                                                      <artifactId>junit-platform-launcher</artifactId>
                                                                                      <version>1.1.0</version>
                                                                                      <scope>test</scope>
                                                                                      </dependency>
                                                                                      <dependency>
                                                                                      <groupId>org.junit.platform</groupId>
                                                                                      <artifactId>junit-platform-runner</artifactId>
                                                                                      <version>1.1.0</version>
                                                                                      <scope>test</scope>
                                                                                      </dependency>
                                                                                      <dependency>
                                                                                      <groupId>org.junit.platform</groupId>
                                                                                      <artifactId>junit-platform-surefire-provider</artifactId>
                                                                                      <version>1.1.0</version>
                                                                                      <scope>test</scope>
                                                                                      </dependency>


                                                                                      3. Insert new plugin inside plugins section



                                                                                      <plugin>
                                                                                      <groupId>org.apache.maven.plugins</groupId>
                                                                                      <artifactId>maven-failsafe-plugin</artifactId>
                                                                                      </plugin>
                                                                                      <plugin>
                                                                                      <groupId>org.apache.maven.plugins</groupId>
                                                                                      <artifactId>maven-surefire-plugin</artifactId>
                                                                                      <version>2.19.1</version>
                                                                                      <dependencies>
                                                                                      <dependency>
                                                                                      <groupId>org.junit.platform</groupId>
                                                                                      <artifactId>junit-platform-surefire-provider</artifactId>
                                                                                      <version>1.1.0</version>
                                                                                      </dependency>
                                                                                      <dependency>
                                                                                      <groupId>org.junit.jupiter</groupId>
                                                                                      <artifactId>junit-jupiter-engine</artifactId>
                                                                                      <version>5.1.0</version>
                                                                                      </dependency>
                                                                                      </dependencies>
                                                                                      </plugin>


                                                                                      That's should be enough to repair bamboo builds. Don't forget also transform all Junit4 tests to support Junit5.






                                                                                      share|improve this answer














                                                                                      I recently stuck in with this error while building my containerized jar applications with Bamboo:




                                                                                      org.apache.maven.surefire.booter.SurefireBooterForkException: The forked VM terminated without properly saying goodbye




                                                                                      After many hours of researching I fixed it. And I thought it would be useful to share my solution here.



                                                                                      So the error happen every time when bamboo run mvn clean package command for java applications in the docker containers. I am no Maven expert but the trouble was in Surefire and Junit4 plugins included in spring-boot as maven dependency.



                                                                                      To fix it you need to replace Junit4 for Junit5 and override Surefire plugin in you pom.xml.



                                                                                      1.Inside spring boot dependency insert exclusion:



                                                                                      <dependency>
                                                                                      <groupId>org.springframework.boot</groupId>
                                                                                      <artifactId>spring-boot-starter-test</artifactId>
                                                                                      <scope>test</scope>
                                                                                      <!-- FIX BAMBOO DEPLOY>
                                                                                      <exclusions>
                                                                                      <exclusion>
                                                                                      <groupId>junit</groupId>
                                                                                      <artifactId>junit</artifactId>
                                                                                      </exclusion>
                                                                                      </exclusions>
                                                                                      <!---->
                                                                                      </dependency>


                                                                                      2. Add new Junit5 dependencies:



                                                                                      <dependency>
                                                                                      <groupId>org.junit.jupiter</groupId>
                                                                                      <artifactId>junit-jupiter-api</artifactId>
                                                                                      <scope>test</scope>
                                                                                      </dependency>
                                                                                      <dependency>
                                                                                      <groupId>org.junit.jupiter</groupId>
                                                                                      <artifactId>junit-jupiter-engine</artifactId>
                                                                                      <version>5.1.0</version>
                                                                                      <scope>test</scope>
                                                                                      </dependency>
                                                                                      <dependency>
                                                                                      <groupId>org.junit.vintage</groupId>
                                                                                      <artifactId>junit-vintage-engine</artifactId>
                                                                                      <version>5.1.0</version>
                                                                                      <scope>test</scope>
                                                                                      </dependency>
                                                                                      <dependency>
                                                                                      <groupId>org.junit.platform</groupId>
                                                                                      <artifactId>junit-platform-launcher</artifactId>
                                                                                      <version>1.1.0</version>
                                                                                      <scope>test</scope>
                                                                                      </dependency>
                                                                                      <dependency>
                                                                                      <groupId>org.junit.platform</groupId>
                                                                                      <artifactId>junit-platform-runner</artifactId>
                                                                                      <version>1.1.0</version>
                                                                                      <scope>test</scope>
                                                                                      </dependency>
                                                                                      <dependency>
                                                                                      <groupId>org.junit.platform</groupId>
                                                                                      <artifactId>junit-platform-surefire-provider</artifactId>
                                                                                      <version>1.1.0</version>
                                                                                      <scope>test</scope>
                                                                                      </dependency>


                                                                                      3. Insert new plugin inside plugins section



                                                                                      <plugin>
                                                                                      <groupId>org.apache.maven.plugins</groupId>
                                                                                      <artifactId>maven-failsafe-plugin</artifactId>
                                                                                      </plugin>
                                                                                      <plugin>
                                                                                      <groupId>org.apache.maven.plugins</groupId>
                                                                                      <artifactId>maven-surefire-plugin</artifactId>
                                                                                      <version>2.19.1</version>
                                                                                      <dependencies>
                                                                                      <dependency>
                                                                                      <groupId>org.junit.platform</groupId>
                                                                                      <artifactId>junit-platform-surefire-provider</artifactId>
                                                                                      <version>1.1.0</version>
                                                                                      </dependency>
                                                                                      <dependency>
                                                                                      <groupId>org.junit.jupiter</groupId>
                                                                                      <artifactId>junit-jupiter-engine</artifactId>
                                                                                      <version>5.1.0</version>
                                                                                      </dependency>
                                                                                      </dependencies>
                                                                                      </plugin>


                                                                                      That's should be enough to repair bamboo builds. Don't forget also transform all Junit4 tests to support Junit5.







                                                                                      share|improve this answer














                                                                                      share|improve this answer



                                                                                      share|improve this answer








                                                                                      edited Jun 27 at 15:01









                                                                                      Ivan

                                                                                      3,40192242




                                                                                      3,40192242










                                                                                      answered Jun 27 at 14:40









                                                                                      ripreal

                                                                                      214




                                                                                      214






















                                                                                          up vote
                                                                                          1
                                                                                          down vote













                                                                                          I ran into this problem during Jenkins builds on an Ubuntu machine.



                                                                                          /var/log/syslog reported Out of memory: Kill process 19557 (java) score 207 or sacrifice child.



                                                                                          I therefore gave the Ubuntu machine more swap space. Since then, the problem is gone.






                                                                                          share|improve this answer



























                                                                                            up vote
                                                                                            1
                                                                                            down vote













                                                                                            I ran into this problem during Jenkins builds on an Ubuntu machine.



                                                                                            /var/log/syslog reported Out of memory: Kill process 19557 (java) score 207 or sacrifice child.



                                                                                            I therefore gave the Ubuntu machine more swap space. Since then, the problem is gone.






                                                                                            share|improve this answer

























                                                                                              up vote
                                                                                              1
                                                                                              down vote










                                                                                              up vote
                                                                                              1
                                                                                              down vote









                                                                                              I ran into this problem during Jenkins builds on an Ubuntu machine.



                                                                                              /var/log/syslog reported Out of memory: Kill process 19557 (java) score 207 or sacrifice child.



                                                                                              I therefore gave the Ubuntu machine more swap space. Since then, the problem is gone.






                                                                                              share|improve this answer














                                                                                              I ran into this problem during Jenkins builds on an Ubuntu machine.



                                                                                              /var/log/syslog reported Out of memory: Kill process 19557 (java) score 207 or sacrifice child.



                                                                                              I therefore gave the Ubuntu machine more swap space. Since then, the problem is gone.







                                                                                              share|improve this answer














                                                                                              share|improve this answer



                                                                                              share|improve this answer








                                                                                              edited Apr 13 '17 at 12:22









                                                                                              Community

                                                                                              11




                                                                                              11










                                                                                              answered Sep 20 '16 at 18:01









                                                                                              Abdull

                                                                                              14.4k1486135




                                                                                              14.4k1486135






















                                                                                                  up vote
                                                                                                  1
                                                                                                  down vote













                                                                                                  In my case the issue was related to too long log outputting into IntelliJ IDEA console (OS windows 10).


                                                                                                  Command:



                                                                                                  mvn clean install


                                                                                                  This command solved the issue to me:



                                                                                                  mvn clean install > log-file.log





                                                                                                  share|improve this answer



























                                                                                                    up vote
                                                                                                    1
                                                                                                    down vote













                                                                                                    In my case the issue was related to too long log outputting into IntelliJ IDEA console (OS windows 10).


                                                                                                    Command:



                                                                                                    mvn clean install


                                                                                                    This command solved the issue to me:



                                                                                                    mvn clean install > log-file.log





                                                                                                    share|improve this answer

























                                                                                                      up vote
                                                                                                      1
                                                                                                      down vote










                                                                                                      up vote
                                                                                                      1
                                                                                                      down vote









                                                                                                      In my case the issue was related to too long log outputting into IntelliJ IDEA console (OS windows 10).


                                                                                                      Command:



                                                                                                      mvn clean install


                                                                                                      This command solved the issue to me:



                                                                                                      mvn clean install > log-file.log





                                                                                                      share|improve this answer














                                                                                                      In my case the issue was related to too long log outputting into IntelliJ IDEA console (OS windows 10).


                                                                                                      Command:



                                                                                                      mvn clean install


                                                                                                      This command solved the issue to me:



                                                                                                      mvn clean install > log-file.log






                                                                                                      share|improve this answer














                                                                                                      share|improve this answer



                                                                                                      share|improve this answer








                                                                                                      edited Aug 27 at 7:30









                                                                                                      s_t

                                                                                                      2,9002926




                                                                                                      2,9002926










                                                                                                      answered Aug 27 at 6:41









                                                                                                      Mikhail

                                                                                                      111




                                                                                                      111






















                                                                                                          up vote
                                                                                                          1
                                                                                                          down vote













                                                                                                          Setting this in pom.xml worked for me.
                                                                                                          But you should check the documentation for other workarounds
                                                                                                          https://maven.apache.org/surefire/maven-surefire-plugin/examples/class-loading.html



                                                                                                                 <plugin>

                                                                                                          <groupId>org.apache.maven.plugins</groupId>
                                                                                                          <artifactId>maven-surefire-plugin</artifactId>
                                                                                                          <configuration>
                                                                                                          <!--these strange settings fixes a chrash and dumpstream from surefire when run from command line
                                                                                                          Caused by: java.lang.ClassNotFoundException: org.apache.maven.surefire.booter.ForkedBooter
                                                                                                          -->
                                                                                                          <useSystemClassLoader>true</useSystemClassLoader>
                                                                                                          <useManifestOnlyJar>false</useManifestOnlyJar>
                                                                                                          </configuration>
                                                                                                          </plugin>





                                                                                                          share|improve this answer

























                                                                                                            up vote
                                                                                                            1
                                                                                                            down vote













                                                                                                            Setting this in pom.xml worked for me.
                                                                                                            But you should check the documentation for other workarounds
                                                                                                            https://maven.apache.org/surefire/maven-surefire-plugin/examples/class-loading.html



                                                                                                                   <plugin>

                                                                                                            <groupId>org.apache.maven.plugins</groupId>
                                                                                                            <artifactId>maven-surefire-plugin</artifactId>
                                                                                                            <configuration>
                                                                                                            <!--these strange settings fixes a chrash and dumpstream from surefire when run from command line
                                                                                                            Caused by: java.lang.ClassNotFoundException: org.apache.maven.surefire.booter.ForkedBooter
                                                                                                            -->
                                                                                                            <useSystemClassLoader>true</useSystemClassLoader>
                                                                                                            <useManifestOnlyJar>false</useManifestOnlyJar>
                                                                                                            </configuration>
                                                                                                            </plugin>





                                                                                                            share|improve this answer























                                                                                                              up vote
                                                                                                              1
                                                                                                              down vote










                                                                                                              up vote
                                                                                                              1
                                                                                                              down vote









                                                                                                              Setting this in pom.xml worked for me.
                                                                                                              But you should check the documentation for other workarounds
                                                                                                              https://maven.apache.org/surefire/maven-surefire-plugin/examples/class-loading.html



                                                                                                                     <plugin>

                                                                                                              <groupId>org.apache.maven.plugins</groupId>
                                                                                                              <artifactId>maven-surefire-plugin</artifactId>
                                                                                                              <configuration>
                                                                                                              <!--these strange settings fixes a chrash and dumpstream from surefire when run from command line
                                                                                                              Caused by: java.lang.ClassNotFoundException: org.apache.maven.surefire.booter.ForkedBooter
                                                                                                              -->
                                                                                                              <useSystemClassLoader>true</useSystemClassLoader>
                                                                                                              <useManifestOnlyJar>false</useManifestOnlyJar>
                                                                                                              </configuration>
                                                                                                              </plugin>





                                                                                                              share|improve this answer












                                                                                                              Setting this in pom.xml worked for me.
                                                                                                              But you should check the documentation for other workarounds
                                                                                                              https://maven.apache.org/surefire/maven-surefire-plugin/examples/class-loading.html



                                                                                                                     <plugin>

                                                                                                              <groupId>org.apache.maven.plugins</groupId>
                                                                                                              <artifactId>maven-surefire-plugin</artifactId>
                                                                                                              <configuration>
                                                                                                              <!--these strange settings fixes a chrash and dumpstream from surefire when run from command line
                                                                                                              Caused by: java.lang.ClassNotFoundException: org.apache.maven.surefire.booter.ForkedBooter
                                                                                                              -->
                                                                                                              <useSystemClassLoader>true</useSystemClassLoader>
                                                                                                              <useManifestOnlyJar>false</useManifestOnlyJar>
                                                                                                              </configuration>
                                                                                                              </plugin>






                                                                                                              share|improve this answer












                                                                                                              share|improve this answer



                                                                                                              share|improve this answer










                                                                                                              answered Nov 11 at 8:30









                                                                                                              Gryffe

                                                                                                              14816




                                                                                                              14816






















                                                                                                                  up vote
                                                                                                                  0
                                                                                                                  down vote













                                                                                                                  I experienced this error after a static member variable in my test class called a method to create an object (which was used in test cases throughout the class), and the method caused an exception.



                                                                                                                  // Object created inside test class by calling a static getter.
                                                                                                                  // Exception thrown in getter:
                                                                                                                  private static Object someObject = SomeObject.getObject(...);

                                                                                                                  // ... <Object later used in class>


                                                                                                                  Some fixes include recreating the object inside each test case and catching any exceptions accordingly. Or by initializing the object inside an @BeforeTest method and ensuring that it is built properly.






                                                                                                                  share|improve this answer

























                                                                                                                    up vote
                                                                                                                    0
                                                                                                                    down vote













                                                                                                                    I experienced this error after a static member variable in my test class called a method to create an object (which was used in test cases throughout the class), and the method caused an exception.



                                                                                                                    // Object created inside test class by calling a static getter.
                                                                                                                    // Exception thrown in getter:
                                                                                                                    private static Object someObject = SomeObject.getObject(...);

                                                                                                                    // ... <Object later used in class>


                                                                                                                    Some fixes include recreating the object inside each test case and catching any exceptions accordingly. Or by initializing the object inside an @BeforeTest method and ensuring that it is built properly.






                                                                                                                    share|improve this answer























                                                                                                                      up vote
                                                                                                                      0
                                                                                                                      down vote










                                                                                                                      up vote
                                                                                                                      0
                                                                                                                      down vote









                                                                                                                      I experienced this error after a static member variable in my test class called a method to create an object (which was used in test cases throughout the class), and the method caused an exception.



                                                                                                                      // Object created inside test class by calling a static getter.
                                                                                                                      // Exception thrown in getter:
                                                                                                                      private static Object someObject = SomeObject.getObject(...);

                                                                                                                      // ... <Object later used in class>


                                                                                                                      Some fixes include recreating the object inside each test case and catching any exceptions accordingly. Or by initializing the object inside an @BeforeTest method and ensuring that it is built properly.






                                                                                                                      share|improve this answer












                                                                                                                      I experienced this error after a static member variable in my test class called a method to create an object (which was used in test cases throughout the class), and the method caused an exception.



                                                                                                                      // Object created inside test class by calling a static getter.
                                                                                                                      // Exception thrown in getter:
                                                                                                                      private static Object someObject = SomeObject.getObject(...);

                                                                                                                      // ... <Object later used in class>


                                                                                                                      Some fixes include recreating the object inside each test case and catching any exceptions accordingly. Or by initializing the object inside an @BeforeTest method and ensuring that it is built properly.







                                                                                                                      share|improve this answer












                                                                                                                      share|improve this answer



                                                                                                                      share|improve this answer










                                                                                                                      answered May 13 '15 at 19:47









                                                                                                                      user2812481

                                                                                                                      514




                                                                                                                      514






















                                                                                                                          up vote
                                                                                                                          0
                                                                                                                          down vote













                                                                                                                          In my case, the issue was related to workspace path which was to much long. So I did a path refactoring and this solved the issue to me.






                                                                                                                          share|improve this answer





















                                                                                                                          • Was that on a windows machine?
                                                                                                                            – hithwen
                                                                                                                            May 17 '16 at 1:42










                                                                                                                          • Yes, it is running in Windows .
                                                                                                                            – thiago-devel
                                                                                                                            May 17 '16 at 19:05










                                                                                                                          • How did you found that?
                                                                                                                            – dzieciou
                                                                                                                            Jun 6 '16 at 5:52















                                                                                                                          up vote
                                                                                                                          0
                                                                                                                          down vote













                                                                                                                          In my case, the issue was related to workspace path which was to much long. So I did a path refactoring and this solved the issue to me.






                                                                                                                          share|improve this answer





















                                                                                                                          • Was that on a windows machine?
                                                                                                                            – hithwen
                                                                                                                            May 17 '16 at 1:42










                                                                                                                          • Yes, it is running in Windows .
                                                                                                                            – thiago-devel
                                                                                                                            May 17 '16 at 19:05










                                                                                                                          • How did you found that?
                                                                                                                            – dzieciou
                                                                                                                            Jun 6 '16 at 5:52













                                                                                                                          up vote
                                                                                                                          0
                                                                                                                          down vote










                                                                                                                          up vote
                                                                                                                          0
                                                                                                                          down vote









                                                                                                                          In my case, the issue was related to workspace path which was to much long. So I did a path refactoring and this solved the issue to me.






                                                                                                                          share|improve this answer












                                                                                                                          In my case, the issue was related to workspace path which was to much long. So I did a path refactoring and this solved the issue to me.







                                                                                                                          share|improve this answer












                                                                                                                          share|improve this answer



                                                                                                                          share|improve this answer










                                                                                                                          answered Feb 23 '16 at 13:41









                                                                                                                          thiago-devel

                                                                                                                          1




                                                                                                                          1












                                                                                                                          • Was that on a windows machine?
                                                                                                                            – hithwen
                                                                                                                            May 17 '16 at 1:42










                                                                                                                          • Yes, it is running in Windows .
                                                                                                                            – thiago-devel
                                                                                                                            May 17 '16 at 19:05










                                                                                                                          • How did you found that?
                                                                                                                            – dzieciou
                                                                                                                            Jun 6 '16 at 5:52


















                                                                                                                          • Was that on a windows machine?
                                                                                                                            – hithwen
                                                                                                                            May 17 '16 at 1:42










                                                                                                                          • Yes, it is running in Windows .
                                                                                                                            – thiago-devel
                                                                                                                            May 17 '16 at 19:05










                                                                                                                          • How did you found that?
                                                                                                                            – dzieciou
                                                                                                                            Jun 6 '16 at 5:52
















                                                                                                                          Was that on a windows machine?
                                                                                                                          – hithwen
                                                                                                                          May 17 '16 at 1:42




                                                                                                                          Was that on a windows machine?
                                                                                                                          – hithwen
                                                                                                                          May 17 '16 at 1:42












                                                                                                                          Yes, it is running in Windows .
                                                                                                                          – thiago-devel
                                                                                                                          May 17 '16 at 19:05




                                                                                                                          Yes, it is running in Windows .
                                                                                                                          – thiago-devel
                                                                                                                          May 17 '16 at 19:05












                                                                                                                          How did you found that?
                                                                                                                          – dzieciou
                                                                                                                          Jun 6 '16 at 5:52




                                                                                                                          How did you found that?
                                                                                                                          – dzieciou
                                                                                                                          Jun 6 '16 at 5:52










                                                                                                                          up vote
                                                                                                                          0
                                                                                                                          down vote













                                                                                                                          When I encountered this error it was due to my ulimit for open files (ulimit -n) being too low. It had (somehow) got set to only 256:



                                                                                                                          % ulimit -n
                                                                                                                          256


                                                                                                                          The error went away after I increased the limit:



                                                                                                                          % ulimit -n 3072
                                                                                                                          % ulimit -n
                                                                                                                          3072


                                                                                                                          Your system might not allow the limit to be set so high. e.g., this happens when I try to use a larger number:



                                                                                                                          % ulimit -n 3073
                                                                                                                          ulimit: setrlimit failed: invalid argument


                                                                                                                          Or this might be lower than your existing limit and you could be facing a different root cause.






                                                                                                                          share|improve this answer

























                                                                                                                            up vote
                                                                                                                            0
                                                                                                                            down vote













                                                                                                                            When I encountered this error it was due to my ulimit for open files (ulimit -n) being too low. It had (somehow) got set to only 256:



                                                                                                                            % ulimit -n
                                                                                                                            256


                                                                                                                            The error went away after I increased the limit:



                                                                                                                            % ulimit -n 3072
                                                                                                                            % ulimit -n
                                                                                                                            3072


                                                                                                                            Your system might not allow the limit to be set so high. e.g., this happens when I try to use a larger number:



                                                                                                                            % ulimit -n 3073
                                                                                                                            ulimit: setrlimit failed: invalid argument


                                                                                                                            Or this might be lower than your existing limit and you could be facing a different root cause.






                                                                                                                            share|improve this answer























                                                                                                                              up vote
                                                                                                                              0
                                                                                                                              down vote










                                                                                                                              up vote
                                                                                                                              0
                                                                                                                              down vote









                                                                                                                              When I encountered this error it was due to my ulimit for open files (ulimit -n) being too low. It had (somehow) got set to only 256:



                                                                                                                              % ulimit -n
                                                                                                                              256


                                                                                                                              The error went away after I increased the limit:



                                                                                                                              % ulimit -n 3072
                                                                                                                              % ulimit -n
                                                                                                                              3072


                                                                                                                              Your system might not allow the limit to be set so high. e.g., this happens when I try to use a larger number:



                                                                                                                              % ulimit -n 3073
                                                                                                                              ulimit: setrlimit failed: invalid argument


                                                                                                                              Or this might be lower than your existing limit and you could be facing a different root cause.






                                                                                                                              share|improve this answer












                                                                                                                              When I encountered this error it was due to my ulimit for open files (ulimit -n) being too low. It had (somehow) got set to only 256:



                                                                                                                              % ulimit -n
                                                                                                                              256


                                                                                                                              The error went away after I increased the limit:



                                                                                                                              % ulimit -n 3072
                                                                                                                              % ulimit -n
                                                                                                                              3072


                                                                                                                              Your system might not allow the limit to be set so high. e.g., this happens when I try to use a larger number:



                                                                                                                              % ulimit -n 3073
                                                                                                                              ulimit: setrlimit failed: invalid argument


                                                                                                                              Or this might be lower than your existing limit and you could be facing a different root cause.







                                                                                                                              share|improve this answer












                                                                                                                              share|improve this answer



                                                                                                                              share|improve this answer










                                                                                                                              answered Jul 26 '16 at 23:32









                                                                                                                              erik.weathers

                                                                                                                              6401711




                                                                                                                              6401711






















                                                                                                                                  up vote
                                                                                                                                  0
                                                                                                                                  down vote













                                                                                                                                  In my case, I forgot to add the dependency in the pom:



                                                                                                                                        <dependency>
                                                                                                                                  <groupId>org.aspectj</groupId>
                                                                                                                                  <artifactId>aspectjweaver</artifactId>
                                                                                                                                  <version>1.8.5</version>
                                                                                                                                  </dependency>


                                                                                                                                  Just make sure that you pick the right version (as for today 1.8.9 is latest)






                                                                                                                                  share|improve this answer

























                                                                                                                                    up vote
                                                                                                                                    0
                                                                                                                                    down vote













                                                                                                                                    In my case, I forgot to add the dependency in the pom:



                                                                                                                                          <dependency>
                                                                                                                                    <groupId>org.aspectj</groupId>
                                                                                                                                    <artifactId>aspectjweaver</artifactId>
                                                                                                                                    <version>1.8.5</version>
                                                                                                                                    </dependency>


                                                                                                                                    Just make sure that you pick the right version (as for today 1.8.9 is latest)






                                                                                                                                    share|improve this answer























                                                                                                                                      up vote
                                                                                                                                      0
                                                                                                                                      down vote










                                                                                                                                      up vote
                                                                                                                                      0
                                                                                                                                      down vote









                                                                                                                                      In my case, I forgot to add the dependency in the pom:



                                                                                                                                            <dependency>
                                                                                                                                      <groupId>org.aspectj</groupId>
                                                                                                                                      <artifactId>aspectjweaver</artifactId>
                                                                                                                                      <version>1.8.5</version>
                                                                                                                                      </dependency>


                                                                                                                                      Just make sure that you pick the right version (as for today 1.8.9 is latest)






                                                                                                                                      share|improve this answer












                                                                                                                                      In my case, I forgot to add the dependency in the pom:



                                                                                                                                            <dependency>
                                                                                                                                      <groupId>org.aspectj</groupId>
                                                                                                                                      <artifactId>aspectjweaver</artifactId>
                                                                                                                                      <version>1.8.5</version>
                                                                                                                                      </dependency>


                                                                                                                                      Just make sure that you pick the right version (as for today 1.8.9 is latest)







                                                                                                                                      share|improve this answer












                                                                                                                                      share|improve this answer



                                                                                                                                      share|improve this answer










                                                                                                                                      answered Sep 2 '16 at 8:26









                                                                                                                                      Martin Zehle

                                                                                                                                      64




                                                                                                                                      64






















                                                                                                                                          up vote
                                                                                                                                          0
                                                                                                                                          down vote













                                                                                                                                          I also experienced this - but in my case I had written a custom hook for cucumber



                                                                                                                                          public class MappingFormatter implements gherkin.formatter.Formatter {


                                                                                                                                          ...



                                                                                                                                          one of my methods was producing a Null pointer exception, which caused the surefire to exit without logging the error.






                                                                                                                                          share|improve this answer

























                                                                                                                                            up vote
                                                                                                                                            0
                                                                                                                                            down vote













                                                                                                                                            I also experienced this - but in my case I had written a custom hook for cucumber



                                                                                                                                            public class MappingFormatter implements gherkin.formatter.Formatter {


                                                                                                                                            ...



                                                                                                                                            one of my methods was producing a Null pointer exception, which caused the surefire to exit without logging the error.






                                                                                                                                            share|improve this answer























                                                                                                                                              up vote
                                                                                                                                              0
                                                                                                                                              down vote










                                                                                                                                              up vote
                                                                                                                                              0
                                                                                                                                              down vote









                                                                                                                                              I also experienced this - but in my case I had written a custom hook for cucumber



                                                                                                                                              public class MappingFormatter implements gherkin.formatter.Formatter {


                                                                                                                                              ...



                                                                                                                                              one of my methods was producing a Null pointer exception, which caused the surefire to exit without logging the error.






                                                                                                                                              share|improve this answer












                                                                                                                                              I also experienced this - but in my case I had written a custom hook for cucumber



                                                                                                                                              public class MappingFormatter implements gherkin.formatter.Formatter {


                                                                                                                                              ...



                                                                                                                                              one of my methods was producing a Null pointer exception, which caused the surefire to exit without logging the error.







                                                                                                                                              share|improve this answer












                                                                                                                                              share|improve this answer



                                                                                                                                              share|improve this answer










                                                                                                                                              answered Oct 27 '16 at 21:26









                                                                                                                                              pbirnie

                                                                                                                                              3113




                                                                                                                                              3113






















                                                                                                                                                  up vote
                                                                                                                                                  0
                                                                                                                                                  down vote













                                                                                                                                                  Recently travis killed the execution of a test (without having changed anything related (and successful builds on developer machines!)), thus BUILD FAILURE.
                                                                                                                                                  One of the causes was this (see @agudian answer):




                                                                                                                                                  Surefire does not support tests or any referenced libraries calling System.exit()`




                                                                                                                                                  (since the test class indeed called System.exit(-1)).




                                                                                                                                                  1. Using a simple return statement instead helps.


                                                                                                                                                  2. To make travis happy again, I also had to add the surefire parameters (<argLine>) provided by @xiaohuo. (also, I had to remove -XX:MaxPermSize=256m to be able to build on one of my desktops)



                                                                                                                                                  Doing only one of the two things didn't worked.



                                                                                                                                                  For more background read When should we call System.exit in Java.






                                                                                                                                                  share|improve this answer



























                                                                                                                                                    up vote
                                                                                                                                                    0
                                                                                                                                                    down vote













                                                                                                                                                    Recently travis killed the execution of a test (without having changed anything related (and successful builds on developer machines!)), thus BUILD FAILURE.
                                                                                                                                                    One of the causes was this (see @agudian answer):




                                                                                                                                                    Surefire does not support tests or any referenced libraries calling System.exit()`




                                                                                                                                                    (since the test class indeed called System.exit(-1)).




                                                                                                                                                    1. Using a simple return statement instead helps.


                                                                                                                                                    2. To make travis happy again, I also had to add the surefire parameters (<argLine>) provided by @xiaohuo. (also, I had to remove -XX:MaxPermSize=256m to be able to build on one of my desktops)



                                                                                                                                                    Doing only one of the two things didn't worked.



                                                                                                                                                    For more background read When should we call System.exit in Java.






                                                                                                                                                    share|improve this answer

























                                                                                                                                                      up vote
                                                                                                                                                      0
                                                                                                                                                      down vote










                                                                                                                                                      up vote
                                                                                                                                                      0
                                                                                                                                                      down vote









                                                                                                                                                      Recently travis killed the execution of a test (without having changed anything related (and successful builds on developer machines!)), thus BUILD FAILURE.
                                                                                                                                                      One of the causes was this (see @agudian answer):




                                                                                                                                                      Surefire does not support tests or any referenced libraries calling System.exit()`




                                                                                                                                                      (since the test class indeed called System.exit(-1)).




                                                                                                                                                      1. Using a simple return statement instead helps.


                                                                                                                                                      2. To make travis happy again, I also had to add the surefire parameters (<argLine>) provided by @xiaohuo. (also, I had to remove -XX:MaxPermSize=256m to be able to build on one of my desktops)



                                                                                                                                                      Doing only one of the two things didn't worked.



                                                                                                                                                      For more background read When should we call System.exit in Java.






                                                                                                                                                      share|improve this answer














                                                                                                                                                      Recently travis killed the execution of a test (without having changed anything related (and successful builds on developer machines!)), thus BUILD FAILURE.
                                                                                                                                                      One of the causes was this (see @agudian answer):




                                                                                                                                                      Surefire does not support tests or any referenced libraries calling System.exit()`




                                                                                                                                                      (since the test class indeed called System.exit(-1)).




                                                                                                                                                      1. Using a simple return statement instead helps.


                                                                                                                                                      2. To make travis happy again, I also had to add the surefire parameters (<argLine>) provided by @xiaohuo. (also, I had to remove -XX:MaxPermSize=256m to be able to build on one of my desktops)



                                                                                                                                                      Doing only one of the two things didn't worked.



                                                                                                                                                      For more background read When should we call System.exit in Java.







                                                                                                                                                      share|improve this answer














                                                                                                                                                      share|improve this answer



                                                                                                                                                      share|improve this answer








                                                                                                                                                      edited May 23 '17 at 12:34









                                                                                                                                                      Community

                                                                                                                                                      11




                                                                                                                                                      11










                                                                                                                                                      answered Mar 24 '17 at 9:21









                                                                                                                                                      dr0i

                                                                                                                                                      1,64811225




                                                                                                                                                      1,64811225






















                                                                                                                                                          up vote
                                                                                                                                                          0
                                                                                                                                                          down vote













                                                                                                                                                          This could also happen due to a totally different issue. For example in my case our Jenkins build was failing intermittently while executing tests without any reason.



                                                                                                                                                          I sifted through our tests to find any occurrence of System.exit() but there was none.



                                                                                                                                                          After more digging I found out that this could be happening because of a JDK bug which could have caused this regression.



                                                                                                                                                          JDK-6675699



                                                                                                                                                          I am still working on making this fix in our builds, will come back and update the thread again.






                                                                                                                                                          share|improve this answer

























                                                                                                                                                            up vote
                                                                                                                                                            0
                                                                                                                                                            down vote













                                                                                                                                                            This could also happen due to a totally different issue. For example in my case our Jenkins build was failing intermittently while executing tests without any reason.



                                                                                                                                                            I sifted through our tests to find any occurrence of System.exit() but there was none.



                                                                                                                                                            After more digging I found out that this could be happening because of a JDK bug which could have caused this regression.



                                                                                                                                                            JDK-6675699



                                                                                                                                                            I am still working on making this fix in our builds, will come back and update the thread again.






                                                                                                                                                            share|improve this answer























                                                                                                                                                              up vote
                                                                                                                                                              0
                                                                                                                                                              down vote










                                                                                                                                                              up vote
                                                                                                                                                              0
                                                                                                                                                              down vote









                                                                                                                                                              This could also happen due to a totally different issue. For example in my case our Jenkins build was failing intermittently while executing tests without any reason.



                                                                                                                                                              I sifted through our tests to find any occurrence of System.exit() but there was none.



                                                                                                                                                              After more digging I found out that this could be happening because of a JDK bug which could have caused this regression.



                                                                                                                                                              JDK-6675699



                                                                                                                                                              I am still working on making this fix in our builds, will come back and update the thread again.






                                                                                                                                                              share|improve this answer












                                                                                                                                                              This could also happen due to a totally different issue. For example in my case our Jenkins build was failing intermittently while executing tests without any reason.



                                                                                                                                                              I sifted through our tests to find any occurrence of System.exit() but there was none.



                                                                                                                                                              After more digging I found out that this could be happening because of a JDK bug which could have caused this regression.



                                                                                                                                                              JDK-6675699



                                                                                                                                                              I am still working on making this fix in our builds, will come back and update the thread again.







                                                                                                                                                              share|improve this answer












                                                                                                                                                              share|improve this answer



                                                                                                                                                              share|improve this answer










                                                                                                                                                              answered Jul 6 '17 at 21:59









                                                                                                                                                              SarZ

                                                                                                                                                              16617




                                                                                                                                                              16617






















                                                                                                                                                                  up vote
                                                                                                                                                                  0
                                                                                                                                                                  down vote













                                                                                                                                                                  This may occur due to inadequate memory. Make sure you don't have any applications running on background while running mvn. In my case Firefox was running on background with high memory usage.






                                                                                                                                                                  share|improve this answer

























                                                                                                                                                                    up vote
                                                                                                                                                                    0
                                                                                                                                                                    down vote













                                                                                                                                                                    This may occur due to inadequate memory. Make sure you don't have any applications running on background while running mvn. In my case Firefox was running on background with high memory usage.






                                                                                                                                                                    share|improve this answer























                                                                                                                                                                      up vote
                                                                                                                                                                      0
                                                                                                                                                                      down vote










                                                                                                                                                                      up vote
                                                                                                                                                                      0
                                                                                                                                                                      down vote









                                                                                                                                                                      This may occur due to inadequate memory. Make sure you don't have any applications running on background while running mvn. In my case Firefox was running on background with high memory usage.






                                                                                                                                                                      share|improve this answer












                                                                                                                                                                      This may occur due to inadequate memory. Make sure you don't have any applications running on background while running mvn. In my case Firefox was running on background with high memory usage.







                                                                                                                                                                      share|improve this answer












                                                                                                                                                                      share|improve this answer



                                                                                                                                                                      share|improve this answer










                                                                                                                                                                      answered Jan 7 at 17:59









                                                                                                                                                                      Sidath Bhanuka Randeniya

                                                                                                                                                                      6836




                                                                                                                                                                      6836






















                                                                                                                                                                          up vote
                                                                                                                                                                          0
                                                                                                                                                                          down vote













                                                                                                                                                                          This will work definitely.....



                                                                                                                                                                          Add the below lines in the POM file and give a build.



                                                                                                                                                                          <plugin>
                                                                                                                                                                          <groupId>org.apache.maven.plugins</groupId>
                                                                                                                                                                          <artifactId>maven-surefire-plugin</artifactId>
                                                                                                                                                                          <version>2.19.1</version>
                                                                                                                                                                          <configuration>
                                                                                                                                                                          <trimStackTrace>false</trimStackTrace>
                                                                                                                                                                          <includes>
                                                                                                                                                                          <include>**/*Test.class</include>
                                                                                                                                                                          </includes>
                                                                                                                                                                          </configuration>
                                                                                                                                                                          </plugin>





                                                                                                                                                                          share|improve this answer

























                                                                                                                                                                            up vote
                                                                                                                                                                            0
                                                                                                                                                                            down vote













                                                                                                                                                                            This will work definitely.....



                                                                                                                                                                            Add the below lines in the POM file and give a build.



                                                                                                                                                                            <plugin>
                                                                                                                                                                            <groupId>org.apache.maven.plugins</groupId>
                                                                                                                                                                            <artifactId>maven-surefire-plugin</artifactId>
                                                                                                                                                                            <version>2.19.1</version>
                                                                                                                                                                            <configuration>
                                                                                                                                                                            <trimStackTrace>false</trimStackTrace>
                                                                                                                                                                            <includes>
                                                                                                                                                                            <include>**/*Test.class</include>
                                                                                                                                                                            </includes>
                                                                                                                                                                            </configuration>
                                                                                                                                                                            </plugin>





                                                                                                                                                                            share|improve this answer























                                                                                                                                                                              up vote
                                                                                                                                                                              0
                                                                                                                                                                              down vote










                                                                                                                                                                              up vote
                                                                                                                                                                              0
                                                                                                                                                                              down vote









                                                                                                                                                                              This will work definitely.....



                                                                                                                                                                              Add the below lines in the POM file and give a build.



                                                                                                                                                                              <plugin>
                                                                                                                                                                              <groupId>org.apache.maven.plugins</groupId>
                                                                                                                                                                              <artifactId>maven-surefire-plugin</artifactId>
                                                                                                                                                                              <version>2.19.1</version>
                                                                                                                                                                              <configuration>
                                                                                                                                                                              <trimStackTrace>false</trimStackTrace>
                                                                                                                                                                              <includes>
                                                                                                                                                                              <include>**/*Test.class</include>
                                                                                                                                                                              </includes>
                                                                                                                                                                              </configuration>
                                                                                                                                                                              </plugin>





                                                                                                                                                                              share|improve this answer












                                                                                                                                                                              This will work definitely.....



                                                                                                                                                                              Add the below lines in the POM file and give a build.



                                                                                                                                                                              <plugin>
                                                                                                                                                                              <groupId>org.apache.maven.plugins</groupId>
                                                                                                                                                                              <artifactId>maven-surefire-plugin</artifactId>
                                                                                                                                                                              <version>2.19.1</version>
                                                                                                                                                                              <configuration>
                                                                                                                                                                              <trimStackTrace>false</trimStackTrace>
                                                                                                                                                                              <includes>
                                                                                                                                                                              <include>**/*Test.class</include>
                                                                                                                                                                              </includes>
                                                                                                                                                                              </configuration>
                                                                                                                                                                              </plugin>






                                                                                                                                                                              share|improve this answer












                                                                                                                                                                              share|improve this answer



                                                                                                                                                                              share|improve this answer










                                                                                                                                                                              answered Mar 21 at 6:31









                                                                                                                                                                              sam

                                                                                                                                                                              1




                                                                                                                                                                              1






















                                                                                                                                                                                  up vote
                                                                                                                                                                                  0
                                                                                                                                                                                  down vote













                                                                                                                                                                                  Did encounter the same problem as I was trying to compile a maven project set to 1.7 on a windows 10 environment running JAVA = 1.8.



                                                                                                                                                                                  I resolved it by changing the java version from 1.7 to 1.8 as shown below.



                                                                                                                                                                                   <plugin>
                                                                                                                                                                                  <groupId>org.apache.maven.plugins</groupId>
                                                                                                                                                                                  <artifactId>maven-compiler-plugin</artifactId>
                                                                                                                                                                                  <version>3.3</version>
                                                                                                                                                                                  <configuration>
                                                                                                                                                                                  <source>1.8</source>
                                                                                                                                                                                  <target>1.8</target>
                                                                                                                                                                                  </configuration>
                                                                                                                                                                                  </plugin>





                                                                                                                                                                                  share|improve this answer

























                                                                                                                                                                                    up vote
                                                                                                                                                                                    0
                                                                                                                                                                                    down vote













                                                                                                                                                                                    Did encounter the same problem as I was trying to compile a maven project set to 1.7 on a windows 10 environment running JAVA = 1.8.



                                                                                                                                                                                    I resolved it by changing the java version from 1.7 to 1.8 as shown below.



                                                                                                                                                                                     <plugin>
                                                                                                                                                                                    <groupId>org.apache.maven.plugins</groupId>
                                                                                                                                                                                    <artifactId>maven-compiler-plugin</artifactId>
                                                                                                                                                                                    <version>3.3</version>
                                                                                                                                                                                    <configuration>
                                                                                                                                                                                    <source>1.8</source>
                                                                                                                                                                                    <target>1.8</target>
                                                                                                                                                                                    </configuration>
                                                                                                                                                                                    </plugin>





                                                                                                                                                                                    share|improve this answer























                                                                                                                                                                                      up vote
                                                                                                                                                                                      0
                                                                                                                                                                                      down vote










                                                                                                                                                                                      up vote
                                                                                                                                                                                      0
                                                                                                                                                                                      down vote









                                                                                                                                                                                      Did encounter the same problem as I was trying to compile a maven project set to 1.7 on a windows 10 environment running JAVA = 1.8.



                                                                                                                                                                                      I resolved it by changing the java version from 1.7 to 1.8 as shown below.



                                                                                                                                                                                       <plugin>
                                                                                                                                                                                      <groupId>org.apache.maven.plugins</groupId>
                                                                                                                                                                                      <artifactId>maven-compiler-plugin</artifactId>
                                                                                                                                                                                      <version>3.3</version>
                                                                                                                                                                                      <configuration>
                                                                                                                                                                                      <source>1.8</source>
                                                                                                                                                                                      <target>1.8</target>
                                                                                                                                                                                      </configuration>
                                                                                                                                                                                      </plugin>





                                                                                                                                                                                      share|improve this answer












                                                                                                                                                                                      Did encounter the same problem as I was trying to compile a maven project set to 1.7 on a windows 10 environment running JAVA = 1.8.



                                                                                                                                                                                      I resolved it by changing the java version from 1.7 to 1.8 as shown below.



                                                                                                                                                                                       <plugin>
                                                                                                                                                                                      <groupId>org.apache.maven.plugins</groupId>
                                                                                                                                                                                      <artifactId>maven-compiler-plugin</artifactId>
                                                                                                                                                                                      <version>3.3</version>
                                                                                                                                                                                      <configuration>
                                                                                                                                                                                      <source>1.8</source>
                                                                                                                                                                                      <target>1.8</target>
                                                                                                                                                                                      </configuration>
                                                                                                                                                                                      </plugin>






                                                                                                                                                                                      share|improve this answer












                                                                                                                                                                                      share|improve this answer



                                                                                                                                                                                      share|improve this answer










                                                                                                                                                                                      answered Jun 15 at 8:10









                                                                                                                                                                                      Dun0523

                                                                                                                                                                                      329413




                                                                                                                                                                                      329413






















                                                                                                                                                                                          up vote
                                                                                                                                                                                          0
                                                                                                                                                                                          down vote













                                                                                                                                                                                          I've met a case when none of the answers provided solved the issue. It was with a legacy application which happens to be using log4j and SLF4J/logback.



                                                                                                                                                                                          The previous situation: clean test builds were running fine when launched from within Eclipse, but when launched in the command line, this error occurred. CI builds on CircleCI ran fine too.



                                                                                                                                                                                          What I did: out of pure guess, is configure a proper logback-test.xml and dial down the verbosity of the logging. Lo and behold, I no longer experienced this error and I can now build the project (as well as the module in which this error was occurring) from the command line.



                                                                                                                                                                                          My point is that the way that the logging frameworks are used or configured may be another explanation.



                                                                                                                                                                                          Was it really a conflict between log4j and logback ? Or was it just that the high volume of logging produced by the tests somehow overflowed a command line buffer? I don't know. It remains a mystery to me.






                                                                                                                                                                                          share|improve this answer

























                                                                                                                                                                                            up vote
                                                                                                                                                                                            0
                                                                                                                                                                                            down vote













                                                                                                                                                                                            I've met a case when none of the answers provided solved the issue. It was with a legacy application which happens to be using log4j and SLF4J/logback.



                                                                                                                                                                                            The previous situation: clean test builds were running fine when launched from within Eclipse, but when launched in the command line, this error occurred. CI builds on CircleCI ran fine too.



                                                                                                                                                                                            What I did: out of pure guess, is configure a proper logback-test.xml and dial down the verbosity of the logging. Lo and behold, I no longer experienced this error and I can now build the project (as well as the module in which this error was occurring) from the command line.



                                                                                                                                                                                            My point is that the way that the logging frameworks are used or configured may be another explanation.



                                                                                                                                                                                            Was it really a conflict between log4j and logback ? Or was it just that the high volume of logging produced by the tests somehow overflowed a command line buffer? I don't know. It remains a mystery to me.






                                                                                                                                                                                            share|improve this answer























                                                                                                                                                                                              up vote
                                                                                                                                                                                              0
                                                                                                                                                                                              down vote










                                                                                                                                                                                              up vote
                                                                                                                                                                                              0
                                                                                                                                                                                              down vote









                                                                                                                                                                                              I've met a case when none of the answers provided solved the issue. It was with a legacy application which happens to be using log4j and SLF4J/logback.



                                                                                                                                                                                              The previous situation: clean test builds were running fine when launched from within Eclipse, but when launched in the command line, this error occurred. CI builds on CircleCI ran fine too.



                                                                                                                                                                                              What I did: out of pure guess, is configure a proper logback-test.xml and dial down the verbosity of the logging. Lo and behold, I no longer experienced this error and I can now build the project (as well as the module in which this error was occurring) from the command line.



                                                                                                                                                                                              My point is that the way that the logging frameworks are used or configured may be another explanation.



                                                                                                                                                                                              Was it really a conflict between log4j and logback ? Or was it just that the high volume of logging produced by the tests somehow overflowed a command line buffer? I don't know. It remains a mystery to me.






                                                                                                                                                                                              share|improve this answer












                                                                                                                                                                                              I've met a case when none of the answers provided solved the issue. It was with a legacy application which happens to be using log4j and SLF4J/logback.



                                                                                                                                                                                              The previous situation: clean test builds were running fine when launched from within Eclipse, but when launched in the command line, this error occurred. CI builds on CircleCI ran fine too.



                                                                                                                                                                                              What I did: out of pure guess, is configure a proper logback-test.xml and dial down the verbosity of the logging. Lo and behold, I no longer experienced this error and I can now build the project (as well as the module in which this error was occurring) from the command line.



                                                                                                                                                                                              My point is that the way that the logging frameworks are used or configured may be another explanation.



                                                                                                                                                                                              Was it really a conflict between log4j and logback ? Or was it just that the high volume of logging produced by the tests somehow overflowed a command line buffer? I don't know. It remains a mystery to me.







                                                                                                                                                                                              share|improve this answer












                                                                                                                                                                                              share|improve this answer



                                                                                                                                                                                              share|improve this answer










                                                                                                                                                                                              answered Aug 6 at 12:48









                                                                                                                                                                                              AbVog

                                                                                                                                                                                              421219




                                                                                                                                                                                              421219






















                                                                                                                                                                                                  up vote
                                                                                                                                                                                                  0
                                                                                                                                                                                                  down vote













                                                                                                                                                                                                  My resolution to this issue was to Close the damn chrome browser which was choking my computer's memory 🙄






                                                                                                                                                                                                  share|improve this answer

























                                                                                                                                                                                                    up vote
                                                                                                                                                                                                    0
                                                                                                                                                                                                    down vote













                                                                                                                                                                                                    My resolution to this issue was to Close the damn chrome browser which was choking my computer's memory 🙄






                                                                                                                                                                                                    share|improve this answer























                                                                                                                                                                                                      up vote
                                                                                                                                                                                                      0
                                                                                                                                                                                                      down vote










                                                                                                                                                                                                      up vote
                                                                                                                                                                                                      0
                                                                                                                                                                                                      down vote









                                                                                                                                                                                                      My resolution to this issue was to Close the damn chrome browser which was choking my computer's memory 🙄






                                                                                                                                                                                                      share|improve this answer












                                                                                                                                                                                                      My resolution to this issue was to Close the damn chrome browser which was choking my computer's memory 🙄







                                                                                                                                                                                                      share|improve this answer












                                                                                                                                                                                                      share|improve this answer



                                                                                                                                                                                                      share|improve this answer










                                                                                                                                                                                                      answered Oct 3 at 14:38









                                                                                                                                                                                                      Anand Rockzz

                                                                                                                                                                                                      1,95422742




                                                                                                                                                                                                      1,95422742






















                                                                                                                                                                                                          up vote
                                                                                                                                                                                                          0
                                                                                                                                                                                                          down vote













                                                                                                                                                                                                          You can set java options



                                                                                                                                                                                                          SET JAVA_OPTS='-Xmx1024m' XX:+UseLoopPredicate



                                                                                                                                                                                                          mvn clean install






                                                                                                                                                                                                          share|improve this answer



























                                                                                                                                                                                                            up vote
                                                                                                                                                                                                            0
                                                                                                                                                                                                            down vote













                                                                                                                                                                                                            You can set java options



                                                                                                                                                                                                            SET JAVA_OPTS='-Xmx1024m' XX:+UseLoopPredicate



                                                                                                                                                                                                            mvn clean install






                                                                                                                                                                                                            share|improve this answer

























                                                                                                                                                                                                              up vote
                                                                                                                                                                                                              0
                                                                                                                                                                                                              down vote










                                                                                                                                                                                                              up vote
                                                                                                                                                                                                              0
                                                                                                                                                                                                              down vote









                                                                                                                                                                                                              You can set java options



                                                                                                                                                                                                              SET JAVA_OPTS='-Xmx1024m' XX:+UseLoopPredicate



                                                                                                                                                                                                              mvn clean install






                                                                                                                                                                                                              share|improve this answer














                                                                                                                                                                                                              You can set java options



                                                                                                                                                                                                              SET JAVA_OPTS='-Xmx1024m' XX:+UseLoopPredicate



                                                                                                                                                                                                              mvn clean install







                                                                                                                                                                                                              share|improve this answer














                                                                                                                                                                                                              share|improve this answer



                                                                                                                                                                                                              share|improve this answer








                                                                                                                                                                                                              edited Oct 31 at 8:05

























                                                                                                                                                                                                              answered Oct 31 at 7:36









                                                                                                                                                                                                              abhimanyu

                                                                                                                                                                                                              184




                                                                                                                                                                                                              184






















                                                                                                                                                                                                                  up vote
                                                                                                                                                                                                                  0
                                                                                                                                                                                                                  down vote













                                                                                                                                                                                                                  On Windows (OpenJDK11, Maven 3.6.0, SUREFIRE 3.0.0-M1) I got that root cause:



                                                                                                                                                                                                                  # Created at 2018-11-14T14:28:15.629
                                                                                                                                                                                                                  OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000006c7500000, 522190848, 0) failed; error='The paging file is too small for this operation to complete' (DOS error/errno=1455)


                                                                                                                                                                                                                  and resolved by increasing the paging file size, e.g like this.






                                                                                                                                                                                                                  share|improve this answer

























                                                                                                                                                                                                                    up vote
                                                                                                                                                                                                                    0
                                                                                                                                                                                                                    down vote













                                                                                                                                                                                                                    On Windows (OpenJDK11, Maven 3.6.0, SUREFIRE 3.0.0-M1) I got that root cause:



                                                                                                                                                                                                                    # Created at 2018-11-14T14:28:15.629
                                                                                                                                                                                                                    OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000006c7500000, 522190848, 0) failed; error='The paging file is too small for this operation to complete' (DOS error/errno=1455)


                                                                                                                                                                                                                    and resolved by increasing the paging file size, e.g like this.






                                                                                                                                                                                                                    share|improve this answer























                                                                                                                                                                                                                      up vote
                                                                                                                                                                                                                      0
                                                                                                                                                                                                                      down vote










                                                                                                                                                                                                                      up vote
                                                                                                                                                                                                                      0
                                                                                                                                                                                                                      down vote









                                                                                                                                                                                                                      On Windows (OpenJDK11, Maven 3.6.0, SUREFIRE 3.0.0-M1) I got that root cause:



                                                                                                                                                                                                                      # Created at 2018-11-14T14:28:15.629
                                                                                                                                                                                                                      OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000006c7500000, 522190848, 0) failed; error='The paging file is too small for this operation to complete' (DOS error/errno=1455)


                                                                                                                                                                                                                      and resolved by increasing the paging file size, e.g like this.






                                                                                                                                                                                                                      share|improve this answer












                                                                                                                                                                                                                      On Windows (OpenJDK11, Maven 3.6.0, SUREFIRE 3.0.0-M1) I got that root cause:



                                                                                                                                                                                                                      # Created at 2018-11-14T14:28:15.629
                                                                                                                                                                                                                      OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000006c7500000, 522190848, 0) failed; error='The paging file is too small for this operation to complete' (DOS error/errno=1455)


                                                                                                                                                                                                                      and resolved by increasing the paging file size, e.g like this.







                                                                                                                                                                                                                      share|improve this answer












                                                                                                                                                                                                                      share|improve this answer



                                                                                                                                                                                                                      share|improve this answer










                                                                                                                                                                                                                      answered Nov 16 at 0:36









                                                                                                                                                                                                                      Radoslav Ivanov

                                                                                                                                                                                                                      10818




                                                                                                                                                                                                                      10818






















                                                                                                                                                                                                                          up vote
                                                                                                                                                                                                                          0
                                                                                                                                                                                                                          down vote













                                                                                                                                                                                                                          tried all above, didn't work. below solution works for me:



                                                                                                                                                                                                                          <plugin>
                                                                                                                                                                                                                          <groupId>org.apache.maven.plugins</groupId>
                                                                                                                                                                                                                          <artifactId>maven-surefire-plugin</artifactId>
                                                                                                                                                                                                                          <version>2.19.1</version>
                                                                                                                                                                                                                          <configuration>
                                                                                                                                                                                                                          <argLine>-Dfile.encoding=UTF-8</argLine>
                                                                                                                                                                                                                          </configuration>







                                                                                                                                                                                                                          share|improve this answer

























                                                                                                                                                                                                                            up vote
                                                                                                                                                                                                                            0
                                                                                                                                                                                                                            down vote













                                                                                                                                                                                                                            tried all above, didn't work. below solution works for me:



                                                                                                                                                                                                                            <plugin>
                                                                                                                                                                                                                            <groupId>org.apache.maven.plugins</groupId>
                                                                                                                                                                                                                            <artifactId>maven-surefire-plugin</artifactId>
                                                                                                                                                                                                                            <version>2.19.1</version>
                                                                                                                                                                                                                            <configuration>
                                                                                                                                                                                                                            <argLine>-Dfile.encoding=UTF-8</argLine>
                                                                                                                                                                                                                            </configuration>







                                                                                                                                                                                                                            share|improve this answer























                                                                                                                                                                                                                              up vote
                                                                                                                                                                                                                              0
                                                                                                                                                                                                                              down vote










                                                                                                                                                                                                                              up vote
                                                                                                                                                                                                                              0
                                                                                                                                                                                                                              down vote









                                                                                                                                                                                                                              tried all above, didn't work. below solution works for me:



                                                                                                                                                                                                                              <plugin>
                                                                                                                                                                                                                              <groupId>org.apache.maven.plugins</groupId>
                                                                                                                                                                                                                              <artifactId>maven-surefire-plugin</artifactId>
                                                                                                                                                                                                                              <version>2.19.1</version>
                                                                                                                                                                                                                              <configuration>
                                                                                                                                                                                                                              <argLine>-Dfile.encoding=UTF-8</argLine>
                                                                                                                                                                                                                              </configuration>







                                                                                                                                                                                                                              share|improve this answer












                                                                                                                                                                                                                              tried all above, didn't work. below solution works for me:



                                                                                                                                                                                                                              <plugin>
                                                                                                                                                                                                                              <groupId>org.apache.maven.plugins</groupId>
                                                                                                                                                                                                                              <artifactId>maven-surefire-plugin</artifactId>
                                                                                                                                                                                                                              <version>2.19.1</version>
                                                                                                                                                                                                                              <configuration>
                                                                                                                                                                                                                              <argLine>-Dfile.encoding=UTF-8</argLine>
                                                                                                                                                                                                                              </configuration>








                                                                                                                                                                                                                              share|improve this answer












                                                                                                                                                                                                                              share|improve this answer



                                                                                                                                                                                                                              share|improve this answer










                                                                                                                                                                                                                              answered Nov 20 at 2:39









                                                                                                                                                                                                                              Yuebing Cao

                                                                                                                                                                                                                              1




                                                                                                                                                                                                                              1






















                                                                                                                                                                                                                                  up vote
                                                                                                                                                                                                                                  0
                                                                                                                                                                                                                                  down vote













                                                                                                                                                                                                                                  Turn off useSystemClassLoader of maven-surefile-plugin should help



                                                                                                                                                                                                                                          <plugin>
                                                                                                                                                                                                                                  <groupId>org.apache.maven.plugins</groupId>
                                                                                                                                                                                                                                  <artifactId>maven-surefire-plugin</artifactId>
                                                                                                                                                                                                                                  <version>2.22.0</version>
                                                                                                                                                                                                                                  <configuration>
                                                                                                                                                                                                                                  <useSystemClassLoader>false</useSystemClassLoader>
                                                                                                                                                                                                                                  </configuration>
                                                                                                                                                                                                                                  </plugin>





                                                                                                                                                                                                                                  share|improve this answer

























                                                                                                                                                                                                                                    up vote
                                                                                                                                                                                                                                    0
                                                                                                                                                                                                                                    down vote













                                                                                                                                                                                                                                    Turn off useSystemClassLoader of maven-surefile-plugin should help



                                                                                                                                                                                                                                            <plugin>
                                                                                                                                                                                                                                    <groupId>org.apache.maven.plugins</groupId>
                                                                                                                                                                                                                                    <artifactId>maven-surefire-plugin</artifactId>
                                                                                                                                                                                                                                    <version>2.22.0</version>
                                                                                                                                                                                                                                    <configuration>
                                                                                                                                                                                                                                    <useSystemClassLoader>false</useSystemClassLoader>
                                                                                                                                                                                                                                    </configuration>
                                                                                                                                                                                                                                    </plugin>





                                                                                                                                                                                                                                    share|improve this answer























                                                                                                                                                                                                                                      up vote
                                                                                                                                                                                                                                      0
                                                                                                                                                                                                                                      down vote










                                                                                                                                                                                                                                      up vote
                                                                                                                                                                                                                                      0
                                                                                                                                                                                                                                      down vote









                                                                                                                                                                                                                                      Turn off useSystemClassLoader of maven-surefile-plugin should help



                                                                                                                                                                                                                                              <plugin>
                                                                                                                                                                                                                                      <groupId>org.apache.maven.plugins</groupId>
                                                                                                                                                                                                                                      <artifactId>maven-surefire-plugin</artifactId>
                                                                                                                                                                                                                                      <version>2.22.0</version>
                                                                                                                                                                                                                                      <configuration>
                                                                                                                                                                                                                                      <useSystemClassLoader>false</useSystemClassLoader>
                                                                                                                                                                                                                                      </configuration>
                                                                                                                                                                                                                                      </plugin>





                                                                                                                                                                                                                                      share|improve this answer












                                                                                                                                                                                                                                      Turn off useSystemClassLoader of maven-surefile-plugin should help



                                                                                                                                                                                                                                              <plugin>
                                                                                                                                                                                                                                      <groupId>org.apache.maven.plugins</groupId>
                                                                                                                                                                                                                                      <artifactId>maven-surefire-plugin</artifactId>
                                                                                                                                                                                                                                      <version>2.22.0</version>
                                                                                                                                                                                                                                      <configuration>
                                                                                                                                                                                                                                      <useSystemClassLoader>false</useSystemClassLoader>
                                                                                                                                                                                                                                      </configuration>
                                                                                                                                                                                                                                      </plugin>






                                                                                                                                                                                                                                      share|improve this answer












                                                                                                                                                                                                                                      share|improve this answer



                                                                                                                                                                                                                                      share|improve this answer










                                                                                                                                                                                                                                      answered Nov 22 at 13:53









                                                                                                                                                                                                                                      Loi Cao

                                                                                                                                                                                                                                      19816




                                                                                                                                                                                                                                      19816






















                                                                                                                                                                                                                                          up vote
                                                                                                                                                                                                                                          0
                                                                                                                                                                                                                                          down vote













                                                                                                                                                                                                                                          I had the same issue and solved by using Java 8 from Oracle instead of Java 10 from Openjdk






                                                                                                                                                                                                                                          share|improve this answer

























                                                                                                                                                                                                                                            up vote
                                                                                                                                                                                                                                            0
                                                                                                                                                                                                                                            down vote













                                                                                                                                                                                                                                            I had the same issue and solved by using Java 8 from Oracle instead of Java 10 from Openjdk






                                                                                                                                                                                                                                            share|improve this answer























                                                                                                                                                                                                                                              up vote
                                                                                                                                                                                                                                              0
                                                                                                                                                                                                                                              down vote










                                                                                                                                                                                                                                              up vote
                                                                                                                                                                                                                                              0
                                                                                                                                                                                                                                              down vote









                                                                                                                                                                                                                                              I had the same issue and solved by using Java 8 from Oracle instead of Java 10 from Openjdk






                                                                                                                                                                                                                                              share|improve this answer












                                                                                                                                                                                                                                              I had the same issue and solved by using Java 8 from Oracle instead of Java 10 from Openjdk







                                                                                                                                                                                                                                              share|improve this answer












                                                                                                                                                                                                                                              share|improve this answer



                                                                                                                                                                                                                                              share|improve this answer










                                                                                                                                                                                                                                              answered Nov 23 at 10:05









                                                                                                                                                                                                                                              Francesco Borzì

                                                                                                                                                                                                                                              12.5k74777




                                                                                                                                                                                                                                              12.5k74777






















                                                                                                                                                                                                                                                  1 2
                                                                                                                                                                                                                                                  next

















                                                                                                                                                                                                                                                  draft saved

                                                                                                                                                                                                                                                  draft discarded




















































                                                                                                                                                                                                                                                  Thanks for contributing an answer to Stack Overflow!


                                                                                                                                                                                                                                                  • Please be sure to answer the question. Provide details and share your research!

                                                                                                                                                                                                                                                  But avoid



                                                                                                                                                                                                                                                  • Asking for help, clarification, or responding to other answers.

                                                                                                                                                                                                                                                  • Making statements based on opinion; back them up with references or personal experience.


                                                                                                                                                                                                                                                  To learn more, see our tips on writing great answers.





                                                                                                                                                                                                                                                  Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                                                                                                                                                                                                                                                  Please pay close attention to the following guidance:


                                                                                                                                                                                                                                                  • Please be sure to answer the question. Provide details and share your research!

                                                                                                                                                                                                                                                  But avoid



                                                                                                                                                                                                                                                  • Asking for help, clarification, or responding to other answers.

                                                                                                                                                                                                                                                  • Making statements based on opinion; back them up with references or personal experience.


                                                                                                                                                                                                                                                  To learn more, see our tips on writing great answers.




                                                                                                                                                                                                                                                  draft saved


                                                                                                                                                                                                                                                  draft discarded














                                                                                                                                                                                                                                                  StackExchange.ready(
                                                                                                                                                                                                                                                  function () {
                                                                                                                                                                                                                                                  StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f23260057%2fthe-forked-vm-terminated-without-saying-properly-goodbye-vm-crash-or-system-exi%23new-answer', 'question_page');
                                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                                                  );

                                                                                                                                                                                                                                                  Post as a guest















                                                                                                                                                                                                                                                  Required, but never shown





















































                                                                                                                                                                                                                                                  Required, but never shown














                                                                                                                                                                                                                                                  Required, but never shown












                                                                                                                                                                                                                                                  Required, but never shown







                                                                                                                                                                                                                                                  Required, but never shown

































                                                                                                                                                                                                                                                  Required, but never shown














                                                                                                                                                                                                                                                  Required, but never shown












                                                                                                                                                                                                                                                  Required, but never shown







                                                                                                                                                                                                                                                  Required, but never shown











                                                                                                                                                                                                                                                  Popular posts from this blog

                                                                                                                                                                                                                                                  Wiesbaden

                                                                                                                                                                                                                                                  Marschland

                                                                                                                                                                                                                                                  Dieringhausen