Announcement Announcement Module
Collapse
No announcement yet.
XStreamMarshaller does not support unmarshalling using SAX XMLReaders Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • XStreamMarshaller does not support unmarshalling using SAX XMLReaders

    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
    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>
    Is this a known problem ?

  • #2
    If you think this is a bug, please raise a jira issue so we can take a closer look at it.
    Thanks!

    Comment


    • #3
      Create http://jira.springframework.org/browse/BATCH-1563

      Comment

      Working...
      X