You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Bob Ziuchkovski (Created) (JIRA)" <ji...@apache.org> on 2012/02/20 08:09:34 UTC
[jira] [Created] (FELIX-3356) Objectweb ASM Clashes with IPojo
Objectweb ASM Clashes with IPojo
--------------------------------
Key: FELIX-3356
URL: https://issues.apache.org/jira/browse/FELIX-3356
Project: Felix
Issue Type: Bug
Components: iPOJO
Reporter: Bob Ziuchkovski
Priority: Minor
Ipojo automatically imports org.apache.felix.ipojo.architecture for bundles that it manages, and org.apache.felix.ipojo.architecture is marked as using org.objectweb.asm. This creates conflicts for any ipojo-managed bundle that wishes to import and use a different objectweb asm version (i.e. 4.0) for non-ipojo purposes. See the below output for an example:
Error executing command: Error starting bundles:
Unable to start bundle 107: Uses constraint violation. Unable to resolve bundle revision test.service [107.0] because it is exposed to package 'org.objectweb.asm' from bundle revisions org.objectweb.asm.all [98.0] and org.apache.felix.ipojo [99.0] via two dependency chains.
Chain 1:
test.service [107.0]
import: (&(osgi.wiring.package=org.objectweb.asm)(version>=4.0.0)(!(version>=5.0.0)))
|
export: osgi.wiring.package=org.objectweb.asm
org.objectweb.asm.all [98.0]
Chain 2:
test.service [107.0]
import: (&(osgi.wiring.package=org.apache.felix.ipojo.architecture)(version>=1.8.0))
|
export: osgi.wiring.package=org.apache.felix.ipojo.architecture; uses:=org.objectweb.asm
export: osgi.wiring.package=org.objectweb.asm
org.apache.felix.ipojo [99.0]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (FELIX-3356) Objectweb ASM Clashes with IPojo
Posted by "Clement Escoffier (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-3356?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Clement Escoffier resolved FELIX-3356.
--------------------------------------
Resolution: Fixed
Fix Version/s: (was: ipojo-manipulator-1.8.6)
ipojo-core-1.8.2
Fixed in trunk.
ASM packages are now private to iPOJO bundles
> Objectweb ASM Clashes with IPojo
> --------------------------------
>
> Key: FELIX-3356
> URL: https://issues.apache.org/jira/browse/FELIX-3356
> Project: Felix
> Issue Type: Bug
> Components: iPOJO
> Affects Versions: ipojo-manipulator-1.8.4
> Reporter: Bob Ziuchkovski
> Assignee: Clement Escoffier
> Priority: Minor
> Fix For: ipojo-core-1.8.2
>
>
> Ipojo automatically imports org.apache.felix.ipojo.architecture for bundles that it manages, and org.apache.felix.ipojo.architecture is marked as using org.objectweb.asm. This creates conflicts for any ipojo-managed bundle that wishes to import and use a different objectweb asm version (i.e. 4.0) for non-ipojo purposes. See the below output for an example:
> Error executing command: Error starting bundles:
> Unable to start bundle 107: Uses constraint violation. Unable to resolve bundle revision test.service [107.0] because it is exposed to package 'org.objectweb.asm' from bundle revisions org.objectweb.asm.all [98.0] and org.apache.felix.ipojo [99.0] via two dependency chains.
> Chain 1:
> test.service [107.0]
> import: (&(osgi.wiring.package=org.objectweb.asm)(version>=4.0.0)(!(version>=5.0.0)))
> |
> export: osgi.wiring.package=org.objectweb.asm
> org.objectweb.asm.all [98.0]
> Chain 2:
> test.service [107.0]
> import: (&(osgi.wiring.package=org.apache.felix.ipojo.architecture)(version>=1.8.0))
> |
> export: osgi.wiring.package=org.apache.felix.ipojo.architecture; uses:=org.objectweb.asm
> export: osgi.wiring.package=org.objectweb.asm
> org.apache.felix.ipojo [99.0]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (FELIX-3356) Objectweb ASM Clashes with IPojo
Posted by "Clement Escoffier (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-3356?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Clement Escoffier updated FELIX-3356:
-------------------------------------
Fix Version/s: (was: ipojo-manipulator-1.8.4)
(was: ipojo-core-1.8.2)
(was: ipojo-composite-1.8.2)
ipojo-manipulator-1.8.6
Affects Version/s: (was: ipojo-manipulator-1.8.2)
(was: iPOJO-1.8.0)
ipojo-manipulator-1.8.4
> Objectweb ASM Clashes with IPojo
> --------------------------------
>
> Key: FELIX-3356
> URL: https://issues.apache.org/jira/browse/FELIX-3356
> Project: Felix
> Issue Type: Bug
> Components: iPOJO
> Affects Versions: ipojo-manipulator-1.8.4
> Reporter: Bob Ziuchkovski
> Assignee: Clement Escoffier
> Priority: Minor
> Fix For: ipojo-manipulator-1.8.6
>
>
> Ipojo automatically imports org.apache.felix.ipojo.architecture for bundles that it manages, and org.apache.felix.ipojo.architecture is marked as using org.objectweb.asm. This creates conflicts for any ipojo-managed bundle that wishes to import and use a different objectweb asm version (i.e. 4.0) for non-ipojo purposes. See the below output for an example:
> Error executing command: Error starting bundles:
> Unable to start bundle 107: Uses constraint violation. Unable to resolve bundle revision test.service [107.0] because it is exposed to package 'org.objectweb.asm' from bundle revisions org.objectweb.asm.all [98.0] and org.apache.felix.ipojo [99.0] via two dependency chains.
> Chain 1:
> test.service [107.0]
> import: (&(osgi.wiring.package=org.objectweb.asm)(version>=4.0.0)(!(version>=5.0.0)))
> |
> export: osgi.wiring.package=org.objectweb.asm
> org.objectweb.asm.all [98.0]
> Chain 2:
> test.service [107.0]
> import: (&(osgi.wiring.package=org.apache.felix.ipojo.architecture)(version>=1.8.0))
> |
> export: osgi.wiring.package=org.apache.felix.ipojo.architecture; uses:=org.objectweb.asm
> export: osgi.wiring.package=org.objectweb.asm
> org.apache.felix.ipojo [99.0]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (FELIX-3356) Objectweb ASM Clashes with IPojo
Posted by "Clement Escoffier (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-3356?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Clement Escoffier updated FELIX-3356:
-------------------------------------
Affects Version/s: iPOJO-1.8.0
ipojo-manipulator-1.8.2
Fix Version/s: ipojo-manipulator-1.8.4
ipojo-core-1.8.2
ipojo-composite-1.8.2
> Objectweb ASM Clashes with IPojo
> --------------------------------
>
> Key: FELIX-3356
> URL: https://issues.apache.org/jira/browse/FELIX-3356
> Project: Felix
> Issue Type: Bug
> Components: iPOJO
> Affects Versions: iPOJO-1.8.0, ipojo-manipulator-1.8.2
> Reporter: Bob Ziuchkovski
> Assignee: Clement Escoffier
> Priority: Minor
> Fix For: ipojo-composite-1.8.2, ipojo-core-1.8.2, ipojo-manipulator-1.8.4
>
>
> Ipojo automatically imports org.apache.felix.ipojo.architecture for bundles that it manages, and org.apache.felix.ipojo.architecture is marked as using org.objectweb.asm. This creates conflicts for any ipojo-managed bundle that wishes to import and use a different objectweb asm version (i.e. 4.0) for non-ipojo purposes. See the below output for an example:
> Error executing command: Error starting bundles:
> Unable to start bundle 107: Uses constraint violation. Unable to resolve bundle revision test.service [107.0] because it is exposed to package 'org.objectweb.asm' from bundle revisions org.objectweb.asm.all [98.0] and org.apache.felix.ipojo [99.0] via two dependency chains.
> Chain 1:
> test.service [107.0]
> import: (&(osgi.wiring.package=org.objectweb.asm)(version>=4.0.0)(!(version>=5.0.0)))
> |
> export: osgi.wiring.package=org.objectweb.asm
> org.objectweb.asm.all [98.0]
> Chain 2:
> test.service [107.0]
> import: (&(osgi.wiring.package=org.apache.felix.ipojo.architecture)(version>=1.8.0))
> |
> export: osgi.wiring.package=org.apache.felix.ipojo.architecture; uses:=org.objectweb.asm
> export: osgi.wiring.package=org.objectweb.asm
> org.apache.felix.ipojo [99.0]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (FELIX-3356) Objectweb ASM Clashes with IPojo
Posted by "Clement Escoffier (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-3356?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13212443#comment-13212443 ]
Clement Escoffier commented on FELIX-3356:
------------------------------------------
iPOJO should keep ASM private. Because ven if we plan to switch to ASM 4.0, it does not fix the issue with bundle requiring ASM 3.0 (APIs absolutely not compatible). So, iPOJO core, composite and online manipulator should not export ASM packages.
> Objectweb ASM Clashes with IPojo
> --------------------------------
>
> Key: FELIX-3356
> URL: https://issues.apache.org/jira/browse/FELIX-3356
> Project: Felix
> Issue Type: Bug
> Components: iPOJO
> Affects Versions: iPOJO-1.8.0, ipojo-manipulator-1.8.2
> Reporter: Bob Ziuchkovski
> Assignee: Clement Escoffier
> Priority: Minor
> Fix For: ipojo-composite-1.8.2, ipojo-core-1.8.2, ipojo-manipulator-1.8.4
>
>
> Ipojo automatically imports org.apache.felix.ipojo.architecture for bundles that it manages, and org.apache.felix.ipojo.architecture is marked as using org.objectweb.asm. This creates conflicts for any ipojo-managed bundle that wishes to import and use a different objectweb asm version (i.e. 4.0) for non-ipojo purposes. See the below output for an example:
> Error executing command: Error starting bundles:
> Unable to start bundle 107: Uses constraint violation. Unable to resolve bundle revision test.service [107.0] because it is exposed to package 'org.objectweb.asm' from bundle revisions org.objectweb.asm.all [98.0] and org.apache.felix.ipojo [99.0] via two dependency chains.
> Chain 1:
> test.service [107.0]
> import: (&(osgi.wiring.package=org.objectweb.asm)(version>=4.0.0)(!(version>=5.0.0)))
> |
> export: osgi.wiring.package=org.objectweb.asm
> org.objectweb.asm.all [98.0]
> Chain 2:
> test.service [107.0]
> import: (&(osgi.wiring.package=org.apache.felix.ipojo.architecture)(version>=1.8.0))
> |
> export: osgi.wiring.package=org.apache.felix.ipojo.architecture; uses:=org.objectweb.asm
> export: osgi.wiring.package=org.objectweb.asm
> org.apache.felix.ipojo [99.0]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (FELIX-3356) Objectweb ASM Clashes with IPojo
Posted by "David Jencks (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-3356?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13211707#comment-13211707 ]
David Jencks commented on FELIX-3356:
-------------------------------------
Could you clarify if the problem is that the ipojo package in question actually uses asm classes in a method signature or by extending or implementing one of the classes, so that the uses clause is correct, or is this another example of bnd generating incorrect uses clauses for packages containing implementation classes because the uses clause generator scans the whole class, not just the class parents and method signatures?
> Objectweb ASM Clashes with IPojo
> --------------------------------
>
> Key: FELIX-3356
> URL: https://issues.apache.org/jira/browse/FELIX-3356
> Project: Felix
> Issue Type: Bug
> Components: iPOJO
> Reporter: Bob Ziuchkovski
> Priority: Minor
>
> Ipojo automatically imports org.apache.felix.ipojo.architecture for bundles that it manages, and org.apache.felix.ipojo.architecture is marked as using org.objectweb.asm. This creates conflicts for any ipojo-managed bundle that wishes to import and use a different objectweb asm version (i.e. 4.0) for non-ipojo purposes. See the below output for an example:
> Error executing command: Error starting bundles:
> Unable to start bundle 107: Uses constraint violation. Unable to resolve bundle revision test.service [107.0] because it is exposed to package 'org.objectweb.asm' from bundle revisions org.objectweb.asm.all [98.0] and org.apache.felix.ipojo [99.0] via two dependency chains.
> Chain 1:
> test.service [107.0]
> import: (&(osgi.wiring.package=org.objectweb.asm)(version>=4.0.0)(!(version>=5.0.0)))
> |
> export: osgi.wiring.package=org.objectweb.asm
> org.objectweb.asm.all [98.0]
> Chain 2:
> test.service [107.0]
> import: (&(osgi.wiring.package=org.apache.felix.ipojo.architecture)(version>=1.8.0))
> |
> export: osgi.wiring.package=org.apache.felix.ipojo.architecture; uses:=org.objectweb.asm
> export: osgi.wiring.package=org.objectweb.asm
> org.apache.felix.ipojo [99.0]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (FELIX-3356) Objectweb ASM Clashes with IPojo
Posted by "Clement Escoffier (Assigned) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-3356?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Clement Escoffier reassigned FELIX-3356:
----------------------------------------
Assignee: Clement Escoffier
> Objectweb ASM Clashes with IPojo
> --------------------------------
>
> Key: FELIX-3356
> URL: https://issues.apache.org/jira/browse/FELIX-3356
> Project: Felix
> Issue Type: Bug
> Components: iPOJO
> Reporter: Bob Ziuchkovski
> Assignee: Clement Escoffier
> Priority: Minor
>
> Ipojo automatically imports org.apache.felix.ipojo.architecture for bundles that it manages, and org.apache.felix.ipojo.architecture is marked as using org.objectweb.asm. This creates conflicts for any ipojo-managed bundle that wishes to import and use a different objectweb asm version (i.e. 4.0) for non-ipojo purposes. See the below output for an example:
> Error executing command: Error starting bundles:
> Unable to start bundle 107: Uses constraint violation. Unable to resolve bundle revision test.service [107.0] because it is exposed to package 'org.objectweb.asm' from bundle revisions org.objectweb.asm.all [98.0] and org.apache.felix.ipojo [99.0] via two dependency chains.
> Chain 1:
> test.service [107.0]
> import: (&(osgi.wiring.package=org.objectweb.asm)(version>=4.0.0)(!(version>=5.0.0)))
> |
> export: osgi.wiring.package=org.objectweb.asm
> org.objectweb.asm.all [98.0]
> Chain 2:
> test.service [107.0]
> import: (&(osgi.wiring.package=org.apache.felix.ipojo.architecture)(version>=1.8.0))
> |
> export: osgi.wiring.package=org.apache.felix.ipojo.architecture; uses:=org.objectweb.asm
> export: osgi.wiring.package=org.objectweb.asm
> org.apache.felix.ipojo [99.0]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (FELIX-3356) Objectweb ASM Clashes with IPojo
Posted by "Bob Ziuchkovski (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-3356?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13211718#comment-13211718 ]
Bob Ziuchkovski commented on FELIX-3356:
----------------------------------------
Hmm...it looks like bnd is getting the manifest correct, in that it only shows org.apache.felix.ipojo.handlers.dependency as using org.objectweb.asm. However, it lists org.apache.felix.ipojo.architecture as using org.apache.felix.ipojo, which in turn is marked as using org.apache.felix.ipojo.handlers.dependency, which uses org.objectweb.asm. I think the ipojo->ipojo.handlers.dependency use clause is probably coming from PrimitiveInstanceDescription.java. At a glance I don't see anything else that would cause ipojo.architecture to pull in wiring for org.objectweb.asm, but I am not 100% certain.
> Objectweb ASM Clashes with IPojo
> --------------------------------
>
> Key: FELIX-3356
> URL: https://issues.apache.org/jira/browse/FELIX-3356
> Project: Felix
> Issue Type: Bug
> Components: iPOJO
> Reporter: Bob Ziuchkovski
> Priority: Minor
>
> Ipojo automatically imports org.apache.felix.ipojo.architecture for bundles that it manages, and org.apache.felix.ipojo.architecture is marked as using org.objectweb.asm. This creates conflicts for any ipojo-managed bundle that wishes to import and use a different objectweb asm version (i.e. 4.0) for non-ipojo purposes. See the below output for an example:
> Error executing command: Error starting bundles:
> Unable to start bundle 107: Uses constraint violation. Unable to resolve bundle revision test.service [107.0] because it is exposed to package 'org.objectweb.asm' from bundle revisions org.objectweb.asm.all [98.0] and org.apache.felix.ipojo [99.0] via two dependency chains.
> Chain 1:
> test.service [107.0]
> import: (&(osgi.wiring.package=org.objectweb.asm)(version>=4.0.0)(!(version>=5.0.0)))
> |
> export: osgi.wiring.package=org.objectweb.asm
> org.objectweb.asm.all [98.0]
> Chain 2:
> test.service [107.0]
> import: (&(osgi.wiring.package=org.apache.felix.ipojo.architecture)(version>=1.8.0))
> |
> export: osgi.wiring.package=org.apache.felix.ipojo.architecture; uses:=org.objectweb.asm
> export: osgi.wiring.package=org.objectweb.asm
> org.apache.felix.ipojo [99.0]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira