SV: SV: A lazy poll - revisited -> a.k.a. HTTP/1.1 500 Internal Server Error

From: Patrik Holmer <NNTP.psbh_at_telia.com>
Date: Wed, 15 Feb 2006 22:31:02 +0100

David,

thank's for the tip. But, I've tried quotes (") and everything else in the
book - as caret (^&) and - at a weak moment - ampersand (&amp;). Uploading
RDFXML just won't happen for me as I'm faced with a leading cURL-message...

* About to connect() to localhost port 8888
* Connected to SOMETHING (127.0.0.1) port 8888
> POST /bank/bank?command=upload&format=rdfxml HTTP/1.1
User-Agent: curl/7.11.1 (i386-pc-win32) libcurl/7.11.1 zlib/1.2.1
Host: localhost:8888
Pragma: no-cache
Accept: */*
Content-Length: 7917
Content-Type: application/x-www-form-urlencoded

..the whole file poured out...

<?xml version="1.0"?><!DOCTYPE rdf:RDF [
<!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" >
<!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" >
<!ENTITY xsd...

...a trailing cURL-message...

<HTTP/1.1 500 Internal Server Error
< Date: Wed, 15 Feb 2006 20:20:49 GMT
< Server: Jetty/5.1.4 (Windows XP/5.1 x86 java/1.4.2_04
< Content-Type: text/html
< Content-Length: 0
* Connection #0 left intact
* Closing connection #0

...and a fragment of interest from the semantic-bank-2.1.1 DEBUG:

- Execute Command: upload
2006-02-15 21:20:49,393 [SocketListener0-4] ERROR
edu.mit.simile.SimileUtilities - Fatal error: Expected '.', found '<' at
http://localhost:8888/bank/bank# [1,-1]
2006-02-15 21:20:49,393 [SocketListener0-4] ERROR
edu.mit.simile.semanticBank.servlet.UploadCommand -
edu.mit.simile.SimileUtilities$ModelReadFromFileException: Failed to read
data from 'http://localhost:8888/bank/bank#'
2006-02-15 21:20:49,393 [SocketListener0-4] DEBUG
edu.mit.simile.longwell.ui.FlairServlet - < doPost

If Semantic-Bank 2.1.1 is it, I assume I'll have to Eclipse the whole thing
anyway. ;)

Again, thanks for your tip.

// Patrik

-----Ursprungligt meddelande-----
Från: Steve Dunham [mailto:dunhamsteve_at_gmail.com]
Skickat: onsdag den 15 februari 2006 18:40
Till: general_at_simile.mit.edu
Ämne: Re: SV: A lazy poll - revisited -> a final - verbose - try on cUrl

On 2/15/06, David Huynh <dfhuynh_at_csail.mit.edu> wrote:
> Hi Patrik,
>
> It seems like the parameter format=rdfxml didn't make it according to
> this log from the bank:
>
> org.mortbay.http.HttpConnection - POST /bank/bank?command=upload
> HTTP/1.1
>
> So, the format is N3 by default. Did the URL get truncated somehow?
>

Yeah, you have to put quotes around the url because the "&" is a shell
metacharacter. I had mistyped in my original post (I tend to self-correct
when I type things into the command line).
Received on Wed Feb 15 2006 - 21:29:53 EST

This archive was generated by hypermail 2.3.0 : Thu Aug 09 2012 - 16:39:18 EDT