Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.10.4SDK
-
None
Description
The JCasClassLoaderTest.thatCASCanBeDefinedWithoutJCasWrappersAndTheyComeInWithAnnotatorsViaClasspath test fails at times. It seems to happen regularly when the builds run on a Jenkins Windows node. I have not been able to reproduce the issue on OS X. There are rumours about a potentially related issue sometimes happening on with UIMAv2 on Linux (i.e. a PEAR provides a JCas wrapper but when the PEAR tries to access FSes of that type, it instead gets Annotation_Impl because the JCas wrapper is not known at the pipeline level...).
Error The following assertion failed: 1) [AddTokenAnnotator and FetchTokenAnnotator use different Token wrappers] Expecting: <org.apache.uima.cas.test.Token> not to be equal to: <org.apache.uima.cas.test.Token> at JCasClassLoaderTest.thatCASCanBeDefinedWithoutJCasWrappersAndTheyComeInWithAnnotatorsViaClasspath(JCasClassLoaderTest.java:148) Stacktrace org.assertj.core.api.SoftAssertionError: The following assertion failed: 1) [AddTokenAnnotator and FetchTokenAnnotator use different Token wrappers] Expecting: <org.apache.uima.cas.test.Token> not to be equal to: <org.apache.uima.cas.test.Token> at JCasClassLoaderTest.thatCASCanBeDefinedWithoutJCasWrappersAndTheyComeInWithAnnotatorsViaClasspath(JCasClassLoaderTest.java:148) at org.apache.uima.cas.test.JCasClassLoaderTest.thatCASCanBeDefinedWithoutJCasWrappersAndTheyComeInWithAnnotatorsViaClasspath(JCasClassLoaderTest.java:155) Standard Output [JCas creation] org.apache.uima.cas.test.Token NOT AVAILABLE [AE creation: AddATokenAnnotator] org.apache.uima.cas.test.Token 2107109044 [AE creation: FetchTheTokenAnnotator] org.apache.uima.cas.test.Token 2107109044 org.apache.uima.cas.test.JCasClassLoaderTest$AddATokenAnnotator class loader: jdk.internal.loader.ClassLoaders$AppClassLoader@2aae9190 [AE runtime: org.apache.uima.cas.test.JCasClassLoaderTest$AddATokenAnnotator] org.apache.uima.cas.test.Token 2107109044 org.apache.uima.cas.test.JCasClassLoaderTest$FetchTheTokenAnnotator class loader: jdk.internal.loader.ClassLoaders$AppClassLoader@2aae9190 [AE runtime: org.apache.uima.cas.test.JCasClassLoaderTest$FetchTheTokenAnnotator] org.apache.uima.cas.test.Token 2107109044 [AE runtime CAS: org.apache.uima.cas.test.JCasClassLoaderTest$FetchTheTokenAnnotator] org.apache.uima.cas.test.Token 2107109044