Coder Social home page Coder Social logo

surefire-problem's Introduction

surefire-problem

project to investigate surefire forking crash under Java 11

It might be Failsafe thats the actual problem ...

mvn clean install

When using certain dependencies bundled into a fat jar (e.g. cxf-core) surefire/failsafe reports a crashed fork attempt. Yields ...

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  6.295 s
[INFO] Finished at: 2022-04-12T16:36:03+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:3.0.0-M5:verify (run-tests) on project artifact1: There are test failures.
[ERROR] 
[ERROR] Please refer to /home/paulcampbell/HMPO/surefire-problem/target/failsafe-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
[ERROR] Command was /bin/sh -c cd /home/paulcampbell/HMPO/surefire-problem && /usr/lib/jvm/java-11-openjdk-amd64/bin/java @/home/paulcampbell/HMPO/surefire-problem/target/surefire/surefireargs10961685891327111046 /home/paulcampbell/HMPO/surefire-problem/target/surefire 2022-04-12T16-36-01_469-jvmRun1 surefire6425831590946008469tmp surefire_01550115040662318041tmp

The jvmrun file contains this error:

# Created at 2022-04-12T16:36:02.807
Corrupted STDOUT by directly writing to native stream in forked JVM 1. Stream 'Error occurred during initialization of boot layer'.
# Created at 2022-04-12T16:36:02.809
Corrupted STDOUT by directly writing to native stream in forked JVM 1. Stream 'java.lang.module.ResolutionException: Module artifact1.BUILD contains package javax.transaction.xa, module java.transaction.xa exports package javax.transaction.xa to artifact1.BUILD'.

This problem seems to have been introduced in 3.0.0.-M5 since it will work as expected using failsafe 3.0.0.-M4.

The jar itself is runnable on command line without any problem in either case e.g.:

java -jar target/artifact1-BUILD.jar

surefire-problem's People

Contributors

pncampbell avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.