[ https://issues.apache.org/activemq/browse/SM-607?page=comments#action_37033 ] Robert Ottaway commented on SM-607: -----------------------------------
The problem can be recreated pretty easily. Use a fresh install of Smix. Start Smix and tail the output. Change to the SMIX_HOME directory and then type 'cp components/*.zip install/'. This bombards the Smix app with components to install. If you do this a number of time you eventually will see this exception: <stack-trace><![CDATA[javax.jbi.management.DeploymentException: java.util.zip.ZipException: error in opening zip file at org.apache.servicemix.jbi.framework.AutoDeploymentService.unpackLocation(AutoDeploymentService.java:537) at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:199) at org.apache.servicemix.jbi.framework.AutoDeploymentService$2.run(AutoDeploymentService.java:592) at org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:291) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Thread.java:613) Caused by: java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(ZipFile.java:203) at java.util.zip.ZipFile.<init>(ZipFile.java:234) at org.apache.servicemix.jbi.util.FileUtil.archiveContainsEntry(FileUtil.java:170) at org.apache.servicemix.jbi.framework.AutoDeploymentService.unpackLocation(AutoDeploymentService.java:529) ... 5 more ]]></stack-trace> > Files dropped into the install directory sometimes result in a "file in use > by another process" error > ----------------------------------------------------------------------------------------------------- > > Key: SM-607 > URL: https://issues.apache.org/activemq/browse/SM-607 > Project: ServiceMix > Issue Type: Bug > Components: servicemix-core > Affects Versions: 3.0 > Environment: Windows XP SP2, Java 5 > Reporter: Jamie McCrindle > > Files dropped into the install directory sometimes result in a "file in use > by another process" error. I assume that this is a race condition where the > operating system hasn't completed copying the files when servicemix picks > them up and so the exception is thrown. It's intermittent and a workaround is > to drop the "monitorInterval" down from 1s to 10s. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira