You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've made some dependency upgrades to pax-runner so I can provision karaf features. One dependency was pax-url from 1.x to 2.2.0 . The build passes but the artifact is unusable. When run I get this:
------------------- _ / / / / Oops, there has been a problem! / / // org.ops4j.pax.url.mvn.internal.Activator$1.createConfiguration(Lorg/ops4j/util/property/PropertyResolver;)Ljava/lang/Object; _ //
-> Exception caught during execution: java.lang.AbstractMethodError: org.ops4j.pax.url.mvn.internal.Activator$1.createConfiguration(Lorg/ops4j/util/property/PropertyResolver;)Ljava/lang/Object; at org.ops4j.pax.url.commons.handler.HandlerActivator.start(HandlerActivator.java:122) at org.ops4j.pax.runner.Run.createActivator(Run.java:754) at org.ops4j.pax.runner.Run.installHandlers(Run.java:353) at org.ops4j.pax.runner.Run.start(Run.java:201) at org.ops4j.pax.runner.Run.main(Run.java:134) at org.ops4j.pax.runner.Run.main(Run.java:102) ----------------
The issue seems to be related to shading. The anonymous inner lass in org.ops4j.pax.url.mvn.internal.Activator has a createConfigurationMethod that receives an org.ops4j.util.property.PropertyResolver type object. However. the MavenConfigurationImpl class is expecting a shaded version: shaded.org.ops4j.util.property.PropertyResolver
final MavenConfigurationImpl config = new MavenConfigurationImpl( propertyResolver, ServiceConstants.PID );
Ioan Eugen Stan created PAXRUNNER-450
I've made some dependency upgrades to pax-runner so I can provision karaf features. One dependency was pax-url from 1.x to 2.2.0 . The build passes but the artifact is unusable. When run I get this:
-------------------
_
/ /
/ / Oops, there has been a problem!
/ /
// org.ops4j.pax.url.mvn.internal.Activator$1.createConfiguration(Lorg/ops4j/util/property/PropertyResolver;)Ljava/lang/Object;
_
//
-> Exception caught during execution:
java.lang.AbstractMethodError: org.ops4j.pax.url.mvn.internal.Activator$1.createConfiguration(Lorg/ops4j/util/property/PropertyResolver;)Ljava/lang/Object;
at org.ops4j.pax.url.commons.handler.HandlerActivator.start(HandlerActivator.java:122)
at org.ops4j.pax.runner.Run.createActivator(Run.java:754)
at org.ops4j.pax.runner.Run.installHandlers(Run.java:353)
at org.ops4j.pax.runner.Run.start(Run.java:201)
at org.ops4j.pax.runner.Run.main(Run.java:134)
at org.ops4j.pax.runner.Run.main(Run.java:102)
----------------
The issue seems to be related to shading. The anonymous inner lass in org.ops4j.pax.url.mvn.internal.Activator has a createConfigurationMethod that receives an org.ops4j.util.property.PropertyResolver type object. However. the MavenConfigurationImpl class is expecting a shaded version: shaded.org.ops4j.util.property.PropertyResolver
final MavenConfigurationImpl config =
new MavenConfigurationImpl( propertyResolver, ServiceConstants.PID );
Affects: 1.8.6
Votes: 0, Watches: 2
Referenced issues
aggregation of:
blocks:
The text was updated successfully, but these errors were encountered: