Results 1 to 3 of 3

Thread: XStreamMarshaller does not support unmarshalling using SAX XMLReaders

  1. #1

    Default 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. #2
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    If you think this is a bug, please raise a jira issue so we can take a closer look at it.
    Thanks!
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

  3. #3

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •