[ https://issues.apache.org/jira/browse/FELIX-5112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Bosschaert resolved FELIX-5112. ------------------------------------- Resolution: Fixed Fix Version/s: bundlerepository-2.0.8 Thanks for the patches, [~skahmann]! I've commited them as separate commits: http://svn.apache.org/viewvc?view=revision&revision=1718668 http://svn.apache.org/viewvc?view=revision&revision=1718669 http://svn.apache.org/viewvc?view=revision&revision=1718670 http://svn.apache.org/viewvc?view=revision&revision=1718671 http://svn.apache.org/viewvc?view=revision&revision=1718672 http://svn.apache.org/viewvc?view=revision&revision=1718674 > ClassCastException when deploying an OBR Resource already present in the > runtime > -------------------------------------------------------------------------------- > > Key: FELIX-5112 > URL: https://issues.apache.org/jira/browse/FELIX-5112 > Project: Felix > Issue Type: Bug > Components: Bundle Repository (OBR) > Affects Versions: bundlerepository-2.0.6 > Reporter: Stephen Kahmann > Assignee: David Bosschaert > Fix For: bundlerepository-2.0.8 > > Attachments: fix_local_resource_resolver.diff > > > 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} -- This message was sent by Atlassian JIRA (v6.3.4#6332)