[ https://issues.apache.org/jira/browse/SUREFIRE-1374?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16204739#comment-16204739 ]
Tibor Digana edited comment on SUREFIRE-1374 at 10/14/17 5:18 PM: ------------------------------------------------------------------ [~dan.berindei] [~binkley] Did you see FAQ on Surefire documentation page? This requires cooperation with Surefire development because we only make others errors more visible. This dump reported by [~binkley] is not an error in Surefire, I would say. We printed this error message in dump file because frameworks, here Spring, writes directly to native STDOUT as it seems. Some logger, I think Log4J and Arquillian fixed this issue already, is still used with old version. The worse error is {{Command BYE_ACK unexpectedly read Void data with length 4}} which I do not know how happened, since this is {{System.in}} read by Surefire and this looks like one of the following three issues: + encoding on system, so that empty characters are added after BYE_ACK + JVM adds white characters when it is about to exit after System.exit. (can be avoided with workaround in Surefire) + some framework does was (Author: tibor17): [~dan.berindei] [~binkley] Did you see FAQ on Surefire documentation page? This requires cooperation with Surefire development because we only make others errors more visible. This dumpfrom [~binkley] is not an error. We printed this error message in dump file because frameworks, here Spring, writes directly to native STDOUT as it seems. Some logger, I think Log4J and Arquillian fixed this issue already, is still used with old version. The worse error is {{Command BYE_ACK unexpectedly read Void data with length 4}} which I do not know how happened, since this is {{System.in}} read by Surefire and this looks like one of the following three issues: + encoding on system, so that empty characters are added after BYE_ACK + JVM adds white characters when it is about to exit after System.exit. (can be avoided with workaround in Surefire) + some framework does > std/in stream corrupted error > ----------------------------- > > Key: SUREFIRE-1374 > URL: https://issues.apache.org/jira/browse/SUREFIRE-1374 > Project: Maven Surefire > Issue Type: Bug > Components: Maven Surefire Plugin > Affects Versions: 2.20 > Reporter: matteo rulli > Assignee: Tibor Digana > > We bumbed surefire version to 2.20 (from 2.19.1) and our tests started > generating this kind of errors: > {code} > # Created on 2017-05-26T10:24:04.032 > [SUREFIRE] std/in stream corrupted > java.io.IOException: Command BYE_ACK unexpectedly read Void data with length > 4. > at > org.apache.maven.surefire.booter.MasterProcessCommand.decode(MasterProcessCommand.java:130) > at > org.apache.maven.surefire.booter.CommandReader$CommandRunnable.run(CommandReader.java:386) > at java.lang.Thread.run(Thread.java:745) > {code} > Related stacktrace: > {code} > [ERROR] Error occurred in starting fork, check output in log > [ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: Error > occurred in starting fork, check output in log > [ERROR] at > org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:634) > [ERROR] at > org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:533) > [ERROR] at > org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:279) > [ERROR] at > org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:243) > [ERROR] at > org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1077) > [ERROR] at > org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:907) > [ERROR] at > org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:785) > [ERROR] at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) > [ERROR] at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) > [ERROR] at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154) > [ERROR] at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146) > [ERROR] at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117) > [ERROR] at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81) > [ERROR] at > org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) > [ERROR] at > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) > [ERROR] at > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309) > [ERROR] at > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194) > [ERROR] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107) > [ERROR] at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993) > [ERROR] at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345) > [ERROR] at org.apache.maven.cli.MavenCli.main(MavenCli.java:191) > [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > [ERROR] at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > [ERROR] at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > [ERROR] at java.lang.reflect.Method.invoke(Method.java:498) > [ERROR] at > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) > [ERROR] at > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) > [ERROR] at > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) > [ERROR] at > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) > [ > {code} > Everything worked fine with 2.19.1. > Environment: macOS sierra, java version "1.8.0_74", Apache Maven 3.5.0 -- This message was sent by Atlassian JIRA (v6.4.14#64029)