You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@any23.apache.org by "Meraj A. Khan" <me...@gmail.com> on 2015/03/04 07:39:58 UTC
Content is not allowed in prolog error.
Folks,
I recently started using the 1.2-Snapshot and when I extract triples
from a URL , I consistently get the [Fatal Error] :1:1: Content is not
allowed in prolog. for any given url , I have pasted a sample URL and
its content below , has there been any change in 1.2 thats causing
this issue? Thanks.
Version: 0
url: http://www.walmart.com/lists/wedding-registry-homepage
base: http://www.walmart.com/lists/wedding-registry-homepage
contentType: text/html
metadata: Content-Length=951 Expires=Sun, 17 Aug 2014 22:26:24 GMT
Rtss=1-57-62 Location=https://www.walmart.com/lists/wedding-registry-homepage
Set-Cookie=akaau_P0=1425449758~id=b85135e920a1ddc7a0b915893562f368;
path=/ X-Tb=1 Connection=close Cache-Control=private, max-age=0,
proxy-revalidate, no-store, no-cache, must-revalidate Pragma=no-cache
Rtss1=1 Vary=Accept-Encoding Date=Wed, 04 Mar 2015 05:45:58 GMT
Content-Encoding=gzip Content-Type=text/html; charset=utf-8
Content:
<!DOCTYPE html PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><link
href="//a14.wal.co" rel="dns-prefetch"/>
<title>302 Found</title>
<script>var TBRewriteHostAltWeight = 5;</script><script
src="//a14.wal.co/capabilities.min.js"></script></head><body>
<h1>Found</h1>
<p>The document has moved <a
href="https://www.walmart.com/lists/wedding-registry-homepage">here</a>.</p>
<hr/>
<address>Apache Server at www.walmart.com Port 80</address>
<script>(function(e){var
t=e.document;BOOMR=e.BOOMR||{};BOOMR.plugins=BOOMR.plugins||{};var
n={localStorageTestKey:"TorbitLSTest",pageTags:[],pageConversions:[],initHasRun:false};BOOMR.plugins.pageMeta={init:function(r){initHasRun=true;try{localStorage.setItem(n.localStorageTestKey,n.localStorageTestKey);localStorage.removeItem(n.localStorageTestKey);BOOMR.addVar("ls",1)}catch(i){BOOMR.addVar("ls",0)}if(e.location.protocol=="https:")BOOMR.addVar("prt",1);else
BOOMR.addVar("prt",0);BOOMR.addVar("ref",t.referrer);if(e.performance&&e.performance.memory){for(m_name
in e.performance.memory){if(e.performance.memory.hasOwnProperty(m_name)){BOOMR.addVar(m_name,e.performance.memory[m_name])}}}BOOMR.addVar("wH",e.innerHeight||t.body.clientHeight||t.documentElement.clientHeight);BOOMR.addVar("tags",n.pageTags.join("|"));return
this},addTag:function(e){n.pageTags.push(e);if(!n.initHasRun){return}BOOMR.addVar("tags",n.pageTags.join("|"))},addConversion:function(e,t){var
r=e;if(t&&(t>0||t.length>0))r=e+"="+t;n.pageConversions.push(r);BOOMR.addVar("conversion",n.pageConversions.join("|"))},is_complete:function(){return
true}}})(window);(function(e){try{e._tbq=e._tbq||[];_tbq.push=function(e){if(e.length<1||!e[0])return;switch(e[0]){case"tag":if(e.length<2)return;BOOMR.plugins.pageMeta.addTag(e[1]);break;case"startTimer":if(e.length<2)return;BOOMR.plugins.customEvents.startTimer(e[1]);break;case"endTimer":if(e.length<2)return;BOOMR.plugins.customEvents.endTimer(e[1]);break}};for(i
in _tbq){if(_tbq.hasOwnProperty(i)&&i!="push"){_tbq.push(_tbq[i]);delete
_tbq[i]}}}catch(t){}})(window);</script></body></html>
Re: Content is not allowed in prolog error.
Posted by "Meraj A. Khan" <me...@gmail.com>.
I can confirm that this is an issue starting with Apache Any23 1.0 and
not before that release. And also that this happens when the triples
are being retrieved from with in a multi-threaded execution and not so
far when a single thread is used.
On Wed, Mar 4, 2015 at 1:39 AM, Meraj A. Khan <me...@gmail.com> wrote:
> Folks,
>
> I recently started using the 1.2-Snapshot and when I extract triples
> from a URL , I consistently get the [Fatal Error] :1:1: Content is not
> allowed in prolog. for any given url , I have pasted a sample URL and
> its content below , has there been any change in 1.2 thats causing
> this issue? Thanks.
>
>
> Version: 0
> url: http://www.walmart.com/lists/wedding-registry-homepage
> base: http://www.walmart.com/lists/wedding-registry-homepage
> contentType: text/html
> metadata: Content-Length=951 Expires=Sun, 17 Aug 2014 22:26:24 GMT
> Rtss=1-57-62 Location=https://www.walmart.com/lists/wedding-registry-homepage
> Set-Cookie=akaau_P0=1425449758~id=b85135e920a1ddc7a0b915893562f368;
> path=/ X-Tb=1 Connection=close Cache-Control=private, max-age=0,
> proxy-revalidate, no-store, no-cache, must-revalidate Pragma=no-cache
> Rtss1=1 Vary=Accept-Encoding Date=Wed, 04 Mar 2015 05:45:58 GMT
> Content-Encoding=gzip Content-Type=text/html; charset=utf-8
> Content:
> <!DOCTYPE html PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><link
> href="//a14.wal.co" rel="dns-prefetch"/>
> <title>302 Found</title>
> <script>var TBRewriteHostAltWeight = 5;</script><script
> src="//a14.wal.co/capabilities.min.js"></script></head><body>
> <h1>Found</h1>
> <p>The document has moved <a
> href="https://www.walmart.com/lists/wedding-registry-homepage">here</a>.</p>
> <hr/>
> <address>Apache Server at www.walmart.com Port 80</address>
>
> <script>(function(e){var
> t=e.document;BOOMR=e.BOOMR||{};BOOMR.plugins=BOOMR.plugins||{};var
> n={localStorageTestKey:"TorbitLSTest",pageTags:[],pageConversions:[],initHasRun:false};BOOMR.plugins.pageMeta={init:function(r){initHasRun=true;try{localStorage.setItem(n.localStorageTestKey,n.localStorageTestKey);localStorage.removeItem(n.localStorageTestKey);BOOMR.addVar("ls",1)}catch(i){BOOMR.addVar("ls",0)}if(e.location.protocol=="https:")BOOMR.addVar("prt",1);else
> BOOMR.addVar("prt",0);BOOMR.addVar("ref",t.referrer);if(e.performance&&e.performance.memory){for(m_name
> in e.performance.memory){if(e.performance.memory.hasOwnProperty(m_name)){BOOMR.addVar(m_name,e.performance.memory[m_name])}}}BOOMR.addVar("wH",e.innerHeight||t.body.clientHeight||t.documentElement.clientHeight);BOOMR.addVar("tags",n.pageTags.join("|"));return
> this},addTag:function(e){n.pageTags.push(e);if(!n.initHasRun){return}BOOMR.addVar("tags",n.pageTags.join("|"))},addConversion:function(e,t){var
> r=e;if(t&&(t>0||t.length>0))r=e+"="+t;n.pageConversions.push(r);BOOMR.addVar("conversion",n.pageConversions.join("|"))},is_complete:function(){return
> true}}})(window);(function(e){try{e._tbq=e._tbq||[];_tbq.push=function(e){if(e.length<1||!e[0])return;switch(e[0]){case"tag":if(e.length<2)return;BOOMR.plugins.pageMeta.addTag(e[1]);break;case"startTimer":if(e.length<2)return;BOOMR.plugins.customEvents.startTimer(e[1]);break;case"endTimer":if(e.length<2)return;BOOMR.plugins.customEvents.endTimer(e[1]);break}};for(i
> in _tbq){if(_tbq.hasOwnProperty(i)&&i!="push"){_tbq.push(_tbq[i]);delete
> _tbq[i]}}}catch(t){}})(window);</script></body></html>