uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Eckart de Castilho (Jira)" <...@uima.apache.org>
Subject [jira] [Reopened] (UIMA-6310) JCasClassLoaderTest sometimes fails
Date Wed, 28 Apr 2021 13:14:00 GMT

     [ https://issues.apache.org/jira/browse/UIMA-6310?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Richard Eckart de Castilho reopened UIMA-6310:
----------------------------------------------

> JCasClassLoaderTest sometimes fails
> -----------------------------------
>
>                 Key: UIMA-6310
>                 URL: https://issues.apache.org/jira/browse/UIMA-6310
>             Project: UIMA
>          Issue Type: Bug
>          Components: Core Java Framework
>    Affects Versions: 2.10.4SDK
>            Reporter: Richard Eckart de Castilho
>            Assignee: Richard Eckart de Castilho
>            Priority: Major
>             Fix For: 2.11.0SDK
>
>
> 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...).
> {noformat}
> 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
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message