karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Kahmann (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-4140) ClassCastException when deploying an OBR Resource already present in the runtime
Date Tue, 24 Nov 2015 15:47:11 GMT

    [ https://issues.apache.org/jira/browse/KARAF-4140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15024706#comment-15024706
] 

Stephen Kahmann commented on KARAF-4140:
----------------------------------------

We are currently using Karaf 4.0.2, which I think uses bundlerepository 2.0.6. The previous
version of bundlerepository was causing issues with the OBR 5 spec (from cave 4), specifically
when using java version filters.

Can you link to the Felix ticket that you have already created? I have a patch file on my
Felix ticket, but it doesn't look like anyone has taken a look at it yet. 

> ClassCastException when deploying an OBR Resource already present in the runtime
> --------------------------------------------------------------------------------
>
>                 Key: KARAF-4140
>                 URL: https://issues.apache.org/jira/browse/KARAF-4140
>             Project: Karaf
>          Issue Type: Bug
>            Reporter: Stephen Kahmann
>
> When using OBR to deploy a bundle that is already present in the runtime, there is a
ClassCastException:
> {code}
> java.lang.ClassCastException: org.apache.felix.bundlerepository.impl.LazyLocalResourceImpl
cannot be cast to org.apache.felix.bundlerepository.impl.LocalResourceImpl
> 	at org.apache.felix.bundlerepository.impl.ResolverImpl.findUpdatableLocalResource(ResolverImpl.java:703)
> 	at org.apache.felix.bundlerepository.impl.ResolverImpl.deploy(ResolverImpl.java:569)
> 	at org.apache.karaf.obr.command.ObrCommandSupport.doDeploy(ObrCommandSupport.java:168)
> 	at org.apache.karaf.obr.command.StartCommand.doExecute(StartCommand.java:38)
> 	at org.apache.karaf.obr.command.ObrCommandSupport.execute(ObrCommandSupport.java:58)
> 	at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:83)
> 	at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:67)
> 	at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:87)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:480)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:406)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:182)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:119)
> 	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:94)
> 	at org.apache.karaf.shell.impl.console.HeadlessSessionImpl.execute(HeadlessSessionImpl.java:90)
> {code}
> I submitted a ticket with a patch to Apache Felix: https://issues.apache.org/jira/browse/FELIX-5112



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message