You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried to run the agent with jsoniter-scala benchmark on JDK-17 using the following command:
sbt -batch -java-home /usr/lib/jvm/zulu-17 clean 'jsoniter-scala-benchmarkJVM/jmh:run -jvmArgs -javaagent:<full path to local copy of type-pollution-agent repo>/agent/target/type-pollution-agent-0.1-SNAPSHOT.jar -p size=128 .*'
Here is a couple of stack traces:
[info] [Byte Buddy] ERROR scala.math.Integral$ [jdk.internal.loader.ClassLoaders$AppClassLoader@251a69d7, unnamed module @3ada9e37, Thread[com.github.plokhotnyuk.jsoniter_scala.benchmark.BigIntWriting.jacksonScala-jmh-worker-1,5,main], loaded=false]
[info] java.lang.IllegalStateException: Illegal parameter name of final scala.math.Integral int for public scala.math.Integral scala.math.Integral$.apply(scala.math.Integral)
[info] at agent.net.bytebuddy.dynamic.scaffold.InstrumentedType$Default.validated(InstrumentedType.java:1766)
[info] at agent.net.bytebuddy.dynamic.scaffold.MethodRegistry$Default.prepare(MethodRegistry.java:520)
[info] at agent.net.bytebuddy.dynamic.scaffold.inline.RebaseDynamicTypeBuilder.make(RebaseDynamicTypeBuilder.java:221)
[info] at agent.net.bytebuddy.agent.builder.AgentBuilder$Default$ExecutingTransformer.doTransform(AgentBuilder.java:11903)
[info] at agent.net.bytebuddy.agent.builder.AgentBuilder$Default$ExecutingTransformer.transform(AgentBuilder.java:11838)
[info] at agent.net.bytebuddy.agent.builder.AgentBuilder$Default$ExecutingTransformer.access$1700(AgentBuilder.java:11555)
[info] at agent.net.bytebuddy.agent.builder.AgentBuilder$Default$ExecutingTransformer$Java9CapableVmDispatcher.run(AgentBuilder.java:12318)
[info] at agent.net.bytebuddy.agent.builder.AgentBuilder$Default$ExecutingTransformer$Java9CapableVmDispatcher.run(AgentBuilder.java:12250)
[info] at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
[info] at agent.net.bytebuddy.agent.builder.AgentBuilder$Default$ExecutingTransformer.doPrivileged(AgentBuilder.java)
[info] at agent.net.bytebuddy.agent.builder.AgentBuilder$Default$ExecutingTransformer.transform(AgentBuilder.java:11781)
[info] at agent.net.bytebuddy.agent.builder.AgentBuilder$Default$ExecutingTransformer$ByteBuddy$ModuleSupport.transform(Unknown Source)
[info] at java.instrument/sun.instrument.TransformerManager.transform(TransformerManager.java:188)
[info] at java.instrument/sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:541)
[info] at java.base/java.lang.ClassLoader.defineClass1(Native Method)
[info] at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1012)
[info] at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
[info] at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:862)
[info] at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:760)
[info] at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:681)
[info] at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:639)
[info] at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
[info] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
[info] at scala.package$.<clinit>(package.scala:124)
[info] at scala.Predef$.<clinit>(Predef.scala:151)
[info] at com.github.plokhotnyuk.jsoniter_scala.benchmark.BigIntBenchmark.setup(BigIntBenchmark.scala:15)
[info] at com.github.plokhotnyuk.jsoniter_scala.benchmark.jmh_generated.BigIntWriting_jacksonScala_jmhTest._jmh_tryInit_f_bigintwriting0_0(BigIntWriting_jacksonScala_jmhTest.java:338)
[info] at com.github.plokhotnyuk.jsoniter_scala.benchmark.jmh_generated.BigIntWriting_jacksonScala_jmhTest.jacksonScala_Throughput(BigIntWriting_jacksonScala_jmhTest.java:71)
[info] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[info] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
[info] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[info] at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[info] at org.openjdk.jmh.runner.BenchmarkHandler$BenchmarkTask.call(BenchmarkHandler.java:475)
[info] at org.openjdk.jmh.runner.BenchmarkHandler$BenchmarkTask.call(BenchmarkHandler.java:458)
[info] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[info] at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
[info] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[info] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
[info] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
[info] at java.base/java.lang.Thread.run(Thread.java:833)
[info] [Byte Buddy] ERROR scala.collection.AbstractSeq [jdk.internal.loader.ClassLoaders$AppClassLoader@251a69d7, unnamed module @3ada9e37, Thread[com.github.plokhotnyuk.jsoniter_scala.benchmark.BigIntWriting.jacksonScala-jmh-worker-1,5,main], loaded=false]
[info] java.lang.IllegalStateException: Illegal parameter name of final scala.Function1 default for public java.lang.Object scala.collection.AbstractSeq.applyOrElse(java.lang.Object,scala.Function1)
[info] at agent.net.bytebuddy.dynamic.scaffold.InstrumentedType$Default.validated(InstrumentedType.java:1766)
[info] at agent.net.bytebuddy.dynamic.scaffold.MethodRegistry$Default.prepare(MethodRegistry.java:520)
[info] at agent.net.bytebuddy.dynamic.scaffold.inline.RebaseDynamicTypeBuilder.make(RebaseDynamicTypeBuilder.java:221)
[info] at agent.net.bytebuddy.agent.builder.AgentBuilder$Default$ExecutingTransformer.doTransform(AgentBuilder.java:11903)
[info] at agent.net.bytebuddy.agent.builder.AgentBuilder$Default$ExecutingTransformer.transform(AgentBuilder.java:11838)
[info] at agent.net.bytebuddy.agent.builder.AgentBuilder$Default$ExecutingTransformer.access$1700(AgentBuilder.java:11555)
[info] at agent.net.bytebuddy.agent.builder.AgentBuilder$Default$ExecutingTransformer$Java9CapableVmDispatcher.run(AgentBuilder.java:12318)
[info] at agent.net.bytebuddy.agent.builder.AgentBuilder$Default$ExecutingTransformer$Java9CapableVmDispatcher.run(AgentBuilder.java:12250)
[info] at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
[info] at agent.net.bytebuddy.agent.builder.AgentBuilder$Default$ExecutingTransformer.doPrivileged(AgentBuilder.java)
[info] at agent.net.bytebuddy.agent.builder.AgentBuilder$Default$ExecutingTransformer.transform(AgentBuilder.java:11781)
[info] at agent.net.bytebuddy.agent.builder.AgentBuilder$Default$ExecutingTransformer$ByteBuddy$ModuleSupport.transform(Unknown Source)
[info] at java.instrument/sun.instrument.TransformerManager.transform(TransformerManager.java:188)
[info] at java.instrument/sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:541)
[info] at java.base/java.lang.ClassLoader.defineClass1(Native Method)
[info] at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1012)
[info] at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
[info] at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:862)
[info] at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:760)
[info] at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:681)
[info] at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:639)
[info] at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
[info] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
[info] at java.base/java.lang.ClassLoader.defineClass1(Native Method)
[info] at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1012)
[info] at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
[info] at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:862)
[info] at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:760)
[info] at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:681)
[info] at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:639)
[info] at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
[info] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
[info] at java.base/java.lang.ClassLoader.defineClass1(Native Method)
[info] at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1012)
[info] at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
[info] at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:862)
[info] at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:760)
[info] at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:681)
[info] at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:639)
[info] at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
[info] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
[info] at com.github.plokhotnyuk.jsoniter_scala.benchmark.BigIntBenchmark.setup(BigIntBenchmark.scala:15)
[info] at com.github.plokhotnyuk.jsoniter_scala.benchmark.jmh_generated.BigIntWriting_jacksonScala_jmhTest._jmh_tryInit_f_bigintwriting0_0(BigIntWriting_jacksonScala_jmhTest.java:338)
[info] at com.github.plokhotnyuk.jsoniter_scala.benchmark.jmh_generated.BigIntWriting_jacksonScala_jmhTest.jacksonScala_Throughput(BigIntWriting_jacksonScala_jmhTest.java:71)
[info] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[info] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
[info] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[info] at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[info] at org.openjdk.jmh.runner.BenchmarkHandler$BenchmarkTask.call(BenchmarkHandler.java:475)
[info] at org.openjdk.jmh.runner.BenchmarkHandler$BenchmarkTask.call(BenchmarkHandler.java:458)
[info] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[info] at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
[info] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[info] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
[info] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
[info] at java.base/java.lang.Thread.run(Thread.java:833)
The text was updated successfully, but these errors were encountered:
@plokhotnyuk sorry to read it just now, I'm not a Scala user myself, but it seems something related ByteBuddy itself and the issue could be redirected there.
I've tried to run the agent with jsoniter-scala benchmark on JDK-17 using the following command:
Here is a couple of stack traces:
The text was updated successfully, but these errors were encountered: