Details
-
Bug
-
Status: Resolved
-
Blocker
-
Resolution: Fixed
-
None
-
None
Description
When we use the 2.0.9-SNAPSHOT version currently in development we get an ArrayIndexOutOfBoundsException as soon as our base subsystem contains a fragment bundle:
Caused by: org.osgi.service.subsystem.SubsystemException: java.lang.ArrayIndexOutOfBoundsException: -1
at org.apache.aries.subsystem.core.internal.Utils.handleTrowable(Utils.java:117)
at org.apache.aries.subsystem.core.internal.SubsystemResource.computeDependencies(SubsystemResource.java:398)
at org.apache.aries.subsystem.core.internal.SubsystemResource.computeDependencies(SubsystemResource.java:363)
at org.apache.aries.subsystem.core.internal.SubsystemResource.<init>(SubsystemResource.java:101)
at org.apache.aries.subsystem.core.internal.SubsystemResource.<init>(SubsystemResource.java:91)
at org.apache.aries.subsystem.core.internal.InstallAction.run(InstallAction.java:60)
at org.apache.aries.subsystem.core.internal.InstallAction.run(InstallAction.java:27)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.aries.subsystem.core.internal.BasicSubsystem.install(BasicSubsystem.java:738)
at org.apache.aries.subsystem.core.internal.BasicSubsystem.install(BasicSubsystem.java:791)
at org.apache.aries.subsystem.core.internal.BasicSubsystem.install(BasicSubsystem.java:365)
at org.apache.aries.subsystem.core.internal.BasicSubsystem.install(BasicSubsystem.java:70)
... 30 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
at org.apache.felix.resolver.util.CopyOnWriteList.set(CopyOnWriteList.java:53)
at org.apache.felix.resolver.Candidates.prepare(Candidates.java:1052)
at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:173)
at org.apache.aries.subsystem.core.internal.SubsystemResource.computeDependencies(SubsystemResource.java:393)
... 41 more
Attached are 2 subsystems that allow to reproduce it. Note that the ONLY difference between these subsystem esa's and the onces attached at ARIES-1590 is the fragment bundle osgi-pax-web-jetty-config.
So the problem might be related to the same commit, but another effect.
Note: we are using the felix resolver 1.4.0
Steps to reproduce:
1. start clean felix
2. install the attached reproduce-base-subsystem-4.1.2-SNAPSHOT.esa, do not start it
3. install the attached reproduce-subsystem-4.1.2-SNAPSHOT.esa
Step 3 fails with the above exception.
Attachments
Attachments
Issue Links
- blocks
-
ARIES-1547 Subsystem 2.0.10 Release
- In Progress
- relates to
-
ARIES-1590 Subsystem install fails due to unexpected resolve conflict
- Resolved