Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
We should throw a clean exception instead of this ugly NoSuchElementException
karaf@root> cat obr://org.apache.aries.application.utils/1266508574845
java.util.NoSuchElementException
at java.util.TreeMap.key(TreeMap.java:1206)
at java.util.TreeMap.lastKey(TreeMap.java:274)
at org.apache.felix.bundlerepository.ObrURLStreamHandlerService$NewestSelectionStrategy.determineVersion(ObrURLStreamHandlerService.java:243)
at org.apache.felix.bundlerepository.ObrURLStreamHandlerService$ResourceSelectionStrategy.selectOne(ObrURLStreamHandlerService.java:197)
at org.apache.felix.bundlerepository.ObrURLStreamHandlerService.getRemoteUrlForBundle(ObrURLStreamHandlerService.java:150)
at org.apache.felix.bundlerepository.ObrURLStreamHandlerService.openConnection(ObrURLStreamHandlerService.java:115)
at org.apache.felix.framework.URLHandlersStreamHandlerProxy.openConnection(URLHandlersStreamHandlerProxy.java:271)
at java.net.URL.openConnection(URL.java:945)
at java.net.URL.openStream(URL.java:1010)
at org.apache.felix.karaf.shell.commands.CatAction.doExecute(CatAction.java:66)
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:174)
at java.lang.Thread.run(Thread.java:637)