在JBoss Fuse中获取org.apache.camel.NoTypeConversionAvailableException

时间:2017-09-12 06:21:23

标签: jaxb apache-camel type-conversion marshalling jbossfuse

我在JBoss Fuse中收到以下错误。

有人能告诉我造成这个问题的原因是什么?

有没有办法解决它?

    java.io.IOException: org.apache.camel.NoTypeConversionAvailableException: No type converter available to convert from type: com.abc.ws.ABC to the required type: java.io.InputStream with value com.abc.ws.ABC@7644b2af  at org.apache.camel.converter.jaxb.JaxbDataFormat.marshal(JaxbDataFormat.java:153) :

    <dataFormats>
    <jaxb contextPath="generated" id="generated"/>
    <jaxb contextPath="com.abc.ws" encoding="UTF-8" id="ABC"
    partClass="com.abc.ws.ABC" prettyPrint="true"/>
    </dataFormats>

    <route autoStartup="true" id="LogCreateOrgRequest">
    <from id="_from10" uri="seda:logOrganisationRequest"/>
    <process id="_process17" ref="AbcProcessor"/>
    <marshal id="_marshal1" ref="ABC"/>
    <convertBodyTo id="_convertBodyTo2" type="java.lang.String"/>
    <setBody id="_setBody18">
    <simple> Request - [${date:now:yyyy-MM-dd'T'HH:mm:ss.SSS.Z}]\nTransactionID 
    - ${exchangeProperty.CAFNo}\n${body}\n</simple>
    </setBody>
    <to id="_to40" pattern="InOut" uri="file:/opt/logs/demographicSetup/ABC?
 keepLastModified=true&amp;fileExist=Append&amp;fileName=CreateOrgRequest-${date:now:yyyyMMdd}.txt&amp;readLock=changed"/>
    </route>`

0 个答案:

没有答案