Re: Help needed with maven-invoker builds

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



thanks! So I guess for now I'll disable the two failing tests out and when the
maven-surefire is upgraded in Fedora I'll try to enable the tests again.

Thanks everyone!

Best regards,
Markku Korkeala

On 8/3/22 00:40, Jerry James wrote:
> On Tue, Aug 2, 2022 at 8:05 AM Markku Korkeala <markku.korkeala@xxxxxx> wrote:
>> thanks all for the replies, I was running for the same issues with 3.2.0 version as well,
>> good to see that return code 126 is fixable. Like I wrote in the opening message, I was
>> able to add some debug messages and see that in the first case of Integer.MIN_VALUE return
>> code, the exception returned from the process was:
>> org.apache.maven.shared.utils.cli.CommandLineException:  Failure processing stdout.
>> (the test sends InvocationRequest and receives InvocationResponse, the response has
>> the Exception and return code).
>> But haven't got any deeper than that, what is the actual cause for the error.
> I added some logging in (in method execute) to
> print the exception when a CommandLineException is caught.  The two
> failing tests are similar:
> Exception: Failure processing stdout.
> org.apache.maven.shared.utils.cli.CommandLineException: Failure
> processing stdout.
>     at org.apache.maven.shared.utils.cli.CommandLineUtils$
>     at org.apache.maven.shared.utils.cli.CommandLineUtils.executeCommandLine(
>     at org.apache.maven.shared.utils.cli.CommandLineUtils.executeCommandLine(
>     at org.apache.maven.shared.utils.cli.CommandLineUtils.executeCommandLine(
>     at org.apache.maven.shared.utils.cli.CommandLineUtils.executeCommandLine(
>     at org.apache.maven.shared.invoker.DefaultInvoker.executeCommandLine(
>     at org.apache.maven.shared.invoker.DefaultInvoker.execute(
>     at org.apache.maven.shared.invoker.DefaultInvokerTest.testBuildShouldSucceed(
>     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(
>     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(
>     at java.base/java.lang.reflect.Method.invoke(
>     at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(
>     at
>     at org.junit.runners.model.FrameworkMethod.invokeExplosively(
>     at org.junit.internal.runners.statements.InvokeMethod.evaluate(
>     at org.junit.runners.ParentRunner$3.evaluate(
>     at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(
>     at org.junit.runners.ParentRunner.runLeaf(
>     at org.junit.runners.BlockJUnit4ClassRunner.runChild(
>     at org.junit.runners.BlockJUnit4ClassRunner.runChild(
>     at org.junit.runners.ParentRunner$
>     at org.junit.runners.ParentRunner$1.schedule(
>     at org.junit.runners.ParentRunner.runChildren(
>     at org.junit.runners.ParentRunner.access$100(
>     at org.junit.runners.ParentRunner$2.evaluate(
>     at org.junit.runners.ParentRunner$3.evaluate(
>     at
>     at org.apache.maven.surefire.junit4.JUnit4Provider.execute(
>     at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(
>     at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(
>     at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(
>     at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(
>     at org.apache.maven.surefire.booter.ForkedBooter.execute(
>     at
>     at org.apache.maven.surefire.booter.ForkedBooter.main(
> Caused by: java.nio.BufferOverflowException
>     at java.base/java.nio.Buffer.nextPutIndex(
>     at java.base/java.nio.HeapByteBuffer.put(
>     at
>     at
>     at
>     at org.apache.maven.surefire.booter.spi.EventChannelEncoder.encodeMessage(
>     at org.apache.maven.surefire.booter.spi.EventChannelEncoder.setOutErr(
>     at org.apache.maven.surefire.booter.spi.EventChannelEncoder.testOutput(
>     at org.apache.maven.surefire.api.booter.ForkingRunListener.writeTestOutput(
>     at org.apache.maven.surefire.api.booter.ForkingRunListener.writeTestOutput(
>     at org.apache.maven.surefire.common.junit4.JUnit4RunListener.writeTestOutput(
>     at$ForwardingPrintStream.println(
>     at org.apache.maven.shared.invoker.PrintStreamHandler.consumeLine(
>     at org.apache.maven.shared.utils.cli.StreamPumper.consumeLine(
>     at
> We have version 3.0.0-M6 of surefire in Rawhide, which has this bug:
>  It looks like
> maven-invoker has run afoul of that bug.
java-devel mailing list -- java-devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to java-devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct:
List Guidelines:
List Archives:
Do not reply to spam, report it:

[Index of Archives]     [Red Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux