tkobayas commented on PR #1837:
URL:
https://github.com/apache/incubator-kie-kogito-examples/pull/1837#issuecomment-1835687419
```
2023-12-01T15:21:07.502+09:00 INFO 104911 --- [0-auto-2-exec-1]
o.a.c.loader.WebappClassLoaderBase : Illegal access: this web application
instance has been stopped already. Could not load [IndexFile.pmml_json]. The
following stack trace is thrown for debugging purposes as well as to attempt to
terminate the thread which caused the illegal access.
java.lang.IllegalStateException: Illegal access: this web application
instance has been stopped already. Could not load [IndexFile.pmml_json]. The
following stack trace is thrown for debugging purposes as well as to attempt to
terminate the thread which caused the illegal access.
at
org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1457)
~[tomcat-embed-core-10.1.7.jar:10.1.7]
at
org.apache.catalina.loader.WebappClassLoaderBase.getResource(WebappClassLoaderBase.java:1047)
~[tomcat-embed-core-10.1.7.jar:10.1.7]
at
org.kie.internal.utils.CompositeClassLoader.getResource(CompositeClassLoader.java:151)
~[kie-internal-9.45.0-SNAPSHOT.jar:9.45.0-SNAPSHOT]
at java.base/java.lang.ClassLoader.getResource(ClassLoader.java:1403)
~[na:na]
at
org.kie.efesto.common.api.utils.MemoryFileUtils.getFileByFileNameFromClassloader(MemoryFileUtils.java:63)
~[efesto-common-api-9.45.0-SNAPSHOT.jar:9.45.0-SNAPSHOT]
at
org.kie.efesto.common.api.io.IndexFile.findIndexFilesFromClassLoader(IndexFile.java:179)
~[efesto-common-api-9.45.0-SNAPSHOT.jar:9.45.0-SNAPSHOT]
at
org.kie.efesto.runtimemanager.core.model.EfestoRuntimeContextImpl.populateGeneratedResourcesMap(EfestoRuntimeContextImpl.java:64)
~[efesto-runtime-manager-core-9.45.0-SNAPSHOT.jar:9.45.0-SNAPSHOT]
at
org.kie.efesto.runtimemanager.core.model.EfestoRuntimeContextImpl.<init>(EfestoRuntimeContextImpl.java:46)
~[efesto-runtime-manager-core-9.45.0-SNAPSHOT.jar:9.45.0-SNAPSHOT]
at
org.kie.efesto.runtimemanager.core.model.EfestoRuntimeContextUtils.buildWithParentClassLoader(EfestoRuntimeContextUtils.java:33)
~[efesto-runtime-manager-core-9.45.0-SNAPSHOT.jar:9.45.0-SNAPSHOT]
at
org.kie.dmn.core.pmml.DMNKiePMMLTrustyInvocationEvaluator.getEfestoRuntimeContext(DMNKiePMMLTrustyInvocationEvaluator.java:209)
~[kie-dmn-core-9.45.0-SNAPSHOT.jar:9.45.0-SNAPSHOT]
```
The IllegalStateException means Spring Boot 3 is more strict about using
parent classloader (`WebappClassLoaderBase`) which was used in the previous
test. On the other hand, kogito holds `DMNRuntime` (including it's root
classloader) in a static field
https://github.com/apache/incubator-kie-kogito-runtimes/blob/quarkus-3.2LTS/drools/kogito-dmn/src/main/java/org/kie/kogito/dmn/AbstractDecisionModels.java#L41
`<reuseForks>false</reuseForks>` simply cleans up the classloader issue and
solves the test failure.
@gitgabrio is this an acceptable solution?
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]