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 2010/02/18 21:19:27 UTC
[jira] Created: (FELIX-2102) Bad exception thrown when an obr url
can not be resolved
Bad exception thrown when an obr url can not be resolved
--------------------------------------------------------
Key: FELIX-2102
URL: https://issues.apache.org/jira/browse/FELIX-2102
Project: Felix
Issue Type: Bug
Components: Bundle Repository (OBR)
Reporter: Guillaume Nodet
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)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (FELIX-2102) Bad exception thrown when an obr url
can not be resolved
Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler closed FELIX-2102.
-----------------------------------
> Bad exception thrown when an obr url can not be resolved
> --------------------------------------------------------
>
> Key: FELIX-2102
> URL: https://issues.apache.org/jira/browse/FELIX-2102
> Project: Felix
> Issue Type: Bug
> Components: Bundle Repository (OBR)
> Reporter: Guillaume Nodet
> Assignee: Guillaume Nodet
> Fix For: bundlerepository-1.6.0
>
>
> 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)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (FELIX-2102) Bad exception thrown when an obr url
can not be resolved
Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guillaume Nodet resolved FELIX-2102.
------------------------------------
Resolution: Fixed
Fix Version/s: bundlerepository-1.6.0
Assignee: Guillaume Nodet
Committing to https://svn.apache.org/repos/asf/felix/trunk ...
M bundlerepository/src/main/java/org/apache/felix/bundlerepository/ObrURLStreamHandlerService.java
M bundlerepository/src/main/java/org/apache/felix/bundlerepository/ResolverImpl.java
Committed r911615
> Bad exception thrown when an obr url can not be resolved
> --------------------------------------------------------
>
> Key: FELIX-2102
> URL: https://issues.apache.org/jira/browse/FELIX-2102
> Project: Felix
> Issue Type: Bug
> Components: Bundle Repository (OBR)
> Reporter: Guillaume Nodet
> Assignee: Guillaume Nodet
> Fix For: bundlerepository-1.6.0
>
>
> 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)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.