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

MARKTABLE throws NullPointerException

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.0ruta
    • Fix Version/s: 2.7.0ruta
    • Component/s: Ruta
    • Labels:
      None
    • Environment:

      UIMA Ruta 2.7.0

      Eclipse Version 2018-12

      JDK1.8.0_191

      Windows 10

      Description

      The Ruta expression

      WORDTABLE Dict_Allgemein_Eigenschaften_Table = 'test.csv';
      
      DECLARE Annotation Allgemein_Eigenschaften(
          STRING basic_lemma, STRING pos, STRING query_attribute, STRING data_type, STRING standard_unit,
          STRING search_for, STRING lemma_is);
      
      Document{->MARKTABLE(Allgemein_Eigenschaften, 1, Dict_Allgemein_Eigenschaften_Table,
          "basic_lemma" = 2, "pos"=3, "query_attribute"=4, "data_type"=5, 
                              "standard_unit"=6, "search_for"=7, "lemma_is"=8)}

      with the dictionary

      Aktion;Aktion;N;aktionen;str;;field;
      

      throws following exception

      Jan 24, 2019 7:48:40 AM org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl callAnalysisComponentProcess(445)
      SCHWERWIEGEND: Exception occurred
      org.apache.uima.analysis_engine.AnalysisEngineProcessException: Annotator processing failed.    
          at org.apache.uima.ruta.engine.RutaEngine.process(RutaEngine.java:614)
          at org.apache.uima.analysis_component.JCasAnnotator_ImplBase.process(JCasAnnotator_ImplBase.java:48)
          at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.callAnalysisComponentProcess(PrimitiveAnalysisEngine_impl.java:411)
          at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.innerCall(PrimitiveAnalysisEngine_impl.java:329)
          at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.processAndOutputNewCASes(PrimitiveAnalysisEngine_impl.java:321)
          at org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase.process(AnalysisEngineImplBase.java:269)
          at org.apache.uima.ruta.ide.launching.RutaLauncher.processFile(RutaLauncher.java:242)
          at org.apache.uima.ruta.ide.launching.RutaLauncher.main(RutaLauncher.java:191)
      Caused by: java.lang.NullPointerException
          at org.apache.uima.ruta.action.MarkTableAction.getDictWSParamValue(MarkTableAction.java:154)
          at org.apache.uima.ruta.action.MarkTableAction.execute(MarkTableAction.java:119)
          at org.apache.uima.ruta.rule.AbstractRuleElement.apply(AbstractRuleElement.java:137)
          at org.apache.uima.ruta.rule.RuleElementCaretaker.applyRuleElements(RuleElementCaretaker.java:121)
          at org.apache.uima.ruta.rule.ComposedRuleElement.applyRuleElements(ComposedRuleElement.java:628)
          at org.apache.uima.ruta.rule.AbstractRuleElement.doneMatching(AbstractRuleElement.java:86)
          at org.apache.uima.ruta.rule.ComposedRuleElement.fallback(ComposedRuleElement.java:527)
          at org.apache.uima.ruta.rule.ComposedRuleElement.fallbackContinue(ComposedRuleElement.java:420)
          at org.apache.uima.ruta.rule.RutaRuleElement.startMatch(RutaRuleElement.java:104)
          at org.apache.uima.ruta.rule.ComposedRuleElement.startMatch(ComposedRuleElement.java:77)
          at org.apache.uima.ruta.rule.RutaRule.apply(RutaRule.java:64)
          at org.apache.uima.ruta.rule.RutaRule.apply(RutaRule.java:55)
          at org.apache.uima.ruta.rule.RutaRule.apply(RutaRule.java:37)
          at org.apache.uima.ruta.block.RutaScriptBlock.apply(RutaScriptBlock.java:67)
          at org.apache.uima.ruta.action.CallAction.callScript(CallAction.java:91)
          at org.apache.uima.ruta.action.CallAction.execute(CallAction.java:73)
          at org.apache.uima.ruta.rule.AbstractRuleElement.apply(AbstractRuleElement.java:137)
          at org.apache.uima.ruta.rule.RuleElementCaretaker.applyRuleElements(RuleElementCaretaker.java:121)
          at org.apache.uima.ruta.rule.ComposedRuleElement.applyRuleElements(ComposedRuleElement.java:628)
          at org.apache.uima.ruta.rule.AbstractRuleElement.doneMatching(AbstractRuleElement.java:86)
          at org.apache.uima.ruta.rule.ComposedRuleElement.fallback(ComposedRuleElement.java:527)
          at org.apache.uima.ruta.rule.ComposedRuleElement.fallbackContinue(ComposedRuleElement.java:420)
          at org.apache.uima.ruta.rule.RutaRuleElement.startMatch(RutaRuleElement.java:104)
          at org.apache.uima.ruta.rule.ComposedRuleElement.startMatch(ComposedRuleElement.java:77)
          at org.apache.uima.ruta.rule.RutaRule.apply(RutaRule.java:64)
          at org.apache.uima.ruta.rule.RutaRule.apply(RutaRule.java:55)
          at org.apache.uima.ruta.rule.RutaRule.apply(RutaRule.java:37)
          at org.apache.uima.ruta.block.RutaScriptBlock.apply(RutaScriptBlock.java:67)
          at org.apache.uima.ruta.RutaModule.apply(RutaModule.java:56)
          at org.apache.uima.ruta.engine.RutaEngine.process(RutaEngine.java:612)
          ... 7 more
      

        Attachments

        1. log.txt
          7 kB
          Paul Bauriegel
        2. Ruta_Bug_Project.zip
          24 kB
          Paul Bauriegel

          Activity

            People

            • Assignee:
              pkluegl Peter Klügl
              Reporter:
              paulbauriegel Paul Bauriegel
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: