I am getting this error on validation. Messages are passed as XML strings. Strange thing is that it's intermittent. Same message will pass sometimes and sometimes cause this error.
Route looks like this: from("activemq:start") .transacted() .to("msv:pmc-message.rng") .setHeader(DOI, xpath("/ambraMessage/doi", String.class)) .... etc. It's Camel 2.0.0. Debug log: 09:32:26,638 [enerContainer-1] TransactionErrorHandler WARN Failed delivery for exchangeId: ID:dkrsmanovic-usws-58071-1258479146169-0:0:1:1:1. On delivery attempt: 0 caught: org.apache.camel.component.file.GenericFileOperationFailedException: File operation failed: 421 Timeout. Broken pipe. Code: 421 09:32:36,641 [enerContainer-1] TransactionErrorHandler WARN Failed delivery for exchangeId: ID:dkrsmanovic-usws-58071-1258479146169-0:0:1:1:1. On delivery attempt: 1 caught: org.apache.camel.processor.validation.NoXmlBodyValidationException: No XML body could be found on the input message on the exchange: Exchange[JmsMessage: ActiveMQTextMessage {commandId = 5, responseRequired = true, messageId = ID:dkrsmanovic-usws-58071-1258479146169-0:0:1:1:1, originalDestination = null, originalTransactionId = null, producerId = ID:dkrsmanovic-usws-58071-1258479146169-0:0:1:1, destination = queue://plos.pmc, transactionId = null, expiration = 0, timestamp = 1258479146334, arrival = 0, brokerInTime = 1258479146334, brokerOutTime = 1258479146335, correlationId = null, replyTo = null, persistent = true, type = null, priority = 4, groupID = null, groupSequence = 0, targetConsumerId = null, compressed = false, userID = null, content = null, marshalledProperties = null, dataStructure = null, redeliveryCounter = 0, size = 1345, properties = null, readOnlyProperties = true, readOnlyBody = true, droppable = false, text = <?xml version="1.0" encoding="UTF-8"?> <ambra...mbraMessage>}] 09:32:36,641 [enerContainer-1] MessageValidationFailed ERROR Exchange[Body:] I am also getting "[Fatal Error] :1:1: Premature end of file." on the standard out. -- Dragisa Krsmanovic Java Developer Public Library of Science http://www.plos.org -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- This email is confidential to the intended recipient. If you have received it in error, please notify the sender and delete it from your system. Any unauthorized use, disclosure or copying is not permitted. The views or opinions presented are solely those of the sender and do not necessarily represent those of Public Library of Science unless otherwise specifically stated. Please note that neither Public Library of Science nor any of its agents accept any responsibility for any viruses that may be contained in this e-mail or its attachments and it is your responsibility to scan the e-mail and attachments (if any).