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

Multi-values parameter does not accept single value when @ConfigurationParameter is not present

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0.0uimaFIT
    • 2.1.0uimaFIT
    • uimaFIT
    • None

    Description

      This is not working

      AnalysisEngineFactory.createEngineDescription(WhitespaceTokenizer.class,
                     "SofaNames", SimpleParserAE.SOFA_NAME_TEXT_ONLY);
      

      I got a ClassCastException

      Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to
      [Ljava.lang.String;
         at
      org.apache.uima.annotator.WhitespaceTokenizer.initialize(WhitespaceTokenizer.java:328)
         at
      org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.initializeAnalysisComponent(PrimitiveAnalysisEngine_impl.java:252)
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: