zorba-coders team mailing list archive
-
zorba-coders team
-
Mailing list archive
-
Message #07533
[Bug 867171] Re: http site crashes zorba
** Changed in: zorba
Milestone: None => 2.5
--
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/867171
Title:
http site crashes zorba
Status in Zorba - The XQuery Processor:
New
Bug description:
When I try to load the page http://www.xqueryfunctions.com/xq
/functx_fragment-from-uri.html the http module raises an error, and
then zorba crashes at finish with the message "strings still in the
pool".
The test looks like:
import module namespace http = "http://expath.org/ns/http-client";
variable $load-result;
$load-result := http:send-request(<http:request method="GET" href="http://www.xqueryfunctions.com/xq/functx_fragment-from-uri.html"/>);
$load-result
and the error message is (after I removed some try - catch in http-client.xq):
<?xml version="1.0" encoding="UTF-8"?>
<E:\xquery_development\zorba_28mai09\release\URI_PATH\com\zorba-xquery\www\modules\converters\html.xq>:85,5: type error [err:XPTY0004]: Cannot treat empty sequence as [NodeXQType documentNode content=[XQType ANY_TYPE_KIND*]].
=================================================
html:parse#1 <http://www.zorba-xquery.com/modules/converters/html>
E:\xquery_development\zorba_28mai09\release\URI_PATH\org\expath\ns\http-client.xq at line 218 column 7
=================================================
http:tidy-result#2 <http://expath.org/ns/http-client>
E:\xquery_development\zorba_28mai09\release\URI_PATH\org\expath\ns\http-client.xq at line 151 column 8
=================================================
http:send-request#3 <http://expath.org/ns/http-client>
E:\xquery_development\zorba_28mai09\release\URI_PATH\org\expath\ns\http-client.xq at line 177 column 5
=================================================
http:send-request#1 <http://expath.org/ns/http-client>
E:\xquery_development\zorba_28mai09\scripts\test.xq at line 30 column 17
i = 27 String http://saxon.sf.net/ is still in the pool
i = 89 String http://www.w3.org/1999/xhtml is still in the pool
Zorba Internal Fatal Error in ..\..\src\store\naive\string_pool.cpp:42:
"count == 0": condition failed: 2 strings remain in the string pool
To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/867171/+subscriptions