|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Could not retrieve XPathHi,
my htmlunit tests break sometimes with the error: Could not retrieve XPath. The problem is that there is no chance to reproduce it. Maybe have someone an idea. Here the stacktrace: Could not retrieve XPath >//div[@id=...]< on HtmlPage(http://localhost.../...Page)@1354107 Stracktracejava.lang.RuntimeException: Could not retrieve XPath >//div[@id=...Regards Tomek ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Htmlunit-user mailing list Htmlunit-user@... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
|
|
Re: Could not retrieve XPathHi,
can you try with a recent 2.7-SNAPSHOT? I think that I've already had this failure and that it was related to a bug in the implementation of the JS cloneNode() method. Cheers, Marc. Tomek Sniadach a écrit : > Hi, > my htmlunit tests break sometimes with the error: Could not retrieve > XPath. The problem is that there is no chance to reproduce it. Maybe > have someone an idea. > Here the stacktrace: > > Could not retrieve XPath >//div[@id=...]< on HtmlPage(http://localhost.../...Page <http://localhost:34567/adman/webapp//index?wicket:bookmarkablePage=:de.ppi.adman.webapp.pages.AllJobViewsPage>)@1354107 > > > Stracktrace > > java.lang.RuntimeException: Could not retrieve XPath >//div[@id=... > at com.gargoylesoftware.htmlunit.html.xpath.XPathUtils.getByXPath(XPathUtils.java:94) > at com.gargoylesoftware.htmlunit.html.DomNode.getByXPath(DomNode.java:1253) > > at com.gargoylesoftware.htmlunit.html.DomNode.getFirstByXPath(DomNode.java:1268) > ... > Caused by: javax.xml.transform.TransformerException: Unbekannter Fehler in XPath. <-- unknown error in XPath > at com.gargoylesoftware.htmlunit.html.xpath.XPathAdapter.execute(XPathAdapter.java:180) > > at com.gargoylesoftware.htmlunit.html.xpath.XPathUtils.evaluateXPath(XPathUtils.java:130) > at com.gargoylesoftware.htmlunit.html.xpath.XPathUtils.getByXPath(XPathUtils.java:72) > ... 21 more > Caused by: java.lang.NullPointerException > > at org.apache.xml.dtm.ref.dom2dtm.DOM2DTM.nextNode(DOM2DTM.java:390) > at org.apache.xml.dtm.ref.DTMDefaultBase._nextsib(DTMDefaultBase.java:565) > at org.apache.xml.dtm.ref.DTMDefaultBase.getNextSibling(DTMDefaultBase.java:1142) > > at org.apache.xml.dtm.ref.DTMDefaultBaseTraversers$ChildTraverser.next(DTMDefaultBaseTraversers.java:463) > at org.apache.xpath.axes.AxesWalker.getNextNode(AxesWalker.java:335) > at org.apache.xpath.axes.AxesWalker.nextNode(AxesWalker.java:363) > > at org.apache.xpath.axes.WalkingIterator.nextNode(WalkingIterator.java:195) > at org.apache.xpath.axes.NodeSequence.nextNode(NodeSequence.java:335) > at org.apache.xpath.axes.NodeSequence.runTo(NodeSequence.java:494) > > at org.apache.xpath.axes.NodeSequence.setRoot(NodeSequence.java:270) > at org.apache.xpath.axes.LocPathIterator.execute(LocPathIterator.java:212) > at com.gargoylesoftware.htmlunit.html.xpath.XPathAdapter.execute(XPathAdapter.java:159) > > ... 23 more > > Regards > Tomek > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > > > ------------------------------------------------------------------------ > > _______________________________________________ > Htmlunit-user mailing list > Htmlunit-user@... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Htmlunit-user mailing list Htmlunit-user@... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
|
|
Re: Could not retrieve XPathThanks Marc, I'll try the 2.7 Snapshot
Tomek 2009/11/3 Marc Guillemot <mguillemot@...> Hi, ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Htmlunit-user mailing list Htmlunit-user@... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
| Free embeddable forum powered by Nabble | Forum Help |