java.lang.RuntimeException: //ClassOrInterfaceDeclaration[@Interface='true'][not(.//MethodDeclaration)]//FieldDeclaration had problem: Cannot compare xs:boolean to xs:string

pmd | dark_rift | 10 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

    [java] ConstantsInInterface false negative

    pmd | 10 months ago | dark_rift
    java.lang.RuntimeException: //ClassOrInterfaceDeclaration[@Interface='true'][not(.//MethodDeclaration)]//FieldDeclaration had problem: Cannot compare xs:boolean to xs:string

    Root Cause Analysis

    1. net.sf.saxon.trans.XPathException

      Cannot compare xs:boolean to xs:string

      at net.sf.saxon.expr.ValueComparison.compare()
    2. Saxon HE
      SequenceExtent.<init>
      1. net.sf.saxon.expr.ValueComparison.compare(ValueComparison.java:638)
      2. net.sf.saxon.expr.GeneralComparison.compare(GeneralComparison.java:619)
      3. net.sf.saxon.expr.SingletonComparison.effectiveBooleanValue(SingletonComparison.java:102)
      4. net.sf.saxon.expr.QuantifiedExpression.effectiveBooleanValue(QuantifiedExpression.java:226)
      5. net.sf.saxon.expr.FilterIterator$NonNumeric.matches(FilterIterator.java:182)
      6. net.sf.saxon.expr.FilterIterator.getNextMatchingItem(FilterIterator.java:65)
      7. net.sf.saxon.expr.FilterIterator.next(FilterIterator.java:44)
      8. net.sf.saxon.expr.ContextMappingIterator.next(ContextMappingIterator.java:51)
      9. net.sf.saxon.value.SequenceExtent.<init>(SequenceExtent.java:98)
      9 frames
    3. Saxon
      DocumentSorter.iterate
      1. net.sf.saxon.sort.DocumentOrderIterator.<init>(DocumentOrderIterator.java:30)
      2. net.sf.saxon.sort.DocumentSorter.iterate(DocumentSorter.java:85)
      2 frames
    4. Saxon HE
      XPathExpression.evaluate
      1. net.sf.saxon.sxpath.XPathExpression.evaluate(XPathExpression.java:98)
      1 frame
    5. PMD Core
      XPathRule.apply
      1. net.sourceforge.pmd.lang.rule.xpath.SaxonXPathRuleQuery.evaluate(SaxonXPathRuleQuery.java:111)
      2. net.sourceforge.pmd.lang.rule.XPathRule.evaluate(XPathRule.java:74)
      3. net.sourceforge.pmd.lang.rule.XPathRule.apply(XPathRule.java:61)
      3 frames
    6. PMD
      Designer$XPathListener.actionPerformed
      1. net.sourceforge.pmd.RuleSet.apply(RuleSet.java:306)
      2. net.sourceforge.pmd.RuleSets.apply(RuleSets.java:125)
      3. net.sourceforge.pmd.util.designer.Designer$XPathListener.actionPerformed(Designer.java:622)
      3 frames
    7. Java RT
      EventDispatchThread.run
      1. javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
      2. javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
      3. javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
      4. javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
      5. javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
      6. java.awt.Component.processMouseEvent(Component.java:6535)
      7. javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
      8. java.awt.Component.processEvent(Component.java:6300)
      9. java.awt.Container.processEvent(Container.java:2236)
      10. java.awt.Component.dispatchEventImpl(Component.java:4891)
      11. java.awt.Container.dispatchEventImpl(Container.java:2294)
      12. java.awt.Component.dispatchEvent(Component.java:4713)
      13. java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
      14. java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
      15. java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
      16. java.awt.Container.dispatchEventImpl(Container.java:2280)
      17. java.awt.Window.dispatchEventImpl(Window.java:2750)
      18. java.awt.Component.dispatchEvent(Component.java:4713)
      19. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
      20. java.awt.EventQueue.access$500(EventQueue.java:97)
      21. java.awt.EventQueue$3.run(EventQueue.java:709)
      22. java.awt.EventQueue$3.run(EventQueue.java:703)
      23. java.security.AccessController.doPrivileged(Native Method)
      24. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
      25. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
      26. java.awt.EventQueue$4.run(EventQueue.java:731)
      27. java.awt.EventQueue$4.run(EventQueue.java:729)
      28. java.security.AccessController.doPrivileged(Native Method)
      29. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
      30. java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
      31. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
      32. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      33. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
      34. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      35. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
      36. java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
      36 frames