Re: [I] 3.6.0 regression: IllegalStateException: Could not self-attach to current VM using external process [maven-surefire]
lprimak commented on issue #3461: URL: https://github.com/apache/maven-surefire/issues/3461#issuecomment-5619996870 Ok I will be more direct... @marcuswj-telia @uckelman I am glad that extracting hard-won insights and value from my open source project has helped you move forward. I would appreciate some attribution, at least star of https://github.com/flowlogix/base-pom and possibly [Sponsorship](https://github.com/sponsors/flowlogix) Actions like the above would improve changes of my next innovation not staying closed-source. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] 3.6.0 regression: IllegalStateException: Could not self-attach to current VM using external process [maven-surefire]
lprimak commented on issue #3461: URL: https://github.com/apache/maven-surefire/issues/3461#issuecomment-5620623477 Maybe... but that means my work doesn't deserve a star... right? right? Maybe star both? and support both? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] 3.6.0 regression: IllegalStateException: Could not self-attach to current VM using external process [maven-surefire]
lprimak commented on issue #3461: URL: https://github.com/apache/maven-surefire/issues/3461#issuecomment-5620964465 Done, even though I am not a gamer. > The project in which I encountered the problem also accepts donations and can be starred. 🤣 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] 3.6.0 regression: IllegalStateException: Could not self-attach to current VM using external process [maven-surefire]
uckelman commented on issue #3461: URL: https://github.com/apache/maven-surefire/issues/3461#issuecomment-5620794740 The project in which I encountered the problem also accepts donations and can be starred. 🤣 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] 3.6.0 regression: IllegalStateException: Could not self-attach to current VM using external process [maven-surefire]
uckelman commented on issue #3461: URL: https://github.com/apache/maven-surefire/issues/3461#issuecomment-5620568996 @lprimak I appreciate your response, but I figured out what to do from the [mockito documentation](https://javadoc.io/doc/org.mockito/mockito-core/latest/org.mockito/org/mockito/Mockito.html#0.3). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] 3.6.0 regression: IllegalStateException: Could not self-attach to current VM using external process [maven-surefire]
olamy closed issue #3461: 3.6.0 regression: IllegalStateException: Could not self-attach to current VM using external process URL: https://github.com/apache/maven-surefire/issues/3461 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] 3.6.0 regression: IllegalStateException: Could not self-attach to current VM using external process [maven-surefire]
marcuswj-telia commented on issue #3461:
URL:
https://github.com/apache/maven-surefire/issues/3461#issuecomment-5618114727
Can confirm that a variation of this solves our issue as well (obviously by
targeting mockk and not mockito but yeah). Thanks to you both @uckelman and
@lprimak
> Apparently what's needed for mockito is this, merged with the existing
pom.xml:
>
> ```
>
>
>
>
>
>
>org.apache.maven.plugins
>maven-dependency-plugin
>
>
>
>properties
>
>
>
>
>
>
>
> maven-surefire-plugin
>
> @{argLine}
-javaagent:${org.mockito:mockito-core:jar}
>
>
> ```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Re: [I] 3.6.0 regression: IllegalStateException: Could not self-attach to current VM using external process [maven-surefire]
lprimak commented on issue #3461: URL: https://github.com/apache/maven-surefire/issues/3461#issuecomment-5593168059 @uckelman Appreciate the attribution, and star of https://github.com/flowlogix/base-pom -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] 3.6.0 regression: IllegalStateException: Could not self-attach to current VM using external process [maven-surefire]
uckelman commented on issue #3461:
URL:
https://github.com/apache/maven-surefire/issues/3461#issuecomment-5584915568
Apparently what's needed for mockito is this, merged with the existing
pom.xml:
```
org.apache.maven.plugins
maven-dependency-plugin
properties
maven-surefire-plugin
@{argLine}
-javaagent:${org.mockito:mockito-core:jar}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Re: [I] 3.6.0 regression: IllegalStateException: Could not self-attach to current VM using external process [maven-surefire]
uckelman commented on issue #3461: URL: https://github.com/apache/maven-surefire/issues/3461#issuecomment-5584313301 > The proper way to attach Mockito is via command line. See https://docs.flowlogix.com/base-pom and https://github.com/flowlogix/base-pom/blob/main/infra-pom/pom.xml for details Which part there is what's required? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] 3.6.0 regression: IllegalStateException: Could not self-attach to current VM using external process [maven-surefire]
lprimak commented on issue #3461: URL: https://github.com/apache/maven-surefire/issues/3461#issuecomment-5577286347 Things like this are going to start breaking. The proper way to attach Mockito is via command line. See https://docs.flowlogix.com/base-pom and https://github.com/flowlogix/base-pom/blob/main/infra-pom/pom.xml for details, or better yet, use FlowLogix base-pom as your parent project -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] 3.6.0 regression: IllegalStateException: Could not self-attach to current VM using external process [maven-surefire]
marcuswj-telia commented on issue #3461: URL: https://github.com/apache/maven-surefire/issues/3461#issuecomment-5575564690 Yes, we see this error as well with Surefire 3.6.0: `java.lang.NoClassDefFoundError: Could not initialize class io.mockk.impl.JvmMockKGateway at io.mockk.junit5.MockKExtension.postProcessTestInstance(MockKExtension.kt:362) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:186) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:214) at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:197) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:214) at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1716) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:570) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:560) at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:153) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:176) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:265) at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:632) at java.base/java.util.Optional.orElseGet(Optional.java:364) at java.base/java.util.ArrayList.forEach(ArrayList.java:1604) at java.base/java.util.ArrayList.forEach(ArrayList.java:1604) Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.IllegalStateException: Could not self-attach to current VM using external process - set a property net.bytebuddy.agent.attacher.dump to dump the process output to a file at the specified location [in thread "main"] at net.bytebuddy.agent.ByteBuddyAgent.installExternal(ByteBuddyAgent.java:672) at net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:599) at net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:579) at net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:531) at net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:508) at io.mockk.proxy.jvm.JvmMockKAgentFactory.initInstrumentation(JvmMockKAgentFactory.kt:135) at io.mockk.proxy.jvm.JvmMockKAgentFactory.init(JvmMockKAgentFactory.kt:39) at io.mockk.impl.JvmMockKGateway.(JvmMockKGateway.kt:82) at io.mockk.impl.JvmMockKGateway.(JvmMockKGateway.kt:230) ... 15 more` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] 3.6.0 regression: IllegalStateException: Could not self-attach to current VM using external process [maven-surefire]
uckelman commented on issue #3461: URL: https://github.com/apache/maven-surefire/issues/3461#issuecomment-5575061657 Here's the failing CI run for the 3.6.0 upgrade: https://github.com/vassalengine/vassal/pull/15050 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
