java.lang.IllegalArgumentException: expected one element but was: <BlockStatement, BlockStatement>

pmd | bialeckijacek | 3 months ago
  1. 0

    Parsing error on APEX class: expected one element but was: <BlockStatement, BlockStatement>

    pmd | 3 months ago | bialeckijacek
    java.lang.IllegalArgumentException: expected one element but was: <BlockStatement, BlockStatement>
  2. 0

    grunt-closure-compiler modules throwing IllegalArgumentException

    Stack Overflow | 10 months ago | Digital-Clouds
    java.lang.IllegalArgumentException: expected one element but was: <test_mod__c, test_mod__d>
  3. 0

    Titan 1.0.0 : Error after installing pip + cqlsh or starting cassandra with cassandra -f ??

    GitHub | 8 months ago | zifnab87
    java.lang.IllegalArgumentException: expected one element but was: <com.thinkaurelius.titan.graphdb.types.SchemaSource$Entry@1117a2c1, com.thinkaurelius.titan.graphdb.types.SchemaSource$Entry@53c9ef65>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Chaining has() When Multiple Keys are Used

    GitHub | 4 years ago | spmallette
    com.thinkaurelius.titan.core.TitanException: Could not call index
  6. 0

    Compile multiple files with ADVANCED_OPTIMIZATIONS

    Google Groups | 6 years ago | jochen
    java.lang.RuntimeException: java.lang.IllegalArgumentException: expected one element but was: <one, two>

    1 unregistered visitors
    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.IllegalArgumentException

      expected one element but was: <BlockStatement, BlockStatement>

      at com.google.common.collect.Iterators.getOnlyElement()
    2. Guava
      Iterables.getOnlyElement
      1. com.google.common.collect.Iterators.getOnlyElement(Iterators.java:317)
      2. com.google.common.collect.Iterables.getOnlyElement(Iterables.java:289)
      2 frames
    3. net.sourceforge.pmd
      AbstractApexRule.apply
      1. net.sourceforge.pmd.lang.apex.rule.apexunit.ApexUnitTestClassShouldHaveAsserts.checkForAssertStatements(ApexUnitTestClassShouldHaveAsserts.java:32)
      2. net.sourceforge.pmd.lang.apex.rule.apexunit.ApexUnitTestClassShouldHaveAsserts.visit(ApexUnitTestClassShouldHaveAsserts.java:27)
      3. net.sourceforge.pmd.lang.apex.ast.ASTMethod.jjtAccept(ASTMethod.java:15)
      4. net.sourceforge.pmd.lang.apex.ast.AbstractApexNode.childrenAccept(AbstractApexNode.java:101)
      5. net.sourceforge.pmd.lang.apex.rule.AbstractApexRule.visit(AbstractApexRule.java:132)
      6. net.sourceforge.pmd.lang.apex.rule.AbstractApexRule.visit(AbstractApexRule.java:143)
      7. net.sourceforge.pmd.lang.apex.rule.apexunit.AbstractApexUnitTestRule.visit(AbstractApexUnitTestRule.java:30)
      8. net.sourceforge.pmd.lang.apex.rule.AbstractApexRule.visitAll(AbstractApexRule.java:121)
      9. net.sourceforge.pmd.lang.apex.rule.AbstractApexRule.apply(AbstractApexRule.java:115)
      9 frames
    4. PMD
      SourceCodeProcessor.processSourceCode
      1. net.sourceforge.pmd.RuleSet.apply(RuleSet.java:306)
      2. net.sourceforge.pmd.RuleSets.apply(RuleSets.java:125)
      3. net.sourceforge.pmd.SourceCodeProcessor.processSource(SourceCodeProcessor.java:146)
      4. net.sourceforge.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.java:76)
      5. net.sourceforge.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.java:43)
      5 frames
    5. PMD Core
      PmdRunnable.call
      1. net.sourceforge.pmd.processor.PmdRunnable.call(PmdRunnable.java:79)
      2. net.sourceforge.pmd.processor.PmdRunnable.call(PmdRunnable.java:25)
      2 frames
    6. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(Unknown Source)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      4. java.lang.Thread.run(Unknown Source)
      4 frames