You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Christian Schneider <ch...@die-schneider.net> on 2008/10/12 11:51:14 UTC
Problem with FileEndpoint
Hi,
I have a problem with FileEndpoint and invalid messages. I am reading
xml messages from a directory, unmarshal them and process them in a
bean. When the message is valid all works.
When the message is invalid I get the following warning:
Could not rename file from: c:\cameltest\in\shiporder_error.xml to
c:\cameltest\ok\shiporder_error.xml
So the message appears in the error dir but does not disappear in the in
dir. It seems like the file is still open in camel. There are two
problems with this.
Any ideas?
Greetings
Christian
But when the message
Here is my setup:
package jaxb;
import org.apache.camel.CamelContext;
import org.apache.camel.Exchange;
import org.apache.camel.Processor;
import org.apache.camel.builder.DeadLetterChannelBuilder;
import org.apache.camel.builder.ErrorHandlerBuilder;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.converter.jaxb.JaxbDataFormat;
import org.apache.camel.impl.DefaultCamelContext;
import org.apache.camel.model.ExceptionType;
import org.apache.camel.spi.RouteContext;
public class CamelTest {
/**
* @param args
* @throws Exception
*/
public static void main(String[] args) throws Exception {
CamelContext context = new DefaultCamelContext();
RouteBuilder builder = new RouteBuilder() {
@Override
public void configure() throws Exception {
errorHandler(deadLetterChannel("file:c:/cameltest/error?autoCreate=true"));
from("file:c:/cameltest/in?autoCreate=true&consumer.alwaysConsume=true&moveNamePrefix=c:/cameltest/ok/")
.bean(OrderProcessor.class);
}
};
context.addRoutes(builder);
context.start();
}
}
This is the log I get:
12.10.2008 11:48:17 org.apache.camel.impl.DefaultCamelContext <init>
INFO: JMX enabled. Using InstrumentationLifecycleStrategy.
12.10.2008 11:48:20 org.apache.camel.processor.Logger log
SCHWERWIEGEND: Failed delivery for exchangeId:
ID-notebookchris/50019-1223804899162/0-0. On delivery attempt: 0 caught:
org.apache.camel.RuntimeCamelException: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: The end-tag for element type "shiporder"
must end with a '>' delimiter.]
org.apache.camel.RuntimeCamelException: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: The end-tag for element type "shiporder"
must end with a '>' delimiter.]
at
org.apache.camel.converter.jaxb.FallbackTypeConverter.convertTo(FallbackTypeConverter.java:70)
at
org.apache.camel.impl.converter.DefaultTypeConverter.convertTo(DefaultTypeConverter.java:71)
at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:59)
at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:50)
at
org.apache.camel.builder.ExpressionBuilder$10.evaluate(ExpressionBuilder.java:247)
at
org.apache.camel.component.bean.MethodInfo$2.evaluate(MethodInfo.java:138)
at
org.apache.camel.component.bean.MethodInfo.createMethodInvocation(MethodInfo.java:57)
at
org.apache.camel.component.bean.BeanInfo.createInvocation(BeanInfo.java:115)
at
org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:103)
at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:69)
at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:155)
at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:91)
at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:39)
at
org.apache.camel.component.file.FileConsumer.pollFile(FileConsumer.java:128)
at
org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:77)
at
org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:84)
at
org.apache.camel.component.file.FileConsumer.poll(FileConsumer.java:57)
at
org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:65)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown
Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown
Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: The end-tag for element type "shiporder"
must end with a '>' delimiter.]
at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(Unknown
Source)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:506)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:215)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:184)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown
Source)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown
Source)
at
org.apache.camel.converter.jaxb.FallbackTypeConverter.unmarshall(FallbackTypeConverter.java:90)
at
org.apache.camel.converter.jaxb.FallbackTypeConverter.convertTo(FallbackTypeConverter.java:61)
... 27 more
Caused by: org.xml.sax.SAXParseException: The end-tag for element type
"shiporder" must end with a '>' delimiter.
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:211)
... 32 more
12.10.2008 11:48:21 org.apache.camel.processor.Logger log
SCHWERWIEGEND: Failed delivery for exchangeId:
ID-notebookchris/50019-1223804899162/0-0. On delivery attempt: 1 caught:
org.apache.camel.RuntimeCamelException: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: The end-tag for element type "shiporder"
must end with a '>' delimiter.]
org.apache.camel.RuntimeCamelException: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: The end-tag for element type "shiporder"
must end with a '>' delimiter.]
at
org.apache.camel.converter.jaxb.FallbackTypeConverter.convertTo(FallbackTypeConverter.java:70)
at
org.apache.camel.impl.converter.DefaultTypeConverter.convertTo(DefaultTypeConverter.java:71)
at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:59)
at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:50)
at
org.apache.camel.builder.ExpressionBuilder$10.evaluate(ExpressionBuilder.java:247)
at
org.apache.camel.component.bean.MethodInfo$2.evaluate(MethodInfo.java:138)
at
org.apache.camel.component.bean.MethodInfo.createMethodInvocation(MethodInfo.java:57)
at
org.apache.camel.component.bean.BeanInfo.createInvocation(BeanInfo.java:115)
at
org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:103)
at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:69)
at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:155)
at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:91)
at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:39)
at
org.apache.camel.component.file.FileConsumer.pollFile(FileConsumer.java:128)
at
org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:77)
at
org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:84)
at
org.apache.camel.component.file.FileConsumer.poll(FileConsumer.java:57)
at
org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:65)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown
Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown
Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: The end-tag for element type "shiporder"
must end with a '>' delimiter.]
at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(Unknown
Source)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:506)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:215)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:184)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown
Source)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown
Source)
at
org.apache.camel.converter.jaxb.FallbackTypeConverter.unmarshall(FallbackTypeConverter.java:90)
at
org.apache.camel.converter.jaxb.FallbackTypeConverter.convertTo(FallbackTypeConverter.java:61)
... 27 more
Caused by: org.xml.sax.SAXParseException: The end-tag for element type
"shiporder" must end with a '>' delimiter.
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:211)
... 32 more
12.10.2008 11:48:22 org.apache.camel.processor.Logger log
SCHWERWIEGEND: Failed delivery for exchangeId:
ID-notebookchris/50019-1223804899162/0-0. On delivery attempt: 2 caught:
org.apache.camel.RuntimeCamelException: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: The end-tag for element type "shiporder"
must end with a '>' delimiter.]
org.apache.camel.RuntimeCamelException: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: The end-tag for element type "shiporder"
must end with a '>' delimiter.]
at
org.apache.camel.converter.jaxb.FallbackTypeConverter.convertTo(FallbackTypeConverter.java:70)
at
org.apache.camel.impl.converter.DefaultTypeConverter.convertTo(DefaultTypeConverter.java:71)
at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:59)
at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:50)
at
org.apache.camel.builder.ExpressionBuilder$10.evaluate(ExpressionBuilder.java:247)
at
org.apache.camel.component.bean.MethodInfo$2.evaluate(MethodInfo.java:138)
at
org.apache.camel.component.bean.MethodInfo.createMethodInvocation(MethodInfo.java:57)
at
org.apache.camel.component.bean.BeanInfo.createInvocation(BeanInfo.java:115)
at
org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:103)
at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:69)
at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:155)
at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:91)
at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:39)
at
org.apache.camel.component.file.FileConsumer.pollFile(FileConsumer.java:128)
at
org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:77)
at
org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:84)
at
org.apache.camel.component.file.FileConsumer.poll(FileConsumer.java:57)
at
org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:65)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown
Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown
Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: The end-tag for element type "shiporder"
must end with a '>' delimiter.]
at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(Unknown
Source)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:506)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:215)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:184)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown
Source)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown
Source)
at
org.apache.camel.converter.jaxb.FallbackTypeConverter.unmarshall(FallbackTypeConverter.java:90)
at
org.apache.camel.converter.jaxb.FallbackTypeConverter.convertTo(FallbackTypeConverter.java:61)
... 27 more
Caused by: org.xml.sax.SAXParseException: The end-tag for element type
"shiporder" must end with a '>' delimiter.
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:211)
... 32 more
12.10.2008 11:48:23 org.apache.camel.processor.Logger log
SCHWERWIEGEND: Failed delivery for exchangeId:
ID-notebookchris/50019-1223804899162/0-0. On delivery attempt: 3 caught:
org.apache.camel.RuntimeCamelException: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: The end-tag for element type "shiporder"
must end with a '>' delimiter.]
org.apache.camel.RuntimeCamelException: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: The end-tag for element type "shiporder"
must end with a '>' delimiter.]
at
org.apache.camel.converter.jaxb.FallbackTypeConverter.convertTo(FallbackTypeConverter.java:70)
at
org.apache.camel.impl.converter.DefaultTypeConverter.convertTo(DefaultTypeConverter.java:71)
at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:59)
at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:50)
at
org.apache.camel.builder.ExpressionBuilder$10.evaluate(ExpressionBuilder.java:247)
at
org.apache.camel.component.bean.MethodInfo$2.evaluate(MethodInfo.java:138)
at
org.apache.camel.component.bean.MethodInfo.createMethodInvocation(MethodInfo.java:57)
at
org.apache.camel.component.bean.BeanInfo.createInvocation(BeanInfo.java:115)
at
org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:103)
at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:69)
at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:155)
at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:91)
at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:39)
at
org.apache.camel.component.file.FileConsumer.pollFile(FileConsumer.java:128)
at
org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:77)
at
org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:84)
at
org.apache.camel.component.file.FileConsumer.poll(FileConsumer.java:57)
at
org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:65)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown
Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown
Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: The end-tag for element type "shiporder"
must end with a '>' delimiter.]
at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(Unknown
Source)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:506)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:215)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:184)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown
Source)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown
Source)
at
org.apache.camel.converter.jaxb.FallbackTypeConverter.unmarshall(FallbackTypeConverter.java:90)
at
org.apache.camel.converter.jaxb.FallbackTypeConverter.convertTo(FallbackTypeConverter.java:61)
... 27 more
Caused by: org.xml.sax.SAXParseException: The end-tag for element type
"shiporder" must end with a '>' delimiter.
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:211)
... 32 more
12.10.2008 11:48:24 org.apache.camel.processor.Logger log
SCHWERWIEGEND: Failed delivery for exchangeId:
ID-notebookchris/50019-1223804899162/0-0. On delivery attempt: 4 caught:
org.apache.camel.RuntimeCamelException: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: The end-tag for element type "shiporder"
must end with a '>' delimiter.]
org.apache.camel.RuntimeCamelException: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: The end-tag for element type "shiporder"
must end with a '>' delimiter.]
at
org.apache.camel.converter.jaxb.FallbackTypeConverter.convertTo(FallbackTypeConverter.java:70)
at
org.apache.camel.impl.converter.DefaultTypeConverter.convertTo(DefaultTypeConverter.java:71)
at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:59)
at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:50)
at
org.apache.camel.builder.ExpressionBuilder$10.evaluate(ExpressionBuilder.java:247)
at
org.apache.camel.component.bean.MethodInfo$2.evaluate(MethodInfo.java:138)
at
org.apache.camel.component.bean.MethodInfo.createMethodInvocation(MethodInfo.java:57)
at
org.apache.camel.component.bean.BeanInfo.createInvocation(BeanInfo.java:115)
at
org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:103)
at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:69)
at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:155)
at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:91)
at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:39)
at
org.apache.camel.component.file.FileConsumer.pollFile(FileConsumer.java:128)
at
org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:77)
at
org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:84)
at
org.apache.camel.component.file.FileConsumer.poll(FileConsumer.java:57)
at
org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:65)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown
Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown
Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: The end-tag for element type "shiporder"
must end with a '>' delimiter.]
at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(Unknown
Source)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:506)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:215)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:184)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown
Source)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown
Source)
at
org.apache.camel.converter.jaxb.FallbackTypeConverter.unmarshall(FallbackTypeConverter.java:90)
at
org.apache.camel.converter.jaxb.FallbackTypeConverter.convertTo(FallbackTypeConverter.java:61)
... 27 more
Caused by: org.xml.sax.SAXParseException: The end-tag for element type
"shiporder" must end with a '>' delimiter.
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:211)
... 32 more
12.10.2008 11:48:25 org.apache.camel.processor.Logger log
SCHWERWIEGEND: Failed delivery for exchangeId:
ID-notebookchris/50019-1223804899162/0-0. On delivery attempt: 5 caught:
org.apache.camel.RuntimeCamelException: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: The end-tag for element type "shiporder"
must end with a '>' delimiter.]
org.apache.camel.RuntimeCamelException: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: The end-tag for element type "shiporder"
must end with a '>' delimiter.]
at
org.apache.camel.converter.jaxb.FallbackTypeConverter.convertTo(FallbackTypeConverter.java:70)
at
org.apache.camel.impl.converter.DefaultTypeConverter.convertTo(DefaultTypeConverter.java:71)
at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:59)
at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:50)
at
org.apache.camel.builder.ExpressionBuilder$10.evaluate(ExpressionBuilder.java:247)
at
org.apache.camel.component.bean.MethodInfo$2.evaluate(MethodInfo.java:138)
at
org.apache.camel.component.bean.MethodInfo.createMethodInvocation(MethodInfo.java:57)
at
org.apache.camel.component.bean.BeanInfo.createInvocation(BeanInfo.java:115)
at
org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:103)
at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:69)
at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:155)
at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:91)
at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:39)
at
org.apache.camel.component.file.FileConsumer.pollFile(FileConsumer.java:128)
at
org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:77)
at
org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:84)
at
org.apache.camel.component.file.FileConsumer.poll(FileConsumer.java:57)
at
org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:65)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown
Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown
Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: The end-tag for element type "shiporder"
must end with a '>' delimiter.]
at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(Unknown
Source)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:506)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:215)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:184)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown
Source)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown
Source)
at
org.apache.camel.converter.jaxb.FallbackTypeConverter.unmarshall(FallbackTypeConverter.java:90)
at
org.apache.camel.converter.jaxb.FallbackTypeConverter.convertTo(FallbackTypeConverter.java:61)
... 27 more
Caused by: org.xml.sax.SAXParseException: The end-tag for element type
"shiporder" must end with a '>' delimiter.
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:211)
... 32 more
12.10.2008 11:48:25
org.apache.camel.component.file.strategy.RenameFileProcessStrategy commit
WARNUNG: Could not rename file from: c:\cameltest\in\shiporder_error.xml
to c:\cameltest\ok\shiporder_error.xml
12.10.2008 11:48:25 org.apache.camel.processor.Logger log
SCHWERWIEGEND: Failed delivery for exchangeId:
ID-notebookchris/50019-1223804899162/0-0. Handled by the failure
processor: sendTo(Endpoint[file:c:/cameltest/error?autoCreate=true])
--
Christian Schneider
---
http://www.liquid-reality.de
RE: Problem with FileEndpoint
Posted by Claus Ibsen <ci...@silverbullet.dk>.
Hi
Thanks a lot for the sample. I will look into it this week/weekend.
Yeah there is a refactor planned for Camel 2.0 to remove generics in Exchange and other areas as well. Then all the different message types should be reduced, and the API should be easier to work with:
http://activemq.apache.org/camel/camel-20-design.html
Feedback for the 2.0 design is much welcome.
File as an InputStream, well have java.io.File allows you to access this handle and get File related information as well. Storing only a InputStream you loose this. You can always do the convertions from File -> InputStream with
from("file://bla").convertBodyTo(InputStream.class).to("bean:doSomething");
And the same technique can be used for reading the file content at once as you also suggested previously:
from("file://bla").convertBodyTo(String.class).to("bean:doSomething");
Med venlig hilsen
Claus Ibsen
......................................
Silverbullet
Skovsgårdsvænget 21
8362 Hørning
Tlf. +45 2962 7576
Web: www.silverbullet.dk
-----Original Message-----
From: Christian Schneider [mailto:chris@die-schneider.net]
Sent: 14. oktober 2008 00:52
To: camel-user@activemq.apache.org
Subject: Re: Problem with FileEndpoint
Hi Claus,
I have added my example project to the issue.
About the FileMessage. I understand that large files are important but
wouldn´t it be better to put an InputStream into the message. In this
case it would be an InputStream from a file but the concept is much more
general than transmitting a File object. For a JMS message you could use
an InputStream from the message content. Both quite different cases
could be handled with the same message type.
I would even make the assumption that Camel could live with just one
message class that allows to store Streams for binary data,
Readers/Writers for textual data and Objects. Together with the
properties this could be flexible enough for all cases.
All the different message types are just making things quite complex.
Greetings
Christian
Claus Ibsen schrieb:
> Hi
>
> Thanks for the workaround.
>
> I would still however like to investigate the bug. I will create a ticket for it.
>
> Some end-users need to access the java.io.File and not read the content into memory as they need to work on the file stream instead. Some end-users reads 1gb CSV files etc.
>
> So it should work in all situations.
>
>
>
> Med venlig hilsen
>
> Claus Ibsen
>
--
Christian Schneider
---
http://www.liquid-reality.de
Re: Problem with FileEndpoint
Posted by Christian Schneider <ch...@die-schneider.net>.
Hi Claus,
I have added my example project to the issue.
About the FileMessage. I understand that large files are important but
wouldn´t it be better to put an InputStream into the message. In this
case it would be an InputStream from a file but the concept is much more
general than transmitting a File object. For a JMS message you could use
an InputStream from the message content. Both quite different cases
could be handled with the same message type.
I would even make the assumption that Camel could live with just one
message class that allows to store Streams for binary data,
Readers/Writers for textual data and Objects. Together with the
properties this could be flexible enough for all cases.
All the different message types are just making things quite complex.
Greetings
Christian
Claus Ibsen schrieb:
> Hi
>
> Thanks for the workaround.
>
> I would still however like to investigate the bug. I will create a ticket for it.
>
> Some end-users need to access the java.io.File and not read the content into memory as they need to work on the file stream instead. Some end-users reads 1gb CSV files etc.
>
> So it should work in all situations.
>
>
>
> Med venlig hilsen
>
> Claus Ibsen
>
--
Christian Schneider
---
http://www.liquid-reality.de
RE: Problem with FileEndpoint
Posted by Claus Ibsen <ci...@silverbullet.dk>.
Hi
Issue created here:
https://issues.apache.org/activemq/browse/CAMEL-980
Christian if possible attach your sample code and if you can the .xml files that is OK and the one that FAILS.
Med venlig hilsen
Claus Ibsen
......................................
Silverbullet
Skovsgårdsvænget 21
8362 Hørning
Tlf. +45 2962 7576
Web: www.silverbullet.dk
-----Original Message-----
From: Claus Ibsen [mailto:ci@silverbullet.dk]
Sent: 13. oktober 2008 09:17
To: camel-user@activemq.apache.org
Subject: RE: Problem with FileEndpoint
Hi
Thanks for the workaround.
I would still however like to investigate the bug. I will create a ticket for it.
Some end-users need to access the java.io.File and not read the content into memory as they need to work on the file stream instead. Some end-users reads 1gb CSV files etc.
So it should work in all situations.
Med venlig hilsen
Claus Ibsen
......................................
Silverbullet
Skovsgårdsvænget 21
8362 Hørning
Tlf. +45 2962 7576
Web: www.silverbullet.dk
-----Original Message-----
From: Christian Schneider [mailto:chris@die-schneider.net]
Sent: 12. oktober 2008 18:51
To: camel-user@activemq.apache.org
Subject: Re: Problem with FileEndpoint
Hi Claus,
the problem also happens with camel 1.5-snapshot. I have found a
workaround though. When I put a .convertBodyTo(String.class) before the
bean processor it works. The behaviour is still not exactly how I would
expect it as the xml file with the error in it is copied to the ok dir
and the error dir. This is ok for me though.
The workaround also works for camel 1.4.0.
I have an idea what the problem could be. In my opinion the file is
opened when the conversion with jaxb starts and it is not closed
correctly when an exception happens. When I use the
convertBodyTo(String.class) the file is opened and correctly closed
there so the above problem can not happen in the JAXB type converter. I
have not debugged this. It is only what I guess from the behaviour.
BTW. Is there a reason why the FileEndpoint does not simply read the
file into a string? At least for smaller files this would be much
easier. For large files it could be better with the FileMessage of
course. But I do not believe the other processors would make much use of
this.
Greetings
Christian
Claus Ibsen schrieb:
> Hi Christian
>
> You can always try the latest version (SNAPSHOT) from:
> http://activemq.apache.org/camel/download.html
>
> See maven instructions in bottom if you use maven
>
> We are about to cut the first RC for 1.5. Only a few documentation issues left in the roadmap. I assume Hadrian will do this in next week.
>
> If there is still an issue in 1.5 with the file component it would be great to know now before the RC is cut. So please try to out asap.
>
>
> Med venlig hilsen
>
> Claus Ibsen
> ......................................
> Silverbullet
> Skovsgårdsvænget 21
> 8362 Hørning
> Tlf. +45 2962 7576
> Web: www.silverbullet.dk
>
> -----Original Message-----
> From: Christian Schneider [mailto:chris@die-schneider.net]
> Sent: 12. oktober 2008 12:19
> To: camel-user@activemq.apache.org
> Subject: Re: Problem with FileEndpoint
>
> Hi Claus,
>
> is the version 1.5 already out or do you mean I should simply compile
> the trunk and test this?
>
> Greetings
>
> Christian
>
> Claus Ibsen schrieb:
>
>> Hi Christian
>>
>> What version of Camel are you using? In 1.5 have many improvements in the File component. Could you try this version first? It should be better at handling such errors.
>>
>> If it's still a problem: Then please create a small sample of your project and create a ticket in JIRA.
>>
>>
>
>
>
--
Christian Schneider
---
http://www.liquid-reality.de
RE: Problem with FileEndpoint
Posted by Claus Ibsen <ci...@silverbullet.dk>.
Hi
Thanks for the workaround.
I would still however like to investigate the bug. I will create a ticket for it.
Some end-users need to access the java.io.File and not read the content into memory as they need to work on the file stream instead. Some end-users reads 1gb CSV files etc.
So it should work in all situations.
Med venlig hilsen
Claus Ibsen
......................................
Silverbullet
Skovsgårdsvænget 21
8362 Hørning
Tlf. +45 2962 7576
Web: www.silverbullet.dk
-----Original Message-----
From: Christian Schneider [mailto:chris@die-schneider.net]
Sent: 12. oktober 2008 18:51
To: camel-user@activemq.apache.org
Subject: Re: Problem with FileEndpoint
Hi Claus,
the problem also happens with camel 1.5-snapshot. I have found a
workaround though. When I put a .convertBodyTo(String.class) before the
bean processor it works. The behaviour is still not exactly how I would
expect it as the xml file with the error in it is copied to the ok dir
and the error dir. This is ok for me though.
The workaround also works for camel 1.4.0.
I have an idea what the problem could be. In my opinion the file is
opened when the conversion with jaxb starts and it is not closed
correctly when an exception happens. When I use the
convertBodyTo(String.class) the file is opened and correctly closed
there so the above problem can not happen in the JAXB type converter. I
have not debugged this. It is only what I guess from the behaviour.
BTW. Is there a reason why the FileEndpoint does not simply read the
file into a string? At least for smaller files this would be much
easier. For large files it could be better with the FileMessage of
course. But I do not believe the other processors would make much use of
this.
Greetings
Christian
Claus Ibsen schrieb:
> Hi Christian
>
> You can always try the latest version (SNAPSHOT) from:
> http://activemq.apache.org/camel/download.html
>
> See maven instructions in bottom if you use maven
>
> We are about to cut the first RC for 1.5. Only a few documentation issues left in the roadmap. I assume Hadrian will do this in next week.
>
> If there is still an issue in 1.5 with the file component it would be great to know now before the RC is cut. So please try to out asap.
>
>
> Med venlig hilsen
>
> Claus Ibsen
> ......................................
> Silverbullet
> Skovsgårdsvænget 21
> 8362 Hørning
> Tlf. +45 2962 7576
> Web: www.silverbullet.dk
>
> -----Original Message-----
> From: Christian Schneider [mailto:chris@die-schneider.net]
> Sent: 12. oktober 2008 12:19
> To: camel-user@activemq.apache.org
> Subject: Re: Problem with FileEndpoint
>
> Hi Claus,
>
> is the version 1.5 already out or do you mean I should simply compile
> the trunk and test this?
>
> Greetings
>
> Christian
>
> Claus Ibsen schrieb:
>
>> Hi Christian
>>
>> What version of Camel are you using? In 1.5 have many improvements in the File component. Could you try this version first? It should be better at handling such errors.
>>
>> If it's still a problem: Then please create a small sample of your project and create a ticket in JIRA.
>>
>>
>
>
>
--
Christian Schneider
---
http://www.liquid-reality.de
Re: Problem with FileEndpoint
Posted by Christian Schneider <ch...@die-schneider.net>.
Hi Claus,
the problem also happens with camel 1.5-snapshot. I have found a
workaround though. When I put a .convertBodyTo(String.class) before the
bean processor it works. The behaviour is still not exactly how I would
expect it as the xml file with the error in it is copied to the ok dir
and the error dir. This is ok for me though.
The workaround also works for camel 1.4.0.
I have an idea what the problem could be. In my opinion the file is
opened when the conversion with jaxb starts and it is not closed
correctly when an exception happens. When I use the
convertBodyTo(String.class) the file is opened and correctly closed
there so the above problem can not happen in the JAXB type converter. I
have not debugged this. It is only what I guess from the behaviour.
BTW. Is there a reason why the FileEndpoint does not simply read the
file into a string? At least for smaller files this would be much
easier. For large files it could be better with the FileMessage of
course. But I do not believe the other processors would make much use of
this.
Greetings
Christian
Claus Ibsen schrieb:
> Hi Christian
>
> You can always try the latest version (SNAPSHOT) from:
> http://activemq.apache.org/camel/download.html
>
> See maven instructions in bottom if you use maven
>
> We are about to cut the first RC for 1.5. Only a few documentation issues left in the roadmap. I assume Hadrian will do this in next week.
>
> If there is still an issue in 1.5 with the file component it would be great to know now before the RC is cut. So please try to out asap.
>
>
> Med venlig hilsen
>
> Claus Ibsen
> ......................................
> Silverbullet
> Skovsgårdsvænget 21
> 8362 Hørning
> Tlf. +45 2962 7576
> Web: www.silverbullet.dk
>
> -----Original Message-----
> From: Christian Schneider [mailto:chris@die-schneider.net]
> Sent: 12. oktober 2008 12:19
> To: camel-user@activemq.apache.org
> Subject: Re: Problem with FileEndpoint
>
> Hi Claus,
>
> is the version 1.5 already out or do you mean I should simply compile
> the trunk and test this?
>
> Greetings
>
> Christian
>
> Claus Ibsen schrieb:
>
>> Hi Christian
>>
>> What version of Camel are you using? In 1.5 have many improvements in the File component. Could you try this version first? It should be better at handling such errors.
>>
>> If it's still a problem: Then please create a small sample of your project and create a ticket in JIRA.
>>
>>
>
>
>
--
Christian Schneider
---
http://www.liquid-reality.de
RE: Problem with FileEndpoint
Posted by Claus Ibsen <ci...@silverbullet.dk>.
Hi Christian
You can always try the latest version (SNAPSHOT) from:
http://activemq.apache.org/camel/download.html
See maven instructions in bottom if you use maven
We are about to cut the first RC for 1.5. Only a few documentation issues left in the roadmap. I assume Hadrian will do this in next week.
If there is still an issue in 1.5 with the file component it would be great to know now before the RC is cut. So please try to out asap.
Med venlig hilsen
Claus Ibsen
......................................
Silverbullet
Skovsgårdsvænget 21
8362 Hørning
Tlf. +45 2962 7576
Web: www.silverbullet.dk
-----Original Message-----
From: Christian Schneider [mailto:chris@die-schneider.net]
Sent: 12. oktober 2008 12:19
To: camel-user@activemq.apache.org
Subject: Re: Problem with FileEndpoint
Hi Claus,
is the version 1.5 already out or do you mean I should simply compile
the trunk and test this?
Greetings
Christian
Claus Ibsen schrieb:
> Hi Christian
>
> What version of Camel are you using? In 1.5 have many improvements in the File component. Could you try this version first? It should be better at handling such errors.
>
> If it's still a problem: Then please create a small sample of your project and create a ticket in JIRA.
>
--
Christian Schneider
---
http://www.liquid-reality.de
Re: Problem with FileEndpoint
Posted by Christian Schneider <ch...@die-schneider.net>.
Hi Claus,
is the version 1.5 already out or do you mean I should simply compile
the trunk and test this?
Greetings
Christian
Claus Ibsen schrieb:
> Hi Christian
>
> What version of Camel are you using? In 1.5 have many improvements in the File component. Could you try this version first? It should be better at handling such errors.
>
> If it's still a problem: Then please create a small sample of your project and create a ticket in JIRA.
>
--
Christian Schneider
---
http://www.liquid-reality.de
RE: Problem with FileEndpoint
Posted by Claus Ibsen <ci...@silverbullet.dk>.
Hi Christian
What version of Camel are you using? In 1.5 have many improvements in the File component. Could you try this version first? It should be better at handling such errors.
If it's still a problem: Then please create a small sample of your project and create a ticket in JIRA.
Med venlig hilsen
Claus Ibsen
......................................
Silverbullet
Skovsgårdsvænget 21
8362 Hørning
Tlf. +45 2962 7576
Web: www.silverbullet.dk
-----Original Message-----
From: Christian Schneider [mailto:chris@die-schneider.net]
Sent: 12. oktober 2008 11:51
To: camel-user@activemq.apache.org
Subject: Problem with FileEndpoint
Hi,
I have a problem with FileEndpoint and invalid messages. I am reading
xml messages from a directory, unmarshal them and process them in a
bean. When the message is valid all works.
When the message is invalid I get the following warning:
Could not rename file from: c:\cameltest\in\shiporder_error.xml to
c:\cameltest\ok\shiporder_error.xml
So the message appears in the error dir but does not disappear in the in
dir. It seems like the file is still open in camel. There are two
problems with this.
Any ideas?
Greetings
Christian
But when the message
Here is my setup:
package jaxb;
import org.apache.camel.CamelContext;
import org.apache.camel.Exchange;
import org.apache.camel.Processor;
import org.apache.camel.builder.DeadLetterChannelBuilder;
import org.apache.camel.builder.ErrorHandlerBuilder;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.converter.jaxb.JaxbDataFormat;
import org.apache.camel.impl.DefaultCamelContext;
import org.apache.camel.model.ExceptionType;
import org.apache.camel.spi.RouteContext;
public class CamelTest {
/**
* @param args
* @throws Exception
*/
public static void main(String[] args) throws Exception {
CamelContext context = new DefaultCamelContext();
RouteBuilder builder = new RouteBuilder() {
@Override
public void configure() throws Exception {
errorHandler(deadLetterChannel("file:c:/cameltest/error?autoCreate=true"));
from("file:c:/cameltest/in?autoCreate=true&consumer.alwaysConsume=true&moveNamePrefix=c:/cameltest/ok/")
.bean(OrderProcessor.class);
}
};
context.addRoutes(builder);
context.start();
}
}
This is the log I get:
12.10.2008 11:48:17 org.apache.camel.impl.DefaultCamelContext <init>
INFO: JMX enabled. Using InstrumentationLifecycleStrategy.
12.10.2008 11:48:20 org.apache.camel.processor.Logger log
SCHWERWIEGEND: Failed delivery for exchangeId:
ID-notebookchris/50019-1223804899162/0-0. On delivery attempt: 0 caught:
org.apache.camel.RuntimeCamelException: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: The end-tag for element type "shiporder"
must end with a '>' delimiter.]
org.apache.camel.RuntimeCamelException: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: The end-tag for element type "shiporder"
must end with a '>' delimiter.]
at
org.apache.camel.converter.jaxb.FallbackTypeConverter.convertTo(FallbackTypeConverter.java:70)
at
org.apache.camel.impl.converter.DefaultTypeConverter.convertTo(DefaultTypeConverter.java:71)
at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:59)
at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:50)
at
org.apache.camel.builder.ExpressionBuilder$10.evaluate(ExpressionBuilder.java:247)
at
org.apache.camel.component.bean.MethodInfo$2.evaluate(MethodInfo.java:138)
at
org.apache.camel.component.bean.MethodInfo.createMethodInvocation(MethodInfo.java:57)
at
org.apache.camel.component.bean.BeanInfo.createInvocation(BeanInfo.java:115)
at
org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:103)
at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:69)
at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:155)
at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:91)
at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:39)
at
org.apache.camel.component.file.FileConsumer.pollFile(FileConsumer.java:128)
at
org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:77)
at
org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:84)
at
org.apache.camel.component.file.FileConsumer.poll(FileConsumer.java:57)
at
org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:65)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown
Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown
Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: The end-tag for element type "shiporder"
must end with a '>' delimiter.]
at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(Unknown
Source)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:506)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:215)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:184)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown
Source)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown
Source)
at
org.apache.camel.converter.jaxb.FallbackTypeConverter.unmarshall(FallbackTypeConverter.java:90)
at
org.apache.camel.converter.jaxb.FallbackTypeConverter.convertTo(FallbackTypeConverter.java:61)
... 27 more
Caused by: org.xml.sax.SAXParseException: The end-tag for element type
"shiporder" must end with a '>' delimiter.
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:211)
... 32 more
12.10.2008 11:48:21 org.apache.camel.processor.Logger log
SCHWERWIEGEND: Failed delivery for exchangeId:
ID-notebookchris/50019-1223804899162/0-0. On delivery attempt: 1 caught:
org.apache.camel.RuntimeCamelException: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: The end-tag for element type "shiporder"
must end with a '>' delimiter.]
org.apache.camel.RuntimeCamelException: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: The end-tag for element type "shiporder"
must end with a '>' delimiter.]
at
org.apache.camel.converter.jaxb.FallbackTypeConverter.convertTo(FallbackTypeConverter.java:70)
at
org.apache.camel.impl.converter.DefaultTypeConverter.convertTo(DefaultTypeConverter.java:71)
at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:59)
at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:50)
at
org.apache.camel.builder.ExpressionBuilder$10.evaluate(ExpressionBuilder.java:247)
at
org.apache.camel.component.bean.MethodInfo$2.evaluate(MethodInfo.java:138)
at
org.apache.camel.component.bean.MethodInfo.createMethodInvocation(MethodInfo.java:57)
at
org.apache.camel.component.bean.BeanInfo.createInvocation(BeanInfo.java:115)
at
org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:103)
at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:69)
at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:155)
at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:91)
at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:39)
at
org.apache.camel.component.file.FileConsumer.pollFile(FileConsumer.java:128)
at
org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:77)
at
org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:84)
at
org.apache.camel.component.file.FileConsumer.poll(FileConsumer.java:57)
at
org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:65)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown
Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown
Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: The end-tag for element type "shiporder"
must end with a '>' delimiter.]
at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(Unknown
Source)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:506)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:215)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:184)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown
Source)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown
Source)
at
org.apache.camel.converter.jaxb.FallbackTypeConverter.unmarshall(FallbackTypeConverter.java:90)
at
org.apache.camel.converter.jaxb.FallbackTypeConverter.convertTo(FallbackTypeConverter.java:61)
... 27 more
Caused by: org.xml.sax.SAXParseException: The end-tag for element type
"shiporder" must end with a '>' delimiter.
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:211)
... 32 more
12.10.2008 11:48:22 org.apache.camel.processor.Logger log
SCHWERWIEGEND: Failed delivery for exchangeId:
ID-notebookchris/50019-1223804899162/0-0. On delivery attempt: 2 caught:
org.apache.camel.RuntimeCamelException: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: The end-tag for element type "shiporder"
must end with a '>' delimiter.]
org.apache.camel.RuntimeCamelException: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: The end-tag for element type "shiporder"
must end with a '>' delimiter.]
at
org.apache.camel.converter.jaxb.FallbackTypeConverter.convertTo(FallbackTypeConverter.java:70)
at
org.apache.camel.impl.converter.DefaultTypeConverter.convertTo(DefaultTypeConverter.java:71)
at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:59)
at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:50)
at
org.apache.camel.builder.ExpressionBuilder$10.evaluate(ExpressionBuilder.java:247)
at
org.apache.camel.component.bean.MethodInfo$2.evaluate(MethodInfo.java:138)
at
org.apache.camel.component.bean.MethodInfo.createMethodInvocation(MethodInfo.java:57)
at
org.apache.camel.component.bean.BeanInfo.createInvocation(BeanInfo.java:115)
at
org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:103)
at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:69)
at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:155)
at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:91)
at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:39)
at
org.apache.camel.component.file.FileConsumer.pollFile(FileConsumer.java:128)
at
org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:77)
at
org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:84)
at
org.apache.camel.component.file.FileConsumer.poll(FileConsumer.java:57)
at
org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:65)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown
Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown
Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: The end-tag for element type "shiporder"
must end with a '>' delimiter.]
at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(Unknown
Source)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:506)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:215)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:184)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown
Source)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown
Source)
at
org.apache.camel.converter.jaxb.FallbackTypeConverter.unmarshall(FallbackTypeConverter.java:90)
at
org.apache.camel.converter.jaxb.FallbackTypeConverter.convertTo(FallbackTypeConverter.java:61)
... 27 more
Caused by: org.xml.sax.SAXParseException: The end-tag for element type
"shiporder" must end with a '>' delimiter.
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:211)
... 32 more
12.10.2008 11:48:23 org.apache.camel.processor.Logger log
SCHWERWIEGEND: Failed delivery for exchangeId:
ID-notebookchris/50019-1223804899162/0-0. On delivery attempt: 3 caught:
org.apache.camel.RuntimeCamelException: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: The end-tag for element type "shiporder"
must end with a '>' delimiter.]
org.apache.camel.RuntimeCamelException: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: The end-tag for element type "shiporder"
must end with a '>' delimiter.]
at
org.apache.camel.converter.jaxb.FallbackTypeConverter.convertTo(FallbackTypeConverter.java:70)
at
org.apache.camel.impl.converter.DefaultTypeConverter.convertTo(DefaultTypeConverter.java:71)
at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:59)
at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:50)
at
org.apache.camel.builder.ExpressionBuilder$10.evaluate(ExpressionBuilder.java:247)
at
org.apache.camel.component.bean.MethodInfo$2.evaluate(MethodInfo.java:138)
at
org.apache.camel.component.bean.MethodInfo.createMethodInvocation(MethodInfo.java:57)
at
org.apache.camel.component.bean.BeanInfo.createInvocation(BeanInfo.java:115)
at
org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:103)
at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:69)
at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:155)
at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:91)
at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:39)
at
org.apache.camel.component.file.FileConsumer.pollFile(FileConsumer.java:128)
at
org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:77)
at
org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:84)
at
org.apache.camel.component.file.FileConsumer.poll(FileConsumer.java:57)
at
org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:65)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown
Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown
Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: The end-tag for element type "shiporder"
must end with a '>' delimiter.]
at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(Unknown
Source)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:506)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:215)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:184)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown
Source)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown
Source)
at
org.apache.camel.converter.jaxb.FallbackTypeConverter.unmarshall(FallbackTypeConverter.java:90)
at
org.apache.camel.converter.jaxb.FallbackTypeConverter.convertTo(FallbackTypeConverter.java:61)
... 27 more
Caused by: org.xml.sax.SAXParseException: The end-tag for element type
"shiporder" must end with a '>' delimiter.
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:211)
... 32 more
12.10.2008 11:48:24 org.apache.camel.processor.Logger log
SCHWERWIEGEND: Failed delivery for exchangeId:
ID-notebookchris/50019-1223804899162/0-0. On delivery attempt: 4 caught:
org.apache.camel.RuntimeCamelException: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: The end-tag for element type "shiporder"
must end with a '>' delimiter.]
org.apache.camel.RuntimeCamelException: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: The end-tag for element type "shiporder"
must end with a '>' delimiter.]
at
org.apache.camel.converter.jaxb.FallbackTypeConverter.convertTo(FallbackTypeConverter.java:70)
at
org.apache.camel.impl.converter.DefaultTypeConverter.convertTo(DefaultTypeConverter.java:71)
at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:59)
at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:50)
at
org.apache.camel.builder.ExpressionBuilder$10.evaluate(ExpressionBuilder.java:247)
at
org.apache.camel.component.bean.MethodInfo$2.evaluate(MethodInfo.java:138)
at
org.apache.camel.component.bean.MethodInfo.createMethodInvocation(MethodInfo.java:57)
at
org.apache.camel.component.bean.BeanInfo.createInvocation(BeanInfo.java:115)
at
org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:103)
at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:69)
at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:155)
at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:91)
at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:39)
at
org.apache.camel.component.file.FileConsumer.pollFile(FileConsumer.java:128)
at
org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:77)
at
org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:84)
at
org.apache.camel.component.file.FileConsumer.poll(FileConsumer.java:57)
at
org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:65)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown
Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown
Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: The end-tag for element type "shiporder"
must end with a '>' delimiter.]
at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(Unknown
Source)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:506)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:215)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:184)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown
Source)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown
Source)
at
org.apache.camel.converter.jaxb.FallbackTypeConverter.unmarshall(FallbackTypeConverter.java:90)
at
org.apache.camel.converter.jaxb.FallbackTypeConverter.convertTo(FallbackTypeConverter.java:61)
... 27 more
Caused by: org.xml.sax.SAXParseException: The end-tag for element type
"shiporder" must end with a '>' delimiter.
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:211)
... 32 more
12.10.2008 11:48:25 org.apache.camel.processor.Logger log
SCHWERWIEGEND: Failed delivery for exchangeId:
ID-notebookchris/50019-1223804899162/0-0. On delivery attempt: 5 caught:
org.apache.camel.RuntimeCamelException: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: The end-tag for element type "shiporder"
must end with a '>' delimiter.]
org.apache.camel.RuntimeCamelException: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: The end-tag for element type "shiporder"
must end with a '>' delimiter.]
at
org.apache.camel.converter.jaxb.FallbackTypeConverter.convertTo(FallbackTypeConverter.java:70)
at
org.apache.camel.impl.converter.DefaultTypeConverter.convertTo(DefaultTypeConverter.java:71)
at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:59)
at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:50)
at
org.apache.camel.builder.ExpressionBuilder$10.evaluate(ExpressionBuilder.java:247)
at
org.apache.camel.component.bean.MethodInfo$2.evaluate(MethodInfo.java:138)
at
org.apache.camel.component.bean.MethodInfo.createMethodInvocation(MethodInfo.java:57)
at
org.apache.camel.component.bean.BeanInfo.createInvocation(BeanInfo.java:115)
at
org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:103)
at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:69)
at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:155)
at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:91)
at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:39)
at
org.apache.camel.component.file.FileConsumer.pollFile(FileConsumer.java:128)
at
org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:77)
at
org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:84)
at
org.apache.camel.component.file.FileConsumer.poll(FileConsumer.java:57)
at
org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:65)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown
Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown
Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: The end-tag for element type "shiporder"
must end with a '>' delimiter.]
at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(Unknown
Source)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:506)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:215)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:184)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown
Source)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown
Source)
at
org.apache.camel.converter.jaxb.FallbackTypeConverter.unmarshall(FallbackTypeConverter.java:90)
at
org.apache.camel.converter.jaxb.FallbackTypeConverter.convertTo(FallbackTypeConverter.java:61)
... 27 more
Caused by: org.xml.sax.SAXParseException: The end-tag for element type
"shiporder" must end with a '>' delimiter.
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:211)
... 32 more
12.10.2008 11:48:25
org.apache.camel.component.file.strategy.RenameFileProcessStrategy commit
WARNUNG: Could not rename file from: c:\cameltest\in\shiporder_error.xml
to c:\cameltest\ok\shiporder_error.xml
12.10.2008 11:48:25 org.apache.camel.processor.Logger log
SCHWERWIEGEND: Failed delivery for exchangeId:
ID-notebookchris/50019-1223804899162/0-0. Handled by the failure
processor: sendTo(Endpoint[file:c:/cameltest/error?autoCreate=true])
--
Christian Schneider
---
http://www.liquid-reality.de