|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
createPage method hangs on 404 response containing SOAP body.Hey guys ,
I have an issue where the response is a 404 response containing SOAP envelope in response body. It seems the createPage method gets stuck somewhere parsing this response to create HtmlPage. Request url: http://trkweb.dominos.com/orderstorage/gettrackerdata Response: Nov 2, 2009 12:36:31 PM com.gargoylesoftware.htmlunit.WebClient printContentIfNecessary INFO: statusCode=[404] contentType=[text/html] Nov 2, 2009 12:36:31 PM com.gargoylesoftware.htmlunit.WebClient printContentIfNecessary INFO: <?xml version="1.0" encoding="UTF-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soap:Body> <soap:Fault> <faultcode>soap:Server</faultcode> <faultstring>Internal Error</faultstring> </soap:Fault> </soap:Body> </soap:Envelope> I am using 2.5. Thanks, Nidhi -- ------------------------------------------------ Nidhi Shah Research Scientist Purewire, Inc. 404-963-9025 nidhi@... ------------------------------------------------------------------------------ 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: (more info) createPage method hangs on 404 response containing SOAP body.I did some more tracing and the problem is in HtmlPage.java - void
notifyNodeAdded(final DomNode node) method. The for loop in this method is stuck infinitely. Some how for node (soap:body) the parent is set to (soap:envelope) and for (soap:envelope) it is (soap:body)! So it never comes out of it. (parent = parent.getParentNode()). void notifyNodeAdded(final DomNode node) { if (node instanceof HtmlElement) { boolean insideNoScript = false; if (getWebClient().isJavaScriptEnabled()) { for (DomNode parent = node.getParentNode(); parent != null; parent = parent.getParentNode()) { if (parent instanceof HtmlNoScript) { insideNoScript = true; break; } } } if (!insideNoScript) { addMappedElement((HtmlElement) node, true); } } } I hope that helps. Also please let me know if there is a quick fix I can do for this. Thanks, Nidhi Nidhi wrote: > Hey guys , > I have an issue where the response is a 404 response containing SOAP > envelope in response body. It seems the createPage method gets stuck > somewhere parsing this response to create HtmlPage. > > Request url: http://trkweb.dominos.com/orderstorage/gettrackerdata > > Response: > Nov 2, 2009 12:36:31 PM com.gargoylesoftware.htmlunit.WebClient > printContentIfNecessary > INFO: statusCode=[404] contentType=[text/html] > Nov 2, 2009 12:36:31 PM com.gargoylesoftware.htmlunit.WebClient > printContentIfNecessary > INFO: <?xml version="1.0" encoding="UTF-8"?> > <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > <soap:Body> > <soap:Fault> > <faultcode>soap:Server</faultcode> > <faultstring>Internal Error</faultstring> > </soap:Fault> > </soap:Body> > </soap:Envelope> > > > I am using 2.5. > > Thanks, > Nidhi > > ------------------------------------------------------------------------------ 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: (more info) createPage method hangs on 404 response containing SOAP body.Hi Nidhi,
Please upgrade to 2.6, make sure you still get the error, and provide minimal Java/HTML/JS that replicates the issue (no external web site dependencies). It's best if you provide all of this in a bug report, so that it doesn't fall between the cracks on the mailing list. Finally, if you need help absolutely ASAP, you might want to consider professional support [1]. Take care, Daniel [1] http://htmlunit.sourceforge.net/professionalSupport.html On Mon, Nov 2, 2009 at 4:07 PM, Nidhi <nidhi@...> wrote: I did some more tracing and the problem is in HtmlPage.java - void -- Daniel Gredler http://daniel.gredler.net/ ------------------------------------------------------------------------------ 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: (more info) createPage method hangs on 404 response containing SOAP body.Thanks Daniel. I will eventually upgrade to the latest stable but
currently I have been able to do a quick fix for it which involves keep track of parents we have already seen and if we encounter same one again we know we are in a infinite loop. I am not sure if there are any side effects for this solution but it seems to work for me right now. There were four locations in that file that I had to fix. Nidhi Daniel Gredler wrote: > Hi Nidhi, > > Please upgrade to 2.6, make sure you still get the error, and provide > minimal Java/HTML/JS that replicates the issue (no external web site > dependencies). It's best if you provide all of this in a bug report, > so that it doesn't fall between the cracks on the mailing list. > Finally, if you need help absolutely ASAP, you might want to consider > professional support [1]. > > Take care, > > Daniel > > > [1] http://htmlunit.sourceforge.net/professionalSupport.html > > > On Mon, Nov 2, 2009 at 4:07 PM, Nidhi <nidhi@... > <mailto:nidhi@...>> wrote: > > I did some more tracing and the problem is in HtmlPage.java - void > notifyNodeAdded(final DomNode node) method. The for loop in this > method > is stuck infinitely. Some how for node (soap:body) the parent is > set to > (soap:envelope) and for (soap:envelope) it is (soap:body)! So it never > comes out of it. (parent = parent.getParentNode()). > > > void notifyNodeAdded(final DomNode node) { > if (node instanceof HtmlElement) { > boolean insideNoScript = false; > if (getWebClient().isJavaScriptEnabled()) { > for (DomNode parent = node.getParentNode(); parent != > null; parent = parent.getParentNode()) { > if (parent instanceof HtmlNoScript) { > insideNoScript = true; > break; > } > } > } > if (!insideNoScript) { > addMappedElement((HtmlElement) node, true); > } > } > } > > > I hope that helps. Also please let me know if there is a quick fix > I can > do for this. > > Thanks, > Nidhi > > > > Nidhi wrote: > > Hey guys , > > I have an issue where the response is a 404 response containing SOAP > > envelope in response body. It seems the createPage method gets stuck > > somewhere parsing this response to create HtmlPage. > > > > Request url: http://trkweb.dominos.com/orderstorage/gettrackerdata > > > > Response: > > Nov 2, 2009 12:36:31 PM com.gargoylesoftware.htmlunit.WebClient > > printContentIfNecessary > > INFO: statusCode=[404] contentType=[text/html] > > Nov 2, 2009 12:36:31 PM com.gargoylesoftware.htmlunit.WebClient > > printContentIfNecessary > > INFO: <?xml version="1.0" encoding="UTF-8"?> > > <soap:Envelope > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" > > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > <soap:Body> > > <soap:Fault> > > <faultcode>soap:Server</faultcode> > > <faultstring>Internal Error</faultstring> > > </soap:Fault> > > </soap:Body> > > </soap:Envelope> > > > > > > I am using 2.5. > > > > Thanks, > > Nidhi > > > > > > > ------------------------------------------------------------------------------ > 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@... > <mailto:Htmlunit-user@...> > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > > > -- > Daniel Gredler > http://daniel.gredler.net/ > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > 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: (more info) createPage method hangs on 404 response containing SOAP body.Hi Nidhi,
Glad you found a workaround. Can you still file a bug report, though? Otherwise this won't get fixed and others will run into the same issue. Thanks, Daniel
On Tue, Nov 3, 2009 at 11:10 AM, Nidhi <nidhi@...> wrote: Thanks Daniel. I will eventually upgrade to the latest stable but -- Daniel Gredler http://daniel.gredler.net/ ------------------------------------------------------------------------------ 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: (more info) createPage method hangs on 404 response containing SOAP body.Sure ! I can also provide the fix code if it is not fixed in the current
branch. Nidhi Daniel Gredler wrote: > Hi Nidhi, > > Glad you found a workaround. Can you still file a bug report, though? > Otherwise this won't get fixed and others will run into the same issue. > > Thanks, > > Daniel > > > On Tue, Nov 3, 2009 at 11:10 AM, Nidhi <nidhi@... > <mailto:nidhi@...>> wrote: > > Thanks Daniel. I will eventually upgrade to the latest stable but > currently I have been able to do a quick fix for it which involves > keep > track of parents we have already seen and if we encounter same one > again > we know we are in a infinite loop. I am not sure if there are any side > effects for this solution but it seems to work for me right now. There > were four locations in that file that I had to fix. > > Nidhi > > Daniel Gredler wrote: > > Hi Nidhi, > > > > Please upgrade to 2.6, make sure you still get the error, and > provide > > minimal Java/HTML/JS that replicates the issue (no external web site > > dependencies). It's best if you provide all of this in a bug report, > > so that it doesn't fall between the cracks on the mailing list. > > Finally, if you need help absolutely ASAP, you might want to > consider > > professional support [1]. > > > > Take care, > > > > Daniel > > > > > > [1] http://htmlunit.sourceforge.net/professionalSupport.html > > > > > > On Mon, Nov 2, 2009 at 4:07 PM, Nidhi <nidhi@... > <mailto:nidhi@...> > > <mailto:nidhi@... <mailto:nidhi@...>>> wrote: > > > > I did some more tracing and the problem is in HtmlPage.java > - void > > notifyNodeAdded(final DomNode node) method. The for loop in > this > > method > > is stuck infinitely. Some how for node (soap:body) the parent is > > set to > > (soap:envelope) and for (soap:envelope) it is (soap:body)! > So it never > > comes out of it. (parent = parent.getParentNode()). > > > > > > void notifyNodeAdded(final DomNode node) { > > if (node instanceof HtmlElement) { > > boolean insideNoScript = false; > > if (getWebClient().isJavaScriptEnabled()) { > > for (DomNode parent = node.getParentNode(); > parent != > > null; parent = parent.getParentNode()) { > > if (parent instanceof HtmlNoScript) { > > insideNoScript = true; > > break; > > } > > } > > } > > if (!insideNoScript) { > > addMappedElement((HtmlElement) node, true); > > } > > } > > } > > > > > > I hope that helps. Also please let me know if there is a > quick fix > > I can > > do for this. > > > > Thanks, > > Nidhi > > > > > > > > Nidhi wrote: > > > Hey guys , > > > I have an issue where the response is a 404 response > containing SOAP > > > envelope in response body. It seems the createPage method > gets stuck > > > somewhere parsing this response to create HtmlPage. > > > > > > Request url: > http://trkweb.dominos.com/orderstorage/gettrackerdata > > > > > > Response: > > > Nov 2, 2009 12:36:31 PM > com.gargoylesoftware.htmlunit.WebClient > > > printContentIfNecessary > > > INFO: statusCode=[404] contentType=[text/html] > > > Nov 2, 2009 12:36:31 PM > com.gargoylesoftware.htmlunit.WebClient > > > printContentIfNecessary > > > INFO: <?xml version="1.0" encoding="UTF-8"?> > > > <soap:Envelope > > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" > > > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > > <soap:Body> > > > <soap:Fault> > > > <faultcode>soap:Server</faultcode> > > > <faultstring>Internal Error</faultstring> > > > </soap:Fault> > > > </soap:Body> > > > </soap:Envelope> > > > > > > > > > I am using 2.5. > > > > > > Thanks, > > > Nidhi > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > 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@... > <mailto:Htmlunit-user@...> > > <mailto:Htmlunit-user@... > <mailto:Htmlunit-user@...>> > > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > > > > > > > > -- > > Daniel Gredler > > http://daniel.gredler.net/ > > > ------------------------------------------------------------------------ > > > > > ------------------------------------------------------------------------------ > > 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@... > <mailto: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@... > <mailto:Htmlunit-user@...> > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > > > -- > Daniel Gredler > http://daniel.gredler.net/ > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > 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 |
| Free embeddable forum powered by Nabble | Forum Help |