Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jar contains ops4j artifacts, causes java.lang.AbstractMethodError in pax-runner [PAXRUNNER-450] #445

Open
ops4j-issues opened this issue Oct 14, 2014 · 1 comment
Labels

Comments

@ops4j-issues
Copy link

ops4j-issues commented Oct 14, 2014

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:

@ops4j-issues
Copy link
Author

Mario Krizmanić commented

Please test with pax-runner 1.8.7-SNAPSHOT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant