mule - Error - Cannot apply transformer ObjectToHttpClientMethodRequest -


<flow name="initiateautobulkflow" doc:name="initiateautobulkflow">    <jms:inbound-endpoint queue="${queue.name}" connector-ref="active_mq" doc:name="jms message listener"/>     <set-variable variablename="createlistings" value="#[new com.xyz.domain.inventory.v2.bulk.dto.bulklistingrequest()]" doc:name="new listings create"/>      <choice doc:name="choice">         <when expression="ablinputmessage['oldfilepath'] == empty">             <component class="com.xyz.app.integration.autobulk.computefilediff" doc:name="java"/>             <set-payload value="#[flowvars['createlistings']]" doc:name="set payload"/>             <foreach collection="#[payload]" batchsize="2" doc:name="for each">                 <logger message="#[payload]" level="info" doc:name="logger"/>                 <foreach doc:name="for each" >                     <logger message="#[payload]" level="info" doc:name="logger"/>                    <https:outbound-endpoint exchange-pattern="request-response" method="get" connector-ref="httpsclientconnector" address="//api-dev.xyz.com/search/catalog/events/ship/v3/?locale=en_us&amp;venuename=sap center&amp;eventdatelocal=2015-11-11t19:30" contenttype="application/json" doc:name="invoke search events api">                     <message-properties-transformer scope="outbound">                         <add-message-property key="authorization" value="bearer dd39"/>                          <add-message-property key="content-type" value="application/json"/>                          <add-message-property key="target_host" value="${target.host}"/>                      </message-properties-transformer>                    </https:outbound-endpoint>                     <logger message="@@@@@@" level="info" doc:name="logger"/>                 <echo-component doc:name="echo"/>                 </foreach>             </foreach>             <otherwise>             <flow-ref name="computefilediffandprocessbulklistingupdatereq" doc:name="perform file difference , process bulk update req"/>         </otherwise>     </choice>     </flow> 

createlistings arraylist of listingrequest objects

i getting these messages -

 info  2015-06-14 19:46:37,729 [[autobulk].initiateautobulkflow.stage1.02] org.mule.api.processor.loggermessageprocessor:org.mule.api.processor.loggermessageprocessor: [com.xyz.domain.inventory.v2.dto.listingrequest@136e2b70, com.xyz.domain.inventory.v2.dto.listingrequest@25e5d007] info  2015-06-14 19:46:37,729 [[autobulk].initiateautobulkflow.stage1.02] org.mule.api.processor.loggermessageprocessor:org.mule.api.processor.loggermessageprocessor: com.xyz.domain.inventory.v2.dto.listingrequest@136e2b70 info  2015-06-14 19:46:37,731 [[autobulk].initiateautobulkflow.stage1.02] org.mule.transport.service.defaulttransportservicedescriptor: loading default outbound transformer: org.mule.transport.http.transformers.objecttohttpclientmethodrequest info  2015-06-14 19:46:37,731 [[autobulk].initiateautobulkflow.stage1.02] org.mule.transport.service.defaulttransportservicedescriptor: loading default response transformer: org.mule.transport.http.transformers.mulemessagetohttpresponse info  2015-06-14 19:46:37,731 [[autobulk].initiateautobulkflow.stage1.02] org.mule.transport.service.defaulttransportservicedescriptor: loading default outbound transformer: org.mule.transport.http.transformers.objecttohttpclientmethodrequest info  2015-06-14 19:46:37,732 [[autobulk].initiateautobulkflow.stage1.02] org.mule.lifecycle.abstractlifecyclemanager: initialising: 'httpsclientconnector.dispatcher.112861921'. object is: httpsclientmessagedispatcher info  2015-06-14 19:46:37,732 [[autobulk].initiateautobulkflow.stage1.02] org.mule.lifecycle.abstractlifecyclemanager: starting: 'httpsclientconnector.dispatcher.112861921'. object is: httpsclientmessagedispatcher info  2015-06-14 19:46:37,756 [[autobulk].initiateautobulkflow.stage1.02] org.mule.module.xml.transformer.jaxb.jaxbcontextresolver: no common object of type 'class javax.xml.bind.jaxbcontext' configured, creating local 1 for: simpledatatype{type=com.xyz.domain.inventory.v2.dto.listingrequest, mimetype='*/*'}, simpledatatype{type=org.mule.api.mulemessage, mimetype='*/*'} warn  2015-06-14 19:46:37,932 [[autobulk].initiateautobulkflow.stage1.02] org.mule.module.xml.transformer.jaxb.jaxbcontextresolver: 2 counts of illegalannotationexceptions. initializing context using jaxb annotated class: class com.xyz.domain.inventory.v2.dto.listingrequest  root exception stack trace: java.lang.illegalargumentexception: cannot apply transformer objecttohttpclientmethodrequest 

i have no real clue why code failing, , these messages mean.

maybe unrelated wrong:

<when expression="#[payload.getevent().getvenue()==null"> 

a closing ] missing. also, mel, can skip gets:

<when expression="#[payload.event.venue==null]"> 

you can simplify:

collection="#[flowvars['createlistings']]" 

into:

collection="#[createlistings]" 

Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -