You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2009/10/14 13:48:31 UTC

[jira] Resolved: (FELIX-1715) osgi:update on xml deployments will cause ZIPExceptions

     [ https://issues.apache.org/jira/browse/FELIX-1715?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet resolved FELIX-1715.
------------------------------------

       Resolution: Fixed
    Fix Version/s: karaf-1.0.2
                   fileinstall-2.0.2
         Assignee: Guillaume Nodet

Committing to https://svn.apache.org/repos/asf/felix/trunk ...
	A	fileinstall/src/main/java/org/apache/felix/fileinstall/ArtifactUrlTransformer.java
	M	fileinstall/src/main/java/org/apache/felix/fileinstall/internal/Artifact.java
	M	fileinstall/src/main/java/org/apache/felix/fileinstall/internal/BundleTransformer.java
	M	fileinstall/src/main/java/org/apache/felix/fileinstall/internal/DirectoryWatcher.java
	M	fileinstall/src/main/java/org/apache/felix/fileinstall/internal/FileInstall.java
	A	fileinstall/src/main/java/org/apache/felix/fileinstall/internal/JarDirUrlHandler.java
	M	fileinstall/src/main/java/org/apache/felix/fileinstall/internal/Util.java
	M	karaf/deployer/blueprint/src/main/java/org/apache/felix/karaf/deployer/blueprint/BlueprintDeploymentListener.java
	M	karaf/deployer/blueprint/src/main/java/org/apache/felix/karaf/deployer/blueprint/BlueprintURLHandler.java
	M	karaf/deployer/blueprint/src/main/resources/OSGI-INF/blueprint/blueprint-deployer.xml
	M	karaf/deployer/spring/src/main/java/org/apache/felix/karaf/deployer/spring/SpringDeploymentListener.java
	M	karaf/deployer/spring/src/main/java/org/apache/felix/karaf/deployer/spring/SpringURLHandler.java
	M	karaf/deployer/spring/src/main/resources/OSGI-INF/blueprint/spring-deployer.xml
Committed r825093


> osgi:update on xml deployments will cause ZIPExceptions
> -------------------------------------------------------
>
>                 Key: FELIX-1715
>                 URL: https://issues.apache.org/jira/browse/FELIX-1715
>             Project: Felix
>          Issue Type: Bug
>          Components: File Install, Karaf
>    Affects Versions: karaf-1.0.0
>            Reporter: Lars Heinemann
>            Assignee: Guillaume Nodet
>             Fix For: fileinstall-2.0.2, karaf-1.0.2
>
>
> I deployed a Spring xml file by copying it to deploy folder. It was installed fine.
> When trying to run
>      osgi:update
> on that bundle then it throws exceptions:
> -------------------------------------------------
> karaf@root> update 195                                                                                                                                      
> ERROR: Unable to update the bundle. (java.util.zip.ZipException: error in opening zip file)                                                                 
> 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:114)                                                                                                   
>         at java.util.jar.JarFile.<init>(JarFile.java:133)                                                                                                   
>         at java.util.jar.JarFile.<init>(JarFile.java:97)                                                                                                    
>         at org.apache.felix.framework.util.JarFileX.<init>(JarFileX.java:36)                                                                                
>         at org.apache.felix.framework.util.SecureAction.openJAR(SecureAction.java:592)                                                                      
>         at org.apache.felix.framework.cache.JarRevision.getManifestHeader(JarRevision.java:90)                                                              
>         at org.apache.felix.framework.BundleImpl.createModule(BundleImpl.java:1090)                                                                         
>         at org.apache.felix.framework.BundleImpl.revise(BundleImpl.java:1044)                                                                               
>         at org.apache.felix.framework.Felix.updateBundle(Felix.java:1835)                                                                                   
>         at org.apache.felix.framework.BundleImpl.update(BundleImpl.java:908)                                                                                
>         at org.apache.felix.framework.BundleImpl.update(BundleImpl.java:895)                                                                                
>         at org.apache.felix.karaf.shell.osgi.UpdateBundle.doExecute(UpdateBundle.java:37)                                                                   
>         at org.apache.felix.karaf.shell.osgi.BundleCommand.doExecute(BundleCommand.java:42)                                                                 
>         at org.apache.felix.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:41)                                                      
>         at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:34)                                                            
>         at org.apache.felix.gogo.runtime.shell.CommandProxy.execute(CommandProxy.java:45)                                                                   
>         at org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:211)                                                                            
>         at org.apache.felix.gogo.runtime.shell.Closure.executeStatement(Closure.java:146)                                                                   
>         at org.apache.felix.gogo.runtime.shell.Pipe.run(Pipe.java:91)                                                                                       
>         at org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:75)                                                                             
>         at org.apache.felix.gogo.runtime.shell.CommandSessionImpl.execute(CommandSessionImpl.java:71)
>         at org.apache.felix.karaf.shell.console.jline.Console.run(Console.java:115)
>         at java.lang.Thread.run(Thread.java:619)
> org.osgi.framework.BundleException: Update of bundle net.compart.dbesb.examples.webservice.mill [195] failed.
>         at org.apache.felix.framework.Felix.updateBundle(Felix.java:1966)
>         at org.apache.felix.framework.BundleImpl.update(BundleImpl.java:908)
>         at org.apache.felix.framework.BundleImpl.update(BundleImpl.java:895)
>         at org.apache.felix.karaf.shell.osgi.UpdateBundle.doExecute(UpdateBundle.java:37)
>         at org.apache.felix.karaf.shell.osgi.BundleCommand.doExecute(BundleCommand.java:42)
>         at org.apache.felix.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:41)
>         at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:34)
>         at org.apache.felix.gogo.runtime.shell.CommandProxy.execute(CommandProxy.java:45)
>         at org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:211)
>         at org.apache.felix.gogo.runtime.shell.Closure.executeStatement(Closure.java:146)
>         at org.apache.felix.gogo.runtime.shell.Pipe.run(Pipe.java:91)
>         at org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:75)
>         at org.apache.felix.gogo.runtime.shell.CommandSessionImpl.execute(CommandSessionImpl.java:71)
>         at org.apache.felix.karaf.shell.console.jline.Console.run(Console.java:115)
>         at java.lang.Thread.run(Thread.java:619)
> 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:114)
>         at java.util.jar.JarFile.<init>(JarFile.java:133)
>         at java.util.jar.JarFile.<init>(JarFile.java:97)
>         at org.apache.felix.framework.util.JarFileX.<init>(JarFileX.java:36)
>         at org.apache.felix.framework.util.SecureAction.openJAR(SecureAction.java:592)
>         at org.apache.felix.framework.cache.JarRevision.getManifestHeader(JarRevision.java:90)
>         at org.apache.felix.framework.BundleImpl.createModule(BundleImpl.java:1090)
>         at org.apache.felix.framework.BundleImpl.revise(BundleImpl.java:1044)
>         at org.apache.felix.framework.Felix.updateBundle(Felix.java:1835)
>         ... 14 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.