Failed to send response failure to DLQ service.
mannuyi Sep 21, 2011 11:17 AMI did an ESB sample. The ESB application will invoke a web service.
The below is joss-esb.xml
<?xml version = "1.0" encoding = "UTF-8"?>
<jbossesb xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.1.xsd" parameterReloadSecs="5">
<providers>
<jms-provider name="JBossMQ" connection-factory="ConnectionFactory">
<jms-bus busid="quickstartGwChannel">
<jms-message-filter dest-type="QUEUE" dest-name="queue/quickstart_webservice_producer_gw"/>
</jms-bus>
<jms-bus busid="quickstartEsbChannel">
<jms-message-filter dest-type="QUEUE" dest-name="queue/quickstart_webservice_producer_esb"/>
</jms-bus>
</jms-provider>
<jbr-provider name="JBR-Http" protocol="http" host="localhost">
<jbr-bus busid="Http-1" port="8765" />
</jbr-provider>
<jbr-provider name="JBR-Socket" protocol="socket" host="localhost">
<jbr-bus busid="Socket-1" port="8888" />
</jbr-provider>
</providers>
<services>
<service category="MyEsbServerTestCategory" name="MyEsbServerTestService" description="ESB Server Test" invmTransacted="true" >
<listeners>
<jms-listener name="JMS-Gateway" busidref="quickstartGwChannel" is-gateway="true"/>
<jbr-listener name="Http-Gateway" busidref="Http-1" is-gateway="true"/>
<jbr-listener name="Socket-Gateway" busidref="Socket-1" is-gateway="true"/>
<jms-listener name="JMS-ESBListener" busidref="quickstartEsbChannel"/>
</listeners>
<actions mep="OneWay">
<action name="transform" class="org.jboss.soa.esb.smooks.SmooksAction">
<property name="smooksConfig" value="/smooks-res.xml" />
<property name="resultType" value="JAVA" />
</action>
<action name="storeAction" class="esb.server.action.MessageStoreAction" >
<property name="springContextXml" value="applicationContext.xml"/>
</action>
<action name="soapClientAction" class="org.jboss.soa.esb.actions.soap.SOAPClient">
<property name="wsdl" value="http://localhost:9080/JbpmWebTest/ReimburseService?wsdl" />
<property name="responseAsOgnlMap" value="true" />
<property name="SOAPAction" value="submitMyReimbursement"/>
</action>
<action name="responseAction"
class="esb.server.action.MyResponseAction">
</action>
</actions>
</service>
</services>
</jbossesb>
Step 1: I invoked JBR-Http.(ok)
Step 2: As the jboss-esb.xml, it went to transform action.(ok)
Step 3: it went to storeAction.(ok)
Step 4: it went to soapClientAction.(ok)
Step 5: it invoked ReimburseService.(ok)
Step 6: ReimburseService returned "success".(ok)
Step 7: responseAction cannot receive message. and the following is the log printed by esb server.
22:53:33,093 INFO [ServiceInvoker] Badly formed EPR [EPR: PortReference < <wsa:
Address socket://localhost:8888/> >] for Service [MyEsbServerTestCategory:MyEsbS
erverTestService] and Message [header: [ ]].Courier for EPR not supported: ESB-
unaware EPR used!
22:53:33,093 INFO [ServiceInvoker] Badly formed EPR [EPR: PortReference < <wsa:
Address http://localhost:8765/> >] for Service [MyEsbServerTestCategory:MyEsbSer
verTestService] and Message [header: [ ]].Courier for EPR not supported: ESB-un
aware EPR used!
22:53:33,609 INFO [STDOUT] request1
22:53:33,609 INFO [STDOUT] 59.97
22:53:33,609 INFO [STDOUT] 2011/08/01 10:00:00
22:53:33,609 INFO [STDOUT] 255191
22:53:33,609 INFO [STDOUT] test
22:53:33,609 INFO [STDOUT] before getBean
22:53:33,609 INFO [STDOUT] after getBean
22:53:33,609 INFO [STDOUT] before saveReceivedMessage
22:53:34,156 INFO [STDOUT] after saveReceivedMessage
22:53:35,343 INFO [STDOUT] Progress: 1 - Caching definition from url [http://lo
calhost:9080/JbpmWebTest/ReimburseService?wsdl]
22:53:35,359 INFO [SchemaUtils] Added default schema from file:/C:/java/jbosses
b-server-4.9/server/default/tmp/deploy/tmp3978819571357473741soapui-1.7.1.jar!/x
op.xsd with targetNamespace http://www.w3.org/2004/08/xop/include
22:53:35,484 INFO [SchemaUtils] Added default schema from file:/C:/java/jbosses
b-server-4.9/server/default/tmp/deploy/tmp3978819571357473741soapui-1.7.1.jar!/X
MLSchema.xsd with targetNamespace http://www.w3.org/2001/XMLSchema
22:53:35,484 INFO [SchemaUtils] Added default schema from file:/C:/java/jbosses
b-server-4.9/server/default/tmp/deploy/tmp3978819571357473741soapui-1.7.1.jar!/x
ml.xsd with targetNamespace http://www.w3.org/XML/1998/namespace
22:53:35,500 INFO [SchemaUtils] Added default schema from file:/C:/java/jbosses
b-server-4.9/server/default/tmp/deploy/tmp3978819571357473741soapui-1.7.1.jar!/s
waref.xsd with targetNamespace http://ws-i.org/profiles/basic/1.1/xsd
22:53:35,500 INFO [SchemaUtils] Added default schema from file:/C:/java/jbosses
b-server-4.9/server/default/tmp/deploy/tmp3978819571357473741soapui-1.7.1.jar!/x
mime200505.xsd with targetNamespace http://www.w3.org/2005/05/xmlmime
22:53:35,500 INFO [SchemaUtils] Added default schema from file:/C:/java/jbosses
b-server-4.9/server/default/tmp/deploy/tmp3978819571357473741soapui-1.7.1.jar!/x
mime200411.xsd with targetNamespace http://www.w3.org/2004/11/xmlmime
22:53:35,500 INFO [SchemaUtils] Added default schema from C:/java/jbossesb-serv
er-4.9/server/default/data/soapui-schemas/XMLSchema1999.xsd with targetNamespace
http://www.w3.org/1999/XMLSchema
22:53:35,671 INFO [STDOUT] Progress: 1 - Loading definition from cache
22:53:35,750 INFO [STDOUT] Retrieving document at 'http://localhost:9080/JbpmWe
bTest/ReimburseService?wsdl'.
22:53:35,937 INFO [SchemaUtils] Loading schema types from [http://localhost:908
0/JbpmWebTest/ReimburseService?wsdl]
22:53:35,937 INFO [SchemaUtils] Getting schema http://localhost:9080/JbpmWebTes
t/ReimburseService?wsdl
22:53:35,953 INFO [SchemaUtils] schema for [http://webservice.alice/] contained
[{}] namespaces
22:53:36,265 INFO [WsdlImporter] Finding importer for {http://webservice.alice/
}ReimburseServiceSoapBinding
22:53:36,265 INFO [WsdlImporter] Importing binding {http://webservice.alice/}Re
imburseServiceSoapBinding
22:53:36,359 INFO [Soap11HttpBindingImporter] importing endpoint http://localho
st:9080/JbpmWebTest/ReimburseService
22:53:36,375 INFO [Soap11HttpBindingImporter] importing operation submitMyReimb
ursement
22:53:36,500 INFO [SchemaUtils] Getting schema http://localhost:9080/JbpmWebTes
t/ReimburseService?wsdl
22:53:36,734 WARN [ActionProcessingPipeline] No fault address defined for fault
message! To: JMSEpr [ PortReference < <wsa:Address jms:127.0.0.1:1099#queue/qui
ckstart_webservice_producer_esb/>, <wsa:ReferenceProperties jbossesb:java.naming
.factory.initial : org.jnp.interfaces.NamingContextFactory/>, <wsa:ReferenceProp
erties jbossesb:java.naming.provider.url : 127.0.0.1:1099/>, <wsa:ReferencePrope
rties jbossesb:java.naming.factory.url.pkgs : org.jnp.interfaces/>, <wsa:Referen
ceProperties jbossesb:destination-type : queue/>, <wsa:ReferenceProperties jboss
esb:destination-name : queue/quickstart_webservice_producer_esb/>, <wsa:Referenc
eProperties jbossesb:specification-version : 1.1/>, <wsa:ReferenceProperties jbo
ssesb:connection-factory : ConnectionFactory/>, <wsa:ReferenceProperties jbosses
b:persistent : true/>, <wsa:ReferenceProperties jbossesb:acknowledge-mode : AUTO
_ACKNOWLEDGE/>, <wsa:ReferenceProperties jbossesb:transacted : false/>, <wsa:Ref
erenceProperties jbossesb:type : urn:jboss/esb/epr/type/jms/> > ] ReplyTo: JMSEp
r [ PortReference < <wsa:Address jms:127.0.0.1:1099#queue/quickstart_webservice_
producer_esb_reply/>, <wsa:ReferenceProperties jbossesb:java.naming.provider.url
: 127.0.0.1:1099/>, <wsa:ReferenceProperties jbossesb:java.naming.factory.initi
al : org.jnp.interfaces.NamingContextFactory/>, <wsa:ReferenceProperties jbosses
b:java.naming.factory.url.pkgs : org.jnp.interfaces/>, <wsa:ReferenceProperties
jbossesb:destination-type : queue/>, <wsa:ReferenceProperties jbossesb:destinati
on-name : queue/quickstart_webservice_producer_esb_reply/>, <wsa:ReferenceProper
ties jbossesb:specification-version : 1.1/>, <wsa:ReferenceProperties jbossesb:c
onnection-factory : ConnectionFactory/>, <wsa:ReferenceProperties jbossesb:messa
ge-selector : jbossESBresponseUUID='6c087b12-1bf0-49bc-9ab3-2f744ace819f'/>, <ws
a:ReferenceProperties jbossesb:persistent : true/>, <wsa:ReferenceProperties jbo
ssesb:acknowledge-mode : AUTO_ACKNOWLEDGE/>, <wsa:ReferenceProperties jbossesb:t
ransacted : false/>, <wsa:ReferenceProperties jbossesb:type : urn:jboss/esb/epr/
type/jms/> > ] MessageID: dccdee06-885a-4022-aab7-5dbfe0ed9b1b RelatesTo: jms:co
rrelationID#dccdee06-885a-4022-aab7-5dbfe0ed9b1b
22:53:36,906 WARN [ServiceInvoker] Courier indicated (un)marshal related error
org.jboss.soa.esb.couriers.CourierMarshalUnmarshalException: Failed to serialize
ESB Message. during delivery to EPR [JMSEpr [ PortReference < <wsa:Address jms:
127.0.0.1:1099#queue/DeadMessageQueue/>, <wsa:ReferenceProperties jbossesb:java.
naming.factory.initial : org.jnp.interfaces.NamingContextFactory/>, <wsa:Referen
ceProperties jbossesb:java.naming.provider.url : 127.0.0.1:1099/>, <wsa:Referenc
eProperties jbossesb:java.naming.factory.url.pkgs : org.jnp.interfaces/>, <wsa:R
eferenceProperties jbossesb:destination-type : queue/>, <wsa:ReferenceProperties
jbossesb:destination-name : queue/DeadMessageQueue/>, <wsa:ReferenceProperties
jbossesb:specification-version : 1.1/>, <wsa:ReferenceProperties jbossesb:connec
tion-factory : ConnectionFactory/>, <wsa:ReferenceProperties jbossesb:persistent
: true/>, <wsa:ReferenceProperties jbossesb:acknowledge-mode : AUTO_ACKNOWLEDGE
/>, <wsa:ReferenceProperties jbossesb:transacted : false/>, <wsa:ReferenceProper
ties jbossesb:type : urn:jboss/esb/epr/type/jms/> > ]] for Service [JBossESB-Int
ernal:DeadLetterService] and Message [header: [ To: JMSEpr [ PortReference < <ws
a:Address jms:127.0.0.1:1099#queue/DeadMessageQueue/>, <wsa:ReferenceProperties
jbossesb:java.naming.factory.initial : org.jnp.interfaces.NamingContextFactory/>
, <wsa:ReferenceProperties jbossesb:java.naming.provider.url : 127.0.0.1:1099/>,
<wsa:ReferenceProperties jbossesb:java.naming.factory.url.pkgs : org.jnp.interf
aces/>, <wsa:ReferenceProperties jbossesb:destination-type : queue/>, <wsa:Refer
enceProperties jbossesb:destination-name : queue/DeadMessageQueue/>, <wsa:Refere
nceProperties jbossesb:specification-version : 1.1/>, <wsa:ReferenceProperties j
bossesb:connection-factory : ConnectionFactory/>, <wsa:ReferenceProperties jboss
esb:persistent : true/>, <wsa:ReferenceProperties jbossesb:acknowledge-mode : AU
TO_ACKNOWLEDGE/>, <wsa:ReferenceProperties jbossesb:transacted : false/>, <wsa:R
eferenceProperties jbossesb:type : urn:jboss/esb/epr/type/jms/> > ] RelatesTo: d
ccdee06-885a-4022-aab7-5dbfe0ed9b1b ]]. Failed to serialize ESB Message.
22:53:36,906 WARN [ActionProcessingPipeline] Failed to send response failure to
DLQ service
22:53:53,484 INFO [ServiceInvoker] Unresponsive EPR: JMSEpr [ PortReference < <
wsa:Address jms:127.0.0.1:1099#queue/quickstart_webservice_producer_esb/>, <wsa:
ReferenceProperties jbossesb:java.naming.factory.initial : org.jnp.interfaces.Na
mingContextFactory/>, <wsa:ReferenceProperties jbossesb:java.naming.provider.url
: 127.0.0.1:1099/>, <wsa:ReferenceProperties jbossesb:java.naming.factory.url.p
kgs : org.jnp.interfaces/>, <wsa:ReferenceProperties jbossesb:destination-type :
queue/>, <wsa:ReferenceProperties jbossesb:destination-name : queue/quickstart_
webservice_producer_esb/>, <wsa:ReferenceProperties jbossesb:specification-versi
on : 1.1/>, <wsa:ReferenceProperties jbossesb:connection-factory : ConnectionFac
tory/>, <wsa:ReferenceProperties jbossesb:persistent : true/>, <wsa:ReferencePro
perties jbossesb:acknowledge-mode : AUTO_ACKNOWLEDGE/>, <wsa:ReferenceProperties
jbossesb:transacted : false/>, <wsa:ReferenceProperties jbossesb:type : urn:jbo
ss/esb/epr/type/jms/> > ] for message: header: [ ]
22:53:53,484 INFO [ServiceInvoker] Delivering message [header: [ ]] to DLQ.
Thanks for any responses.