camel-cxf: unwrapped style web service returning empty body when schema-validation-enabled=true
chiochuan Aug 21, 2017 5:47 AMDear team,
could you help me for below issue?
i trying to read the body response for the web service but encounter below exception.
Based on the test, these only happen for unwrapped style web services.
i have tried with wrapped style and there is no issue for that.
FYI, this is only happen for jboss release, e.g 2.17.0.redhat-630XXX, but when i try wth camel 2.17.0, there are no issue.
Not sure if this is a bug or mistake on my end.
Attach is the test case.
Stacktrace |
---|
--------------------------------------------------------------------------------------------------------------------------------------- org.apache.camel.TypeConversionException: Error during type conversion from type: java.lang.String to the required type: java.lang.String with value [Body is instance of org.apache.camel.StreamCache] due java.lang.IllegalStateException: StAXSource(XMLStreamReader) with XMLStreamReadernot in XMLStreamConstants.START_DOCUMENT or XMLStreamConstants.START_ELEMENT state at org.apache.camel.impl.converter.BaseTypeConverterRegistry.createTypeConversionException(BaseTypeConverterRegistry.java:629) at org.apache.camel.impl.converter.BaseTypeConverterRegistry.convertTo(BaseTypeConverterRegistry.java:150) at org.apache.camel.support.ExpressionAdapter.evaluate(ExpressionAdapter.java:41) at org.apache.camel.processor.LogProcessor.process(LogProcessor.java:53) at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:468) at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:196) at org.apache.camel.processor.ChoiceProcessor.process(ChoiceProcessor.java:117) at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:468) at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:196) at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:196) at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:62) ....... |
-
empty-cxf-body.zip 8.8 KB