I'm getting this error when update from spring 2.5.6 to 3.0.1.
After the update I could remove spring-ws-1.5.6-all.jar from my classpath , because it is contained in the new Spring release, but I had to add org.springframework.xml-1.5.9.A.jar.
When debugging I can see the public final Object unmarshal(Source source) method on the org.springframework.oxm.support.AbstractMarshaller being called with source having the type org.springframework.xml.transform.StaxSource.
However the test : StaxUtils.isStaxSource(source) returns false because this test succeeds if the type is org.springframework.util.xml.StaxSource.
In my spring config I have the following
Is this a known problem ?Code:<bean id="dataItemReader" class="org.springframework.batch.item.xml.StaxEventItemReader"> <property name="fragmentRootElementName" value="request" /> <property name="resource" value="file:${input.data.file}" /> <property name="unmarshaller" ref="messageMarshaller" /> </bean> <bean id="messageMarshaller" class="org.springframework.oxm.xstream.XStreamMarshaller"> <property name="aliases"> <util:map> <entry key="request" value="mypackage.Message" /> </util:map> </property> </bean>


Reply With Quote