Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-6310

JCasClassLoaderTest sometimes fails

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    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
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            rec Richard Eckart de Castilho
            rec Richard Eckart de Castilho
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment