java.lang.ClassCastException: net.sf.saxon.value.ObjectValue cannot be cast to net.sf.saxon.om.NodeInfo

Google Groups | Vipin Jose | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    ClassCastException in 2.1.x version when using WireMock.equalToXml()

    Google Groups | 7 months ago | Vipin Jose
    java.lang.ClassCastException: net.sf.saxon.value.ObjectValue cannot be cast to net.sf.saxon.om.NodeInfo

    Root Cause Analysis

    1. java.lang.ClassCastException

      net.sf.saxon.value.ObjectValue cannot be cast to net.sf.saxon.om.NodeInfo

      at net.sf.saxon.s9api.DocumentBuilder.wrap()
    2. Saxon HE
      TransformerImpl.transform
      1. net.sf.saxon.s9api.DocumentBuilder.wrap(DocumentBuilder.java:511)[Saxon-HE-9.6.0-5.jar:na]
      2. net.sf.saxon.s9api.XsltTransformer.setSource(XsltTransformer.java:209)[Saxon-HE-9.6.0-5.jar:na]
      3. net.sf.saxon.jaxp.TransformerImpl.transform(TransformerImpl.java:90)[Saxon-HE-9.6.0-5.jar:na]
      3 frames
    3. org.xmlunit.transform
      Transformation.transformToDocument
      1. org.xmlunit.transform.Transformation.transformTo(Transformation.java:186)[xmlunit-core-2.1.1.jar:2.1.1]
      2. org.xmlunit.transform.Transformation.transformToDocument(Transformation.java:220)[xmlunit-core-2.1.1.jar:2.1.1]
      2 frames
    4. org.xmlunit.input
      CommentLessSource.<init>
      1. org.xmlunit.input.CommentLessSource.<init>(CommentLessSource.java:42)[xmlunit-core-2.1.1.jar:2.1.1]
      1 frame
    5. org.xmlunit.builder
      DiffBuilder.build
      1. org.xmlunit.builder.DiffBuilder.wrap(DiffBuilder.java:358)[xmlunit-core-2.1.1.jar:2.1.1]
      2. org.xmlunit.builder.DiffBuilder.build(DiffBuilder.java:341)[xmlunit-core-2.1.1.jar:2.1.1]
      2 frames
    6. WireMock
      NearMissCalculator$1.compare
      1. com.github.tomakehurst.wiremock.matching.EqualToXmlPattern$1.getDistance(EqualToXmlPattern.java:121)[wiremock-2.1.9.jar:na]
      2. com.github.tomakehurst.wiremock.matching.MatchResult$1.getDistance(MatchResult.java:59)[wiremock-2.1.9.jar:na]
      3. com.github.tomakehurst.wiremock.matching.MatchResult$1.getDistance(MatchResult.java:59)[wiremock-2.1.9.jar:na]
      4. com.github.tomakehurst.wiremock.matching.MatchResult.compareTo(MatchResult.java:77)[wiremock-2.1.9.jar:na]
      5. com.github.tomakehurst.wiremock.verification.NearMiss.compareTo(NearMiss.java:75)[wiremock-2.1.9.jar:na]
      6. com.github.tomakehurst.wiremock.verification.NearMissCalculator$1.compare(NearMissCalculator.java:38)[wiremock-2.1.9.jar:na]
      7. com.github.tomakehurst.wiremock.verification.NearMissCalculator$1.compare(NearMissCalculator.java:36)[wiremock-2.1.9.jar:na]
      7 frames
    7. Guava
      ComparatorOrdering.compare
      1. com.google.common.collect.ComparatorOrdering.compare(ComparatorOrdering.java:38)[guava-18.0.jar:na]
      1 frame
    8. Java RT
      Arrays.sort
      1. java.util.TimSort.countRunAndMakeAscending(TimSort.java:351)[na:1.8.0_45]
      2. java.util.TimSort.sort(TimSort.java:216)[na:1.8.0_45]
      3. java.util.Arrays.sort(Arrays.java:1438)[na:1.8.0_45]
      3 frames
    9. Guava
      FluentIterable.toSortedList
      1. com.google.common.collect.Ordering.immutableSortedCopy(Ordering.java:846)[guava-18.0.jar:na]
      2. com.google.common.collect.FluentIterable.toSortedList(FluentIterable.java:386)[guava-18.0.jar:na]
      2 frames
    10. WireMock
      WireMockHandlerDispatchingServlet.service
      1. com.github.tomakehurst.wiremock.verification.NearMissCalculator.sortAndTruncate(NearMissCalculator.java:72)[wiremock-2.1.9.jar:na]
      2. com.github.tomakehurst.wiremock.verification.NearMissCalculator.findNearestTo(NearMissCalculator.java:53)[wiremock-2.1.9.jar:na]
      3. com.github.tomakehurst.wiremock.core.WireMockApp.logUnmatchedRequest(WireMockApp.java:119)[wiremock-2.1.9.jar:na]
      4. com.github.tomakehurst.wiremock.core.WireMockApp.serveStubFor(WireMockApp.java:112)[wiremock-2.1.9.jar:na]
      5. com.github.tomakehurst.wiremock.http.StubRequestHandler.handleRequest(StubRequestHandler.java:32)[wiremock-2.1.9.jar:na]
      6. com.github.tomakehurst.wiremock.http.AbstractRequestHandler.handle(AbstractRequestHandler.java:41)[wiremock-2.1.9.jar:na]
      7. com.github.tomakehurst.wiremock.servlet.WireMockHandlerDispatchingServlet.service(WireMockHandlerDispatchingServlet.java:99)[wiremock-2.1.9.jar:na]
      7 frames
    11. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:729)[tomcat-embed-core-8.0.30.jar:8.0.30]
      1 frame
    12. Jetty
      QueuedThreadPool$3.run
      1. org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)[jetty-servlet-9.2.14.v20151106.jar:9.2.14.v20151106]
      2. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)[jetty-servlet-9.2.14.v20151106.jar:9.2.14.v20151106]
      3. org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:83)[jetty-servlets-9.2.14.v20151106.jar:9.2.14.v20151106]
      4. org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:300)[jetty-servlets-9.2.14.v20151106.jar:9.2.14.v20151106]
      5. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)[jetty-servlet-9.2.14.v20151106.jar:9.2.14.v20151106]
      6. org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)[jetty-servlet-9.2.14.v20151106.jar:9.2.14.v20151106]
      7. org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)[jetty-server-9.2.14.v20151106.jar:9.2.14.v20151106]
      8. org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)[jetty-servlet-9.2.14.v20151106.jar:9.2.14.v20151106]
      9. org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)[jetty-server-9.2.14.v20151106.jar:9.2.14.v20151106]
      10. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)[jetty-server-9.2.14.v20151106.jar:9.2.14.v20151106]
      11. org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)[jetty-server-9.2.14.v20151106.jar:9.2.14.v20151106]
      12. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)[jetty-server-9.2.14.v20151106.jar:9.2.14.v20151106]
      13. org.eclipse.jetty.server.Server.handle(Server.java:499)[jetty-server-9.2.14.v20151106.jar:9.2.14.v20151106]
      14. org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)[jetty-server-9.2.14.v20151106.jar:9.2.14.v20151106]
      15. org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)[jetty-server-9.2.14.v20151106.jar:9.2.14.v20151106]
      16. org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)[jetty-io-9.2.14.v20151106.jar:9.2.14.v20151106]
      17. org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)[jetty-util-9.2.14.v20151106.jar:9.2.14.v20151106]
      18. org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)[jetty-util-9.2.14.v20151106.jar:9.2.14.v20151106]
      18 frames
    13. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)[na:1.8.0_45]
      1 frame