Hi

Could you post the stacktrace?

I am afraid I currently don't have much time, but I will look into your issue 
when there is free time in the weekend.

If possible create a ticket in JIRA where you can attach your code as a .zip 
file. This will help much as I we will be able to pick up the issue much faster.



Med venlig hilsen
 
Claus Ibsen
......................................
Silverbullet
Skovsgårdsvænget 21
8362 Hørning
Tlf. +45 2962 7576
Web: www.silverbullet.dk

-----Original Message-----
From: harpritt [mailto:[EMAIL PROTECTED] 
Sent: 28. oktober 2008 17:41
To: [email protected]
Subject: FileNotFoundException when using the file endpoint


Hi

Im about an inch away from a working system, dead excited!

but i cant seem to get past this problem

The XML is as below. What i do is pick up all the files from my "IN"
directory and then examine filenames to first reorder and then route to the
appropriate queue.

myRecipientsFromFileName is a simple list

                <from uri="file://C:/smsMom/mailLink/in"/>
                <resequencer>
                <methodCall bean="smsMomFileComponent" method="getSeqnum"/>
                <recipientList>
                        <methodCall bean="smsMomFileComponent"
method="myRecipientsFromFileName"/>
                </recipientList>
                <stream-config capacity="5000" timeout="4000"/>
                </resequencer>



when i drop a file off I get a file not found exception for the origional
location, which is true as its been moved into .camel. so i added the
delete=false parameter to the file endpoint to stop it being moved.

<from uri="file://C:/smsMom/mailLink/in?delete=false"/>

...... but i still get the same results.

Do you guys think its because i have my recipientList inside a resequencer.

As allways all help is greatly appreciated

Harpritt

-----------------------------------------------------
WARNING: Endpoint[activemq:SHORE.*] consumer caught an exception while
processing JMS message: ActiveMQObjectMessage {commandId = 5,
responseRequired = true, messageId =
ID:HARPRITTKALSI01-1793-1225211132364-2:12:1:1:1, originalDestination =
null, originalTransactionId = null, producerId =
ID:HARPRITTKALSI01-1793-1225211132364-2:12:1:1, destination =
queue://SHORE.IFORMSS, transactionId = null, expiration = 0, timestamp =
1225211206128, arrival = 0, brokerInTime = 1225211206128, brokerOutTime =
1225211206128, correlationId = null, replyTo = null, persistent = true, type
= null, priority = 4, groupID = null, groupSequence = 0, targetConsumerId =
null, compressed = false, userID = null, content =
[EMAIL PROTECTED], marshalledProperties =
[EMAIL PROTECTED], dataStructure = null,
redeliveryCounter = 0, size = 1271, properties =
{org_apache_camel_file_name=AN_FTS#QN_SHOREdotIFORMSS#RT_MBXVESSEL#TS_1225208863752#SN_5},
readOnlyProperties = true, readOnlyBody = true, droppable = false}
org.apache.camel.RuntimeCamelException:
org.apache.camel.RuntimeCamelException: java.io.FileNotFoundException:
C:\smsMom\mailLink\in\AN_FTS#QN_SHOREdotIFORMSS#RT_MBXVESSEL#TS_1225208863752#SN_5
(The system cannot find the file specified)
        at
org.apache.camel.component.jms.EndpointMessageListener.onMessage(EndpointMessageListener.java:71)
        at
org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:531)
        at
org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:466)
        at
org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:435)
        at
org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:322)
        at
org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:260)
        at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:944)
        at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:875)
        at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.camel.RuntimeCamelException:
java.io.FileNotFoundException:
C:\smsMom\mailLink\in\AN_FTS#QN_SHOREdotIFORMSS#RT_MBXVESSEL#TS_1225208863752#SN_5
(The system cannot find the file specified)
        at 
org.apache.camel.util.ObjectHelper.invokeMethod(ObjectHelper.java:411)
        at
org.apache.camel.impl.converter.StaticMethodTypeConverter.convertTo(StaticMethodTypeConverter.java:42)
        at
org.apache.camel.impl.converter.DefaultTypeConverter.convertTo(DefaultTypeConverter.java:67)
        at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:59)
        at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:50)
        at
org.apache.camel.util.ExchangeHelper.getMandatoryInBody(ExchangeHelper.java:125)
        at
org.apache.camel.component.file.FileProducer.process(FileProducer.java:60)
        at
org.apache.camel.component.file.FileProducer.process(FileProducer.java:55)
        at
org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:43)
        at 
org.apache.camel.processor.SendProcessor.process(SendProcessor.java:75)
        at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
        at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:155)
        at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:91)
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:85)
        at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
        at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:39)
        at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:41)
        at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:66)
        at
org.apache.camel.component.jms.EndpointMessageListener.onMessage(EndpointMessageListener.java:68)
        ... 8 more
Caused by: java.io.FileNotFoundException:
C:\smsMom\mailLink\in\AN_FTS#QN_SHOREdotIFORMSS#RT_MBXVESSEL#TS_1225208863752#SN_5
(The system cannot find the file specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at
org.apache.camel.converter.IOConverter.toInputStream(IOConverter.java:82)
        at sun.reflect.GeneratedMethodAccessor63.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
org.apache.camel.util.ObjectHelper.invokeMethod(ObjectHelper.java:407)
        ... 27 more
28-Oct-2008 16:27:16
org.springframework.jms.listener.AbstractMessageListenerContainer
handleListenerException
WARNING: Execution of JMS message listener failed
org.apache.camel.RuntimeCamelException:
org.apache.camel.RuntimeCamelException: java.io.FileNotFoundException:
C:\smsMom\mailLink\in\AN_FTS#QN_SHOREdotIFORMSS#RT_MBXVESSEL#TS_1225208863752#SN_5
(The system cannot find the file specified)
        at
org.apache.camel.component.jms.EndpointMessageListener.onMessage(EndpointMessageListener.java:71)
        at
org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:531)
        at
org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:466)
        at
org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:435)
        at
org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:322)
        at
org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:260)
        at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:944)
        at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:875)
        at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.camel.RuntimeCamelException:
java.io.FileNotFoundException:
C:\smsMom\mailLink\in\AN_FTS#QN_SHOREdotIFORMSS#RT_MBXVESSEL#TS_1225208863752#SN_5
(The system cannot find the file specified)
        at 
org.apache.camel.util.ObjectHelper.invokeMethod(ObjectHelper.java:411)
        at
org.apache.camel.impl.converter.StaticMethodTypeConverter.convertTo(StaticMethodTypeConverter.java:42)
        at
org.apache.camel.impl.converter.DefaultTypeConverter.convertTo(DefaultTypeConverter.java:67)
        at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:59)
        at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:50)
        at
org.apache.camel.util.ExchangeHelper.getMandatoryInBody(ExchangeHelper.java:125)
        at
org.apache.camel.component.file.FileProducer.process(FileProducer.java:60)
        at
org.apache.camel.component.file.FileProducer.process(FileProducer.java:55)
        at
org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:43)
        at 
org.apache.camel.processor.SendProcessor.process(SendProcessor.java:75)
        at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
        at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:155)
        at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:91)
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:85)
        at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
        at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:39)
        at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:41)
        at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:66)
        at
org.apache.camel.component.jms.EndpointMessageListener.onMessage(EndpointMessageListener.java:68)
        ... 8 more

-- 
View this message in context: 
http://www.nabble.com/FileNotFoundException-when-using-the-file-endpoint-tp20211016s22882p20211016.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to