java.lang.ClassCastException

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

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1

  • Stack trace

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

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,