You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Dirk Mahler (JIRA)" <ji...@apache.org> on 2008/10/10 15:41:46 UTC
[jira] Created: (FELIX-760) Version range in Fragment-Host
declaration
Version range in Fragment-Host declaration
------------------------------------------
Key: FELIX-760
URL: https://issues.apache.org/jira/browse/FELIX-760
Project: Felix
Issue Type: Bug
Components: Maven Bundle Plugin
Affects Versions: maven-bundle-plugin-1.4.3
Environment: Maven Bundle Plugin 1.4.3
Apache Felix Bundle Repository 1.2.0
Apache Felix 1.2.1/Eclipse Equinox 3.4.0
Reporter: Dirk Mahler
The catalina coyote bundle in the SpringSource.com bundle repository (http://www.springsource.com/repository/app/bundle/version/detail?name=com.springsource.org.apache.coyote&version=6.0.16) specifies a Fragment-Host using a version range (which IMHO is correct):
Fragment-Host: com.springsource.org.apache.catalina;version="[6.0.16, 6.0.16]"
The Maven Bundle Plugin creates an entry in the OBR repository metadata which contains a capability with a version "[6.0.16, 6.0.16]":
<capability name="fragment">
<p n="host" v="com.springsource.org.apache.catalina"/>
<p n="version" t="version" v="[6.0.16,6.0.16]"/>
</capability>
This cannot be read by the bundle repository plugin resulting in the following exception:
java.lang.NumberFormatException: For input string: "[6"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:447)
at java.lang.Integer.parseInt(Integer.java:497)
at org.osgi.framework.Version.<init>(Version.java:128)
at org.apache.felix.bundlerepository.PropertyImpl.convertType(PropertyImpl.java:85)
at org.apache.felix.bundlerepository.PropertyImpl.setT(PropertyImpl.java:62)
at sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.felix.bundlerepository.metadataparser.XmlCommonHandler.startElement(XmlCommonHandler.java:490)
at org.apache.felix.bundlerepository.metadataparser.kxmlsax.KXml2SAXParser.parseXML(KXml2SAXParser.java:67)
...
PS: is the declaration of a Fragment-Host really a capability? I think it should be requirement...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (FELIX-760) Version range in Fragment-Host
declaration
Posted by "Stuart McCulloch (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-760?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12638560#action_12638560 ]
Stuart McCulloch commented on FELIX-760:
----------------------------------------
FYI, according to the current OBR RFC:
http://www.osgi.org/Download/File?url=/download/rfc-0112_BundleRepository.pdf
fragment bundles will have a requirement on their host, but also a capability of "fragment" because they can be used as fragments.
> Version range in Fragment-Host declaration
> ------------------------------------------
>
> Key: FELIX-760
> URL: https://issues.apache.org/jira/browse/FELIX-760
> Project: Felix
> Issue Type: Bug
> Components: Maven Bundle Plugin
> Affects Versions: maven-bundle-plugin-1.4.3
> Environment: Maven Bundle Plugin 1.4.3
> Apache Felix Bundle Repository 1.2.0
> Apache Felix 1.2.1/Eclipse Equinox 3.4.0
> Reporter: Dirk Mahler
>
> The catalina coyote bundle in the SpringSource.com bundle repository (http://www.springsource.com/repository/app/bundle/version/detail?name=com.springsource.org.apache.coyote&version=6.0.16) specifies a Fragment-Host using a version range (which IMHO is correct):
> Fragment-Host: com.springsource.org.apache.catalina;version="[6.0.16, 6.0.16]"
> The Maven Bundle Plugin creates an entry in the OBR repository metadata which contains a capability with a version "[6.0.16, 6.0.16]":
> <capability name="fragment">
> <p n="host" v="com.springsource.org.apache.catalina"/>
> <p n="version" t="version" v="[6.0.16,6.0.16]"/>
> </capability>
> This cannot be read by the bundle repository plugin resulting in the following exception:
> java.lang.NumberFormatException: For input string: "[6"
> at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
> at java.lang.Integer.parseInt(Integer.java:447)
> at java.lang.Integer.parseInt(Integer.java:497)
> at org.osgi.framework.Version.<init>(Version.java:128)
> at org.apache.felix.bundlerepository.PropertyImpl.convertType(PropertyImpl.java:85)
> at org.apache.felix.bundlerepository.PropertyImpl.setT(PropertyImpl.java:62)
> at sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.felix.bundlerepository.metadataparser.XmlCommonHandler.startElement(XmlCommonHandler.java:490)
> at org.apache.felix.bundlerepository.metadataparser.kxmlsax.KXml2SAXParser.parseXML(KXml2SAXParser.java:67)
> ...
> PS: is the declaration of a Fragment-Host really a capability? I think it should be requirement...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (FELIX-760) Version range in Fragment-Host
declaration
Posted by "Stuart McCulloch (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-760?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12638565#action_12638565 ]
Stuart McCulloch commented on FELIX-760:
----------------------------------------
Also according to the core OSGi spec it should be:
Fragment-Host: com.springsource.org.apache.catalina;bundle-version="[6.0.16, 6.0.16]"
not:
Fragment-Host: com.springsource.org.apache.catalina;version="[6.0.16, 6.0.16]"
but then I think the bindex code needs to be changed anyway because it doesn't seem to pick up the bundle-version attribute properly for use in the "extend" requirement. As to what version the fragment capability should use, that isn't specified in the RFC but it can't be a version range if the type is set to "version".
> Version range in Fragment-Host declaration
> ------------------------------------------
>
> Key: FELIX-760
> URL: https://issues.apache.org/jira/browse/FELIX-760
> Project: Felix
> Issue Type: Bug
> Components: Maven Bundle Plugin
> Affects Versions: maven-bundle-plugin-1.4.3
> Environment: Maven Bundle Plugin 1.4.3
> Apache Felix Bundle Repository 1.2.0
> Apache Felix 1.2.1/Eclipse Equinox 3.4.0
> Reporter: Dirk Mahler
>
> The catalina coyote bundle in the SpringSource.com bundle repository (http://www.springsource.com/repository/app/bundle/version/detail?name=com.springsource.org.apache.coyote&version=6.0.16) specifies a Fragment-Host using a version range (which IMHO is correct):
> Fragment-Host: com.springsource.org.apache.catalina;version="[6.0.16, 6.0.16]"
> The Maven Bundle Plugin creates an entry in the OBR repository metadata which contains a capability with a version "[6.0.16, 6.0.16]":
> <capability name="fragment">
> <p n="host" v="com.springsource.org.apache.catalina"/>
> <p n="version" t="version" v="[6.0.16,6.0.16]"/>
> </capability>
> This cannot be read by the bundle repository plugin resulting in the following exception:
> java.lang.NumberFormatException: For input string: "[6"
> at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
> at java.lang.Integer.parseInt(Integer.java:447)
> at java.lang.Integer.parseInt(Integer.java:497)
> at org.osgi.framework.Version.<init>(Version.java:128)
> at org.apache.felix.bundlerepository.PropertyImpl.convertType(PropertyImpl.java:85)
> at org.apache.felix.bundlerepository.PropertyImpl.setT(PropertyImpl.java:62)
> at sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.felix.bundlerepository.metadataparser.XmlCommonHandler.startElement(XmlCommonHandler.java:490)
> at org.apache.felix.bundlerepository.metadataparser.kxmlsax.KXml2SAXParser.parseXML(KXml2SAXParser.java:67)
> ...
> PS: is the declaration of a Fragment-Host really a capability? I think it should be requirement...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (FELIX-760) Version range in Fragment-Host
declaration
Posted by "Dirk Mahler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-760?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12638570#action_12638570 ]
Dirk Mahler commented on FELIX-760:
-----------------------------------
I opened an issue for the SpringSource Bundle Repository to fix the wrong declaration of the bundle version for the fragment host: https://issuetracker.springsource.com/browse/BRITS-191
> Version range in Fragment-Host declaration
> ------------------------------------------
>
> Key: FELIX-760
> URL: https://issues.apache.org/jira/browse/FELIX-760
> Project: Felix
> Issue Type: Bug
> Components: Bundle Repository (OBR), Maven Bundle Plugin
> Affects Versions: maven-bundle-plugin-1.4.3, bundlerepository-1.2.0
> Environment: Maven Bundle Plugin 1.4.3
> Apache Felix Bundle Repository 1.2.0
> Apache Felix 1.2.1/Eclipse Equinox 3.4.0
> Reporter: Dirk Mahler
>
> The catalina coyote bundle in the SpringSource.com bundle repository (http://www.springsource.com/repository/app/bundle/version/detail?name=com.springsource.org.apache.coyote&version=6.0.16) specifies a Fragment-Host using a version range (which IMHO is correct):
> Fragment-Host: com.springsource.org.apache.catalina;version="[6.0.16, 6.0.16]"
> The Maven Bundle Plugin creates an entry in the OBR repository metadata which contains a capability with a version "[6.0.16, 6.0.16]":
> <capability name="fragment">
> <p n="host" v="com.springsource.org.apache.catalina"/>
> <p n="version" t="version" v="[6.0.16,6.0.16]"/>
> </capability>
> This cannot be read by the bundle repository plugin resulting in the following exception:
> java.lang.NumberFormatException: For input string: "[6"
> at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
> at java.lang.Integer.parseInt(Integer.java:447)
> at java.lang.Integer.parseInt(Integer.java:497)
> at org.osgi.framework.Version.<init>(Version.java:128)
> at org.apache.felix.bundlerepository.PropertyImpl.convertType(PropertyImpl.java:85)
> at org.apache.felix.bundlerepository.PropertyImpl.setT(PropertyImpl.java:62)
> at sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.felix.bundlerepository.metadataparser.XmlCommonHandler.startElement(XmlCommonHandler.java:490)
> at org.apache.felix.bundlerepository.metadataparser.kxmlsax.KXml2SAXParser.parseXML(KXml2SAXParser.java:67)
> ...
> PS: is the declaration of a Fragment-Host really a capability? I think it should be requirement...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (FELIX-760) Version range in Fragment-Host
declaration
Posted by "Stuart McCulloch (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-760?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stuart McCulloch reassigned FELIX-760:
--------------------------------------
Assignee: Peter Kriens
Temporarily assigning to Peter, as this is more of a Bindex / OBR spec question.
> Version range in Fragment-Host declaration
> ------------------------------------------
>
> Key: FELIX-760
> URL: https://issues.apache.org/jira/browse/FELIX-760
> Project: Felix
> Issue Type: Bug
> Components: Bundle Repository (OBR), Maven Bundle Plugin
> Affects Versions: maven-bundle-plugin-1.4.3, bundlerepository-1.2.0
> Environment: Maven Bundle Plugin 1.4.3
> Apache Felix Bundle Repository 1.2.0
> Apache Felix 1.2.1/Eclipse Equinox 3.4.0
> Reporter: Dirk Mahler
> Assignee: Peter Kriens
>
> The catalina coyote bundle in the SpringSource.com bundle repository (http://www.springsource.com/repository/app/bundle/version/detail?name=com.springsource.org.apache.coyote&version=6.0.16) specifies a Fragment-Host using a version range (which IMHO is correct):
> Fragment-Host: com.springsource.org.apache.catalina;version="[6.0.16, 6.0.16]"
> The Maven Bundle Plugin creates an entry in the OBR repository metadata which contains a capability with a version "[6.0.16, 6.0.16]":
> <capability name="fragment">
> <p n="host" v="com.springsource.org.apache.catalina"/>
> <p n="version" t="version" v="[6.0.16,6.0.16]"/>
> </capability>
> This cannot be read by the bundle repository plugin resulting in the following exception:
> java.lang.NumberFormatException: For input string: "[6"
> at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
> at java.lang.Integer.parseInt(Integer.java:447)
> at java.lang.Integer.parseInt(Integer.java:497)
> at org.osgi.framework.Version.<init>(Version.java:128)
> at org.apache.felix.bundlerepository.PropertyImpl.convertType(PropertyImpl.java:85)
> at org.apache.felix.bundlerepository.PropertyImpl.setT(PropertyImpl.java:62)
> at sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.felix.bundlerepository.metadataparser.XmlCommonHandler.startElement(XmlCommonHandler.java:490)
> at org.apache.felix.bundlerepository.metadataparser.kxmlsax.KXml2SAXParser.parseXML(KXml2SAXParser.java:67)
> ...
> PS: is the declaration of a Fragment-Host really a capability? I think it should be requirement...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (FELIX-760) Version range in Fragment-Host
declaration
Posted by "Stuart McCulloch (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-760?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stuart McCulloch updated FELIX-760:
-----------------------------------
Component/s: Bundle Repository (OBR)
Affects Version/s: bundlerepository-1.2.0
> Version range in Fragment-Host declaration
> ------------------------------------------
>
> Key: FELIX-760
> URL: https://issues.apache.org/jira/browse/FELIX-760
> Project: Felix
> Issue Type: Bug
> Components: Bundle Repository (OBR), Maven Bundle Plugin
> Affects Versions: maven-bundle-plugin-1.4.3, bundlerepository-1.2.0
> Environment: Maven Bundle Plugin 1.4.3
> Apache Felix Bundle Repository 1.2.0
> Apache Felix 1.2.1/Eclipse Equinox 3.4.0
> Reporter: Dirk Mahler
>
> The catalina coyote bundle in the SpringSource.com bundle repository (http://www.springsource.com/repository/app/bundle/version/detail?name=com.springsource.org.apache.coyote&version=6.0.16) specifies a Fragment-Host using a version range (which IMHO is correct):
> Fragment-Host: com.springsource.org.apache.catalina;version="[6.0.16, 6.0.16]"
> The Maven Bundle Plugin creates an entry in the OBR repository metadata which contains a capability with a version "[6.0.16, 6.0.16]":
> <capability name="fragment">
> <p n="host" v="com.springsource.org.apache.catalina"/>
> <p n="version" t="version" v="[6.0.16,6.0.16]"/>
> </capability>
> This cannot be read by the bundle repository plugin resulting in the following exception:
> java.lang.NumberFormatException: For input string: "[6"
> at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
> at java.lang.Integer.parseInt(Integer.java:447)
> at java.lang.Integer.parseInt(Integer.java:497)
> at org.osgi.framework.Version.<init>(Version.java:128)
> at org.apache.felix.bundlerepository.PropertyImpl.convertType(PropertyImpl.java:85)
> at org.apache.felix.bundlerepository.PropertyImpl.setT(PropertyImpl.java:62)
> at sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.felix.bundlerepository.metadataparser.XmlCommonHandler.startElement(XmlCommonHandler.java:490)
> at org.apache.felix.bundlerepository.metadataparser.kxmlsax.KXml2SAXParser.parseXML(KXml2SAXParser.java:67)
> ...
> PS: is the declaration of a Fragment-Host really a capability? I think it should be requirement...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.