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/11/25 15:07:40 UTC

[jira] Commented: (FELIX-1883) Karaf hangs and crash when several features are deployed

    [ https://issues.apache.org/jira/browse/FELIX-1883?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12782442#action_12782442 ] 

Guillaume Nodet commented on FELIX-1883:
----------------------------------------

I've launched the following commands in a clean karaf on mac:

{code}
karaf@root> features:addUrl mvn:org.apache.camel.karaf/features/2.1-SNAPSHOT/xml/features
karaf@root> features:install camel-cxf 
{code}

This works without any problems on both os x  and windows.

> Karaf hangs and crash when several features are deployed
> --------------------------------------------------------
>
>                 Key: FELIX-1883
>                 URL: https://issues.apache.org/jira/browse/FELIX-1883
>             Project: Felix
>          Issue Type: Bug
>            Reporter: Charles Moulliard
>
> Karaf hangs and crashes several times during installation of features startup
> It seems that bundle refreshing is the origin of this problem 
> ex. Installation of camel-cxf feature (which includes a lot of cxf bundles)
> {code}
> karaf@root> features:install camel-cxf
> Refreshing bundles org.springframework.core (33),
> org.apache.servicemix.bundles.cglib (44),
> org.springframework.context.support (37), org.springframew
> ork.context (36), org.apache.camel.camel-core (43)
> Using an unsupported terminal: java.lang.UnsatisfiedLinkError: Native
> Library C:\Documents and Settings\Charlesm.STREAMLINED\Local
> Settings\Temp\jline
> _.dll already loaded in another classloader
>        __ __                  ____
>       / //_/____ __________ _/ __/
>      / ,<  / __ `/ ___/ __ `/ /_
>     / /| |/ /_/ / /  / /_/ / __/
>    /_/ |_|\__,_/_/   \__,_/_/
>  Apache Felix Karaf (1.1.0-SNAPSHOT)
> Hit '<tab>' for a list of available commands
> and '[cmd] --help' for help on a specific command.
> Hit '<ctrl-d>' or 'osgi:shutdown' to shutdown Karaf.
> D:\Temp\tutorial\part2\downloaded\reportincident.features>java -version
> java version "1.6.0_16"
> Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
> Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing)
> {code}
> After killing the java process and restarting the server, here is what happens
> {code}
> karaf@root> features:install camel-cxf
> Refreshing bundles org.apache.camel.camel-core (43),
> org.springframework.context (36), org.springframework.context.support
> (37), org.apache.servicemix
> .bundles.cglib (44), org.springframework.core (33)
> ERROR: JarContent: Unable to read bytes.
> (java.lang.IllegalStateException: zip file closed)
> java.lang.IllegalStateException: zip file closed
>        at java.util.zip.ZipFile.ensureOpen(ZipFile.java:403)
>        at java.util.zip.ZipFile.getEntry(ZipFile.java:148)
>        at java.util.jar.JarFile.getEntry(JarFile.java:206)
>        at org.apache.felix.framework.util.JarFileX.getEntry(JarFileX.java:61)
>        at org.apache.felix.framework.cache.JarContent.getEntryAsBytes(JarContent.java:120)
>        at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.findClass(ModuleImpl.java:1696)
>        at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:682)
>        at org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:60)
>        at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1650)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>        at org.springframework.aop.framework.AdvisedSupport.getInterceptorsAndDynamicInterceptionAdvice(AdvisedSupport.java:462)
>        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:190)
>        at $Proxy0.getServiceReference(Unknown Source)
>        at org.springframework.osgi.service.importer.support.internal.collection.OsgiServiceCollection.destroy(OsgiServiceCollection.java:294)
>        at org.springframework.osgi.service.importer.support.DisposableBeanRunnableAdapter.run(DisposableBeanRunnableAdapter.java:43)
>        at org.springframework.osgi.service.importer.support.AbstractServiceImporterProxyFactoryBean.destroy(AbstractServiceImporterProxyFactoryBean.j
> ava:67)
>        at org.springframework.osgi.extender.internal.activator.ContextLoaderListener.shutdown(ContextLoaderListener.java:555)
>        at org.springframework.osgi.extender.internal.activator.ContextLoaderListener.stop(ContextLoaderListener.java:433)
>        at org.apache.felix.framework.util.SecureAction.stopActivator(SecureAction.java:661)
>        at org.apache.felix.framework.Felix.stopBundle(Felix.java:2071)
>        at org.apache.felix.framework.Felix$RefreshHelper.stop(Felix.java:4255)
>        at org.apache.felix.framework.Felix.refreshPackages(Felix.java:3405)
>        at org.apache.felix.framework.PackageAdminImpl.run(PackageAdminImpl.java:329)
>        at java.lang.Thread.run(Thread.java:619)
> ERROR: Error stopping bundle. (java.lang.NoClassDefFoundError:
> org/springframework/aop/framework/AdvisedSupport$MethodCacheKey)
> java.lang.NoClassDefFoundError:
> org/springframework/aop/framework/AdvisedSupport$MethodCacheKey
>        at org.springframework.aop.framework.AdvisedSupport.getInterceptorsAndDynamicInterceptionAdvice(AdvisedSupport.java:462)
>        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:190)
>        at $Proxy0.getServiceReference(Unknown Source)
>        at org.springframework.osgi.service.importer.support.internal.collection.OsgiServiceCollection.destroy(OsgiServiceCollection.java:294)
>        at org.springframework.osgi.service.importer.support.DisposableBeanRunnableAdapter.run(DisposableBeanRunnableAdapter.java:43)
>        at org.springframework.osgi.service.importer.support.AbstractServiceImporterProxyFactoryBean.destroy(AbstractServiceImporterProxyFactoryBean.j
> ava:67)
>        at org.springframework.osgi.extender.internal.activator.ContextLoaderListener.shutdown(ContextLoaderListener.java:555)
>        at org.springframework.osgi.extender.internal.activator.ContextLoaderListener.stop(ContextLoaderListener.java:433)
>        at org.apache.felix.framework.util.SecureAction.stopActivator(SecureAction.java:661)
>        at org.apache.felix.framework.Felix.stopBundle(Felix.java:2071)
>        at org.apache.felix.framework.Felix$RefreshHelper.stop(Felix.java:4255)
>        at org.apache.felix.framework.Felix.refreshPackages(Felix.java:3405)
>        at org.apache.felix.framework.PackageAdminImpl.run(PackageAdminImpl.java:329)
>        at java.lang.Thread.run(Thread.java:619)
> Caused by: java.lang.ClassNotFoundException:
> org.springframework.aop.framework.AdvisedSupport$MethodCacheKey
>        at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:738)
>        at org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:60)
>        at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1650)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>        ... 14 more
> Using an unsupported terminal: java.lang.UnsatisfiedLinkError: Native
> Library C:\Documents and Settings\Charlesm.STREAMLINED\Local
> Settings\Temp\jline
> _.dll already loaded in another classloader
>        __ __                  ____
>       / //_/____ __________ _/ __/
>      / ,<  / __ `/ ___/ __ `/ /_
>     / /| |/ /_/ / /  / /_/ / __/
>    /_/ |_|\__,_/_/   \__,_/_/
>  Apache Felix Karaf (1.1.0-SNAPSHOT)
> Hit '<tab>' for a list of available commands
> and '[cmd] --help' for help on a specific command.
> Hit '<ctrl-d>' or 'osgi:shutdown' to shutdown Karaf.
> {code}

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