|
From: Larchier C. <cla...@ax...> - 2004-04-28 08:32:59
|
Hi Patrick,
=20
Here is a summary of my attempts to make Hermes working with Weblogic.
=20
Receiving a message
*************************
=20
Here is the concerned part of log file:
=20
2004-04-28 09:06:25,653 INFO [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: Process command: Get message (32)
2004-04-28 09:06:25,653 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> MessageServiceHandler.getMessage
2004-04-28 09:06:25,654 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> =
MessageServiceHandler.getNextUndeliveredMessage
2004-04-28 09:06:25,654 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> MessageServer.getUndeliveredMessages
2004-04-28 09:06:25,654 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> DbConnectionPool.getConnection
2004-04-28 09:06:25,654 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D DbConnectionPool.getConnection
2004-04-28 09:06:25,656 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D MessageServer.getUndeliveredMessages
2004-04-28 09:06:25,656 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D =
MessageServiceHandler.getNextUndeliveredMessage with no message
2004-04-28 09:06:25,656 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> Transaction.commit (txID: #9)
2004-04-28 09:06:25,656 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> DbConnectionPool.freeConnection
2004-04-28 09:06:25,656 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D DbConnectionPool.freeConnection
2004-04-28 09:06:25,656 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D Transaction.commit
2004-04-28 09:06:25,657 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D MessageServiceHandler.getMessage
2004-04-28 09:06:31,634 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: receive incoming message
2004-04-28 09:06:31,635 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: finished retrieving raw message from HTTP =
connection
2004-04-28 09:06:31,635 INFO [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: Process incoming message
2004-04-28 09:06:31,932 ERROR [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: [10002] Unknown error
Exception: java.lang.NullPointerException
Message: null
- Modification 1: This pb can be solved by the following modification in =
MessageServiceHandler.java:
// by default, javax.xml.soap.MessageFactory =3D =
weblogic.webservice.core.soap.MessageFactoryImpl
System.setProperty("javax.xml.soap.MessageFactory", =
"com.sun.xml.messaging.saaj.soap.MessageFactoryImpl");
messageFactory =3D MessageFactory.newInstance();
Sending a message
***********************
=20
Here is the concerned part of log file:
=20
2004-04-28 10:08:36,715 INFO [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: Process command: Send message (31)
2004-04-28 10:08:36,715 INFO [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: Received request to send message
2004-04-28 10:08:36,715 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> MessageServiceHandler.sendMessage
2004-04-28 10:08:36,725 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> MessageServiceHandlerConnection.send
2004-04-28 10:08:36,725 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: final sequence number in store: -9999
2004-04-28 10:08:36,725 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> MessageServer.store
2004-04-28 10:08:36,725 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> DbConnectionPool.getConnection
2004-04-28 10:08:36,725 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D DbConnectionPool.getConnection
2004-04-28 10:08:36,726 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: insert into messagestore database
2004-04-28 10:08:36,741 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D MessageServer.store
2004-04-28 10:08:36,742 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> MessageProcessor.MessageProcessor
2004-04-28 10:08:36,742 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D MessageProcessor.MessageProcessor
2004-04-28 10:08:36,742 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D MessageServiceHandlerConnection.send
2004-04-28 10:08:36,742 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> Transaction.commit (txID: #15)
2004-04-28 10:08:36,743 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> DbConnectionPool.freeConnection
2004-04-28 10:08:36,743 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D DbConnectionPool.freeConnection
2004-04-28 10:08:36,743 DEBUG [Thread-9]: =3D> MessageProcessor.run
2004-04-28 10:08:36,743 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D Transaction.commit
2004-04-28 10:08:36,743 DEBUG [Thread-9]: Send... try #1
2004-04-28 10:08:36,744 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D MessageServiceHandler.sendMessage
2004-04-28 10:08:36,744 DEBUG [Thread-9]: =3D> MessageServer.retry
2004-04-28 10:08:36,744 DEBUG [Thread-9]: =3D> =
DbConnectionPool.getConnection
2004-04-28 10:08:36,744 DEBUG [Thread-9]: <=3D =
DbConnectionPool.getConnection
2004-04-28 10:08:36,745 DEBUG [Thread-9]: current state: <Started =
Sending> specified state: <Retrying #1>
2004-04-28 10:08:36,746 DEBUG [Thread-9]: Update state to become =
<Retrying #1>
2004-04-28 10:08:36,746 DEBUG [Thread-9]: <=3D MessageServer.retry
2004-04-28 10:08:36,746 DEBUG [Thread-9]: =3D> Transaction.commit (txID: =
#16)
2004-04-28 10:08:36,747 DEBUG [Thread-9]: =3D> =
DbConnectionPool.freeConnection
2004-04-28 10:08:36,747 DEBUG [Thread-9]: <=3D =
DbConnectionPool.freeConnection
2004-04-28 10:08:36,747 DEBUG [Thread-9]: <=3D Transaction.commit
2004-04-28 10:08:36,747 DEBUG [Thread-10]: =3D> HttpSender.run
2004-04-28 10:08:36,747 DEBUG [Thread-10]: =3D> HttpServlet.send
2004-04-28 10:08:36,747 INFO [Thread-10]: Sending message to =
http://larchier-c.pc.an.sopra:8080/msh
2004-04-28 10:08:36,762 ERROR [Thread-10]: [10002] Unknown error
Exception: java.lang.IllegalArgumentException
Message: endpoint should be String or URL
- Modification 2: This pb is due to a redefinition of =
soapConnection.call method in webservices.jar (weblogic library).
It can be solved by the following modification in HttpServlet.jar:
//ret =3D soapConnection.call(message, new =
URLEndpoint(toUrl));
ret =3D soapConnection.call(message, toUrl);
Then, a new error is logged:
=20
2004-04-28 10:14:42,867 INFO [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: Process command: Send message (31)
2004-04-28 10:14:42,867 INFO [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: Received request to send message
2004-04-28 10:14:42,867 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> MessageServiceHandler.sendMessage
2004-04-28 10:14:42,867 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> MessageServiceHandlerConnection.send
2004-04-28 10:14:42,867 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: final sequence number in store: -9999
2004-04-28 10:14:42,867 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> MessageServer.store
2004-04-28 10:14:42,868 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> DbConnectionPool.getConnection
2004-04-28 10:14:42,868 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D DbConnectionPool.getConnection
2004-04-28 10:14:42,869 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: insert into messagestore database
2004-04-28 10:14:42,882 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D MessageServer.store
2004-04-28 10:14:42,883 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> MessageProcessor.MessageProcessor
2004-04-28 10:14:42,883 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D MessageProcessor.MessageProcessor
2004-04-28 10:14:42,883 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D MessageServiceHandlerConnection.send
2004-04-28 10:14:42,883 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> Transaction.commit (txID: #5)
2004-04-28 10:14:42,884 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> DbConnectionPool.freeConnection
2004-04-28 10:14:42,884 DEBUG [Thread-8]: =3D> MessageProcessor.run
2004-04-28 10:14:42,884 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D DbConnectionPool.freeConnection
2004-04-28 10:14:42,884 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D Transaction.commit
2004-04-28 10:14:42,884 DEBUG [Thread-8]: Send... try #1
2004-04-28 10:14:42,884 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D MessageServiceHandler.sendMessage
2004-04-28 10:14:42,884 DEBUG [Thread-8]: =3D> MessageServer.retry
2004-04-28 10:14:42,885 DEBUG [Thread-8]: =3D> =
DbConnectionPool.getConnection
2004-04-28 10:14:42,885 DEBUG [Thread-8]: <=3D =
DbConnectionPool.getConnection
2004-04-28 10:14:42,886 DEBUG [Thread-8]: current state: <Started =
Sending> specified state: <Retrying #1>
2004-04-28 10:14:42,886 DEBUG [Thread-8]: Update state to become =
<Retrying #1>
2004-04-28 10:14:42,887 DEBUG [Thread-8]: <=3D MessageServer.retry
2004-04-28 10:14:42,887 DEBUG [Thread-8]: =3D> Transaction.commit (txID: =
#6)
2004-04-28 10:14:42,888 DEBUG [Thread-8]: =3D> =
DbConnectionPool.freeConnection
2004-04-28 10:14:42,888 DEBUG [Thread-8]: <=3D =
DbConnectionPool.freeConnection
2004-04-28 10:14:42,888 DEBUG [Thread-8]: <=3D Transaction.commit
2004-04-28 10:14:42,888 DEBUG [Thread-9]: =3D> HttpSender.run
2004-04-28 10:14:42,888 DEBUG [Thread-9]: =3D> HttpServlet.send
2004-04-28 10:14:42,889 INFO [Thread-9]: Sending message to =
http://larchier-c.pc.an.sopra:8080/msh
2004-04-28 10:14:42,952 ERROR [Thread-9]: [10002] Unknown error
Exception: java.lang.ClassCastException
Message: com.sun.xml.messaging.saaj.soap.MessageImpl
This error seems to be linked with the correction that I have made to =
receive messages (modification 1).
If I comment the modification 1, a new error is logged:
=20
2004-04-28 10:22:10,855 INFO [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: Process command: Send message (31)
2004-04-28 10:22:10,855 INFO [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: Received request to send message
2004-04-28 10:22:10,855 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> MessageServiceHandler.sendMessage
2004-04-28 10:22:10,855 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> MessageServiceHandlerConnection.send
2004-04-28 10:22:10,855 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: final sequence number in store: -9999
2004-04-28 10:22:10,855 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> MessageServer.store
2004-04-28 10:22:10,856 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> DbConnectionPool.getConnection
2004-04-28 10:22:10,856 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D DbConnectionPool.getConnection
2004-04-28 10:22:10,857 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: insert into messagestore database
2004-04-28 10:22:10,870 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D MessageServer.store
2004-04-28 10:22:10,870 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> MessageProcessor.MessageProcessor
2004-04-28 10:22:10,871 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D MessageProcessor.MessageProcessor
2004-04-28 10:22:10,871 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D MessageServiceHandlerConnection.send
2004-04-28 10:22:10,871 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> Transaction.commit (txID: #5)
2004-04-28 10:22:10,871 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> DbConnectionPool.freeConnection
2004-04-28 10:22:10,872 DEBUG [Thread-9]: =3D> MessageProcessor.run
2004-04-28 10:22:10,872 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D DbConnectionPool.freeConnection
2004-04-28 10:22:10,872 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D Transaction.commit
2004-04-28 10:22:10,872 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D MessageServiceHandler.sendMessage
2004-04-28 10:22:10,872 DEBUG [Thread-9]: Send... try #1
2004-04-28 10:22:10,872 DEBUG [Thread-9]: =3D> MessageServer.retry
2004-04-28 10:22:10,872 DEBUG [Thread-9]: =3D> =
DbConnectionPool.getConnection
2004-04-28 10:22:10,872 DEBUG [Thread-9]: <=3D =
DbConnectionPool.getConnection
2004-04-28 10:22:10,874 DEBUG [Thread-9]: current state: <Started =
Sending> specified state: <Retrying #1>
2004-04-28 10:22:10,874 DEBUG [Thread-9]: Update state to become =
<Retrying #1>
2004-04-28 10:22:10,875 DEBUG [Thread-9]: <=3D MessageServer.retry
2004-04-28 10:22:10,875 DEBUG [Thread-9]: =3D> Transaction.commit (txID: =
#6)
2004-04-28 10:22:10,876 DEBUG [Thread-9]: =3D> =
DbConnectionPool.freeConnection
2004-04-28 10:22:10,876 DEBUG [Thread-9]: <=3D =
DbConnectionPool.freeConnection
2004-04-28 10:22:10,876 DEBUG [Thread-9]: <=3D Transaction.commit
2004-04-28 10:22:10,876 DEBUG [Thread-10]: =3D> HttpSender.run
2004-04-28 10:22:10,876 DEBUG [Thread-10]: =3D> HttpServlet.send
2004-04-28 10:22:10,877 INFO [Thread-10]: Sending message to =
http://larchier-c.pc.an.sopra:8080/msh
2004-04-28 10:22:11,508 ERROR [Thread-10]: [10505] Cannot send SOAP =
message
Exception: javax.xml.soap.SOAPException
Message: Failed to send message: java.io.IOException: Received a =
response from url: http://larchier-c.pc.an.sopra:8080/msh which did not =
have a valid SOAP content-type: null.
If I send a message without payload, the same error happens but this =
time, the message is received twice.
=20
Regards,
Christophe
=20
-----Message d'origine-----
De : ebx...@li... =
[mailto:ebx...@li...]De la part de =
Patrick Yee
Envoy=E9 : mercredi 28 avril 2004 04:45
=C0 : ebx...@li...
Objet : Re: [ebxmlms-general] Hermes MSH with weblogic
We have tried to deploy Hermes on Weblogic quite some times ago. Our =
objective was to see the feasibility only. Unfortunately, we cannot =
remember the version of both Hermes and Weblogic we have used. Regarding =
your question, would you please send to us the error log files in order =
to trace?
Regards, -Patrick
Larchier Christophe wrote:
Hi all,=20
Does someone succeed in making Hermes MSH working with BEA weblogic?=20
With some modifications of Hermes sources, I'm now able to receive some =
messages, but not to send.=20
My configuration:=20
AIX 5.1=20
BEA Weblogic 8.1=20
PS: Hermes MSH works on this machine with Tomcat.=20
Christophe=20
------------------------------------------------------- This SF.Net =
email is sponsored by: Oracle 10g Get certified on the hottest thing =
ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and =
we'll give you the exam FREE. =
http://ads.osdn.com/?ad_id=3D3149&alloc_id=3D8166&op=3Dclick =
_______________________________________________ ebxmlms-general mailing =
list ebx...@li... =
https://lists.sourceforge.net/lists/listinfo/ebxmlms-general=20
|