srinivas_vsk
Dec 1st, 2009, 11:28 AM
Hi,
I have inbound-channel-adapter polling a directory with xml files. And defined a unmarshalling-transformer for transforming the xml to java.
It appears that the payload from the inbound channel is of type File but the jaxb unmarshaller always expects the input to be streamsource. Is there a better way to handle this, right now im overcoming this by defining a converter service between these channels ?
This is the error without my converter
Caused by: org.springframework.integration.core.MessagingExce ption: Failed to create Source for payload type [java.io.File]
at org.springframework.integration.xml.source.DomSour ceFactory.createSource(DomSourceFactory.java:62)
Thanks
Srinivas
I have inbound-channel-adapter polling a directory with xml files. And defined a unmarshalling-transformer for transforming the xml to java.
It appears that the payload from the inbound channel is of type File but the jaxb unmarshaller always expects the input to be streamsource. Is there a better way to handle this, right now im overcoming this by defining a converter service between these channels ?
This is the error without my converter
Caused by: org.springframework.integration.core.MessagingExce ption: Failed to create Source for payload type [java.io.File]
at org.springframework.integration.xml.source.DomSour ceFactory.createSource(DomSourceFactory.java:62)
Thanks
Srinivas