You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Jeffrey Puro <jp...@sterlingtesting.com> on 2006/11/29 17:12:15 UTC
Exception when installing a large component (size wise)
I receive the following exception when I try and install a component
that is around 16 MB in size. I am using ServiceMix 3.0.1 on Windows
XP. It's a sharing violation which is caused by ServiceMix trying to
install the component before it has fully been copied over. One
solution is to reduce the polling frequency for the install/deploy
directories, but I'm wondering if there's another way of handling this.
11:06:36,668 | WARN | Thread-14 | AutoDeploymentService |
mework.AutoDeploymentService$2 596 | Directory: install: Automatic
install of
C:\dev\apache-servicemix-3.0.1-incubating\bin\install\ode-jbi-2.0-SNAPSH
OT-installer.zip failed
javax.jbi.management.DeploymentException: <?xml version="1.0"
encoding="UTF-8"?>
<jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
version="1.0">
<jbi-task-result>
<frmwk-task-result>
<frmwk-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>FAILED</task-result>
<message-type>ERROR</message-type>
<task-status-msg>
<msg-loc-info>
<loc-token/>
<loc-message>Unable to unpack archive:
C:\dev\apache-servicemix-3.0.1-incubating\bin\install\ode-jbi-2.0-SNAPSH
OT-installer.zip</loc-message>
</msg-loc-info>
</task-status-msg>
<exception-info>
<nesting-level>1</nesting-level>
<loc-token/>
<loc-message>java.util.zip.ZipException: The process cannot access the
file because it is being used by another process</loc-message>
<stack-trace><![CDATA[javax.jbi.management.DeploymentException:
java.util.zip.ZipException: The process cannot access the file because
it is being used by another process
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(AutoDepl
oymentService.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:595)
Caused by: java.util.zip.ZipException: 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.zip.ZipFile.<init>(ZipFile.java:234)
at
org.apache.servicemix.jbi.util.FileUtil.archiveContainsEntry(FileUtil.ja
va:170)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.unpackLocation
(AutoDeploymentService.java:529)
... 5 more
]]></stack-trace>
</exception-info>
</task-result-details>
</frmwk-task-result-details>
</frmwk-task-result>
</jbi-task-result>
</jbi-task>
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDe
ploymentService.java:333)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDe
ploymentService.java:323)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(
AutoDeploymentService.java:201)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService$2.run(AutoDepl
oymentService.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:595)
This email (and any attachments) is intended only for the use of the individual or entity named above and may contain information that is privileged and confidential. If you are not the intended recipient, or have unauthorized access, you are hereby notified that copying, disseminating, distributing or taking any action in reliance on this email is strictly prohibited<br />
<br />
Opinions, conclusions and other information in this message that do not relate to the official business of our firm shall be understood as neither given nor endorsed by it.
Re: Exception when installing a large component (size wise)
Posted by Guillaume Nodet <gn...@gmail.com>.
I know a workaround for that, but it anyone has any idea on how
to actually *fix* the problem, that would be great.
The workaround is to copy the component in a folder (other
than the install folder), and then to *move* it to the install folder.
Moving a file is atomic afaik, so you can not have such a problem.
On 11/29/06, Jeffrey Puro <jp...@sterlingtesting.com> wrote:
> I receive the following exception when I try and install a component
> that is around 16 MB in size. I am using ServiceMix 3.0.1 on Windows
> XP. It's a sharing violation which is caused by ServiceMix trying to
> install the component before it has fully been copied over. One
> solution is to reduce the polling frequency for the install/deploy
> directories, but I'm wondering if there's another way of handling this.
>
>
>
> 11:06:36,668 | WARN | Thread-14 | AutoDeploymentService |
> mework.AutoDeploymentService$2 596 | Directory: install: Automatic
> install of
> C:\dev\apache-servicemix-3.0.1-incubating\bin\install\ode-jbi-2.0-SNAPSH
> OT-installer.zip failed
>
> javax.jbi.management.DeploymentException: <?xml version="1.0"
> encoding="UTF-8"?>
>
> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
> version="1.0">
>
> <jbi-task-result>
>
> <frmwk-task-result>
>
> <frmwk-task-result-details>
>
> <task-result-details>
>
> <task-id>deploy</task-id>
>
> <task-result>FAILED</task-result>
>
> <message-type>ERROR</message-type>
>
> <task-status-msg>
>
> <msg-loc-info>
>
> <loc-token/>
>
> <loc-message>Unable to unpack archive:
> C:\dev\apache-servicemix-3.0.1-incubating\bin\install\ode-jbi-2.0-SNAPSH
> OT-installer.zip</loc-message>
>
> </msg-loc-info>
>
> </task-status-msg>
>
> <exception-info>
>
> <nesting-level>1</nesting-level>
>
> <loc-token/>
>
> <loc-message>java.util.zip.ZipException: The process cannot access the
> file because it is being used by another process</loc-message>
>
> <stack-trace><![CDATA[javax.jbi.management.DeploymentException:
> java.util.zip.ZipException: The process cannot access the file because
> it is being used by another process
>
> 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(AutoDepl
> oymentService.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:595)
>
> Caused by: java.util.zip.ZipException: 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.zip.ZipFile.<init>(ZipFile.java:234)
>
> at
> org.apache.servicemix.jbi.util.FileUtil.archiveContainsEntry(FileUtil.ja
> va:170)
>
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.unpackLocation
> (AutoDeploymentService.java:529)
>
> ... 5 more
>
> ]]></stack-trace>
>
> </exception-info>
>
> </task-result-details>
>
> </frmwk-task-result-details>
>
> </frmwk-task-result>
>
> </jbi-task-result>
>
> </jbi-task>
>
>
>
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDe
> ploymentService.java:333)
>
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDe
> ploymentService.java:323)
>
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(
> AutoDeploymentService.java:201)
>
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService$2.run(AutoDepl
> oymentService.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:595)
>
>
>
>
>
>
>
>
>
> This email (and any attachments) is intended only for the use of the individual or entity named above and may contain information that is privileged and confidential. If you are not the intended recipient, or have unauthorized access, you are hereby notified that copying, disseminating, distributing or taking any action in reliance on this email is strictly prohibited<br />
> <br />
> Opinions, conclusions and other information in this message that do not relate to the official business of our firm shall be understood as neither given nor endorsed by it.
>
>
>
--
Cheers,
Guillaume Nodet