In my SE, I build an XML to send back to the client. The last two lines of my SE are:
out.setContent(new StreamSource(new StringReader(new String(inData))); getChannel().send(exchange); Where inData is a byte[] containing the content of the incoming NormalizedMessage from the client. It displays OK. When I build the project (mvn clean install), the unit test application, MySpringComponentTest, throws an IO Exception complaining that the "stream" is closed on this statement: System.err.println(new SourceTransformer().toString(me.getOutMessage().getContent())); If I just set the out content to the in content (i.e. out.setContent(in.getContent())), then it works. Seems to be a problem with trying to build an out NormalizedMessage. Any ideas? Doug
