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

macfa updated SM-5253:
----------------------
    Description: 
Hi, I am currently using the ServiceMix bundle *POI 4.0.1_1* in my OSGI based 
project and everything works just fine.
My setup is the Eclipse OSGI framework 
(org.eclipse.osgi_3.16.300.v20210525-1715) and java 11 (openjdk 11.0.15).
Since several vulnerabilities have been found, I want to finally upgrade to the 
latest version, which is {*}5.2.2_2{*}.
While the application is starting up, a following exception appears: 
{code:java}
org.osgi.framework.BundleException: Could not resolve module: 
org.apache.servicemix.bundles.poi [65]
  Unresolved requirement: Import-Package: org.w3c.dom.svg
    at org.eclipse.osgi.container.Module.start(Module.java:463)
    at 
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel$2.run(ModuleContainer.java:1849)
    at 
org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor$1$1.execute(EquinoxContainerAdaptor.java:136)
    at 
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1842)
    at 
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1785)
    at 
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1747)
    at 
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1669)
    at 
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
    at 
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:234)
    at 
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:345)
 {code}
I had tried to resolve the problem by adding a new bundle which exports this 
dependency, but it didn't help since there are much more unresolved 
requirements.

 
{code:java}
    13:11:19.356 ERROR [Framework Event Dispatcher: Equinox Container: 
270292e0-1e97-47a1-8b53-5dd47937ec8f] org.osgi.framework.FrameworkEvent        
[,,:,:] - FrameworkEvent ERROR
org.osgi.framework.BundleException: Could not resolve module: 
org.apache.servicemix.bundles.poi [65]
  Unresolved requirement: Import-Package: org.apache.xmlbeans; 
resolution:="optional"
  Unresolved requirement: Import-Package: org.apache.xmlbeans.impl.common; 
resolution:="optional"
  Unresolved requirement: Import-Package: org.apache.xmlbeans.impl.schema; 
resolution:="optional"
  Unresolved requirement: Import-Package: org.apache.xmlbeans.impl.values; 
resolution:="optional"
  Unresolved requirement: Import-Package: 
org.apache.xmlbeans.impl.xb.xmlschema; resolution:="optional"
  Unresolved requirement: Import-Package: org.apache.commons.collections4; 
version="[4.4.0,5.0.0)"; resolution:="optional"
  Unresolved requirement: Import-Package: 
org.apache.commons.collections4.bidimap; version="[4.4.0,5.0.0)"; 
resolution:="optional"
  Unresolved requirement: Import-Package: 
org.apache.commons.collections4.iterators; version="[4.4.0,5.0.0)"; 
resolution:="optional"
  Unresolved requirement: Import-Package: 
org.apache.commons.collections4.multimap; version="[4.4.0,5.0.0)"; 
resolution:="optional"
  Unresolved requirement: Import-Package: 
org.apache.commons.math3.distribution; version="[3.6.0,4.0.0)"; 
resolution:="optional"
  Unresolved requirement: Import-Package: org.apache.commons.math3.exception; 
version="[3.6.0,4.0.0)"; resolution:="optional"
  Unresolved requirement: Import-Package: org.apache.commons.math3.linear; 
version="[3.6.0,4.0.0)"; resolution:="optional"
  Unresolved requirement: Import-Package: org.apache.commons.math3.random; 
version="[3.6.0,4.0.0)"; resolution:="optional"
  Unresolved requirement: Import-Package: org.apache.commons.math3.special; 
version="[3.6.0,4.0.0)"; resolution:="optional"
  Unresolved requirement: Import-Package: 
org.apache.commons.math3.stat.descriptive.moment; version="[3.6.0,4.0.0)"; 
resolution:="optional"
  Unresolved requirement: Import-Package: 
org.apache.commons.math3.stat.regression; version="[3.6.0,4.0.0)"; 
resolution:="optional"
  Unresolved requirement: Import-Package: org.apache.commons.compress.archivers
    at org.eclipse.osgi.container.Module.start(Module.java:463)
    at 
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel$2.run(ModuleContainer.java:1849)
    at 
org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor$1$1.execute(EquinoxContainerAdaptor.java:136)
    at 
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1842)
    at 
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1785)
    at 
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1747)
    at 
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1669)
    at 
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
    at 
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:234)
    at 
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:345)
 {code}
Is it possible to remove these packages from the import section in the POM 
file, or just export them as well?

 

  was:
Hi, I am currently using the ServiceMix bundle *POI 4.0.1_1* in my OSGI based 
project and everything works just fine.
My setup is the Eclipse OSGI framework 
(org.eclipse.osgi_3.16.300.v20210525-1715) and java 11 (openjdk 11.0.15).
Since several vulnerabilities have been found, I want to finally upgrade to the 
latest version, which is {*}5.2.2_2{*}.
While the application is starting up, a following exception appears: 
{code:java}
org.osgi.framework.BundleException: Could not resolve module: 
org.apache.servicemix.bundles.poi [65]
  Unresolved requirement: Import-Package: org.w3c.dom.svg
    at org.eclipse.osgi.container.Module.start(Module.java:463)
    at 
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel$2.run(ModuleContainer.java:1849)
    at 
org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor$1$1.execute(EquinoxContainerAdaptor.java:136)
    at 
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1842)
    at 
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1785)
    at 
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1747)
    at 
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1669)
    at 
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
    at 
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:234)
    at 
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:345)
 {code}
I had tried to resolve the problem by adding a new bundle which exports this 
dependency, but it didn't help since there are much more unresolved 
requirements.

 
{code:java}
    13:11:19.356 ERROR [Framework Event Dispatcher: Equinox Container: 
270292e0-1e97-47a1-8b53-5dd47937ec8f] org.osgi.framework.FrameworkEvent        
[,,:,:] - FrameworkEvent ERROR
org.osgi.framework.BundleException: Could not resolve module: 
org.apache.servicemix.bundles.poi [65]
  Unresolved requirement: Import-Package: org.apache.xmlbeans; 
resolution:="optional"
  Unresolved requirement: Import-Package: org.apache.xmlbeans.impl.common; 
resolution:="optional"
  Unresolved requirement: Import-Package: org.apache.xmlbeans.impl.schema; 
resolution:="optional"
  Unresolved requirement: Import-Package: org.apache.xmlbeans.impl.values; 
resolution:="optional"
  Unresolved requirement: Import-Package: 
org.apache.xmlbeans.impl.xb.xmlschema; resolution:="optional"
  Unresolved requirement: Import-Package: org.apache.commons.collections4; 
version="[4.4.0,5.0.0)"; resolution:="optional"
  Unresolved requirement: Import-Package: 
org.apache.commons.collections4.bidimap; version="[4.4.0,5.0.0)"; 
resolution:="optional"
  Unresolved requirement: Import-Package: 
org.apache.commons.collections4.iterators; version="[4.4.0,5.0.0)"; 
resolution:="optional"
  Unresolved requirement: Import-Package: 
org.apache.commons.collections4.multimap; version="[4.4.0,5.0.0)"; 
resolution:="optional"
  Unresolved requirement: Import-Package: 
org.apache.commons.math3.distribution; version="[3.6.0,4.0.0)"; 
resolution:="optional"
  Unresolved requirement: Import-Package: org.apache.commons.math3.exception; 
version="[3.6.0,4.0.0)"; resolution:="optional"
  Unresolved requirement: Import-Package: org.apache.commons.math3.linear; 
version="[3.6.0,4.0.0)"; resolution:="optional"
  Unresolved requirement: Import-Package: org.apache.commons.math3.random; 
version="[3.6.0,4.0.0)"; resolution:="optional"
  Unresolved requirement: Import-Package: org.apache.commons.math3.special; 
version="[3.6.0,4.0.0)"; resolution:="optional"
  Unresolved requirement: Import-Package: 
org.apache.commons.math3.stat.descriptive.moment; version="[3.6.0,4.0.0)"; 
resolution:="optional"
  Unresolved requirement: Import-Package: 
org.apache.commons.math3.stat.regression; version="[3.6.0,4.0.0)"; 
resolution:="optional"
  Unresolved requirement: Import-Package: org.apache.commons.compress.archivers
    at org.eclipse.osgi.container.Module.start(Module.java:463)
    at 
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel$2.run(ModuleContainer.java:1849)
    at 
org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor$1$1.execute(EquinoxContainerAdaptor.java:136)
    at 
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1842)
    at 
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1785)
    at 
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1747)
    at 
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1669)
    at 
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
    at 
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:234)
    at 
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:345)
 {code}
Is it possible to remove these packages from the import section in the POM 
file, or is this intentional and I have to provide all of the dependecies 
myself?

 


> OSGI service with ServiceMix bundle PO 5.2.2_2 is not starting up
> -----------------------------------------------------------------
>
>                 Key: SM-5253
>                 URL: https://issues.apache.org/jira/browse/SM-5253
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: bundles
>            Reporter: macfa
>            Priority: Blocker
>
> Hi, I am currently using the ServiceMix bundle *POI 4.0.1_1* in my OSGI based 
> project and everything works just fine.
> My setup is the Eclipse OSGI framework 
> (org.eclipse.osgi_3.16.300.v20210525-1715) and java 11 (openjdk 11.0.15).
> Since several vulnerabilities have been found, I want to finally upgrade to 
> the latest version, which is {*}5.2.2_2{*}.
> While the application is starting up, a following exception appears: 
> {code:java}
> org.osgi.framework.BundleException: Could not resolve module: 
> org.apache.servicemix.bundles.poi [65]
>   Unresolved requirement: Import-Package: org.w3c.dom.svg
>     at org.eclipse.osgi.container.Module.start(Module.java:463)
>     at 
> org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel$2.run(ModuleContainer.java:1849)
>     at 
> org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor$1$1.execute(EquinoxContainerAdaptor.java:136)
>     at 
> org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1842)
>     at 
> org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1785)
>     at 
> org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1747)
>     at 
> org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1669)
>     at 
> org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
>     at 
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:234)
>     at 
> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:345)
>  {code}
> I had tried to resolve the problem by adding a new bundle which exports this 
> dependency, but it didn't help since there are much more unresolved 
> requirements.
>  
> {code:java}
>     13:11:19.356 ERROR [Framework Event Dispatcher: Equinox Container: 
> 270292e0-1e97-47a1-8b53-5dd47937ec8f] org.osgi.framework.FrameworkEvent       
>  [,,:,:] - FrameworkEvent ERROR
> org.osgi.framework.BundleException: Could not resolve module: 
> org.apache.servicemix.bundles.poi [65]
>   Unresolved requirement: Import-Package: org.apache.xmlbeans; 
> resolution:="optional"
>   Unresolved requirement: Import-Package: org.apache.xmlbeans.impl.common; 
> resolution:="optional"
>   Unresolved requirement: Import-Package: org.apache.xmlbeans.impl.schema; 
> resolution:="optional"
>   Unresolved requirement: Import-Package: org.apache.xmlbeans.impl.values; 
> resolution:="optional"
>   Unresolved requirement: Import-Package: 
> org.apache.xmlbeans.impl.xb.xmlschema; resolution:="optional"
>   Unresolved requirement: Import-Package: org.apache.commons.collections4; 
> version="[4.4.0,5.0.0)"; resolution:="optional"
>   Unresolved requirement: Import-Package: 
> org.apache.commons.collections4.bidimap; version="[4.4.0,5.0.0)"; 
> resolution:="optional"
>   Unresolved requirement: Import-Package: 
> org.apache.commons.collections4.iterators; version="[4.4.0,5.0.0)"; 
> resolution:="optional"
>   Unresolved requirement: Import-Package: 
> org.apache.commons.collections4.multimap; version="[4.4.0,5.0.0)"; 
> resolution:="optional"
>   Unresolved requirement: Import-Package: 
> org.apache.commons.math3.distribution; version="[3.6.0,4.0.0)"; 
> resolution:="optional"
>   Unresolved requirement: Import-Package: org.apache.commons.math3.exception; 
> version="[3.6.0,4.0.0)"; resolution:="optional"
>   Unresolved requirement: Import-Package: org.apache.commons.math3.linear; 
> version="[3.6.0,4.0.0)"; resolution:="optional"
>   Unresolved requirement: Import-Package: org.apache.commons.math3.random; 
> version="[3.6.0,4.0.0)"; resolution:="optional"
>   Unresolved requirement: Import-Package: org.apache.commons.math3.special; 
> version="[3.6.0,4.0.0)"; resolution:="optional"
>   Unresolved requirement: Import-Package: 
> org.apache.commons.math3.stat.descriptive.moment; version="[3.6.0,4.0.0)"; 
> resolution:="optional"
>   Unresolved requirement: Import-Package: 
> org.apache.commons.math3.stat.regression; version="[3.6.0,4.0.0)"; 
> resolution:="optional"
>   Unresolved requirement: Import-Package: 
> org.apache.commons.compress.archivers
>     at org.eclipse.osgi.container.Module.start(Module.java:463)
>     at 
> org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel$2.run(ModuleContainer.java:1849)
>     at 
> org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor$1$1.execute(EquinoxContainerAdaptor.java:136)
>     at 
> org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1842)
>     at 
> org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1785)
>     at 
> org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1747)
>     at 
> org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1669)
>     at 
> org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
>     at 
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:234)
>     at 
> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:345)
>  {code}
> Is it possible to remove these packages from the import section in the POM 
> file, or just export them as well?
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to