firethorn

changeset 4312:310132961970 2.1.35-stv-issue-1182

Notes on Debugging TAP issue
author Stelios <stv@roe.ac.uk>
date Wed Sep 23 20:30:51 2020 +0300 (14 months ago)
parents aebbf8399c31
children
files doc/notes/stv/20200923-Testing-TAP.txt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/doc/notes/stv/20200923-Testing-TAP.txt	Wed Sep 23 20:30:51 2020 +0300
     1.3 @@ -0,0 +1,385 @@
     1.4 +#
     1.5 +# <meta:header>
     1.6 +#   <meta:licence>
     1.7 +#     Copyright (c) 2020, ROE (http://www.roe.ac.uk/)
     1.8 +#
     1.9 +#     This information is free software: you can redistribute it and/or modify
    1.10 +#     it under the terms of the GNU General Public License as published by
    1.11 +#     the Free Software Foundation, either version 3 of the License, or
    1.12 +#     (at your option) any later version.
    1.13 +#
    1.14 +#     This information is distributed in the hope that it will be useful,
    1.15 +#     but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.16 +#     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.17 +#     GNU General Public License for more details.
    1.18 +#
    1.19 +#     You should have received a copy of the GNU General Public License
    1.20 +#     along with this program.  If not, see <http://www.gnu.org/licenses/>.
    1.21 +#   </meta:licence>
    1.22 +# </meta:header>
    1.23 +#
    1.24 +#
    1.25 +
    1.26 +# Issue:
    1.27 +# VOTables returned by our TAP services seem to be truncated
    1.28 +# This error can be consistently triggered with more than a given number of rows 
    1.29 +
    1.30 +# VOTable output looks like this:
    1.31 +
    1.32 +
    1.33 +...
    1.34 +9.65625667214931</TD></TR><TR><TD>109.62212172676182</TD></TR><TR><TD>109.82132512506422</TD></TR><TR><TD>109.77561428791701</TD></TR><TR><TD>109.63504919764875</TD></TR><TR><TD>110.45040772872322</TD></TR><TR><TD>110.45131931158252</TD></TR><TR><TD>110.15717620699772</TD></TR><TR><TD>110.29345188762996</TD></TR><TR><TD>109.95862493983326</TD></TR><TR><TD>109.7350586318248</TD></TR><TR><TD>109.73490663540423</TD></TR><TR><TD>109.9977095896801</TD></TR><TR><TD>110.18859049281163</TD></TR><TR><TD>110.53472669946927</TD></TR><TR><TD>110.46531602470012</TD></TR><TR><TD>110.42798049207829</TD></TR><TR><TD>110.39882295772489</TD></TR><TR><TD>110.4923552017286</TD></TR><TR><TD>110.60117875054998</TD></TR><TR><TD>109.82753590911958</TD></TR><TR><TD>109.95249256230588</TD></TR><TR><TD>109.93898932548879</TD></TR><TR><TD>110.04532991176723</TD></TR><TR><TD>110.05490317834001</TD></TR><TR><TD>110.11107385660198</TD></TR><TR><TD>109.87508599869692</TD></TR><TR><TD>109.87432040565857</TD></TR><TR><TD>110.12976038240315</TD></TR><TR><TD>110.3143862399054</TD></TR><TR><TD>110.33296709679703</TD></TR><TR><TD>110.2655445319218</TD></TR><TR><TD>110.58714512465156</TD></TR><TR><TD>110.35993552182396</TD></TR><TR><TD>110.3
    1.35 +
    1.36 +# Notice incomplete ending to the VOTable file
    1.37 +
    1.38 +
    1.39 +# ------------------------------------------
    1.40 +# Testing with CURL
    1.41 +# ------------------------------------------
    1.42 +
    1.43 +# SELECT TOP 30000 * FROM VHSDR6.vhsSource ORDER BY sourceID
    1.44 +
    1.45 +curl -v -L  "http://tap.roe.ac.uk/vsa/sync?REQUEST=doQuery&QUERY=SELECT+TOP+30000+*+from+VHSDR6.vhsSource+ORDER+BY+sourceID&LANG=ADQL" > out.xml
    1.46 +  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
    1.47 +                                 Dload  Upload   Total   Spent    Left  Speed
    1.48 +  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 129.215.175.100...
    1.49 +* TCP_NODELAY set
    1.50 +* Connected to tap.roe.ac.uk (129.215.175.100) port 80 (#0)
    1.51 +> GET /vsa/sync?REQUEST=doQuery&QUERY=SELECT+TOP+30000+*+from+VHSDR6.vhsSource+ORDER+BY+sourceID&LANG=ADQL HTTP/1.1
    1.52 +> Host: tap.roe.ac.uk
    1.53 +> User-Agent: curl/7.58.0
    1.54 +> Accept: */*
    1.55 +> 
    1.56 +  0     0    0     0    0     0      0      0 --:--:--  0:00:08 --:--:--     0< HTTP/1.1 303 
    1.57 +< Date: Wed, 23 Sep 2020 17:01:11 GMT
    1.58 +< Server: Apache/2.4.34 (Fedora)
    1.59 +< X-Clacks-Overhead: GNU Terry Pratchett
    1.60 +< Location: http://tap.roe.ac.uk/firethorn/adql/table/5706490/votable
    1.61 +< firethorn.auth.identity: http://tap.roe.ac.uk/firethorn/community-member/5711548
    1.62 +< firethorn.auth.username: anon-EQEDXTPJHVNI2AAAAF2LX2KODM
    1.63 +< firethorn.auth.community: friends
    1.64 +< Content-Type: text/xml;charset=ISO-8859-1
    1.65 +< Content-Length: 67
    1.66 +< 
    1.67 +* Ignoring the response-body
    1.68 +{ [67 bytes data]
    1.69 +100    67  100    67    0     0      7      0  0:00:09  0:00:08  0:00:01    19
    1.70 +* Connection #0 to host tap.roe.ac.uk left intact
    1.71 +* Issue another request to this URL: 'http://tap.roe.ac.uk/firethorn/adql/table/5706490/votable'
    1.72 +* Found bundle for host tap.roe.ac.uk: 0x56200fc1ca50 [can pipeline]
    1.73 +* Re-using existing connection! (#0) with host tap.roe.ac.uk
    1.74 +* Connected to tap.roe.ac.uk (129.215.175.100) port 80 (#0)
    1.75 +> GET /firethorn/adql/table/5706490/votable HTTP/1.1
    1.76 +> Host: tap.roe.ac.uk
    1.77 +> User-Agent: curl/7.58.0
    1.78 +> Accept: */*
    1.79 +> 
    1.80 +< HTTP/1.1 200 
    1.81 +< Date: Wed, 23 Sep 2020 17:01:11 GMT
    1.82 +< Server: Apache/2.4.34 (Fedora)
    1.83 +< X-Clacks-Overhead: GNU Terry Pratchett
    1.84 +< Content-Type: text/xml;charset=UTF-8
    1.85 +< Transfer-Encoding: chunked
    1.86 +< 
    1.87 +{ [1248 bytes data]
    1.88 +100 18.1M    0 18.1M    0     0   757k      0 --:--:--  0:00:24 --:--:--  927k* transfer closed with outstanding read data remaining
    1.89 +* stopped the pause stream!
    1.90 +100 18.4M    0 18.4M    0     0   759k      0 --:--:--  0:00:24 --:--:--  932k
    1.91 +* Closing connection 0
    1.92 +curl: (18) transfer closed with outstanding read data remaining
    1.93 +
    1.94 +
    1.95 +##-------------------------- FAILED
    1.96 +
    1.97 +
    1.98 +
    1.99 +# SELECT TOP 30000 ra FROM VHSDR6.vhsSource ORDER BY sourceID
   1.100 +
   1.101 +curl -v -L  "http://tap.roe.ac.uk/vsa/sync?REQUEST=doQuery&QUERY=SELECT+TOP+30000+ra+from+VHSDR6.vhsSource+ORDER+BY+sourceID&LANG=ADQL" > out.xml
   1.102 +  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
   1.103 +                                 Dload  Upload   Total   Spent    Left  Speed
   1.104 +  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 129.215.175.100...
   1.105 +* TCP_NODELAY set
   1.106 +* Connected to tap.roe.ac.uk (129.215.175.100) port 80 (#0)
   1.107 +> GET /vsa/sync?REQUEST=doQuery&QUERY=SELECT+TOP+30000+ra+from+VHSDR6.vhsSource+ORDER+BY+sourceID&LANG=ADQL HTTP/1.1
   1.108 +> Host: tap.roe.ac.uk
   1.109 +> User-Agent: curl/7.58.0
   1.110 +> Accept: */*
   1.111 +> 
   1.112 +  0     0    0     0    0     0      0      0 --:--:--  0:00:03 --:--:--     0< HTTP/1.1 303 
   1.113 +< Date: Wed, 23 Sep 2020 17:03:08 GMT
   1.114 +< Server: Apache/2.4.34 (Fedora)
   1.115 +< X-Clacks-Overhead: GNU Terry Pratchett
   1.116 +< Location: http://tap.roe.ac.uk/firethorn/adql/table/5706492/votable
   1.117 +< firethorn.auth.identity: http://tap.roe.ac.uk/firethorn/community-member/5712454
   1.118 +< firethorn.auth.username: anon-NFWPQRWRT2RRQAAAAF2LX2ZLLY
   1.119 +< firethorn.auth.community: friends
   1.120 +< Content-Type: text/xml;charset=ISO-8859-1
   1.121 +< Content-Length: 67
   1.122 +< 
   1.123 +* Ignoring the response-body
   1.124 +{ [67 bytes data]
   1.125 +100    67  100    67    0     0     16      0  0:00:04  0:00:03  0:00:01    16
   1.126 +* Connection #0 to host tap.roe.ac.uk left intact
   1.127 +* Issue another request to this URL: 'http://tap.roe.ac.uk/firethorn/adql/table/5706492/votable'
   1.128 +* Found bundle for host tap.roe.ac.uk: 0x560763089a50 [can pipeline]
   1.129 +* Re-using existing connection! (#0) with host tap.roe.ac.uk
   1.130 +* Connected to tap.roe.ac.uk (129.215.175.100) port 80 (#0)
   1.131 +> GET /firethorn/adql/table/5706492/votable HTTP/1.1
   1.132 +> Host: tap.roe.ac.uk
   1.133 +> User-Agent: curl/7.58.0
   1.134 +> Accept: */*
   1.135 +> 
   1.136 +< HTTP/1.1 200 
   1.137 +< Date: Wed, 23 Sep 2020 17:03:08 GMT
   1.138 +< Server: Apache/2.4.34 (Fedora)
   1.139 +< X-Clacks-Overhead: GNU Terry Pratchett
   1.140 +< Content-Type: text/xml;charset=UTF-8
   1.141 +< Transfer-Encoding: chunked
   1.142 +< 
   1.143 +{ [1248 bytes data]
   1.144 +100 1046k    0 1046k    0     0   197k      0 --:--:--  0:00:05 --:--:--  980k
   1.145 +* Connection #0 to host tap.roe.ac.uk left intact
   1.146 +
   1.147 +##-------------------------- SUCCESS
   1.148 +
   1.149 +
   1.150 +# SELECT TOP 200000 ra FROM VHSDR6.vhsSource ORDER BY sourceID
   1.151 +
   1.152 +curl -v -L  "http://tap.roe.ac.uk/vsa/sync?REQUEST=doQuery&QUERY=SELECT+TOP+200000+ra+from+VHSDR6.vhsSource+ORDER+BY+sourceID&LANG=ADQL" > out.xml
   1.153 +
   1.154 +  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
   1.155 +                                 Dload  Upload   Total   Spent    Left  Speed
   1.156 +  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 129.215.175.100...
   1.157 +* TCP_NODELAY set
   1.158 +* Connected to tap.roe.ac.uk (129.215.175.100) port 80 (#0)
   1.159 +> GET /vsa/sync?REQUEST=doQuery&QUERY=SELECT+TOP+200000+ra+from+VHSDR6.vhsSource+ORDER+BY+sourceID&LANG=ADQL HTTP/1.1
   1.160 +> Host: tap.roe.ac.uk
   1.161 +> User-Agent: curl/7.58.0
   1.162 +> Accept: */*
   1.163 +> 
   1.164 +  0     0    0     0    0     0      0      0 --:--:--  0:00:08 --:--:--     0< HTTP/1.1 303 
   1.165 +< Date: Wed, 23 Sep 2020 17:04:47 GMT
   1.166 +< Server: Apache/2.4.34 (Fedora)
   1.167 +< X-Clacks-Overhead: GNU Terry Pratchett
   1.168 +< Location: http://tap.roe.ac.uk/firethorn/adql/table/5706496/votable
   1.169 +< firethorn.auth.identity: http://tap.roe.ac.uk/firethorn/community-member/5712602
   1.170 +< firethorn.auth.username: anon-FMJ2Q4UOAVO7WAAAAF2LX3EWRI
   1.171 +< firethorn.auth.community: friends
   1.172 +< Content-Type: text/xml;charset=ISO-8859-1
   1.173 +< Content-Length: 67
   1.174 +< 
   1.175 +* Ignoring the response-body
   1.176 +{ [67 bytes data]
   1.177 +100    67  100    67    0     0      7      0  0:00:09  0:00:08  0:00:01    17
   1.178 +* Connection #0 to host tap.roe.ac.uk left intact
   1.179 +* Issue another request to this URL: 'http://tap.roe.ac.uk/firethorn/adql/table/5706496/votable'
   1.180 +* Found bundle for host tap.roe.ac.uk: 0x5589d08dba50 [can pipeline]
   1.181 +* Re-using existing connection! (#0) with host tap.roe.ac.uk
   1.182 +* Connected to tap.roe.ac.uk (129.215.175.100) port 80 (#0)
   1.183 +> GET /firethorn/adql/table/5706496/votable HTTP/1.1
   1.184 +> Host: tap.roe.ac.uk
   1.185 +> User-Agent: curl/7.58.0
   1.186 +> Accept: */*
   1.187 +> 
   1.188 +< HTTP/1.1 200 
   1.189 +< Date: Wed, 23 Sep 2020 17:04:47 GMT
   1.190 +< Server: Apache/2.4.34 (Fedora)
   1.191 +< X-Clacks-Overhead: GNU Terry Pratchett
   1.192 +< Content-Type: text/xml;charset=UTF-8
   1.193 +< Transfer-Encoding: chunked
   1.194 +< 
   1.195 +{ [1248 bytes data]
   1.196 +100 5691k    0 5691k    0     0   308k      0 --:--:--  0:00:18 --:--:--  537k* transfer closed with outstanding read data remaining
   1.197 +* stopped the pause stream!
   1.198 +100 6033k    0 6033k    0     0   314k      0 --:--:--  0:00:19 --:--:--  495k
   1.199 +* Closing connection 0
   1.200 +curl: (18) transfer closed with outstanding read data remaining
   1.201 +
   1.202 +##-------------------------- SUCCESS
   1.203 +
   1.204 +
   1.205 +
   1.206 +
   1.207 +
   1.208 +# ------------------------------------------
   1.209 +# Testing with PyVO
   1.210 +# ------------------------------------------
   1.211 +
   1.212 +
   1.213 +from pyvo.dal import TAPService
   1.214 +
   1.215 +tap = TAPService("http://tap.roe.ac.uk/vsa/")
   1.216 +query_text = """ SELECT top 1000000 * FROM VHSDR6.vhsSource"""
   1.217 +results = tap.search(query_text,  mode="sync")
   1.218 +len(results)
   1.219 +
   1.220 +​
   1.221 +​
   1.222 +WARNING: W45: None:1:523: W45: content-role attribute 'metadata' invalid [astropy.io.votable.tree]
   1.223 +WARNING: W45: None:1:711: W45: content-role attribute 'metadata' invalid [astropy.io.votable.tree]
   1.224 +WARNING: W45: None:1:901: W45: content-role attribute 'metadata' invalid [astropy.io.votable.tree]
   1.225 +WARNING: W45: None:1:1085: W45: content-role attribute 'metadata' invalid [astropy.io.votable.tree]
   1.226 +WARNING: W45: None:1:1270: W45: content-role attribute 'metadata' invalid [astropy.io.votable.tree]
   1.227 +WARNING: W45: None:1:1454: W45: content-role attribute 'metadata' invalid [astropy.io.votable.tree]
   1.228 +WARNING: W45: None:1:1638: W45: content-role attribute 'metadata' invalid [astropy.io.votable.tree]
   1.229 +WARNING: W45: None:1:1822: W45: content-role attribute 'metadata' invalid [astropy.io.votable.tree]
   1.230 +WARNING: W45: None:1:2007: W45: content-role attribute 'metadata' invalid [astropy.io.votable.tree]
   1.231 +WARNING: W45: None:1:2190: W45: content-role attribute 'metadata' invalid (suppressing further warnings of this type...) [astropy.io.votable.tree]
   1.232 +<Table masked=True length=1000000>
   1.233 +column.5712992 column.5712994 column.5712996 ... column.5713644 column.5713646
   1.234 +    int64          int32          int64      ...    float32        float32    
   1.235 +-------------- -------------- -------------- ... -------------- --------------
   1.236 +  472446402561         587931   472446402561 ...   -0.060732313     0.22702493
   1.237 +  472446402562         587931   472446402561 ...   -0.099288151   -0.084525801
   1.238 +  472446402563         587931   472446402561 ... -9.9999949e+08 -9.9999949e+08
   1.239 +  472446402564         587931   472446402561 ...    0.049529336  -0.0054591252
   1.240 +  472446402565         587931   472446402561 ... -9.9999949e+08 -9.9999949e+08
   1.241 +  472446402566         587931   472446402561 ... -9.9999949e+08 -9.9999949e+08
   1.242 +  472446402567         587931   472446402561 ... -9.9999949e+08 -9.9999949e+08
   1.243 +  472446402568         587931   472446402561 ...    0.075626761    0.060546089
   1.244 +  472446402569         587931   472446402561 ... -9.9999949e+08 -9.9999949e+08
   1.245 +  472446402570         587931   472446402561 ...   -0.016573736     0.13590318
   1.246 +           ...            ...            ... ...            ...            ...
   1.247 +  472447402551         587931   472446402570 ... -9.9999949e+08 -9.9999949e+08
   1.248 +  472447402552         587931   472446402570 ... -9.9999949e+08 -9.9999949e+08
   1.249 +  472447402553         587931   472446402570 ... -9.9999949e+08 -9.9999949e+08
   1.250 +  472447402554         587931   472446402570 ... -9.9999949e+08 -9.9999949e+08
   1.251 +  472447402555         587931   472446402570 ... -9.9999949e+08 -9.9999949e+08
   1.252 +  472447402556         587931   472446402570 ... -9.9999949e+08 -9.9999949e+08
   1.253 +  472447402557         587931   472446402570 ... -9.9999949e+08 -9.9999949e+08
   1.254 +  472447402558         587931   472446402570 ... -9.9999949e+08 -9.9999949e+08
   1.255 +  472447402559         587931   472446402570 ... -9.9999949e+08 -9.9999949e+08
   1.256 +  472447402560         587931   472446402570 ... -9.9999949e+08 -9.9999949e+08
   1.257 +
   1.258 +
   1.259 +len(results)
   1.260 +1000000
   1.261 +
   1.262 +##-------------------------- SUCCESS
   1.263 +
   1.264 +
   1.265 +
   1.266 +
   1.267 +# ------------------------------------------
   1.268 +# Testing with Topcat
   1.269 +# ------------------------------------------
   1.270 +
   1.271 +
   1.272 +# SELECT top 1000000 * FROM VHSDR6.vhsSource where ra>0
   1.273 +
   1.274 +java.io.IOException: TAP response is not a VOTable - <?xml version='1.0' encoding='UTF-8'?><VOTABLE xmlns='http://www.ivoa.net/xml/VOTable/v1.3' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.ivoa.net/xml/VOTable/v1.3 http://www.ivoa.net/xml/VOTable/v1.3' version='1.3'><RESOURCE type='results'><INFO name='QUERY_STATUS' value='OK'></INFO><INFO name='link' value='http://tap.roe.ac.uk/firethorn/adql/table/5706478'/><TABLE ID='table.5706478' name='XX_TQCT2RCCF34DGAAAAF2LXXQFPY'><FIELD ID='column.5708902' name='sourceID' datatype='long'><LINK content-type='application/json' content-role='metadata' href='http://tap.roe.ac.uk/firethorn/adql/column/5708902'/></FIELD><FIELD ID='column.5708904' name='cuEventID' datatype='int'><LINK content-type='application/json' content-role='metadata' href='http://tap.roe.ac.uk/firethorn/adql/column/5708904'/></FIELD><FIELD ID='column.5708906' name='frameSetID' datatype='long'><LINK content-type='application/json' content-role='metadata' href='http://tap.roe.ac.uk/firethorn/adql/column/5708906'/></FIELD><FIELD ID='column.5708908' name='ra' datatype='double'><LINK content-type='application/json' content-role='metadata' href='http://tap.roe.ac.uk/firethorn/adql/column/5708908'/></FIELD><FIELD ID='column.5708910' name='dec' datatype='double'><LINK content-type='application/json' content-role='metadata' href='http://tap.roe.ac.uk/firethorn/adql/column/5708910'/></FIELD><FIELD ID='column.5708912' name='cx' datatype='double'><LINK content-type='application/json' content-role='metadata' href='http://tap.roe.ac.uk/firethorn/adql/column/5708912'/></FIELD><FIELD ID='column.5708914' name='cy' datatype='double'><LINK content-type='application/json' content-role='metadata' href='http://tap.roe.ac.uk/firethorn/adql/column/5708914'/></FIELD><FIELD ID='column.5708916' name='cz' datatype='double'><LINK content-type='application/json' content-role='metadata' href='http://tap.roe.ac.uk/firethorn/adql/column/5708916'/></FIELD><FIELD ID='column.5708918' name='htmID' datatype='long'><LINK content-type='application/json' con ...
   1.275 +	at uk.ac.starlink.vo.TapQuery.readResultVOTable(TapQuery.java:637)
   1.276 +	at uk.ac.starlink.vo.TapQuery.executeSync(TapQuery.java:244)
   1.277 +	at uk.ac.starlink.vo.TapTableLoadDialog$6.loadTables(TapTableLoadDialog.java:538)
   1.278 +	at uk.ac.starlink.table.gui.TableLoadWorker.run(TableLoadWorker.java:118)
   1.279 +Caused by: org.xml.sax.SAXParseException; systemId: http://tap.roe.ac.uk/vsa/sync; lineNumber: 2; columnNumber: 8193; The content of elements must consist of well-formed character data or markup.
   1.280 +	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)
   1.281 +	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:177)
   1.282 +	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:400)
   1.283 +	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327)
   1.284 +	at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1473)
   1.285 +	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.startOfMarkup(XMLDocumentFragmentScannerImpl.java:2635)
   1.286 +	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2732)
   1.287 +	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)
   1.288 +	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
   1.289 +	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:842)
   1.290 +	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771)
   1.291 +	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
   1.292 +	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
   1.293 +	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)
   1.294 +	at uk.ac.starlink.votable.VOElementFactory.parseToDOM(VOElementFactory.java:536)
   1.295 +	at uk.ac.starlink.votable.VOElementFactory.transformToDOM(VOElementFactory.java:391)
   1.296 +	at uk.ac.starlink.votable.VOElementFactory.makeVOElement(VOElementFactory.java:221)
   1.297 +	at uk.ac.starlink.votable.VOElementFactory.makeVOElement(VOElementFactory.java:241)
   1.298 +	at uk.ac.starlink.vo.TapQuery.readResultVOTable(TapQuery.java:622)
   1.299 +	... 3 more
   1.300 +
   1.301 +
   1.302 +
   1.303 +
   1.304 +# SELECT top 100000 * FROM VHSDR6.vhsSource where ra>0
   1.305 +
   1.306 +java.io.IOException: Premature EOF
   1.307 +	at sun.net.www.http.ChunkedInputStream.readAheadBlocking(ChunkedInputStream.java:565)
   1.308 +	at sun.net.www.http.ChunkedInputStream.readAhead(ChunkedInputStream.java:609)
   1.309 +	at sun.net.www.http.ChunkedInputStream.read(ChunkedInputStream.java:696)
   1.310 +	at java.io.FilterInputStream.read(FilterInputStream.java:133)
   1.311 +	at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3454)
   1.312 +	at uk.ac.starlink.util.HeadBufferInputStream.read(HeadBufferInputStream.java:77)
   1.313 +	at com.sun.org.apache.xerces.internal.impl.XMLEntityManager$RewindableInputStream.read(XMLEntityManager.java:2931)
   1.314 +	at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:302)
   1.315 +	at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1895)
   1.316 +	at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.peekChar(XMLEntityScanner.java:508)
   1.317 +	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2716)
   1.318 +	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)
   1.319 +	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
   1.320 +	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:842)
   1.321 +	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771)
   1.322 +	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
   1.323 +	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
   1.324 +	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)
   1.325 +	at uk.ac.starlink.votable.VOElementFactory.parseToDOM(VOElementFactory.java:536)
   1.326 +	at uk.ac.starlink.votable.VOElementFactory.transformToDOM(VOElementFactory.java:391)
   1.327 +	at uk.ac.starlink.votable.VOElementFactory.makeVOElement(VOElementFactory.java:221)
   1.328 +	at uk.ac.starlink.votable.VOElementFactory.makeVOElement(VOElementFactory.java:241)
   1.329 +	at uk.ac.starlink.vo.TapQuery.readResultVOTable(TapQuery.java:622)
   1.330 +	at uk.ac.starlink.vo.TapQuery.executeSync(TapQuery.java:244)
   1.331 +	at uk.ac.starlink.vo.TapTableLoadDialog$6.loadTables(TapTableLoadDialog.java:538)
   1.332 +	at uk.ac.starlink.table.gui.TableLoadWorker.run(TableLoadWorker.java:118)
   1.333 +
   1.334 +
   1.335 +# SELECT top 10000 * FROM VHSDR6.vhsSource where ra>0
   1.336 +
   1.337 +java.io.IOException: Premature EOF
   1.338 +	at sun.net.www.http.ChunkedInputStream.readAheadBlocking(ChunkedInputStream.java:565)
   1.339 +	at sun.net.www.http.ChunkedInputStream.readAhead(ChunkedInputStream.java:609)
   1.340 +	at sun.net.www.http.ChunkedInputStream.read(ChunkedInputStream.java:696)
   1.341 +	at java.io.FilterInputStream.read(FilterInputStream.java:133)
   1.342 +	at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3454)
   1.343 +	at uk.ac.starlink.util.HeadBufferInputStream.read(HeadBufferInputStream.java:77)
   1.344 +	at com.sun.org.apache.xerces.internal.impl.XMLEntityManager$RewindableInputStream.read(XMLEntityManager.java:2931)
   1.345 +	at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:302)
   1.346 +	at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1895)
   1.347 +	at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipSpaces(XMLEntityScanner.java:1685)
   1.348 +	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.seekCloseOfStartTag(XMLDocumentFragmentScannerImpl.java:1375)
   1.349 +	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1309)
   1.350 +	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2784)
   1.351 +	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)
   1.352 +	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
   1.353 +	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:842)
   1.354 +	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771)
   1.355 +	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
   1.356 +	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
   1.357 +	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)
   1.358 +	at uk.ac.starlink.votable.VOElementFactory.parseToDOM(VOElementFactory.java:536)
   1.359 +	at uk.ac.starlink.votable.VOElementFactory.transformToDOM(VOElementFactory.java:391)
   1.360 +	at uk.ac.starlink.votable.VOElementFactory.makeVOElement(VOElementFactory.java:221)
   1.361 +	at uk.ac.starlink.votable.VOElementFactory.makeVOElement(VOElementFactory.java:241)
   1.362 +	at uk.ac.starlink.vo.TapQuery.readResultVOTable(TapQuery.java:622)
   1.363 +	at uk.ac.starlink.vo.TapQuery.executeSync(TapQuery.java:244)
   1.364 +	at uk.ac.starlink.vo.TapTableLoadDialog$6.loadTables(TapTableLoadDialog.java:538)
   1.365 +	at uk.ac.starlink.table.gui.TableLoadWorker.run(TableLoadWorker.java:118)	
   1.366 +
   1.367 +
   1.368 +
   1.369 +# SELECT top 10000 * FROM VHSDR6.vhsSource where ra>0
   1.370 +
   1.371 +##-------------------------- SUCCESS
   1.372 +# Table loaded successfully
   1.373 +
   1.374 +
   1.375 +
   1.376 +
   1.377 +# ------------------------------------------
   1.378 +# Testing with Chrome
   1.379 +# ------------------------------------------
   1.380 +
   1.381 +http://tap.roe.ac.uk/firethorn/adql/table/5673958/votable
   1.382 +
   1.383 +##-------------------------- FAILED
   1.384 +
   1.385 +# Chrome exception: 
   1.386 +
   1.387 +   "error on line 2 at column 1: expected '>'"
   1.388 +   net::ERR_INCOMPLETE_CHUNKED_ENCODING 200