aphp / UimaOnSpark

Way to run Uima Pipelines on Apache Spark
10 stars 4 forks source link

Spark fails on CAS error #6

Open tomersagi opened 3 years ago

tomersagi commented 3 years ago

When running according to the instructions this happens:

...
Caused by: org.apache.uima.cas.CASRuntimeException: A sofaFS with name _InitialView has already been created.
        at org.apache.uima.cas.impl.CASImpl.addSofa(CASImpl.java:765)
        at org.apache.uima.cas.impl.CASImpl.createInitialSofa(CASImpl.java:748)
        at org.apache.uima.cas.impl.CASImpl.getSofaRef(CASImpl.java:850)
        at org.apache.uima.cas.impl.CASImpl.ll_createFSAnnotCheck(CASImpl.java:631)
        at org.apache.uima.cas.impl.CASImpl.ll_createAnnotation(CASImpl.java:4521)
        at org.apache.uima.cas.impl.CASImpl.ll_createDocumentAnnotationNoIndex(CASImpl.java:4593)
        at org.apache.uima.cas.impl.CASImpl.ll_createDocumentAnnotation(CASImpl.java:4586)
        at org.apache.uima.cas.impl.CASImpl.createDocumentAnnotation(CASImpl.java:4582)
        at org.apache.uima.cas.impl.CASImpl.getDocumentAnnotation(CASImpl.java:4635)
        at org.apache.uima.cas.impl.CASImpl.setDocumentLanguage(CASImpl.java:4767)
        at org.apache.uima.jcas.impl.JCasImpl.setDocumentLanguage(JCasImpl.java:1319)
        at fr.aphp.wind.uima.segmenter.pojo.SectionSegmenterPojo.analyzeText(SectionSegmenterPojo.java:84)
        at fr.aphp.wind.uima.spark.MimicSectionSegmenter$$anonfun$main$1.apply(MimicSectionExtractor.scala:61)
        at fr.aphp.wind.uima.spark.MimicSectionSegmenter$$anonfun$main$1.apply(MimicSectionExtractor.scala:60)
...