java.lang.ClassCastException: net.sourceforge.pmd.rules.XPathRule

sourceforge.net | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    ClassCastException if pmd jars not in ANT/lib

    pmd | 8 years ago | iamroshan
    java.lang.ClassCastException: net.sourceforge.pmd.rules.XPathRule
  2. 0

    PMD / Discussion / Developers:ClassCastException if pmd jars not in ANT/lib

    sourceforge.net | 6 months ago
    java.lang.ClassCastException: net.sourceforge.pmd.rules.XPathRule
  3. 0

    PMD-4.x w/ Ant 1.7 issues

    pmd | 9 years ago | dijitalmaniak
    java.lang.ClassCastException: net.sourceforge.pmd.rules.XPathRule
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ClassCastException: ASTAnnotation

    pmd | 1 decade ago | cstach
    java.lang.ClassCastException: net.sourceforge.pmd.ast.ASTAnnotation

    Root Cause Analysis

    1. java.lang.ClassCastException

      net.sourceforge.pmd.rules.XPathRule

      at net.sourceforge.pmd.RuleSetFactory.parseSingleRuleNode()
    2. PMD
      PMDTask.execute
      1. net.sourceforge.pmd.RuleSetFactory.parseSingleRuleNode(RuleSetFactory.java:309)
      2. net.sourceforge.pmd.RuleSetFactory.parseRuleNode(RuleSetFactory.java:253)
      3. net.sourceforge.pmd.RuleSetFactory.parseRuleSetNode(RuleSetFactory.java:209)
      4. net.sourceforge.pmd.RuleSetFactory.createSingleRuleSet(RuleSetFactory.java:135)
      5. net.sourceforge.pmd.RuleSetFactory.createRuleSets(RuleSetFactory.java:85)
      6. net.sourceforge.pmd.ant.PMDTask.doTask(PMDTask.java:220)
      7. net.sourceforge.pmd.ant.PMDTask.execute(PMDTask.java:334)
      7 frames
    3. Ant
      UnknownElement.execute
      1. org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
      1 frame
    4. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:585)
      3 frames
    5. Ant
      Task.perform
      1. org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
      2. org.apache.tools.ant.Task.perform(Task.java:348)
      2 frames
    6. ise.antelope.tasks
      IfTask.execute
      1. ise.antelope.tasks.IfTask.doIf(IfTask.java:292)
      2. ise.antelope.tasks.IfTask.execute(IfTask.java:261)
      2 frames
    7. Ant
      UnknownElement.execute
      1. org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
      1 frame
    8. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:585)
      3 frames
    9. Ant
      UnknownElement.execute
      1. org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
      2. org.apache.tools.ant.Task.perform(Task.java:348)
      3. org.apache.tools.ant.Target.execute(Target.java:357)
      4. org.apache.tools.ant.Target.performTasks(Target.java:385)
      5. org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
      6. org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
      7. org.apache.tools.ant.Project.executeTargets(Project.java:1189)
      8. org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
      9. org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:289)
      10. org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:208)
      11. org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
      11 frames
    10. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    11. Ant
      UnknownElement.execute
      1. org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
      2. org.apache.tools.ant.Task.perform(Task.java:348)
      3. org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62)
      4. org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
      4 frames
    12. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    13. Ant
      UnknownElement.execute
      1. org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
      2. org.apache.tools.ant.Task.perform(Task.java:348)
      3. org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:394)
      4. org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
      4 frames
    14. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    15. Ant
      Main.startAnt
      1. org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
      2. org.apache.tools.ant.Task.perform(Task.java:348)
      3. org.apache.tools.ant.Target.execute(Target.java:357)
      4. org.apache.tools.ant.Target.performTasks(Target.java:385)
      5. org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
      6. org.apache.tools.ant.Project.executeTarget(Project.java:1306)
      7. org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
      8. org.apache.tools.ant.Project.executeTargets(Project.java:1189)
      9. org.apache.tools.ant.Main.runBuild(Main.java:758)
      10. org.apache.tools.ant.Main.startAnt(Main.java:217)
      10 frames
    16. Apache Ant Launcher
      Launcher.main
      1. org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
      2. org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
      2 frames