Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UTBot CLI throws InaccessibleObjectException because java.lang is not opened #2495

Closed
alisevych opened this issue Aug 10, 2023 · 1 comment · Fixed by #2507
Closed

UTBot CLI throws InaccessibleObjectException because java.lang is not opened #2495

alisevych opened this issue Aug 10, 2023 · 1 comment · Fixed by #2507
Assignees
Labels
comp-cli Issue related to CLI comp-instrumented-process Issue is related to Instrumented process ctg-bug Issue is a bug lang-java Issue is related to Java support status-verified Bug fix is verified

Comments

@alisevych
Copy link
Member

alisevych commented Aug 10, 2023

Description

UTBot CLI throws InaccessibleObjectException because java.lang is not opened
Error report with concrete executions failures is generated

To Reproduce

  1. Download utbot-cli-java-main-*** from main
  2. Unzip it
  3. Set JAVA_HOME system variable to JDK-17 directory, include JDK's \bin directory in Path systems variable and restart
  4. Open Windows Powershell
  5. Execute command java -version. Check JDK 17 is used
  6. Create a directory, put utbot-cli JAR-file into it
  7. Create src, build and test directories inside
  8. Put a Java-file into src (if class is not in default package, create folders inside src and test)
  9. Compile Java-file

javac .\src\org\fuzzing\ListConcurrentModification.java -d .\build

  1. Generate tests for the class:

java -jar .\utbot-cli-main-2023.8.5040.jar generate -s .\src\org\fuzzing\ListConcurrentModification.java -cp .\build\ -o .\test\org\fuzzing\ListConcurrentModificationTest.java --generation-timeout 30000 org.fuzzing.ListConcurrentModification

Expected behavior

No exceptions are expected to be thrown when generating tests.

Actual behavior

Several similar InaccessibleObjectExceptions are thrown into console.
Error report with concrete executions failures is generated.

Screenshots, logs

ConcreteExecutor | executeAsync, response(ERROR)
org.utbot.instrumentation.util.InstrumentedProcessError: Error in the instrumented process |> org.utbot.framework.process.kryo.ReadingFromKryoException: Reading from Kryo exception |> com.esotericsoftware.kryo.kryo5.KryoException: java.lang.reflect.InaccessibleObjectException: Unable to make field private transient java.lang.Class java.lang.StackTraceElement.declaringClassObject accessible: module java.base does not "opens java.lang" to unnamed module @5c18298f
Serialization trace:
stackTrace (org.utbot.framework.process.kryo.ThrowableSerializer$ThrowableModel)
exception (org.utbot.framework.plugin.api.UtImplicitlyThrownException)
result (org.utbot.instrumentation.instrumentation.execution.UtConcreteExecutionResult)
        at com.esotericsoftware.kryo.kryo5.serializers.ReflectField.read(ReflectField.java:145)
        at com.esotericsoftware.kryo.kryo5.serializers.FieldSerializer.read(FieldSerializer.java:129)
        at com.esotericsoftware.kryo.kryo5.Kryo.readObject(Kryo.java:774)
        at org.utbot.framework.process.kryo.ThrowableSerializer.read(ThrowableSerializer.kt:100)
        at org.utbot.framework.process.kryo.ThrowableSerializer.read(ThrowableSerializer.kt:20)
        at com.esotericsoftware.kryo.kryo5.Kryo.readObject(Kryo.java:796)
        at com.esotericsoftware.kryo.kryo5.serializers.ReflectField.read(ReflectField.java:123)
        at com.esotericsoftware.kryo.kryo5.serializers.FieldSerializer.read(FieldSerializer.java:129)
        at com.esotericsoftware.kryo.kryo5.Kryo.readObject(Kryo.java:796)
        at com.esotericsoftware.kryo.kryo5.serializers.ReflectField.read(ReflectField.java:123)
        at com.esotericsoftware.kryo.kryo5.serializers.FieldSerializer.read(FieldSerializer.java:129)
        at com.esotericsoftware.kryo.kryo5.Kryo.readClassAndObject(Kryo.java:877)
        at org.utbot.framework.process.kryo.KryoHelper.readObject(KryoHelper.kt:72)
        at org.utbot.instrumentation.ConcreteExecutor$executeAsync$2$1.invokeSuspend(ConcreteExecutor.kt:232)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
        at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
        at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:284)
        at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:85)
        at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59)
        at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
        at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:38)
        at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)
        at org.utbot.common.ConcurrencyKt.runBlockingWithCancellationPredicate(Concurrency.kt:38)
        at org.utbot.framework.plugin.api.TestCaseGenerator$generate$2$3.invoke(TestCaseGenerator.kt:196)
        at org.utbot.framework.plugin.api.TestCaseGenerator$generate$2$3.invoke(TestCaseGenerator.kt:195)
        at org.utbot.common.ConcurrencyKt.runIgnoringCancellationException(Concurrency.kt:47)
        at org.utbot.framework.plugin.api.TestCaseGenerator.generate(TestCaseGenerator.kt:195)
        at org.utbot.framework.plugin.api.TestCaseGenerator.generate$default(TestCaseGenerator.kt:164)
        at org.utbot.cli.GenerateTestsAbstractCommand.generateTestSets(GenerateTestsAbstractCommand.kt:161)
        at org.utbot.cli.GenerateTestsCommand.run(GenerateTestsCommand.kt:113)
        at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:204)
        at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:213)
        at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:17)
        at com.github.ajalt.clikt.core.CliktCommand.parse(CliktCommand.kt:396)
        at com.github.ajalt.clikt.core.CliktCommand.parse$default(CliktCommand.kt:393)
        at com.github.ajalt.clikt.core.CliktCommand.main(CliktCommand.kt:411)
        at com.github.ajalt.clikt.core.CliktCommand.main(CliktCommand.kt:436)
        at org.utbot.cli.ApplicationKt.main(Application.kt:31)
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private transient java.lang.Class java.lang.StackTraceElement.declaringClassObject accessible: module java.base does not "opens java.lang" to unnamed module @5c18298f
        at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
        at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
        at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178)
        at java.base/java.lang.reflect.Field.setAccessible(Field.java:172)
        at com.esotericsoftware.kryo.kryo5.serializers.CachedFields.addField(CachedFields.java:123)
        at com.esotericsoftware.kryo.kryo5.serializers.CachedFields.rebuild(CachedFields.java:99)
        at com.esotericsoftware.kryo.kryo5.serializers.FieldSerializer.<init>(FieldSerializer.java:82)
        at com.esotericsoftware.kryo.kryo5.SerializerFactory$FieldSerializerFactory.newSerializer(SerializerFactory.java:124)
        at com.esotericsoftware.kryo.kryo5.SerializerFactory$FieldSerializerFactory.newSerializer(SerializerFactory.java:108)
        at com.esotericsoftware.kryo.kryo5.Kryo.newDefaultSerializer(Kryo.java:469)
        at com.esotericsoftware.kryo.kryo5.Kryo.getDefaultSerializer(Kryo.java:454)
        at com.esotericsoftware.kryo.kryo5.util.DefaultClassResolver.registerImplicit(DefaultClassResolver.java:89)
        at com.esotericsoftware.kryo.kryo5.Kryo.getRegistration(Kryo.java:581)
        at com.esotericsoftware.kryo.kryo5.Kryo.getSerializer(Kryo.java:601)
        at com.esotericsoftware.kryo.kryo5.serializers.DefaultArraySerializers$ObjectArraySerializer.read(DefaultArraySerializers.java:346)
        at com.esotericsoftware.kryo.kryo5.serializers.DefaultArraySerializers$ObjectArraySerializer.read(DefaultArraySerializers.java:299)
        at com.esotericsoftware.kryo.kryo5.Kryo.readObjectOrNull(Kryo.java:847)
        at com.esotericsoftware.kryo.kryo5.serializers.ReflectField.read(ReflectField.java:132)
        ... 37 more

        at org.utbot.framework.process.kryo.KryoHelper.readObject(KryoHelper.kt:74)
        at org.utbot.instrumentation.ConcreteExecutor$executeAsync$2$1.invokeSuspend(ConcreteExecutor.kt:232)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
        at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
        at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:284)
        at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:85)
        at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59)
        at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
        at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:38)
        at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)
        at org.utbot.common.ConcurrencyKt.runBlockingWithCancellationPredicate(Concurrency.kt:38)
        at org.utbot.framework.plugin.api.TestCaseGenerator$generate$2$3.invoke(TestCaseGenerator.kt:196)
        at org.utbot.framework.plugin.api.TestCaseGenerator$generate$2$3.invoke(TestCaseGenerator.kt:195)
        at org.utbot.common.ConcurrencyKt.runIgnoringCancellationException(Concurrency.kt:47)
        at org.utbot.framework.plugin.api.TestCaseGenerator.generate(TestCaseGenerator.kt:195)
        at org.utbot.framework.plugin.api.TestCaseGenerator.generate$default(TestCaseGenerator.kt:164)
        at org.utbot.cli.GenerateTestsAbstractCommand.generateTestSets(GenerateTestsAbstractCommand.kt:161)
        at org.utbot.cli.GenerateTestsCommand.run(GenerateTestsCommand.kt:113)
        at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:204)
        at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:213)
        at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:17)
        at com.github.ajalt.clikt.core.CliktCommand.parse(CliktCommand.kt:396)
        at com.github.ajalt.clikt.core.CliktCommand.parse$default(CliktCommand.kt:393)
        at com.github.ajalt.clikt.core.CliktCommand.main(CliktCommand.kt:411)
        at com.github.ajalt.clikt.core.CliktCommand.main(CliktCommand.kt:436)
        at org.utbot.cli.ApplicationKt.main(Application.kt:31)
Caused by: com.esotericsoftware.kryo.kryo5.KryoException: java.lang.reflect.InaccessibleObjectException: Unable to make field private transient java.lang.Class java.lang.StackTraceElement.declaringClassObject accessible: module java.base does not "opens java.lang" to unnamed module @5c18298f
Serialization trace:
stackTrace (org.utbot.framework.process.kryo.ThrowableSerializer$ThrowableModel)
exception (org.utbot.framework.plugin.api.UtImplicitlyThrownException)
result (org.utbot.instrumentation.instrumentation.execution.UtConcreteExecutionResult)
        at com.esotericsoftware.kryo.kryo5.serializers.ReflectField.read(ReflectField.java:145)
        at com.esotericsoftware.kryo.kryo5.serializers.FieldSerializer.read(FieldSerializer.java:129)
        at com.esotericsoftware.kryo.kryo5.Kryo.readObject(Kryo.java:774)
        at org.utbot.framework.process.kryo.ThrowableSerializer.read(ThrowableSerializer.kt:100)
        at org.utbot.framework.process.kryo.ThrowableSerializer.read(ThrowableSerializer.kt:20)
        at com.esotericsoftware.kryo.kryo5.Kryo.readObject(Kryo.java:796)
        at com.esotericsoftware.kryo.kryo5.serializers.ReflectField.read(ReflectField.java:123)
        at com.esotericsoftware.kryo.kryo5.serializers.FieldSerializer.read(FieldSerializer.java:129)
        at com.esotericsoftware.kryo.kryo5.Kryo.readObject(Kryo.java:796)
        at com.esotericsoftware.kryo.kryo5.serializers.ReflectField.read(ReflectField.java:123)
        at com.esotericsoftware.kryo.kryo5.serializers.FieldSerializer.read(FieldSerializer.java:129)
        at com.esotericsoftware.kryo.kryo5.Kryo.readClassAndObject(Kryo.java:877)
        at org.utbot.framework.process.kryo.KryoHelper.readObject(KryoHelper.kt:72)
        ... 25 more
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private transient java.lang.Class java.lang.StackTraceElement.declaringClassObject accessible: module java.base does not "opens java.lang" to unnamed module @5c18298f
        at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
        at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
        at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178)
        at java.base/java.lang.reflect.Field.setAccessible(Field.java:172)
        at com.esotericsoftware.kryo.kryo5.serializers.CachedFields.addField(CachedFields.java:123)
        at com.esotericsoftware.kryo.kryo5.serializers.CachedFields.rebuild(CachedFields.java:99)
        at com.esotericsoftware.kryo.kryo5.serializers.FieldSerializer.<init>(FieldSerializer.java:82)
        at com.esotericsoftware.kryo.kryo5.SerializerFactory$FieldSerializerFactory.newSerializer(SerializerFactory.java:124)
        at com.esotericsoftware.kryo.kryo5.SerializerFactory$FieldSerializerFactory.newSerializer(SerializerFactory.java:108)
        at com.esotericsoftware.kryo.kryo5.Kryo.newDefaultSerializer(Kryo.java:469)
        at com.esotericsoftware.kryo.kryo5.Kryo.getDefaultSerializer(Kryo.java:454)
        at com.esotericsoftware.kryo.kryo5.util.DefaultClassResolver.registerImplicit(DefaultClassResolver.java:89)
        at com.esotericsoftware.kryo.kryo5.Kryo.getRegistration(Kryo.java:581)
        at com.esotericsoftware.kryo.kryo5.Kryo.getSerializer(Kryo.java:601)
        at com.esotericsoftware.kryo.kryo5.serializers.DefaultArraySerializers$ObjectArraySerializer.read(DefaultArraySerializers.java:346)
        at com.esotericsoftware.kryo.kryo5.serializers.DefaultArraySerializers$ObjectArraySerializer.read(DefaultArraySerializers.java:299)
        at com.esotericsoftware.kryo.kryo5.Kryo.readObjectOrNull(Kryo.java:847)
        at com.esotericsoftware.kryo.kryo5.serializers.ReflectField.read(ReflectField.java:132)
        ... 37 more

        at org.utbot.instrumentation.ConcreteExecutor.withProcess(ConcreteExecutor.kt:213) ~[utbot-cli-main-2023.8.5040.jar:?]
        at org.utbot.instrumentation.ConcreteExecutor$withProcess$1.invokeSuspend(ConcreteExecutor.kt) ~[utbot-cli-main-2023.8.5040.jar:?]
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) [utbot-cli-main-2023.8.5040.jar:?]
        at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) [utbot-cli-main-2023.8.5040.jar:?]
        at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:284) [utbot-cli-main-2023.8.5040.jar:?]
        at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:85) [utbot-cli-main-2023.8.5040.jar:?]
        at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59) [utbot-cli-main-2023.8.5040.jar:?]
        at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source) [utbot-cli-main-2023.8.5040.jar:?]
        at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:38) [utbot-cli-main-2023.8.5040.jar:?]
        at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source) [utbot-cli-main-2023.8.5040.jar:?]
        at org.utbot.common.ConcurrencyKt.runBlockingWithCancellationPredicate(Concurrency.kt:38) [utbot-cli-main-2023.8.5040.jar:?]
        at org.utbot.framework.plugin.api.TestCaseGenerator$generate$2$3.invoke(TestCaseGenerator.kt:196) [utbot-cli-main-2023.8.5040.jar:?]
        at org.utbot.framework.plugin.api.TestCaseGenerator$generate$2$3.invoke(TestCaseGenerator.kt:195) [utbot-cli-main-2023.8.5040.jar:?]
        at org.utbot.common.ConcurrencyKt.runIgnoringCancellationException(Concurrency.kt:47) [utbot-cli-main-2023.8.5040.jar:?]
        at org.utbot.framework.plugin.api.TestCaseGenerator.generate(TestCaseGenerator.kt:195) [utbot-cli-main-2023.8.5040.jar:?]
        at org.utbot.framework.plugin.api.TestCaseGenerator.generate$default(TestCaseGenerator.kt:164) [utbot-cli-main-2023.8.5040.jar:?]
        at org.utbot.cli.GenerateTestsAbstractCommand.generateTestSets(GenerateTestsAbstractCommand.kt:161) [utbot-cli-main-2023.8.5040.jar:?]
        at org.utbot.cli.GenerateTestsCommand.run(GenerateTestsCommand.kt:113) [utbot-cli-main-2023.8.5040.jar:?]
        at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:204) [utbot-cli-main-2023.8.5040.jar:?]
        at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:213) [utbot-cli-main-2023.8.5040.jar:?]
        at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:17) [utbot-cli-main-2023.8.5040.jar:?]
        at com.github.ajalt.clikt.core.CliktCommand.parse(CliktCommand.kt:396) [utbot-cli-main-2023.8.5040.jar:?]
        at com.github.ajalt.clikt.core.CliktCommand.parse$default(CliktCommand.kt:393) [utbot-cli-main-2023.8.5040.jar:?]
        at com.github.ajalt.clikt.core.CliktCommand.main(CliktCommand.kt:411) [utbot-cli-main-2023.8.5040.jar:?]
        at com.github.ajalt.clikt.core.CliktCommand.main(CliktCommand.kt:436) [utbot-cli-main-2023.8.5040.jar:?]
        at org.utbot.cli.ApplicationKt.main(Application.kt:31) [utbot-cli-main-2023.8.5040.jar:?]
Caused by: org.utbot.framework.process.kryo.ReadingFromKryoException: Reading from Kryo exception |> com.esotericsoftware.kryo.kryo5.KryoException: java.lang.reflect.InaccessibleObjectException: Unable to make field private transient java.lang.Class java.lang.StackTraceElement.declaringClassObject accessible: module java.base does not "opens java.lang" to unnamed module @5c18298f
Serialization trace:
stackTrace (org.utbot.framework.process.kryo.ThrowableSerializer$ThrowableModel)
exception (org.utbot.framework.plugin.api.UtImplicitlyThrownException)
result (org.utbot.instrumentation.instrumentation.execution.UtConcreteExecutionResult)
        at com.esotericsoftware.kryo.kryo5.serializers.ReflectField.read(ReflectField.java:145)
        at com.esotericsoftware.kryo.kryo5.serializers.FieldSerializer.read(FieldSerializer.java:129)
        at com.esotericsoftware.kryo.kryo5.Kryo.readObject(Kryo.java:774)
        at org.utbot.framework.process.kryo.ThrowableSerializer.read(ThrowableSerializer.kt:100)
        at org.utbot.framework.process.kryo.ThrowableSerializer.read(ThrowableSerializer.kt:20)
        at com.esotericsoftware.kryo.kryo5.Kryo.readObject(Kryo.java:796)
        at com.esotericsoftware.kryo.kryo5.serializers.ReflectField.read(ReflectField.java:123)
        at com.esotericsoftware.kryo.kryo5.serializers.FieldSerializer.read(FieldSerializer.java:129)
        at com.esotericsoftware.kryo.kryo5.Kryo.readObject(Kryo.java:796)
        at com.esotericsoftware.kryo.kryo5.serializers.ReflectField.read(ReflectField.java:123)
        at com.esotericsoftware.kryo.kryo5.serializers.FieldSerializer.read(FieldSerializer.java:129)
        at com.esotericsoftware.kryo.kryo5.Kryo.readClassAndObject(Kryo.java:877)
        at org.utbot.framework.process.kryo.KryoHelper.readObject(KryoHelper.kt:72)
        at org.utbot.instrumentation.ConcreteExecutor$executeAsync$2$1.invokeSuspend(ConcreteExecutor.kt:232)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
        at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
        at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:284)
        at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:85)
        at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59)
        at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
        at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:38)
        at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)
        at org.utbot.common.ConcurrencyKt.runBlockingWithCancellationPredicate(Concurrency.kt:38)
        at org.utbot.framework.plugin.api.TestCaseGenerator$generate$2$3.invoke(TestCaseGenerator.kt:196)
        at org.utbot.framework.plugin.api.TestCaseGenerator$generate$2$3.invoke(TestCaseGenerator.kt:195)
        at org.utbot.common.ConcurrencyKt.runIgnoringCancellationException(Concurrency.kt:47)
        at org.utbot.framework.plugin.api.TestCaseGenerator.generate(TestCaseGenerator.kt:195)
        at org.utbot.framework.plugin.api.TestCaseGenerator.generate$default(TestCaseGenerator.kt:164)
        at org.utbot.cli.GenerateTestsAbstractCommand.generateTestSets(GenerateTestsAbstractCommand.kt:161)
        at org.utbot.cli.GenerateTestsCommand.run(GenerateTestsCommand.kt:113)
        at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:204)
        at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:213)
        at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:17)
        at com.github.ajalt.clikt.core.CliktCommand.parse(CliktCommand.kt:396)
        at com.github.ajalt.clikt.core.CliktCommand.parse$default(CliktCommand.kt:393)
        at com.github.ajalt.clikt.core.CliktCommand.main(CliktCommand.kt:411)
        at com.github.ajalt.clikt.core.CliktCommand.main(CliktCommand.kt:436)
        at org.utbot.cli.ApplicationKt.main(Application.kt:31)
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private transient java.lang.Class java.lang.StackTraceElement.declaringClassObject accessible: module java.base does not "opens java.lang" to unnamed module @5c18298f
        at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
        at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
        at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178)
        at java.base/java.lang.reflect.Field.setAccessible(Field.java:172)
        at com.esotericsoftware.kryo.kryo5.serializers.CachedFields.addField(CachedFields.java:123)
        at com.esotericsoftware.kryo.kryo5.serializers.CachedFields.rebuild(CachedFields.java:99)
        at com.esotericsoftware.kryo.kryo5.serializers.FieldSerializer.<init>(FieldSerializer.java:82)
        at com.esotericsoftware.kryo.kryo5.SerializerFactory$FieldSerializerFactory.newSerializer(SerializerFactory.java:124)
        at com.esotericsoftware.kryo.kryo5.SerializerFactory$FieldSerializerFactory.newSerializer(SerializerFactory.java:108)
        at com.esotericsoftware.kryo.kryo5.Kryo.newDefaultSerializer(Kryo.java:469)
        at com.esotericsoftware.kryo.kryo5.Kryo.getDefaultSerializer(Kryo.java:454)
        at com.esotericsoftware.kryo.kryo5.util.DefaultClassResolver.registerImplicit(DefaultClassResolver.java:89)
        at com.esotericsoftware.kryo.kryo5.Kryo.getRegistration(Kryo.java:581)
        at com.esotericsoftware.kryo.kryo5.Kryo.getSerializer(Kryo.java:601)
        at com.esotericsoftware.kryo.kryo5.serializers.DefaultArraySerializers$ObjectArraySerializer.read(DefaultArraySerializers.java:346)
        at com.esotericsoftware.kryo.kryo5.serializers.DefaultArraySerializers$ObjectArraySerializer.read(DefaultArraySerializers.java:299)
        at com.esotericsoftware.kryo.kryo5.Kryo.readObjectOrNull(Kryo.java:847)
        at com.esotericsoftware.kryo.kryo5.serializers.ReflectField.read(ReflectField.java:132)
        ... 37 more

        at org.utbot.framework.process.kryo.KryoHelper.readObject(KryoHelper.kt:74) ~[utbot-cli-main-2023.8.5040.jar:?]
        at org.utbot.instrumentation.ConcreteExecutor$executeAsync$2$1.invokeSuspend(ConcreteExecutor.kt:232) ~[utbot-cli-main-2023.8.5040.jar:?]
        ... 24 more
Caused by: com.esotericsoftware.kryo.kryo5.KryoException: java.lang.reflect.InaccessibleObjectException: Unable to make field private transient java.lang.Class java.lang.StackTraceElement.declaringClassObject accessible: module java.base does not "opens java.lang" to unnamed module @5c18298f
Serialization trace:
stackTrace (org.utbot.framework.process.kryo.ThrowableSerializer$ThrowableModel)
exception (org.utbot.framework.plugin.api.UtImplicitlyThrownException)
result (org.utbot.instrumentation.instrumentation.execution.UtConcreteExecutionResult)
        at com.esotericsoftware.kryo.kryo5.serializers.ReflectField.read(ReflectField.java:145) ~[utbot-cli-main-2023.8.5040.jar:?]
        at com.esotericsoftware.kryo.kryo5.serializers.FieldSerializer.read(FieldSerializer.java:129) ~[utbot-cli-main-2023.8.5040.jar:?]
        at com.esotericsoftware.kryo.kryo5.Kryo.readObject(Kryo.java:774) ~[utbot-cli-main-2023.8.5040.jar:?]
        at org.utbot.framework.process.kryo.ThrowableSerializer.read(ThrowableSerializer.kt:100) ~[utbot-cli-main-2023.8.5040.jar:?]
        at org.utbot.framework.process.kryo.ThrowableSerializer.read(ThrowableSerializer.kt:20) ~[utbot-cli-main-2023.8.5040.jar:?]
        at com.esotericsoftware.kryo.kryo5.Kryo.readObject(Kryo.java:796) ~[utbot-cli-main-2023.8.5040.jar:?]
        at com.esotericsoftware.kryo.kryo5.serializers.ReflectField.read(ReflectField.java:123) ~[utbot-cli-main-2023.8.5040.jar:?]
        at com.esotericsoftware.kryo.kryo5.serializers.FieldSerializer.read(FieldSerializer.java:129) ~[utbot-cli-main-2023.8.5040.jar:?]
        at com.esotericsoftware.kryo.kryo5.Kryo.readObject(Kryo.java:796) ~[utbot-cli-main-2023.8.5040.jar:?]
        at com.esotericsoftware.kryo.kryo5.serializers.ReflectField.read(ReflectField.java:123) ~[utbot-cli-main-2023.8.5040.jar:?]
        at com.esotericsoftware.kryo.kryo5.serializers.FieldSerializer.read(FieldSerializer.java:129) ~[utbot-cli-main-2023.8.5040.jar:?]
        at com.esotericsoftware.kryo.kryo5.Kryo.readClassAndObject(Kryo.java:877) ~[utbot-cli-main-2023.8.5040.jar:?]
        at org.utbot.framework.process.kryo.KryoHelper.readObject(KryoHelper.kt:72) ~[utbot-cli-main-2023.8.5040.jar:?]
        at org.utbot.instrumentation.ConcreteExecutor$executeAsync$2$1.invokeSuspend(ConcreteExecutor.kt:232) ~[utbot-cli-main-2023.8.5040.jar:?]
        ... 24 more
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private transient java.lang.Class java.lang.StackTraceElement.declaringClassObject accessible: module java.base does not "opens java.lang" to unnamed module @5c18298f
        at java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354) ~[?:?]
        at java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297) ~[?:?]
        at java.lang.reflect.Field.checkCanSetAccessible(Field.java:178) ~[?:?]
        at java.lang.reflect.Field.setAccessible(Field.java:172) ~[?:?]
        at com.esotericsoftware.kryo.kryo5.serializers.CachedFields.addField(CachedFields.java:123) ~[utbot-cli-main-2023.8.5040.jar:?]
        at com.esotericsoftware.kryo.kryo5.serializers.CachedFields.rebuild(CachedFields.java:99) ~[utbot-cli-main-2023.8.5040.jar:?]
        at com.esotericsoftware.kryo.kryo5.serializers.FieldSerializer.<init>(FieldSerializer.java:82) ~[utbot-cli-main-2023.8.5040.jar:?]
        at com.esotericsoftware.kryo.kryo5.SerializerFactory$FieldSerializerFactory.newSerializer(SerializerFactory.java:124) ~[utbot-cli-main-2023.8.5040.jar:?]
        at com.esotericsoftware.kryo.kryo5.SerializerFactory$FieldSerializerFactory.newSerializer(SerializerFactory.java:108) ~[utbot-cli-main-2023.8.5040.jar:?]
        at com.esotericsoftware.kryo.kryo5.Kryo.newDefaultSerializer(Kryo.java:469) ~[utbot-cli-main-2023.8.5040.jar:?]
        at com.esotericsoftware.kryo.kryo5.Kryo.getDefaultSerializer(Kryo.java:454) ~[utbot-cli-main-2023.8.5040.jar:?]
        at com.esotericsoftware.kryo.kryo5.util.DefaultClassResolver.registerImplicit(DefaultClassResolver.java:89) ~[utbot-cli-main-2023.8.5040.jar:?]
        at com.esotericsoftware.kryo.kryo5.Kryo.getRegistration(Kryo.java:581) ~[utbot-cli-main-2023.8.5040.jar:?]
        at com.esotericsoftware.kryo.kryo5.Kryo.getSerializer(Kryo.java:601) ~[utbot-cli-main-2023.8.5040.jar:?]
        at com.esotericsoftware.kryo.kryo5.serializers.DefaultArraySerializers$ObjectArraySerializer.read(DefaultArraySerializers.java:346) ~[utbot-cli-main-2023.8.5040.jar:?]
        at com.esotericsoftware.kryo.kryo5.serializers.DefaultArraySerializers$ObjectArraySerializer.read(DefaultArraySerializers.java:299) ~[utbot-cli-main-2023.8.5040.jar:?]
        at com.esotericsoftware.kryo.kryo5.Kryo.readObjectOrNull(Kryo.java:847) ~[utbot-cli-main-2023.8.5040.jar:?]
        at com.esotericsoftware.kryo.kryo5.serializers.ReflectField.read(ReflectField.java:132) ~[utbot-cli-main-2023.8.5040.jar:?]
        at com.esotericsoftware.kryo.kryo5.serializers.FieldSerializer.read(FieldSerializer.java:129) ~[utbot-cli-main-2023.8.5040.jar:?]
        at com.esotericsoftware.kryo.kryo5.Kryo.readObject(Kryo.java:774) ~[utbot-cli-main-2023.8.5040.jar:?]
        at org.utbot.framework.process.kryo.ThrowableSerializer.read(ThrowableSerializer.kt:100) ~[utbot-cli-main-2023.8.5040.jar:?]
        at org.utbot.framework.process.kryo.ThrowableSerializer.read(ThrowableSerializer.kt:20) ~[utbot-cli-main-2023.8.5040.jar:?]
        at com.esotericsoftware.kryo.kryo5.Kryo.readObject(Kryo.java:796) ~[utbot-cli-main-2023.8.5040.jar:?]
        at com.esotericsoftware.kryo.kryo5.serializers.ReflectField.read(ReflectField.java:123) ~[utbot-cli-main-2023.8.5040.jar:?]
        at com.esotericsoftware.kryo.kryo5.serializers.FieldSerializer.read(FieldSerializer.java:129) ~[utbot-cli-main-2023.8.5040.jar:?]
        at com.esotericsoftware.kryo.kryo5.Kryo.readObject(Kryo.java:796) ~[utbot-cli-main-2023.8.5040.jar:?]
        at com.esotericsoftware.kryo.kryo5.serializers.ReflectField.read(ReflectField.java:123) ~[utbot-cli-main-2023.8.5040.jar:?]
        at com.esotericsoftware.kryo.kryo5.serializers.FieldSerializer.read(FieldSerializer.java:129) ~[utbot-cli-main-2023.8.5040.jar:?]
        at com.esotericsoftware.kryo.kryo5.Kryo.readClassAndObject(Kryo.java:877) ~[utbot-cli-main-2023.8.5040.jar:?]
        at org.utbot.framework.process.kryo.KryoHelper.readObject(KryoHelper.kt:72) ~[utbot-cli-main-2023.8.5040.jar:?]
        at org.utbot.instrumentation.ConcreteExecutor$executeAsync$2$1.invokeSuspend(ConcreteExecutor.kt:232) ~[utbot-cli-main-2023.8.5040.jar:?]
        ... 24 more
    ///region Errors report for modifyList
    
    public void testModifyList_errors()
     {
        // Couldn't generate some tests. List of errors:
        // 
        // 30 occurrences of:
        // Default concrete execution failed
        
    }
    ///endregion

Environment

OS - Windows 10 Pro
Windows Powershell
JDK - 17

Additional context

Test generation with utbot-cli-main-2023.6.4550.jar is successful.
No error report. No exceptions in console.

@alisevych alisevych added ctg-bug Issue is a bug comp-cli Issue related to CLI lang-java Issue is related to Java support labels Aug 10, 2023
@alisevych alisevych added this to the September Release milestone Aug 10, 2023
@alisevych alisevych added the comp-instrumented-process Issue is related to Instrumented process label Aug 10, 2023
@alisevych
Copy link
Member Author

@olganaumenko FYI , here are the steps to run CLI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-cli Issue related to CLI comp-instrumented-process Issue is related to Instrumented process ctg-bug Issue is a bug lang-java Issue is related to Java support status-verified Bug fix is verified
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants