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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Google Groups by Vipin Jose, 1 year ago
net.sf.saxon.value.ObjectValue cannot be cast to net.sf.saxon.om.NodeInfo
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)
at net.sf.saxon.s9api.XsltTransformer.setSource(XsltTransformer.java:209)
at net.sf.saxon.jaxp.TransformerImpl.transform(TransformerImpl.java:90)
at org.xmlunit.transform.Transformation.transformTo(Transformation.java:186)
at org.xmlunit.transform.Transformation.transformToDocument(Transformation.java:220)
at org.xmlunit.input.CommentLessSource.(CommentLessSource.java:42)
at org.xmlunit.builder.DiffBuilder.wrap(DiffBuilder.java:358)
at org.xmlunit.builder.DiffBuilder.build(DiffBuilder.java:341)
at com.github.tomakehurst.wiremock.matching.EqualToXmlPattern$1.getDistance(EqualToXmlPattern.java:121)
at com.github.tomakehurst.wiremock.matching.MatchResult$1.getDistance(MatchResult.java:59)
at com.github.tomakehurst.wiremock.matching.MatchResult$1.getDistance(MatchResult.java:59)
at com.github.tomakehurst.wiremock.matching.MatchResult.compareTo(MatchResult.java:77)
at com.github.tomakehurst.wiremock.verification.NearMiss.compareTo(NearMiss.java:75)
at com.github.tomakehurst.wiremock.verification.NearMissCalculator$1.compare(NearMissCalculator.java:38)
at java.util.TimSort.countRunAndMakeAscending(TimSort.java:351)
at java.util.TimSort.sort(TimSort.java:216)
at java.util.Arrays.sort(Arrays.java:1438)
at com.google.common.collect.Ordering.immutableSortedCopy(Ordering.java:846)
at com.github.tomakehurst.wiremock.verification.NearMissCalculator.sortAndTruncate(NearMissCalculator.java:72)
at com.github.tomakehurst.wiremock.verification.NearMissCalculator.findNearestTo(NearMissCalculator.java:53)
at com.github.tomakehurst.wiremock.core.WireMockApp.logUnmatchedRequest(WireMockApp.java:119)
at com.github.tomakehurst.wiremock.core.WireMockApp.serveStubFor(WireMockApp.java:112)
at com.github.tomakehurst.wiremock.http.StubRequestHandler.handleRequest(StubRequestHandler.java:32)
at com.github.tomakehurst.wiremock.http.AbstractRequestHandler.handle(AbstractRequestHandler.java:41)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
at org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:83)
at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:300)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
at org.eclipse.jetty.server.Server.handle(Server.java:499)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 11 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.