Skip to content

Concrete estimator does not find the concrete executor jar #413

Closed
@denis-fokin

Description

@denis-fokin

Description

After #287 contest estimator has been failing to find the concrete executor jar.

To Reproduce

Open the UTBotJava project in IntelliJ IDE and run the ContestEstimator.

Expected behavior

Contest estimator completes its execution without failure.

Actual behavior

The exception is thrown (see the visual proofs section).

Visual proofs (screenshots, logs, images)

16:44:49.245 | ERROR | Symbolic execution FAILED
java.lang.IllegalStateException: Can't find file: utbot-instrumentation-<version>.jar.
Make sure you added utbot-instrumentation-<version>.jar to the resources folder from gradle.
	at org.utbot.instrumentation.process.ChildProcessRunner$Companion$jarFile$2.invoke(ChildProcessRunner.kt:103) ~[main/:?]
	at org.utbot.instrumentation.process.ChildProcessRunner$Companion$jarFile$2.invoke(ChildProcessRunner.kt:55) ~[main/:?]
	at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74) ~[kotlin-stdlib-1.4.30.jar:1.4.30-release-302 (1.4.30)]
	at org.utbot.instrumentation.process.ChildProcessRunner$Companion.getJarFile(ChildProcessRunner.kt) ~[main/:?]
	at org.utbot.instrumentation.process.ChildProcessRunner$Companion.access$getJarFile$p(ChildProcessRunner.kt:55) ~[main/:?]
	at org.utbot.instrumentation.process.ChildProcessRunner$cmds$2.invoke(ChildProcessRunner.kt:31) ~[main/:?]
	at org.utbot.instrumentation.process.ChildProcessRunner$cmds$2.invoke(ChildProcessRunner.kt:22) ~[main/:?]
	at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74) ~[kotlin-stdlib-1.4.30.jar:1.4.30-release-302 (1.4.30)]
	at org.utbot.instrumentation.process.ChildProcessRunner.getCmds(ChildProcessRunner.kt) ~[main/:?]
	at org.utbot.instrumentation.process.ChildProcessRunner.start(ChildProcessRunner.kt:45) ~[main/:?]
	at org.utbot.instrumentation.ConcreteExecutor.restartIfNeeded(ConcreteExecutor.kt:239) ~[main/:?]
	at org.utbot.instrumentation.ConcreteExecutor.executeAsync(ConcreteExecutor.kt:155) ~[main/:?]
	at org.utbot.engine.UtBotSymbolicEngineKt.executeConcretely(UtBotSymbolicEngine.kt:3837) ~[main/:?]
	at org.utbot.engine.UtBotSymbolicEngine$fuzzing$2.invokeSuspend(UtBotSymbolicEngine.kt:627) [main/:?]
	at org.utbot.engine.UtBotSymbolicEngine$fuzzing$2.invoke(UtBotSymbolicEngine.kt) [main/:?]
	at kotlinx.coroutines.flow.SafeFlow.collectSafely(Builders.kt:61) [kotlinx-coroutines-core-jvm-1.4.1.jar:?]
	at kotlinx.coroutines.flow.AbstractFlow.collect(Flow.kt:212) [kotlinx-coroutines-core-jvm-1.4.1.jar:?]
	at kotlinx.coroutines.flow.FlowKt__MergeKt$flattenConcat$$inlined$unsafeFlow$1$lambda$1.emit(Collect.kt:134) [kotlinx-coroutines-core-jvm-1.4.1.jar:?]
	at kotlinx.coroutines.flow.FlowKt__BuildersKt$flowOf$$inlined$unsafeFlow$1.collect(SafeCollector.common.kt:114) [kotlinx-coroutines-core-jvm-1.4.1.jar:?]
	at kotlinx.coroutines.flow.FlowKt__MergeKt$flattenConcat$$inlined$unsafeFlow$1.collect(SafeCollector.common.kt:114) [kotlinx-coroutines-core-jvm-1.4.1.jar:?]
	at org.utbot.contest.ContestKt$runGeneration$1$invokeSuspend$$inlined$bracket$lambda$1$1.invokeSuspend(Contest.kt:539) [main/:?]
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) [kotlin-stdlib-1.4.30.jar:1.4.30-release-302 (1.4.30)]
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) [kotlinx-coroutines-core-jvm-1.4.1.jar:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_302]
	at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266) [?:1.8.0_302]
	at java.util.concurrent.FutureTask.run(FutureTask.java) [?:1.8.0_302]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_302]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:1.8.0_302]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_302]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_302]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_302]

Environment

Contest estimator started in IntelliJ IDEA

Additional context

No additional context.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions