You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Jean Jacobs (JIRA)" <ji...@apache.org> on 2009/07/16 16:41:33 UTC
[jira] Created: (SMX4-322) Copying zip file to deploy directory on
Windows causes error from java.util.zip.ZipFile file in use by another
process
Copying zip file to deploy directory on Windows causes error from java.util.zip.ZipFile file in use by another process
----------------------------------------------------------------------------------------------------------------------
Key: SMX4-322
URL: https://issues.apache.org/activemq/browse/SMX4-322
Project: ServiceMix 4
Issue Type: Bug
Affects Versions: 4.1.0
Environment: Windows XP SP2, Sun JVM 1.5.0
Reporter: Jean Jacobs
Created a JBI SA zip file. Copied it to the <install-dir>/deploy directory using Windows Explorer copy/paste. When the SA attempted to be started, the following error was seen in the servicemix.log. I was able to get the zip file deployed by cutting and pasting the file (rather than copy/paste).
java.io.FileNotFoundException: C:\sandbox_fuse\fuse-esb-4.1.0.1\deploy\transaction-testcase-sa-2.0-SNAPSHOT.zip (The process cannot access the file because it is being used by another process)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:203)
at java.util.jar.JarFile.<init>(JarFile.java:132)
at java.util.jar.JarFile.<init>(JarFile.java:97)
at org.apache.servicemix.kernel.filemonitor.FileMonitor.transformArtifact(FileMonitor.java:357)
at org.apache.servicemix.kernel.filemonitor.FileMonitor.onFilesChanged(FileMonitor.java:270)
at org.apache.servicemix.kernel.filemonitor.FileMonitor$1.filesChanged(FileMonitor.java:151)
at org.apache.servicemix.kernel.filemonitor.Scanner.reportBulkChanges(Scanner.java:431)
at org.apache.servicemix.kernel.filemonitor.Scanner.reportDifferences(Scanner.java:327)
at org.apache.servicemix.kernel.filemonitor.Scanner.scan(Scanner.java:261)
at org.apache.servicemix.kernel.filemonitor.Scanner$1.run(Scanner.java:221)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (SMX4-322) Copying zip file to deploy directory on
Windows causes error from java.util.zip.ZipFile file in use by another
process
Posted by "Lars Heinemann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMX4-322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lars Heinemann reassigned SMX4-322:
-----------------------------------
Assignee: Lars Heinemann
> Copying zip file to deploy directory on Windows causes error from java.util.zip.ZipFile file in use by another process
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: SMX4-322
> URL: https://issues.apache.org/activemq/browse/SMX4-322
> Project: ServiceMix 4
> Issue Type: Bug
> Affects Versions: 4.1.0
> Environment: Windows XP SP2, Sun JVM 1.5.0
> Reporter: Jean Jacobs
> Assignee: Lars Heinemann
> Attachments: FileMonitor.java.patch
>
>
> Created a JBI SA zip file. Copied it to the <install-dir>/deploy directory using Windows Explorer copy/paste. When the SA attempted to be started, the following error was seen in the servicemix.log. I was able to get the zip file deployed by cutting and pasting the file (rather than copy/paste).
> java.io.FileNotFoundException: C:\sandbox_fuse\fuse-esb-4.1.0.1\deploy\transaction-testcase-sa-2.0-SNAPSHOT.zip (The process cannot access the file because it is being used by another process)
> at java.util.zip.ZipFile.open(Native Method)
> at java.util.zip.ZipFile.<init>(ZipFile.java:203)
> at java.util.jar.JarFile.<init>(JarFile.java:132)
> at java.util.jar.JarFile.<init>(JarFile.java:97)
> at org.apache.servicemix.kernel.filemonitor.FileMonitor.transformArtifact(FileMonitor.java:357)
> at org.apache.servicemix.kernel.filemonitor.FileMonitor.onFilesChanged(FileMonitor.java:270)
> at org.apache.servicemix.kernel.filemonitor.FileMonitor$1.filesChanged(FileMonitor.java:151)
> at org.apache.servicemix.kernel.filemonitor.Scanner.reportBulkChanges(Scanner.java:431)
> at org.apache.servicemix.kernel.filemonitor.Scanner.reportDifferences(Scanner.java:327)
> at org.apache.servicemix.kernel.filemonitor.Scanner.scan(Scanner.java:261)
> at org.apache.servicemix.kernel.filemonitor.Scanner$1.run(Scanner.java:221)
> at java.util.TimerThread.mainLoop(Timer.java:512)
> at java.util.TimerThread.run(Timer.java:462)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Issue Comment Edited: (SMX4-322) Copying zip file to deploy
directory on Windows causes error from java.util.zip.ZipFile file in use by
another process
Posted by "Lars Heinemann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMX4-322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=52855#action_52855 ]
Lars Heinemann edited comment on SMX4-322 at 7/17/09 1:14 AM:
--------------------------------------------------------------
First of all this is the JIRA of Apache ServiceMix and not the one of Fuse ESB. I just wondered about the version 4.1.0 because it is not even released yet. Beside this the error seems to be normal in my opinion because the file monitor which watches the deploy folder recognized that the file is still being copied so it just spits out this error and tries again later on (at least I think so).
After cut&paste the file again inside deploy folder it got deployed so maybe the only thing is to take a look at the monitor class what happens to artifacts which had an error on deploy time. Seems it will not be tried again.
was (Author: lhein):
First of all this is the JIRA of Apache ServiceMix and not the one of Fuse ESB. I just wondered about the version 4.1.0 because it is not even released yet. Beside this the error seems to be normal in my opinion because the file monitor which watches the deploy folder recognized that the file is still being copied so it just spits out this error and tries again later on (at least I think so).
Is there a try to deploy this SA afterwards (after copying is finished) ?
> Copying zip file to deploy directory on Windows causes error from java.util.zip.ZipFile file in use by another process
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: SMX4-322
> URL: https://issues.apache.org/activemq/browse/SMX4-322
> Project: ServiceMix 4
> Issue Type: Bug
> Affects Versions: 4.1.0
> Environment: Windows XP SP2, Sun JVM 1.5.0
> Reporter: Jean Jacobs
>
> Created a JBI SA zip file. Copied it to the <install-dir>/deploy directory using Windows Explorer copy/paste. When the SA attempted to be started, the following error was seen in the servicemix.log. I was able to get the zip file deployed by cutting and pasting the file (rather than copy/paste).
> java.io.FileNotFoundException: C:\sandbox_fuse\fuse-esb-4.1.0.1\deploy\transaction-testcase-sa-2.0-SNAPSHOT.zip (The process cannot access the file because it is being used by another process)
> at java.util.zip.ZipFile.open(Native Method)
> at java.util.zip.ZipFile.<init>(ZipFile.java:203)
> at java.util.jar.JarFile.<init>(JarFile.java:132)
> at java.util.jar.JarFile.<init>(JarFile.java:97)
> at org.apache.servicemix.kernel.filemonitor.FileMonitor.transformArtifact(FileMonitor.java:357)
> at org.apache.servicemix.kernel.filemonitor.FileMonitor.onFilesChanged(FileMonitor.java:270)
> at org.apache.servicemix.kernel.filemonitor.FileMonitor$1.filesChanged(FileMonitor.java:151)
> at org.apache.servicemix.kernel.filemonitor.Scanner.reportBulkChanges(Scanner.java:431)
> at org.apache.servicemix.kernel.filemonitor.Scanner.reportDifferences(Scanner.java:327)
> at org.apache.servicemix.kernel.filemonitor.Scanner.scan(Scanner.java:261)
> at org.apache.servicemix.kernel.filemonitor.Scanner$1.run(Scanner.java:221)
> at java.util.TimerThread.mainLoop(Timer.java:512)
> at java.util.TimerThread.run(Timer.java:462)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (SMX4-322) Copying zip file to deploy directory on
Windows causes error from java.util.zip.ZipFile file in use by another
process
Posted by "Lars Heinemann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMX4-322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lars Heinemann resolved SMX4-322.
---------------------------------
Resolution: Fixed
Fix Version/s: 4.1.0
The problem has been fixed in the Felix project and will be hopefully part of ServiceMix 4.1.0.
> Copying zip file to deploy directory on Windows causes error from java.util.zip.ZipFile file in use by another process
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: SMX4-322
> URL: https://issues.apache.org/activemq/browse/SMX4-322
> Project: ServiceMix 4
> Issue Type: Bug
> Affects Versions: 4.0.0
> Environment: Windows XP SP2, Sun JVM 1.5.0
> Reporter: Jean Jacobs
> Assignee: Lars Heinemann
> Fix For: 4.1.0
>
> Attachments: FileMonitor.java.patch
>
>
> Created a JBI SA zip file. Copied it to the <install-dir>/deploy directory using Windows Explorer copy/paste. When the SA attempted to be started, the following error was seen in the servicemix.log. I was able to get the zip file deployed by cutting and pasting the file (rather than copy/paste).
> java.io.FileNotFoundException: C:\sandbox_fuse\fuse-esb-4.1.0.1\deploy\transaction-testcase-sa-2.0-SNAPSHOT.zip (The process cannot access the file because it is being used by another process)
> at java.util.zip.ZipFile.open(Native Method)
> at java.util.zip.ZipFile.<init>(ZipFile.java:203)
> at java.util.jar.JarFile.<init>(JarFile.java:132)
> at java.util.jar.JarFile.<init>(JarFile.java:97)
> at org.apache.servicemix.kernel.filemonitor.FileMonitor.transformArtifact(FileMonitor.java:357)
> at org.apache.servicemix.kernel.filemonitor.FileMonitor.onFilesChanged(FileMonitor.java:270)
> at org.apache.servicemix.kernel.filemonitor.FileMonitor$1.filesChanged(FileMonitor.java:151)
> at org.apache.servicemix.kernel.filemonitor.Scanner.reportBulkChanges(Scanner.java:431)
> at org.apache.servicemix.kernel.filemonitor.Scanner.reportDifferences(Scanner.java:327)
> at org.apache.servicemix.kernel.filemonitor.Scanner.scan(Scanner.java:261)
> at org.apache.servicemix.kernel.filemonitor.Scanner$1.run(Scanner.java:221)
> at java.util.TimerThread.mainLoop(Timer.java:512)
> at java.util.TimerThread.run(Timer.java:462)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SMX4-322) Copying zip file to deploy directory on
Windows causes error from java.util.zip.ZipFile file in use by another
process
Posted by "Lars Heinemann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMX4-322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lars Heinemann updated SMX4-322:
--------------------------------
Attachment: FileMonitor.java.patch
added patch
> Copying zip file to deploy directory on Windows causes error from java.util.zip.ZipFile file in use by another process
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: SMX4-322
> URL: https://issues.apache.org/activemq/browse/SMX4-322
> Project: ServiceMix 4
> Issue Type: Bug
> Affects Versions: 4.1.0
> Environment: Windows XP SP2, Sun JVM 1.5.0
> Reporter: Jean Jacobs
> Attachments: FileMonitor.java.patch
>
>
> Created a JBI SA zip file. Copied it to the <install-dir>/deploy directory using Windows Explorer copy/paste. When the SA attempted to be started, the following error was seen in the servicemix.log. I was able to get the zip file deployed by cutting and pasting the file (rather than copy/paste).
> java.io.FileNotFoundException: C:\sandbox_fuse\fuse-esb-4.1.0.1\deploy\transaction-testcase-sa-2.0-SNAPSHOT.zip (The process cannot access the file because it is being used by another process)
> at java.util.zip.ZipFile.open(Native Method)
> at java.util.zip.ZipFile.<init>(ZipFile.java:203)
> at java.util.jar.JarFile.<init>(JarFile.java:132)
> at java.util.jar.JarFile.<init>(JarFile.java:97)
> at org.apache.servicemix.kernel.filemonitor.FileMonitor.transformArtifact(FileMonitor.java:357)
> at org.apache.servicemix.kernel.filemonitor.FileMonitor.onFilesChanged(FileMonitor.java:270)
> at org.apache.servicemix.kernel.filemonitor.FileMonitor$1.filesChanged(FileMonitor.java:151)
> at org.apache.servicemix.kernel.filemonitor.Scanner.reportBulkChanges(Scanner.java:431)
> at org.apache.servicemix.kernel.filemonitor.Scanner.reportDifferences(Scanner.java:327)
> at org.apache.servicemix.kernel.filemonitor.Scanner.scan(Scanner.java:261)
> at org.apache.servicemix.kernel.filemonitor.Scanner$1.run(Scanner.java:221)
> at java.util.TimerThread.mainLoop(Timer.java:512)
> at java.util.TimerThread.run(Timer.java:462)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Work stopped: (SMX4-322) Copying zip file to deploy
directory on Windows causes error from java.util.zip.ZipFile file in use by
another process
Posted by "Lars Heinemann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMX4-322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on SMX4-322 stopped by Lars Heinemann.
> Copying zip file to deploy directory on Windows causes error from java.util.zip.ZipFile file in use by another process
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: SMX4-322
> URL: https://issues.apache.org/activemq/browse/SMX4-322
> Project: ServiceMix 4
> Issue Type: Bug
> Affects Versions: 4.1.0
> Environment: Windows XP SP2, Sun JVM 1.5.0
> Reporter: Jean Jacobs
> Assignee: Lars Heinemann
> Attachments: FileMonitor.java.patch
>
>
> Created a JBI SA zip file. Copied it to the <install-dir>/deploy directory using Windows Explorer copy/paste. When the SA attempted to be started, the following error was seen in the servicemix.log. I was able to get the zip file deployed by cutting and pasting the file (rather than copy/paste).
> java.io.FileNotFoundException: C:\sandbox_fuse\fuse-esb-4.1.0.1\deploy\transaction-testcase-sa-2.0-SNAPSHOT.zip (The process cannot access the file because it is being used by another process)
> at java.util.zip.ZipFile.open(Native Method)
> at java.util.zip.ZipFile.<init>(ZipFile.java:203)
> at java.util.jar.JarFile.<init>(JarFile.java:132)
> at java.util.jar.JarFile.<init>(JarFile.java:97)
> at org.apache.servicemix.kernel.filemonitor.FileMonitor.transformArtifact(FileMonitor.java:357)
> at org.apache.servicemix.kernel.filemonitor.FileMonitor.onFilesChanged(FileMonitor.java:270)
> at org.apache.servicemix.kernel.filemonitor.FileMonitor$1.filesChanged(FileMonitor.java:151)
> at org.apache.servicemix.kernel.filemonitor.Scanner.reportBulkChanges(Scanner.java:431)
> at org.apache.servicemix.kernel.filemonitor.Scanner.reportDifferences(Scanner.java:327)
> at org.apache.servicemix.kernel.filemonitor.Scanner.scan(Scanner.java:261)
> at org.apache.servicemix.kernel.filemonitor.Scanner$1.run(Scanner.java:221)
> at java.util.TimerThread.mainLoop(Timer.java:512)
> at java.util.TimerThread.run(Timer.java:462)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SMX4-322) Copying zip file to deploy directory
on Windows causes error from java.util.zip.ZipFile file in use by another
process
Posted by "Lars Heinemann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMX4-322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=52855#action_52855 ]
Lars Heinemann commented on SMX4-322:
-------------------------------------
First of all this is the JIRA of Apache ServiceMix and not the one of Fuse ESB. I just wondered about the version 4.1.0 because it is not even released yet. Beside this the error seems to be normal in my opinion because the file monitor which watches the deploy folder recognized that the file is still being copied so it just spits out this error and tries again later on (at least I think so).
Is there a try to deploy this SA afterwards (after copying is finished) ?
> Copying zip file to deploy directory on Windows causes error from java.util.zip.ZipFile file in use by another process
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: SMX4-322
> URL: https://issues.apache.org/activemq/browse/SMX4-322
> Project: ServiceMix 4
> Issue Type: Bug
> Affects Versions: 4.1.0
> Environment: Windows XP SP2, Sun JVM 1.5.0
> Reporter: Jean Jacobs
>
> Created a JBI SA zip file. Copied it to the <install-dir>/deploy directory using Windows Explorer copy/paste. When the SA attempted to be started, the following error was seen in the servicemix.log. I was able to get the zip file deployed by cutting and pasting the file (rather than copy/paste).
> java.io.FileNotFoundException: C:\sandbox_fuse\fuse-esb-4.1.0.1\deploy\transaction-testcase-sa-2.0-SNAPSHOT.zip (The process cannot access the file because it is being used by another process)
> at java.util.zip.ZipFile.open(Native Method)
> at java.util.zip.ZipFile.<init>(ZipFile.java:203)
> at java.util.jar.JarFile.<init>(JarFile.java:132)
> at java.util.jar.JarFile.<init>(JarFile.java:97)
> at org.apache.servicemix.kernel.filemonitor.FileMonitor.transformArtifact(FileMonitor.java:357)
> at org.apache.servicemix.kernel.filemonitor.FileMonitor.onFilesChanged(FileMonitor.java:270)
> at org.apache.servicemix.kernel.filemonitor.FileMonitor$1.filesChanged(FileMonitor.java:151)
> at org.apache.servicemix.kernel.filemonitor.Scanner.reportBulkChanges(Scanner.java:431)
> at org.apache.servicemix.kernel.filemonitor.Scanner.reportDifferences(Scanner.java:327)
> at org.apache.servicemix.kernel.filemonitor.Scanner.scan(Scanner.java:261)
> at org.apache.servicemix.kernel.filemonitor.Scanner$1.run(Scanner.java:221)
> at java.util.TimerThread.mainLoop(Timer.java:512)
> at java.util.TimerThread.run(Timer.java:462)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Work started: (SMX4-322) Copying zip file to deploy
directory on Windows causes error from java.util.zip.ZipFile file in use by
another process
Posted by "Lars Heinemann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMX4-322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on SMX4-322 started by Lars Heinemann.
> Copying zip file to deploy directory on Windows causes error from java.util.zip.ZipFile file in use by another process
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: SMX4-322
> URL: https://issues.apache.org/activemq/browse/SMX4-322
> Project: ServiceMix 4
> Issue Type: Bug
> Affects Versions: 4.1.0
> Environment: Windows XP SP2, Sun JVM 1.5.0
> Reporter: Jean Jacobs
> Assignee: Lars Heinemann
> Attachments: FileMonitor.java.patch
>
>
> Created a JBI SA zip file. Copied it to the <install-dir>/deploy directory using Windows Explorer copy/paste. When the SA attempted to be started, the following error was seen in the servicemix.log. I was able to get the zip file deployed by cutting and pasting the file (rather than copy/paste).
> java.io.FileNotFoundException: C:\sandbox_fuse\fuse-esb-4.1.0.1\deploy\transaction-testcase-sa-2.0-SNAPSHOT.zip (The process cannot access the file because it is being used by another process)
> at java.util.zip.ZipFile.open(Native Method)
> at java.util.zip.ZipFile.<init>(ZipFile.java:203)
> at java.util.jar.JarFile.<init>(JarFile.java:132)
> at java.util.jar.JarFile.<init>(JarFile.java:97)
> at org.apache.servicemix.kernel.filemonitor.FileMonitor.transformArtifact(FileMonitor.java:357)
> at org.apache.servicemix.kernel.filemonitor.FileMonitor.onFilesChanged(FileMonitor.java:270)
> at org.apache.servicemix.kernel.filemonitor.FileMonitor$1.filesChanged(FileMonitor.java:151)
> at org.apache.servicemix.kernel.filemonitor.Scanner.reportBulkChanges(Scanner.java:431)
> at org.apache.servicemix.kernel.filemonitor.Scanner.reportDifferences(Scanner.java:327)
> at org.apache.servicemix.kernel.filemonitor.Scanner.scan(Scanner.java:261)
> at org.apache.servicemix.kernel.filemonitor.Scanner$1.run(Scanner.java:221)
> at java.util.TimerThread.mainLoop(Timer.java:512)
> at java.util.TimerThread.run(Timer.java:462)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SMX4-322) Copying zip file to deploy directory on
Windows causes error from java.util.zip.ZipFile file in use by another
process
Posted by "Lars Heinemann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMX4-322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lars Heinemann updated SMX4-322:
--------------------------------
Affects Version/s: (was: 4.1.0)
4.0.0
> Copying zip file to deploy directory on Windows causes error from java.util.zip.ZipFile file in use by another process
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: SMX4-322
> URL: https://issues.apache.org/activemq/browse/SMX4-322
> Project: ServiceMix 4
> Issue Type: Bug
> Affects Versions: 4.0.0
> Environment: Windows XP SP2, Sun JVM 1.5.0
> Reporter: Jean Jacobs
> Assignee: Lars Heinemann
> Fix For: 4.1.0
>
> Attachments: FileMonitor.java.patch
>
>
> Created a JBI SA zip file. Copied it to the <install-dir>/deploy directory using Windows Explorer copy/paste. When the SA attempted to be started, the following error was seen in the servicemix.log. I was able to get the zip file deployed by cutting and pasting the file (rather than copy/paste).
> java.io.FileNotFoundException: C:\sandbox_fuse\fuse-esb-4.1.0.1\deploy\transaction-testcase-sa-2.0-SNAPSHOT.zip (The process cannot access the file because it is being used by another process)
> at java.util.zip.ZipFile.open(Native Method)
> at java.util.zip.ZipFile.<init>(ZipFile.java:203)
> at java.util.jar.JarFile.<init>(JarFile.java:132)
> at java.util.jar.JarFile.<init>(JarFile.java:97)
> at org.apache.servicemix.kernel.filemonitor.FileMonitor.transformArtifact(FileMonitor.java:357)
> at org.apache.servicemix.kernel.filemonitor.FileMonitor.onFilesChanged(FileMonitor.java:270)
> at org.apache.servicemix.kernel.filemonitor.FileMonitor$1.filesChanged(FileMonitor.java:151)
> at org.apache.servicemix.kernel.filemonitor.Scanner.reportBulkChanges(Scanner.java:431)
> at org.apache.servicemix.kernel.filemonitor.Scanner.reportDifferences(Scanner.java:327)
> at org.apache.servicemix.kernel.filemonitor.Scanner.scan(Scanner.java:261)
> at org.apache.servicemix.kernel.filemonitor.Scanner$1.run(Scanner.java:221)
> at java.util.TimerThread.mainLoop(Timer.java:512)
> at java.util.TimerThread.run(Timer.java:462)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SMX4-322) Copying zip file to deploy directory
on Windows causes error from java.util.zip.ZipFile file in use by another
process
Posted by "Lars Heinemann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMX4-322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=52857#action_52857 ]
Lars Heinemann commented on SMX4-322:
-------------------------------------
The kernel is locked in svn. I created a patch for Felix Karaf project and raised an issue there.
see https://issues.apache.org/jira/browse/FELIX-1377
> Copying zip file to deploy directory on Windows causes error from java.util.zip.ZipFile file in use by another process
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: SMX4-322
> URL: https://issues.apache.org/activemq/browse/SMX4-322
> Project: ServiceMix 4
> Issue Type: Bug
> Affects Versions: 4.1.0
> Environment: Windows XP SP2, Sun JVM 1.5.0
> Reporter: Jean Jacobs
> Assignee: Lars Heinemann
> Attachments: FileMonitor.java.patch
>
>
> Created a JBI SA zip file. Copied it to the <install-dir>/deploy directory using Windows Explorer copy/paste. When the SA attempted to be started, the following error was seen in the servicemix.log. I was able to get the zip file deployed by cutting and pasting the file (rather than copy/paste).
> java.io.FileNotFoundException: C:\sandbox_fuse\fuse-esb-4.1.0.1\deploy\transaction-testcase-sa-2.0-SNAPSHOT.zip (The process cannot access the file because it is being used by another process)
> at java.util.zip.ZipFile.open(Native Method)
> at java.util.zip.ZipFile.<init>(ZipFile.java:203)
> at java.util.jar.JarFile.<init>(JarFile.java:132)
> at java.util.jar.JarFile.<init>(JarFile.java:97)
> at org.apache.servicemix.kernel.filemonitor.FileMonitor.transformArtifact(FileMonitor.java:357)
> at org.apache.servicemix.kernel.filemonitor.FileMonitor.onFilesChanged(FileMonitor.java:270)
> at org.apache.servicemix.kernel.filemonitor.FileMonitor$1.filesChanged(FileMonitor.java:151)
> at org.apache.servicemix.kernel.filemonitor.Scanner.reportBulkChanges(Scanner.java:431)
> at org.apache.servicemix.kernel.filemonitor.Scanner.reportDifferences(Scanner.java:327)
> at org.apache.servicemix.kernel.filemonitor.Scanner.scan(Scanner.java:261)
> at org.apache.servicemix.kernel.filemonitor.Scanner$1.run(Scanner.java:221)
> at java.util.TimerThread.mainLoop(Timer.java:512)
> at java.util.TimerThread.run(Timer.java:462)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.