Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 358533 - Failed to redeploy a bundle in virgo: java.util.zip.ZipException: ZIP_Read: error reading zip file
Summary: Failed to redeploy a bundle in virgo: java.util.zip.ZipException: ZIP_Read: e...
Status: CLOSED WORKSFORME
Alias: None
Product: Virgo
Classification: RT
Component: virgo-build (show other bugs)
Version: 2.1.1.RELEASE   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-22 04:43 EDT by mel7it CLA
Modified: 2011-10-10 05:51 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mel7it CLA 2011-09-22 04:43:54 EDT
I have failed to redeploy my bundle on virgo and this is due to  java.util.zip.ZipException: ZIP_Read: error reading zip file,here is what the virgo console displays:

[2011-09-22 09:43:08.050] fs-watcher                   <HD0001I> Hot deployer processing 'MODIFIED' event for file 'maquetteUser-1.0.0.war'. 
[2011-09-22 09:43:08.167] fs-watcher                   <DE0600E> File '/home/maher/workspace/Virgo/pickup/maquetteUser-1.0.0.war' cannot be unpacked as a JAR. 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:131)
	at java.util.zip.ZipFile.<init>(ZipFile.java:148)
	at org.eclipse.virgo.util.io.ZipUtils.unzipTo(ZipUtils.java:66)
	at org.eclipse.virgo.util.io.JarUtils.unpackTo(JarUtils.java:41)
	at org.eclipse.virgo.kernel.install.artifact.internal.StandardArtifactStorage.synchronize(StandardArtifactStorage.java:86)
	at org.eclipse.virgo.kernel.install.artifact.internal.StandardArtifactStorage.synchronize(StandardArtifactStorage.java:59)
	at org.eclipse.virgo.kernel.install.artifact.internal.StandardArtifactStorage.<init>(StandardArtifactStorage.java:54)
	at org.eclipse.virgo.kernel.install.artifact.internal.StandardArtifactStorageFactory.create(StandardArtifactStorageFactory.java:54)
	at org.eclipse.virgo.kernel.install.artifact.internal.StandardInstallArtifactTreeInclosure.updateStagingArea(StandardInstallArtifactTreeInclosure.java:204)
	at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.updateAndRefresh(PipelinedApplicationDeployer.java:211)
	at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.updateAndRefreshExistingArtifact(PipelinedApplicationDeployer.java:169)
	at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.doInstall(PipelinedApplicationDeployer.java:134)
	at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.install(PipelinedApplicationDeployer.java:123)
	at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.deploy(PipelinedApplicationDeployer.java:190)
	at org.eclipse.virgo.kernel.deployer.hot.HotDeploymentFileSystemListener.deploy(HotDeploymentFileSystemListener.java:174)
	at org.eclipse.virgo.kernel.deployer.hot.HotDeploymentFileSystemListener.onChange(HotDeploymentFileSystemListener.java:81)
	at org.eclipse.virgo.util.io.FileSystemChecker.notifyListeners(FileSystemChecker.java:245)
	at org.eclipse.virgo.util.io.FileSystemChecker.check(FileSystemChecker.java:166)
	at org.eclipse.virgo.kernel.deployer.hot.WatchTask.run(WatchTask.java:58)
	at java.lang.Thread.run(Thread.java:636)

[2011-09-22 09:43:13.272] fs-watcher                   <ME0001W> A message with the key 'ME0003I' was not found. The inserts for the message were '[serviceability/dump/2011-09-22-09-43-215]' 
[2011-09-22 09:43:13.273] System.out                             java.lang.RuntimeException: Exception unpacking '/home/maher/workspace/Virgo/pickup/maquetteUser-1.0.0.war' 
[2011-09-22 09:43:13.273] System.out                             	at org.eclipse.virgo.kernel.install.artifact.internal.StandardArtifactStorage.synchronize(StandardArtifactStorage.java:89) 
[2011-09-22 09:43:13.274] System.out                             	at org.eclipse.virgo.kernel.install.artifact.internal.StandardArtifactStorage.synchronize(StandardArtifactStorage.java:59) 
[2011-09-22 09:43:13.274] System.out                             	at org.eclipse.virgo.kernel.install.artifact.internal.StandardArtifactStorage.<init>(StandardArtifactStorage.java:54) 
[2011-09-22 09:43:13.274] System.out                             	at org.eclipse.virgo.kernel.install.artifact.internal.StandardArtifactStorageFactory.create(StandardArtifactStorageFactory.java:54) 
[2011-09-22 09:43:13.274] System.out                             	at org.eclipse.virgo.kernel.install.artifact.internal.StandardInstallArtifactTreeInclosure.updateStagingArea(StandardInstallArtifactTreeInclosure.java:204) 
[2011-09-22 09:43:13.275] System.out                             	at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.updateAndRefresh(PipelinedApplicationDeployer.java:211) 
[2011-09-22 09:43:13.275] System.out                             	at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.updateAndRefreshExistingArtifact(PipelinedApplicationDeployer.java:169) 
[2011-09-22 09:43:13.275] System.out                             	at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.doInstall(PipelinedApplicationDeployer.java:134) 
[2011-09-22 09:43:13.276] System.out                             	at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.install(PipelinedApplicationDeployer.java:123) 
[2011-09-22 09:43:13.276] System.out                             	at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.deploy(PipelinedApplicationDeployer.java:190) 
[2011-09-22 09:43:13.277] System.out                             	at org.eclipse.virgo.kernel.deployer.hot.HotDeploymentFileSystemListener.deploy(HotDeploymentFileSystemListener.java:174) 
[2011-09-22 09:43:13.277] System.out                             	at org.eclipse.virgo.kernel.deployer.hot.HotDeploymentFileSystemListener.onChange(HotDeploymentFileSystemListener.java:81) 
[2011-09-22 09:43:13.277] System.out                             	at org.eclipse.virgo.util.io.FileSystemChecker.notifyListeners(FileSystemChecker.java:245) 
[2011-09-22 09:43:13.278] System.out                             	at org.eclipse.virgo.util.io.FileSystemChecker.check(FileSystemChecker.java:166) 
[2011-09-22 09:43:13.278] System.out                             	at org.eclipse.virgo.kernel.deployer.hot.WatchTask.run(WatchTask.java:58) 
[2011-09-22 09:43:13.278] System.out                             	at java.lang.Thread.run(Thread.java:636) 
[2011-09-22 09:43:13.278] System.out                             Caused by: java.util.zip.ZipException: error in opening zip file 
[2011-09-22 09:43:13.279] System.out                             	at java.util.zip.ZipFile.open(Native Method) 
[2011-09-22 09:43:13.279] System.out                             	at java.util.zip.ZipFile.<init>(ZipFile.java:131) 
[2011-09-22 09:43:13.279] System.out                             	at java.util.zip.ZipFile.<init>(ZipFile.java:148) 
[2011-09-22 09:43:13.280] System.out                             	at org.eclipse.virgo.util.io.ZipUtils.unzipTo(ZipUtils.java:66) 
[2011-09-22 09:43:13.280] System.out                             	at org.eclipse.virgo.util.io.JarUtils.unpackTo(JarUtils.java:41) 
[2011-09-22 09:43:13.280] System.out                             	at org.eclipse.virgo.kernel.install.artifact.internal.StandardArtifactStorage.synchronize(StandardArtifactStorage.java:86) 
[2011-09-22 09:43:13.281] System.out                             	... 15 more 
[2011-09-22 09:43:13.283] fs-watcher                   <HD0003E> Hot re-deploy failed for file 'maquetteUser-1.0.0.war'. java.lang.RuntimeException: Exception unpacking '/home/maher/workspace/Virgo/pickup/maquetteUser-1.0.0.war'
	at org.eclipse.virgo.kernel.install.artifact.internal.StandardArtifactStorage.synchronize(StandardArtifactStorage.java:89)
	at org.eclipse.virgo.kernel.install.artifact.internal.StandardArtifactStorage.synchronize(StandardArtifactStorage.java:59)
	at org.eclipse.virgo.kernel.install.artifact.internal.StandardArtifactStorage.<init>(StandardArtifactStorage.java:54)
	at org.eclipse.virgo.kernel.install.artifact.internal.StandardArtifactStorageFactory.create(StandardArtifactStorageFactory.java:54)
	at org.eclipse.virgo.kernel.install.artifact.internal.StandardInstallArtifactTreeInclosure.updateStagingArea(StandardInstallArtifactTreeInclosure.java:204)
	at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.updateAndRefresh(PipelinedApplicationDeployer.java:211)
	at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.updateAndRefreshExistingArtifact(PipelinedApplicationDeployer.java:169)
	at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.doInstall(PipelinedApplicationDeployer.java:134)
	at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.install(PipelinedApplicationDeployer.java:123)
	at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.deploy(PipelinedApplicationDeployer.java:190)
	at org.eclipse.virgo.kernel.deployer.hot.HotDeploymentFileSystemListener.deploy(HotDeploymentFileSystemListener.java:174)
	at org.eclipse.virgo.kernel.deployer.hot.HotDeploymentFileSystemListener.onChange(HotDeploymentFileSystemListener.java:81)
	at org.eclipse.virgo.util.io.FileSystemChecker.notifyListeners(FileSystemChecker.java:245)
	at org.eclipse.virgo.util.io.FileSystemChecker.check(FileSystemChecker.java:166)
	at org.eclipse.virgo.kernel.deployer.hot.WatchTask.run(WatchTask.java:58)
	at java.lang.Thread.run(Thread.java:636)
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:131)
	at java.util.zip.ZipFile.<init>(ZipFile.java:148)
	at org.eclipse.virgo.util.io.ZipUtils.unzipTo(ZipUtils.java:66)
	at org.eclipse.virgo.util.io.JarUtils.unpackTo(JarUtils.java:41)
	at org.eclipse.virgo.kernel.install.artifact.internal.StandardArtifactStorage.synchronize(StandardArtifactStorage.java:86)
	... 15 common frames omitted
Comment 1 Glyn Normington CLA 2011-09-22 04:54:24 EDT
What size is the WAR file?
Comment 2 mel7it CLA 2011-09-22 05:09:17 EDT
(In reply to comment #1)
> What size is the WAR file?
the size of the WAR is 3.5 MO
Why is the problem related to the size of the WAR?
Comment 3 Glyn Normington CLA 2011-09-22 05:40:48 EDT
(In reply to comment #2)
> (In reply to comment #1)
> > What size is the WAR file?
> the size of the WAR is 3.5 MO

Presumably that's 3.5 Mb?

> Why is the problem related to the size of the WAR?

It could be a duplicate of bug 353490. This seems unlikely as the WAR files in bug 353490 are 200 Mb or more and that bug was reported on Windows whereas this bug is on Linux.

To clarify further, have you hit this on initial deployment of the WAR or is it always on redeploy? What happens if you undeploy and then deploy again?
Comment 4 mel7it CLA 2011-09-22 06:35:35 EDT
(In reply to comment #3)
> (In reply to comment #2)
> > (In reply to comment #1)
> > > What size is the WAR file?
> > the size of the WAR is 3.5 MO
> 
> Presumably that's 3.5 Mb?
> 
> > Why is the problem related to the size of the WAR?
> 
> It could be a duplicate of bug 353490. This seems unlikely as the WAR files in
> bug 353490 are 200 Mb or more and that bug was reported on Windows whereas this
> bug is on Linux.
> 
> To clarify further, have you hit this on initial deployment of the WAR or is it
> always on redeploy? What happens if you undeploy and then deploy again?

I hitted this problem mainly on redeploying the bundle on virgo.if i undeploy and then deploy again the same problem sometimes happens sometimes not.
the situation is getting more and more confusing for me.
Comment 5 Glyn Normington CLA 2011-09-22 07:16:31 EDT
Ok, so it seems the problem if intermittent, but happens frequently.

I wonder if the zip format is somewhat out of the ordinary. What tool are you using to produce the WAR?

Is there anything out of the ordinary about the filesystem you have installed Virgo to? For instance, is it a network filesystem?
Comment 6 mel7it CLA 2011-09-22 13:06:47 EDT
(In reply to comment #5)
> Ok, so it seems the problem if intermittent, but happens frequently.
> 
> I wonder if the zip format is somewhat out of the ordinary. What tool are you
> using to produce the WAR?
> 
> Is there anything out of the ordinary about the filesystem you have installed
> Virgo to? For instance, is it a network filesystem?

I use Maven to produce the WAR file,there's nothing out of the ordinary about the filesystem,no it isn't a network filesystem.
Comment 7 Glyn Normington CLA 2011-09-22 23:01:25 EDT
This is going to be hard to reproduce and debug, so please could you try cutting down your WAR to a minimal version that reproduces the problem. That process often reveals the source of the problem. But if you can produce a cut down version that still fails, please attach it to the bug so someone can take a look.

Failing that, attaching the whole WAR would at least give us a chance to recreate the problem.
Comment 8 Glyn Normington CLA 2011-10-10 05:51:18 EDT
Closing until we have a WAR to reproduce.