views:

33

answers:

0

My context looks like this:

<bean id="xStreamMarshaller"
      class="org.springframework.oxm.xstream.XStreamMarshaller"
      p:converters-ref="converters"
      p:autodetectAnnotations="true"/>

And if I switch on annotation auto-detection I get

org.springframework.oxm.xstream.XStreamMarshaller - Could not flush HierarchicalStreamWriter
com.thoughtworks.xstream.io.StreamException:  : null
    at com.thoughtworks.xstream.core.util.QuickWriter.flush(QuickWriter.java:73)
    at com.thoughtworks.xstream.io.xml.PrettyPrintWriter.flush(PrettyPrintWriter.java:312)
    at org.springframework.oxm.xstream.XStreamMarshaller.marshal(XStreamMarshaller.java:407)
    at org.springframework.oxm.xstream.XStreamMarshaller.marshalWriter(XStreamMarshaller.java:390)
    ....
Caused by: org.mortbay.jetty.EofException
    at org.mortbay.jetty.HttpGenerator.flush(HttpGenerator.java:760)
    at org.mortbay.jetty.AbstractGenerator$Output.flush(AbstractGenerator.java:566)
    at org.mortbay.jetty.HttpConnection$Output.flush(HttpConnection.java:911)
    ....
Caused by: java.io.IOException: An established connection was aborted by the software in your host machine
    at sun.nio.ch.SocketDispatcher.write0(Native Method)
    at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:33)
    at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:104)
    at sun.nio.ch.IOUtil.write(IOUtil.java:60)

Huh?