java.lang.NoSuchMethodError: com.google.common.base.Splitter.splitToList(Ljava/lang/CharSequence;)Ljava/util/List;

JIRA | Søren Vejrup Carlsen | 4 months ago
  1. 0

    When upgrading the previous tika language detector to use the the Optimaize language-detector (https://github.com/optimaize/language-detector) it turns out the 0.5 version depends on the guava-18.jar library. However, all pig versions up to 0.16.0 is bundled with guava-11.jar library. which has precedence to guava-18.jar REGISTER'ed in the script or .pigbootup Thus we get the error: {code} java.lang.NoSuchMethodError: com.google.common.base.Splitter.splitToList(Ljava/lang/CharSequence;)Ljava/util/List; at com.optimaize.langdetect.i18n.LdLocale.fromString(LdLocale.java:77) at com.optimaize.langdetect.profiles.BuiltInLanguages.<clinit>(BuiltInLanguages.java:21) at com.optimaize.langdetect.profiles.LanguageProfileReader.readAllBuiltIn(LanguageProfileReader.java:118) at org.apache.tika.langdetect.OptimaizeLangDetector.loadModels(OptimaizeLangDetector.java:63) at dk.kb.webdanica.criteria.C4.computeNewC4(C4.java:56) at dk.kb.webdanica.criteria.CombinedCombo.exec(CombinedCombo.java:118) at dk.kb.webdanica.criteria.CombinedCombo.exec(CombinedCombo.java:85) at org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.POUserFunc.getNext(POUserFunc.java:326) at org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.POUserFunc.getNextString(POUserFunc.java:426) at org.apache.pig.backend.hadoop.executionengine.physicalLayer.PhysicalOperator.getNext(PhysicalOperator.java:341) at org.apache.pig.backend.hadoop.executionengine.physicalLayer.relationalOperators.POForEach.processPlan(POForEach.java:404) at org.apache.pig.backend.hadoop.executionengine.physicalLayer.relationalOperators.POForEach.getNextTuple(POForEach.java:321) at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigGenericMapBase.runPipeline(PigGenericMapBase.java:280) at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigGenericMapBase.map(PigGenericMapBase.java:275) at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigGenericMapBase.map(PigGenericMapBase.java:65) at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:144) at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:764) at org.apache.hadoop.mapred.MapTask.run(MapTask.java:370) at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:212) {code}

    JIRA | 4 months ago | Søren Vejrup Carlsen
    java.lang.NoSuchMethodError: com.google.common.base.Splitter.splitToList(Ljava/lang/CharSequence;)Ljava/util/List;
  2. 0

    Bug

    GitHub | 2 years ago | Bouki
    java.lang.NoSuchMethodError: com.google.common.base.Splitter.splitToList(Ljava/lang/CharSequence;)Ljava/util/List;
  3. 0

    Cannot create a grails project by calling 'grails create-app PROJECTNAME'

    Stack Overflow | 2 years ago
    java.lang.NoSuchMethodError: com.google.common.base.Splitter.splitToList(Ljava/lang/CharSequence;)Ljava/util/List;
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 10#238589343

    GitHub | 4 months ago | samelamin
    java.lang.NoSuchMethodError: com.google.common.base.Splitter.splitToList(Ljava/lang/CharSequence;)Ljava/util/List;
  6. 0

    GitHub comment 12#258612097

    GitHub | 1 month ago | samelamin
    java.lang.NoSuchMethodError: com.google.common.base.Splitter.splitToList(Ljava/lang/CharSequence;)Ljava/util/List; and the stack trace ```

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      com.google.common.base.Splitter.splitToList(Ljava/lang/CharSequence;)Ljava/util/List;

      at com.optimaize.langdetect.i18n.LdLocale.fromString()
    2. com.optimaize.langdetect
      LanguageProfileReader.readAllBuiltIn
      1. com.optimaize.langdetect.i18n.LdLocale.fromString(LdLocale.java:77)
      2. com.optimaize.langdetect.profiles.BuiltInLanguages.<clinit>(BuiltInLanguages.java:21)
      3. com.optimaize.langdetect.profiles.LanguageProfileReader.readAllBuiltIn(LanguageProfileReader.java:118)
      3 frames
    3. org.apache.tika
      OptimaizeLangDetector.loadModels
      1. org.apache.tika.langdetect.OptimaizeLangDetector.loadModels(OptimaizeLangDetector.java:63)
      1 frame
    4. dk.kb.webdanica
      CombinedCombo.exec
      1. dk.kb.webdanica.criteria.C4.computeNewC4(C4.java:56)
      2. dk.kb.webdanica.criteria.CombinedCombo.exec(CombinedCombo.java:118)
      3. dk.kb.webdanica.criteria.CombinedCombo.exec(CombinedCombo.java:85)
      3 frames
    5. org.apache.pig
      PigGenericMapBase.map
      1. org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.POUserFunc.getNext(POUserFunc.java:326)
      2. org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.POUserFunc.getNextString(POUserFunc.java:426)
      3. org.apache.pig.backend.hadoop.executionengine.physicalLayer.PhysicalOperator.getNext(PhysicalOperator.java:341)
      4. org.apache.pig.backend.hadoop.executionengine.physicalLayer.relationalOperators.POForEach.processPlan(POForEach.java:404)
      5. org.apache.pig.backend.hadoop.executionengine.physicalLayer.relationalOperators.POForEach.getNextTuple(POForEach.java:321)
      6. org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigGenericMapBase.runPipeline(PigGenericMapBase.java:280)
      7. org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigGenericMapBase.map(PigGenericMapBase.java:275)
      8. org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigGenericMapBase.map(PigGenericMapBase.java:65)
      8 frames
    6. Hadoop
      LocalJobRunner$Job.run
      1. org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:144)
      2. org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:764)
      3. org.apache.hadoop.mapred.MapTask.run(MapTask.java:370)
      4. org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:212)
      4 frames