1 Reply Latest reply on Nov 9, 2012 8:11 AM by erasmo2 marciano2

    ZipError on redeployment on JBoss 5.1.0. GA

    Sergiu Pienar Expert

      Hi,

       

      Using JBoss 5.1.0.GA and Windows 7 - 32 bit.

      Sometimes when I redeploy my application I get the following stacktrace which kills them JVM :

       

      06:48:09,509 INFO  [TomcatDeployment] undeploy, ctxPath=/dashboard
      06:48:10,489 WARN  [HDScanner] Failed to process changes
      java.lang.RuntimeException: Error while adding re-deployments
              at
      org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:688)
              at
      org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
              at
      org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:362)
              at
      org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
              at
      java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
              at
      java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
              at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
              at
      java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
              at
      java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
              at
      java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
              at
      java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
              at
      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
              at java.lang.Thread.run(Thread.java:662)
      Caused by: org.jboss.deployers.spi.DeploymentException: Exception determining
      structure: AbstractVFSDeployment(application.war)
              at
      org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
              at
      org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:85)
              at
      org.jboss.deployers.plugins.main.MainDeployerImpl.determineStructure(MainDeployerImpl.java:1004)
              at
      org.jboss.deployers.plugins.main.MainDeployerImpl.determineDeploymentContext(MainDeployerImpl.java:440)
              at
      org.jboss.deployers.plugins.main.MainDeployerImpl.processToDeploy(MainDeployerImpl.java:345)
              at
      org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:684)
              ... 12 more
      Caused by: java.util.zip.ZipError: jzentry == 0,
       jzfile = 1638204912,
       total = 1253,
       name = C:\opt\jboss-5.1.0.GA\server\myConfig\deploy\application.war,
       i = 576,
       message = null
              at java.util.zip.ZipFile$2.nextElement(ZipFile.java:334)
              at java.util.zip.ZipFile$2.nextElement(ZipFile.java:312)
              at
      org.jboss.virtual.plugins.context.zip.ZipEntryContext.initEntries(ZipEntryContext.java:491)
              at
      org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(ZipEntryContext.java:619)
              at
      org.jboss.virtual.plugins.context.zip.ZipEntryContext.checkIfModified(ZipEntryContext.java:773)
              at
      org.jboss.virtual.plugins.context.zip.ZipEntryContext.getChild(ZipEntryContext.java:817)
              at
      org.jboss.virtual.plugins.context.zip.ZipEntryHandler.createChildHandler(ZipEntryHandler.java:191)
              at
      org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.structuredFindChild(AbstractVirtualFileHandler.java:684)
              at
      org.jboss.virtual.plugins.context.zip.ZipEntryHandler.getChild(ZipEntryHandler.java:165)
              at
      org.jboss.virtual.plugins.context.DelegatingHandler.getChild(DelegatingHandler.java:107)
              at org.jboss.virtual.VirtualFile.getChild(VirtualFile.java:481)
              at
      org.jboss.deployers.vfs.plugins.structure.explicit.DeclaredStructure.determineStructure(DeclaredStructure.java:64)
              at
      org.jboss.deployers.vfs.plugins.structure.StructureDeployerWrapper.determineStructure(StructureDeployerWrapper.java:73)
              at
      org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.doDetermineStructure(VFSStructuralDeployersImpl.java:196)
              at
      org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.determineStructure(VFSStructuralDeployersImpl.java:221)
              at
      org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:77)
              ... 16 more
      

       

      I know this isn't necessarily related with JBoss but if anyone has encountered this problem I would appreciate an answer.

       

      Thanks !