I have a situation in which i am trying to send the messages from
machine A to machine B. I am using the same loopbacktestSrc with
slight
modifications like sql etc.
Configurations:
machineA
Tomcat 4.1.24
JDK 1.4.2.08
DB2 database
machineB
Weblogic
JDK 1.4.2.08
DB2 database
The test is working perfecly when using a single host loopback (with
Tomcat 4.1.24 configuration), but when I try to send from machine A to
machine B, i get the STACKTRACE1
and when i try to send from machineB to machineA i get
STACKTRACE2.
I have a feeling the service mentioned as cecid:cecid might be a
problem. Should I use something like cecid1:cecid2 ? Any help is
appreciated.
STACKTRACE1
2006-06-05 13:23:16 [-Processor25] <DEBUG> <cecid.ebms.spa>
<Component 'System Logger' in module 'Ebms Plugin' initialized
successfully.>
2006-06-05 13:23:16 [-Processor25] <DEBUG> <cecid.ebms.spa>
<Component 'System Properties' in module 'Ebms Plugin' initialized
successfully.>
2006-06-05 13:23:16 [-Processor25] <DEBUG> <cecid.ebms.spa>
<Component 'System Messages' in module 'Ebms Plugin' initialized
successfully.>
2006-06-05 13:23:16 [-Processor25] <DEBUG> <cecid.ebms.spa>
<DAO descriptor 'hk/hku/cecid/ebms/spa/conf/DAOMessage.xml' loaded
successfully>
2006-06-05 13:23:16 [-Processor25] <DEBUG> <cecid.ebms.spa>
<DAO descriptor 'hk/hku/cecid/ebms/spa/conf/DAORepository.xml'
loaded successfully>
2006-06-05 13:23:16 [-Processor25] <DEBUG> <cecid.ebms.spa>
<DAO descriptor 'hk/hku/cecid/ebms/spa/conf/DAOOutbox.xml' loaded
successfully>
2006-06-05 13:23:16 [-Processor25] <DEBUG> <cecid.ebms.spa>
<DAO descriptor 'hk/hku/cecid/ebms/spa/conf/DAOInbox.xml' loaded
successfully>
2006-06-05 13:23:16 [-Processor25] <DEBUG> <cecid.ebms.spa>
<DAO descriptor 'hk/hku/cecid/ebms/spa/conf/DAOMessageServer.xml'
loaded successfully>
2006-06-05 13:23:16 [-Processor25] <DEBUG> <cecid.ebms.spa>
<DAO descriptor 'hk/hku/cecid/ebms/spa/conf/DAOPartnership.xml'
loaded successfully>
2006-06-05 13:23:17 [-Processor25] <DEBUG> <cecid.ebms.spa>
<Component 'System DAO Factory' in module 'Ebms Plugin' initialized
successfully.>
2006-06-05 13:24:00 [main ] <DEBUG> <cecid.ebms.spa>
<Component 'System Logger' in module 'Ebms Plugin' initialized
successfully.>
2006-06-05 13:24:00 [main ] <DEBUG> <cecid.ebms.spa>
<Component 'System Properties' in module 'Ebms Plugin' initialized
successfully.>
2006-06-05 13:24:00 [main ] <DEBUG> <cecid.ebms.spa>
<Component 'System Messages' in module 'Ebms Plugin' initialized
successfully.>
2006-06-05 13:24:00 [main ] <DEBUG> <cecid.ebms.spa> <DAO
descriptor 'hk/hku/cecid/ebms/spa/conf/DAOMessage.xml' loaded
successfully>
2006-06-05 13:24:00 [main ] <DEBUG> <cecid.ebms.spa> <DAO
descriptor 'hk/hku/cecid/ebms/spa/conf/DAORepository.xml' loaded
successfully>
2006-06-05 13:24:00 [main ] <DEBUG> <cecid.ebms.spa> <DAO
descriptor 'hk/hku/cecid/ebms/spa/conf/DAOOutbox.xml' loaded
successfully>
2006-06-05 13:24:00 [main ] <DEBUG> <cecid.ebms.spa> <DAO
descriptor 'hk/hku/cecid/ebms/spa/conf/DAOInbox.xml' loaded
successfully>
2006-06-05 13:24:00 [main ] <DEBUG> <cecid.ebms.spa> <DAO
descriptor 'hk/hku/cecid/ebms/spa/conf/DAOMessageServer.xml' loaded
successfully>
2006-06-05 13:24:00 [main ] <DEBUG> <cecid.ebms.spa> <DAO
descriptor 'hk/hku/cecid/ebms/spa/conf/DAOPartnership.xml' loaded
successfully>
2006-06-05 13:24:00 [main ] <DEBUG> <cecid.ebms.spa>
<Component 'System DAO Factory' in module 'Ebms Plugin' initialized
successfully.>
2006-06-05 13:24:02 [main ] <DEBUG> <cecid.ebms.spa>
<Component 'Key Store Manager for Digital Signature' in module 'Ebms
Plugin' initialized successfully.>
2006-06-05 13:24:02 [main ] <DEBUG> <cecid.ebms.spa>
<Component 'Key Store Manager for Decryption' in module 'Ebms
Plugin' initialized successfully.>
2006-06-05 13:24:02 [main ] <INFO > <cecid.ebms.spa>
<Module 'Ebms Plugin' initialized successfully.>
2006-06-05 13:24:02 [main ] <DEBUG> <cecid.ebms.spa>
<Component 'Outbox Collector' in module 'Ebms Plugin' initialized
successfully.>
2006-06-05 13:24:02 [main ] <INFO > <cecid.ebms.spa>
<Module 'Ebms Plugin' initialized successfully.>
2006-06-05 13:24:02 [main ] <DEBUG> <cecid.ebms.spa>
<Component 'Inbox Collector' in module 'Ebms Plugin' initialized
successfully.>
2006-06-05 13:24:02 [main ] <INFO > <cecid.ebms.spa>
<Module 'Ebms Plugin' initialized successfully.>
2006-06-05 13:24:02 [main ] <DEBUG> <cecid.ebms.spa>
<Component 'Mail Collector' in module 'Ebms Plugin' initialized
successfully.>
2006-06-05 13:24:02 [main ] <INFO > <cecid.ebms.spa>
<Module 'Ebms Plugin' initialized successfully.>
2006-06-05 13:24:02 [main ] <DEBUG> <cecid.ebms.spa>
<Resuming active monitor in module (Ebms Plugin). Current active
threads: 0>
2006-06-05 13:24:02 [main ] <DEBUG> <cecid.ebms.spa>
<Resuming active monitor in module (Ebms Plugin). Current active
threads: 0>
2006-06-05 13:24:02 [main ] <DEBUG> <cecid.ebms.spa>
<Message service handler started>
2006-06-05 13:34:59 [-Processor24] <INFO > <cecid.ebms.spa>
<Outbound payload received - cpaId: cecid, service: cecid:cecid, action:
order, convId: 1, fromPartyId: I3T, fromPartyType: ebIOT, toPartyId:
CECID, toPartyType: ebIOT, refToMessageId: null>
2006-06-05 13:34:59 [-Processor24] <INFO > <cecid.ebms.spa>
<Genereating message id: 20060605-133459-31200@...>
2006-06-05 13:34:59 [-Processor24] <INFO > <cecid.ebms.spa>
<Store outgoing message: 20060605-133459-31200@...>
2006-06-05 13:34:59 [-Processor24] <INFO > <cecid.ebms.spa>
<Outbound payload processed - cpaId: cecid, service: cecid:cecid,
action: order, convId: 1, fromPartyId: I3T, fromPartyType: ebIOT,
toPartyId: CECID, toPartyType: ebIOT, refToMessageId: null>
2006-06-05 13:35:04 [Thread-72 ] <ERROR> <cecid.ebms.spa>
<Cannot sign the ebxml message>
java.lang.NullPointerException
at
hk.hku.cecid.ebms.spa.handler.MessageClassifier.classifyMessageType
(MessageClassifier.java:108)
at hk.hku.cecid.ebms.spa.handler.MessageClassifier.<init>
(MessageClassifier.java:100)
at
hk.hku.cecid.ebms.spa.task.OutboxTask.checkAndSignEbxmlMessage
(OutboxTask.java:258)
at hk.hku.cecid.ebms.spa.task.OutboxTask.execute
(OutboxTask.java:152)
at hk.hku.cecid.piazza.commons.module.ActiveThread.run
(ActiveThread.java:90)
at java.lang.Thread.run(Thread.java:534)
2006-06-05 13:35:04 [Thread-72 ] <ERROR> <cecid.ebms.spa>
<Cannot get the sign the message: >
hk.hku.cecid.ebms.spa.task.MessageValidationException: Cannot sign
the ebxml message
by java.lang.NullPointerException
at
hk.hku.cecid.ebms.spa.task.OutboxTask.checkAndSignEbxmlMessage
(OutboxTask.java:283)
at hk.hku.cecid.ebms.spa.task.OutboxTask.execute
(OutboxTask.java:152)
at hk.hku.cecid.piazza.commons.module.ActiveThread.run
(ActiveThread.java:90)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.NullPointerException
at
hk.hku.cecid.ebms.spa.handler.MessageClassifier.classifyMessageType
(MessageClassifier.java:108)
at hk.hku.cecid.ebms.spa.handler.MessageClassifier.<init>
(MessageClassifier.java:100)
at
hk.hku.cecid.ebms.spa.task.OutboxTask.checkAndSignEbxmlMessage
(OutboxTask.java:258)
... 3 more
2006-06-05 13:35:04 [Thread-72 ] <INFO > <cecid.ebms.spa> <Mark
as failed (Message id: 20060605-133459-31200@...)>
2006-06-05 13:35:04 [Thread-72 ] <INFO > <cecid.ebms.spa>
<Generate internal error message>
2006-06-05 13:35:04 [Thread-72 ] <ERROR> <cecid.ebms.spa>
<Error in outbox task>
java.util.NoSuchElementException
at java.util.AbstractList$Itr.next(AbstractList.java:426)
at
hk.hku.cecid.ebms.spa.handler.SignalMessageGenerator.generateRespo
nseMessageBySender(SignalMessageGenerator.java:84)
at
hk.hku.cecid.ebms.spa.handler.SignalMessageGenerator.generateErrorM
essageBySender(SignalMessageGenerator.java:243)
at
hk.hku.cecid.ebms.spa.task.OutboxTask.generateErrorMessage
(OutboxTask.java:513)
at hk.hku.cecid.ebms.spa.task.OutboxTask.execute
(OutboxTask.java:171)
at hk.hku.cecid.piazza.commons.module.ActiveThread.run
(ActiveThread.java:90)
at java.lang.Thread.run(Thread.java:534)
2006-06-05 13:35:59 [-Processor25] <INFO > <cecid.ebms.spa>
<Message Receiver received request - From: cecid, service:
cecid:cecid, action: order, convId: 1, fromPartyId: null, fromPartyType:
null, toPartyId: null, toPartyType: null, Number of Messages: 100>
STACKTRACE2
Server started.
13:41:54,796 ERROR [MimeUtils] java.io.IOException:
java.io.IOException: Resource has been deleted.
at
org.apache.axis.attachments.ManagedMemoryDataSource$Instream.<ini
t>(M
anagedMemoryDataSource.java:517)
at
org.apache.axis.attachments.ManagedMemoryDataSource.getInputStrea
m(Ma
nagedMemoryDataSource.java:182)
at javax.activation.DataHandler.getInputStream
(DataHandler.java:68)
at javax.activation.DataHandler.writeTo(DataHandler.java:81)
at javax.mail.internet.MimeBodyPart.writeTo
(MimeBodyPart.java:222)
at javax.mail.internet.MimeMultipart.writeTo
(MimeMultipart.java:128)
at
org.apache.geronimo.activation.handlers.MultipartHandler.writeTo(Mult
ipartHandler.java:59)
at javax.activation.DataHandler.writeTo(DataHandler.java:78)
at javax.mail.internet.MimeMessage.writeTo
(MimeMessage.java:513)
at org.apache.axis.attachments.MimeUtils.writeToMultiPartStream
(MimeUtil
s.java:202)
at
org.apache.axis.attachments.AttachmentsImpl.writeContentToStream
(Atta
chmentsImpl.java:493)
at org.apache.axis.Message.writeTo(Message.java:545)
at
hk.hku.cecid.ebms.spa.handler.EbxmlMessageDAOConvertor.setEbxmlMe
ssag
eByteStream(EbxmlMessageDAOConvertor.java:333)
at
hk.hku.cecid.ebms.spa.handler.EbxmlMessageDAOConvertor.<init>
(EbxmlMe
ssageDAOConvertor.java:116)
at
hk.hku.cecid.ebms.spa.handler.InboundMessageProcessor.storeIncoming
Me
ssage(InboundMessageProcessor.java:1491)
at
hk.hku.cecid.ebms.spa.handler.InboundMessageProcessor.processOrder
Mes
sage(InboundMessageProcessor.java:850)
at
hk.hku.cecid.ebms.spa.handler.InboundMessageProcessor.processIncomi
ng
Message(InboundMessageProcessor.java:272)
at
hk.hku.cecid.ebms.spa.handler.MessageServiceHandler.processInbound
Mes
sage(MessageServiceHandler.java:270)
at
hk.hku.cecid.ebms.spa.listener.EbmsInboundListener.processRequest
(Ebm
sInboundListener.java:59)
at hk.hku.cecid.ebms.spa.listener.EbmsAdaptor.processRequest
(EbmsAdaptor
.java:42)
at
hk.hku.cecid.piazza.commons.soap.SOAPHttpAdaptor.processRequest
(SOAPH
ttpAdaptor.java:132)
at
hk.hku.cecid.piazza.commons.servlet.http.HttpDispatcher.processReques
t(HttpDispatcher.java:126)
at hk.hku.cecid.piazza.commons.servlet.http.HttpDispatcher.doPost
(HttpDi
spatcher.java:277)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(Appl
icationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationF
ilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperV
alve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextV
alve.java:178)
at org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke
(DefaultSu
bjectValve.java:46)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke
(Authentica
torBase.java:407)
at
org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodV
alve.
invoke(GeronimoStandardContext.java:275)
at
org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke
(Gero
nimoBeforeAfterValve.java:31)
at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.j
ava:126)
at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.j
ava:105)
at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineVal
ve.java:107)
at org.apache.catalina.authenticator.SingleSignOn.invoke
(SingleSignOn.ja
va:365)
at org.apache.catalina.valves.AccessLogValve.invoke
(AccessLogValve.java:
526)
at org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.jav
a:148)
at org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java
:856)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proc
e
ssConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
(PoolTcpEndpo
int.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFol
lowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadP
ool.java:684)
at java.lang.Thread.run(Thread.java:534)