I am trying to use the mina component and am getting a number of exceptions. Basically I have modified the example that routes from one file to another to instead route from a file to a udp endpoint. My route builder looks like the following:

context.addRoutes(new RouteBuilder() {
        public void configure() {
                from("file:///tmp/test-in.txt").to("mina:udp://localhost:5555");
        }
});

When I try to run it I get the follow exceptions:

[EMAIL PROTECTED] DeadLetterChannel ERROR On delivery attempt: 0 caught: java.lang.IllegalStateException: Not started yet!
java.lang.IllegalStateException: Not started yet!
at org.apache.camel.component.mina.MinaProducer.process(MinaProducer.java: 48) at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:65) at org .apache .camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:83) at org .apache.camel.component.file.FileConsumer.pollFile(FileConsumer.java:89) at org .apache .camel .component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:49) at org .apache .camel .component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:56) at org.apache.camel.component.file.FileConsumer.poll(FileConsumer.java:43) at org .apache .camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:63) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java: 417) at java.util.concurrent.FutureTask $Sync.innerRunAndReset(FutureTask.java:280)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
at java.util.concurrent.ScheduledThreadPoolExecutor $ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65) at java.util.concurrent.ScheduledThreadPoolExecutor $ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142) at java.util.concurrent.ScheduledThreadPoolExecutor $ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166) at java.util.concurrent.ThreadPoolExecutor $Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor $Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:613)
[EMAIL PROTECTED] DeadLetterChannel ERROR On delivery attempt: 1 caught: java.lang.IllegalStateException: Not started yet!
java.lang.IllegalStateException: Not started yet!
at org.apache.camel.component.mina.MinaProducer.process(MinaProducer.java: 48) at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:65) at org .apache .camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:83) at org .apache.camel.component.file.FileConsumer.pollFile(FileConsumer.java:89) at org .apache .camel .component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:49) at org .apache .camel .component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:56) at org.apache.camel.component.file.FileConsumer.poll(FileConsumer.java:43) at org .apache .camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:63) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java: 417) at java.util.concurrent.FutureTask $Sync.innerRunAndReset(FutureTask.java:280)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
at java.util.concurrent.ScheduledThreadPoolExecutor $ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65) at java.util.concurrent.ScheduledThreadPoolExecutor $ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142) at java.util.concurrent.ScheduledThreadPoolExecutor $ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166) at java.util.concurrent.ThreadPoolExecutor $Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor $Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:613)
[EMAIL PROTECTED] DeadLetterChannel ERROR On delivery attempt: 2 caught: java.lang.IllegalStateException: Not started yet!
java.lang.IllegalStateException: Not started yet!
at org.apache.camel.component.mina.MinaProducer.process(MinaProducer.java: 48) at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:65) at org .apache .camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:83) at org .apache.camel.component.file.FileConsumer.pollFile(FileConsumer.java:89) at org .apache .camel .component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:49) at org .apache .camel .component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:56) at org.apache.camel.component.file.FileConsumer.poll(FileConsumer.java:43) at org .apache .camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:63) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java: 417) at java.util.concurrent.FutureTask $Sync.innerRunAndReset(FutureTask.java:280)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
at java.util.concurrent.ScheduledThreadPoolExecutor $ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65) at java.util.concurrent.ScheduledThreadPoolExecutor $ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142) at java.util.concurrent.ScheduledThreadPoolExecutor $ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166) at java.util.concurrent.ThreadPoolExecutor $Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor $Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:613)
[EMAIL PROTECTED] DeadLetterChannel ERROR On delivery attempt: 3 caught: java.lang.IllegalStateException: Not started yet!
java.lang.IllegalStateException: Not started yet!
at org.apache.camel.component.mina.MinaProducer.process(MinaProducer.java: 48) at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:65) at org .apache .camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:83) at org .apache.camel.component.file.FileConsumer.pollFile(FileConsumer.java:89) at org .apache .camel .component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:49) at org .apache .camel .component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:56) at org.apache.camel.component.file.FileConsumer.poll(FileConsumer.java:43) at org .apache .camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:63) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java: 417) at java.util.concurrent.FutureTask $Sync.innerRunAndReset(FutureTask.java:280)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
at java.util.concurrent.ScheduledThreadPoolExecutor $ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65) at java.util.concurrent.ScheduledThreadPoolExecutor $ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142) at java.util.concurrent.ScheduledThreadPoolExecutor $ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166) at java.util.concurrent.ThreadPoolExecutor $Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor $Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:613)
[EMAIL PROTECTED] DeadLetterChannel ERROR On delivery attempt: 4 caught: java.lang.IllegalStateException: Not started yet!
java.lang.IllegalStateException: Not started yet!
at org.apache.camel.component.mina.MinaProducer.process(MinaProducer.java: 48) at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:65) at org .apache .camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:83) at org .apache.camel.component.file.FileConsumer.pollFile(FileConsumer.java:89) at org .apache .camel .component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:49) at org .apache .camel .component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:56) at org.apache.camel.component.file.FileConsumer.poll(FileConsumer.java:43) at org .apache .camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:63) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java: 417) at java.util.concurrent.FutureTask $Sync.innerRunAndReset(FutureTask.java:280)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
at java.util.concurrent.ScheduledThreadPoolExecutor $ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65) at java.util.concurrent.ScheduledThreadPoolExecutor $ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142) at java.util.concurrent.ScheduledThreadPoolExecutor $ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166) at java.util.concurrent.ThreadPoolExecutor $Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor $Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:613)
[EMAIL PROTECTED] DeadLetterChannel ERROR On delivery attempt: 5 caught: java.lang.IllegalStateException: Not started yet!
java.lang.IllegalStateException: Not started yet!
at org.apache.camel.component.mina.MinaProducer.process(MinaProducer.java: 48) at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:65) at org .apache .camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:83) at org .apache.camel.component.file.FileConsumer.pollFile(FileConsumer.java:89) at org .apache .camel .component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:49) at org .apache .camel .component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:56) at org.apache.camel.component.file.FileConsumer.poll(FileConsumer.java:43) at org .apache .camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:63) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java: 417) at java.util.concurrent.FutureTask $Sync.innerRunAndReset(FutureTask.java:280)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
at java.util.concurrent.ScheduledThreadPoolExecutor $ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65) at java.util.concurrent.ScheduledThreadPoolExecutor $ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142) at java.util.concurrent.ScheduledThreadPoolExecutor $ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166) at java.util.concurrent.ThreadPoolExecutor $Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor $Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:613)
[EMAIL PROTECTED] DeadLetterChannel:error INFO Exchange[FileMessage: /tmp/test-in.txt/test]




Have I misconfigured something? Anyone else seen this error before while trying to use the mina component? The other thing I noticed is that some of the docs on the website refer to the URI as udp:// hostname[:port] and not mina:udp://hostname[:port], but it fails quickly if the uri is not prefixed with mina:


Thanks,

James

Reply via email to