0
<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 to 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&venueName=SAP Center&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 And Process Bulk Update Req"/>
</otherwise>
</choice>
</flow>
createListings
是ListingRequest
的ArrayList
對象錯誤 - 無法應用變壓器ObjectToHttpClientMethodRequest
我得到這些消息 -
INFO 2015-06-14 19:46:37,729 [[autobulk].initiateAutobulkFlow.stage1.02] org.mule.api.processor.LoggerMessageProcessor:org.mule.api.processor.LoggerMessageProcessor: [[email protected], [email protected]] INFO 2015-06-14 19:46:37,729 [[autobulk].initiateAutobulkFlow.stage1.02] org.mule.api.processor.LoggerMessageProcessor:org.mule.api.processor.LoggerMessageProcessor: [email protected] 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 a local one 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
我沒有真正知道爲什麼這段代碼失敗,以及這些消息的意思。
你可以在你的整個流程把請,我假設你在你的流程中有一些WS在你的問題 – Sudarshan
中同意,在上面的配置中沒有任何HTTP相關,所以我們錯過了重要的位,異常來自。 –
我改變了流程並添加了更多錯誤細節。提前致謝!! – user3483129