You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Richard S. Hall (JIRA)" <ji...@apache.org> on 2009/04/28 13:17:30 UTC

[jira] Resolved: (FELIX-1000) Updating an bundle which was installed via OBR fails

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

Richard S. Hall resolved FELIX-1000.
------------------------------------

    Resolution: Fixed

Ok, I committed the patch. I think your approach, while valid, was a little over engineered, so I tried to simplify it a little. I also removed the use of statics since it isn't a good idea to have variables with a different life cycle than the bundle, especially when those variables use the bundle context.

Please verify that I didn't break anything. If you are satisfied, then please close this bug. Thanks for the patch and your contributions.

> Updating an bundle which was installed via OBR fails
> ----------------------------------------------------
>
>                 Key: FELIX-1000
>                 URL: https://issues.apache.org/jira/browse/FELIX-1000
>             Project: Felix
>          Issue Type: Bug
>          Components: Bundle Repository (OBR)
>    Affects Versions: bundlerepository-1.2.1
>            Reporter: Kristian Koehler
>            Assignee: Richard S. Hall
>             Fix For: bundlerepository-1.4.0
>
>         Attachments: FELIX-1000-21_04_2009.patch.txt, FELIX-1000-23_04_2009.patch.txt, FELIX-1000-27_04_2009.patch.txt
>
>
> Updating an bundle which was installed via the obr functionality results in an exception (update was triggered via the shell):
> --- 8< ---
> java.net.MalformedURLException: Unknown protocol: obr
> 	at java.net.URL.<init>(URL.java:601)
> 	at java.net.URL.<init>(URL.java:464)
> 	at java.net.URL.<init>(URL.java:413)
> 	at org.apache.felix.framework.cache.JarRevision.initialize(JarRevision.java:149)
> 	at org.apache.felix.framework.cache.JarRevision.<init>(JarRevision.java:78)
> 	at org.apache.felix.framework.cache.JarRevision.<init>(JarRevision.java:56)
> 	at org.apache.felix.framework.cache.BundleArchive.createRevisionFromLocation(BundleArchive.java:986)
> 	at org.apache.felix.framework.cache.BundleArchive.revise(BundleArchive.java:614)
> 	at org.apache.felix.framework.BundleImpl.revise(BundleImpl.java:916)
> 	at org.apache.felix.framework.Felix.updateBundle(Felix.java:1592)
> 	at org.apache.felix.framework.BundleImpl.update(BundleImpl.java:792)
> 	at org.apache.felix.framework.BundleImpl.update(BundleImpl.java:779)
> 	at org.apache.felix.shell.impl.UpdateCommandImpl.execute(UpdateCommandImpl.java:96)
> 	at org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:276)
> 	at org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:167)
> 	at java.lang.Thread.run(Thread.java:619)
> --- 8< ---

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