|
From: Visva <vk...@ho...> - 2002-12-23 16:56:35
|
Hi Patrick,
The error is thrown on the server side.=20
I was actually able to receive the message on the receiver client side =
servlet.=20
I think it gets an error when the send method of HttpSender =
(HttpServlet)=20
is called when attempting to send - either an ack or a response to the=20
sender. (I am not very sure about this.)
(I did not find the sample servlet you had attached. I did an update =
from CVS.=20
Can you tell me where to find it.)
I have a fragment from the msh log file below.
Thanks very much for your help.
Regards,
Visva
From the msh log.
2002-12-23 11:36:30,131 DEBUG [HttpProcessor[8080][4]]: =3D> =
MessageServiceHandler sendMessage
2002-12-23 11:36:30,131 DEBUG [HttpProcessor[8080][4]]: =3D> =
MessageServiceHandlerConnection send
2002-12-23 11:36:30,131 INFO [HttpProcessor[8080][4]]: Final sequence =
number in store: -9999
2002-12-23 11:36:30,131 DEBUG [HttpProcessor[8080][4]]: =3D> =
MessageServer store
2002-12-23 11:36:30,171 DEBUG [HttpProcessor[8080][4]]: =3D> =
DirectoryManager store
2002-12-23 11:36:30,171 DEBUG [HttpProcessor[8080][4]]: =3D> =
DirectoryManager getRepositoryFileName
2002-12-23 11:36:30,171 INFO [HttpProcessor[8080][4]]: =
getRepositoryFileName return: R0000\iY6e9IkuDp0gYkqOOYIRVA=3D=3D
2002-12-23 11:36:30,171 DEBUG [HttpProcessor[8080][4]]: <=3D =
DirectoryManager getRepositoryFileName
2002-12-23 11:36:30,181 DEBUG [HttpProcessor[8080][4]]: <=3D =
DirectoryManager store
2002-12-23 11:36:30,181 DEBUG [HttpProcessor[8080][4]]: =3D> =
DbConnectionPool getConnection
2002-12-23 11:36:30,181 DEBUG [HttpProcessor[8080][4]]: <=3D =
DbConnectionPool getConnection
2002-12-23 11:36:30,191 INFO [HttpProcessor[8080][4]]: Insert into =
messagestore database
2002-12-23 11:36:30,241 DEBUG [HttpProcessor[8080][4]]: =3D> =
DbConnectionPool freeConnection
2002-12-23 11:36:30,241 DEBUG [HttpProcessor[8080][4]]: <=3D =
DbConnectionPool freeConnection
2002-12-23 11:36:30,241 DEBUG [HttpProcessor[8080][4]]: <=3D =
MessageServer store
2002-12-23 11:36:30,271 DEBUG [HttpProcessor[8080][4]]: =3D> =
MessageServer getMessageFromFile
2002-12-23 11:36:30,332 DEBUG [HttpProcessor[8080][4]]: <=3D =
MessageServer getMessageFromFile
2002-12-23 11:36:30,362 DEBUG [HttpProcessor[8080][4]]: =3D> =
MessageProcessor MessageProcessor
2002-12-23 11:36:30,362 DEBUG [HttpProcessor[8080][4]]: <=3D =
MessageProcessor MessageProcessor
2002-12-23 11:36:30,362 DEBUG [HttpProcessor[8080][4]]: <=3D =
MessageServiceHandlerConnection send
2002-12-23 11:36:30,362 DEBUG [HttpProcessor[8080][4]]: <=3D =
MessageServiceHandler sendMessage
2002-12-23 11:36:30,372 DEBUG [Thread-3]: =3D> MessageProcessor run
2002-12-23 11:36:30,372 INFO [Thread-3]: Send... try #1
2002-12-23 11:36:30,382 DEBUG [Thread-3]: =3D> MessageServer retry
2002-12-23 11:36:30,382 DEBUG [Thread-3]: =3D> DbConnectionPool =
getConnection
2002-12-23 11:36:30,382 DEBUG [Thread-3]: <=3D DbConnectionPool =
getConnection
2002-12-23 11:36:30,382 INFO [Thread-3]: Current: 'Sent and Received =
(loopback message)' specified: 'Retrying #1'
2002-12-23 11:36:30,382 INFO [Thread-3]: Update state to become =
'Retrying #1'
2002-12-23 11:36:30,422 DEBUG [Thread-3]: =3D> DbConnectionPool =
freeConnection
2002-12-23 11:36:30,422 DEBUG [Thread-3]: <=3D DbConnectionPool =
freeConnection
2002-12-23 11:36:30,422 DEBUG [Thread-3]: <=3D MessageServer retry
2002-12-23 11:36:30,462 DEBUG [Thread-4]: =3D> HttpSender run
2002-12-23 11:36:30,612 DEBUG [Thread-4]: =3D> HttpServlet send
2002-12-23 11:36:30,792 ERROR [Thread-4]: =
java.security.PrivilegedActionException: javax.xml.soap.SOAPException: =
Absent Content-Type
2002-12-23 11:36:30,802 ERROR [Thread-4]: =
hk.hku.cecid.phoenix.message.transport.TransportException: =
java.security.PrivilegedActionException: javax.xml.soap.SOAPException: =
Absent Content-Type
Hi Visva,
=20
Is the error thrown in the sender side? Can the servlet receive the =
HTTP Post request?
Please give us more information, and preferably the source code of the =
servlet, so that we
can have a better understanding on your problem.
=20
BTW, we attached the sample code of a similar servlet written by us for =
our testing
purpose. Please see if there is any difference between your servlet and =
our servlet. Many
thanks.
=20
Regards, -Patrick
--
Patrick Yee
System Architect
Center for E-Commerce Infrastructure Development (CECID)
Dept. of Computer Science and Information Systems
The University of Hong Kong
Tel: (852) 22415674
Fax: (852) 25474611
=20
=20
----- Original Message -----=20
From: Visva=20
To: ebxmlms-develop@li...=20
Sent: Monday, December 23, 2002 06:07 PM
Subject: [ebxmlms-develop] Absent content type error
=20
=20
When I try to run a test case (source checked out from CVS today)
I get the following error when the Message Service Handler triesto=20
deliver the message.
=20
I created a dummy servlet to act as the receiver. Before I had any=20
servlet corresponding to the receiver URL, I got an error stating
"incorrect content type: text/html".
=20
I am obivously missing something fundamental here. Any help will be =
appreciated.
=20
Stack trace:=20
=20
Caused by: javax.xml.soap.SOAPException: Absent Content-Type
at =
com.sun.xml.messaging.saaj.soap.MessageImpl.<init>(MessageImpl.java:8
6)
at =
com.sun.xml.messaging.saaj.soap.MessageFactoryImpl.createMessage(Mess
ageFactoryImpl.java:32)
at =
com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOA
PConnection.java:333)
at =
com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedP
ost.run(HttpSOAPConnection.java:142)
=20
=20
Regards,
Visva
|