file:poller -> Could not delete file and get an IOException in case of
deleting
---------------------------------------------------------------------------------
Key: SMX4-121
URL: https://issues.apache.org/activemq/browse/SMX4-121
Project: ServiceMix 4
Issue Type: Bug
Environment: FUSE ESB 4.0 Preview 2, Windows XP
Reporter: Martin Kuhn
I try to send a file to a servicemix-bean (via file:poller). The bean get the
file but I get an exception.
After burdensome investigations and debugging I realized that
that the file is locked when the file should be deleted (FilePollerEndpoint ->
method process(MessageExchange exchange) ). This prevents the successfully
deleting.
When I debug and remove the lock from the file "manually" before the delete
method is executed I get no exception.
This seems for me to be an error. The same example works when I try it under 3.x
The Exception:
java.io.IOException: Could not delete file \mkx_esb\transactions_in\legal.xml
at
org.apache.servicemix.file.FilePollerEndpoint.process(FilePollerEndpoint.java:371)
at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:596)
at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:567)
at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchangeInTx(AsyncBaseLifeCycle.java:452)
at
org.apache.servicemix.common.AsyncBaseLifeCycle$2.run(AsyncBaseLifeCycle.java:338)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
<beans xmlns:bean="http://servicemix.apache.org/bean/1.0"
xmlns:mesb="urn:mkx:esb:host:transactions">
<bean:endpoint service="mesb:hostTransactionsProcessor"
endpoint="hostTransactionsEndpoint"
bean="#hostTransactionsProcessorBean" />
<bean id="hostTransactionsProcessorBean"
class="at.mkx.esb.host.transactions.processor.ProcessorBean" />
</beans>
<beans xmlns:file="http://servicemix.apache.org/file/1.0"
xmlns:mesb="urn:mkx:esb:host:transactions">
<file:poller service="mesb:hostTransactionsReader"
endpoint="poller" file="file:/mkx_esb/transactions_in"
targetService="mesb:hostTransactionsProcessor"
targetEndpoint="hostTransactionsEndpoint"
deleteFile="true"
autoCreateDirectory="true"
period="20000"
delay="20000"
/>
<!--
autoCreateDirectory="true"
archive="file:/mkx_esb/transactions_archive"
-->
</beans>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.