|
From: Tr0n <tr...@gm...> - 2005-05-25 15:28:54
|
Hi,
I'm trying out the HTTP receiverBean and I'm having some trouble. I've
setup Apache v1.3.33, Perl v5.8.6 and CGI on WinXP. My CGI script
under Windows looks as follows:
#!java -classpath .;xbeansCompac.jar;xbeans.jar;xerces.jar
receivertest.ReceiverDemo
This properly runs the java and displays the output (I've also tried
with a simple HelloWorld.class and it worked ok).
When I send an XML document from the sender side (senderBean) to my
.cgi URL address (http://localhost/cgi-bin/receiver.cgi) I get the
following error message:
--------------
<html>
<head><title>http</title></head>
<body>
<p>Exception in http ReceiverBean: Error processing at component
parser: error parsing document org.xml.sax.SAXParseException: An
invalid XML character (Unicode: 0x1f) was found in the prolog of the
document..
Error processing at component parser: error parsing document
org.xml.sax.SAXParseException: An invalid XML character (Unicode:
0x1f) was found in the prolog of the document..
at org.xbeans.parser.ParserBean.generateDocument(ParserBean.java:12=
5)
at org.xbeans.communication.Representation.internalizeAndContinue(R=
epresentation.java:90)
at org.xbeans.communication.http.receiver.ReceiverBean.receive(Rece=
iverBean.java:107)
at receivertest.ReceiverDemo.jbInit(ReceiverDemo.java:50)
at receivertest.ReceiverDemo.<init>(ReceiverDemo.java:33)
at receivertest.ReceiverDemo.main(ReceiverDemo.java:42)
</body></html>
--------------
Any idea what the problem might be? This is how the XML document looks like=
.
<?xml version=3D"1.0"?>
<person>
<fname>John</fname>
<lname>Smith</lname>
<phone type=3D"work">563-456-7890</phone>
<phone type=3D"home">534-567-8901</phone> =20
<email type=3D"home">js...@so...</email>
<email type=3D"work">jo...@lo...</email>
<address type=3D"home">34 S. Colon St.</address>
<address type=3D"work">9967 W. Shrimp Ave.</address>
</person>
I've also tried with other XML documents, but the error message was the sam=
e.
Regards,
Tadej
|