Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

0

Issue while running SingleFeatureTest

asked 2016-08-04 01:54:29 -0800

KushalKumar gravatar image

updated 2016-08-04 02:44:51 -0800

Hi,

I am facing the below issue when I am trying to build my md-sal project using "mvn clean install". The features project fails to build because of the below issue.

I have also pasted the features.xml file for assistance.

This bug is similiar to one mentioned here. But I got no solution to this.



Running org.opendaylight.odlparent.featuretest.SingleFeatureTest Tests run: 4, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 45.788 sec <<< FAILURE! - in org.opendaylight.odlparent.featuretest.SingleFeatureTest installFeature(org.opendaylight.odlparent.featuretest.SingleFeatureTest)[repoUrl: file:/home/directv/work/ncrpcadaptor/features/target/classes/features.xml, Feature: odl-ncrpcadaptor 1.0.0-SNAPSHOT] Time elapsed: 16.209 sec <<< ERROR! java.lang.IllegalStateException: Can't install feature odl-ncrpcadaptor/1.0.0-SNAPSHOT:
Could not start bundle mvn:org.opendaylight.aaa/aaa-authn-mdsal-store-impl/0.2.5-SNAPSHOT in feature(s) odl-aaa-authn-0.2.5-SNAPSHOT: Uses constraint violation. Unable to resolve bundle revision org.opendaylight.aaa.authn-mdsal-store-impl [282.0] because it is exposed to package 'org.opendaylight.yangtools.yang.binding' from bundle revisions org.opendaylight.yangtools.yang-binding [93.0] and org.opendaylight.mdsal.yang-binding [211.0] via two dependency chains.

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<features pom.xml<<<<<<<<<<<<<<<<<<<<<<<<<<<<<="" p="">

http://maven.apache.org/xsd/maven-4.0...> org.opendaylight.odlparent features-parent 1.6.3-SNAPSHOT org.opendaylight.coretutorials ncrpcadaptor-features 1.0.0-SNAPSHOT ${project.artifactId} 4.0.0 3.1.1 0.8.3-SNAPSHOT 1.2.5-SNAPSHOT 1.3.3-SNAPSHOT 0.8.3-SNAPSHOT 0.3.3-SNAPSHOT etc/opendaylight/karaf org.opendaylight.controller mdsal-artifacts ${mdsal.version} pom import org.opendaylight.netconf restconf-artifacts ${restconf.version} pom import org.opendaylight.controller features-netconf-connector features ${mdsal.version} xml runtime org.opendaylight.mdsal.model features-mdsal-model ${mdsal.model.version} features xml runtime org.opendaylight.controller features-mdsal features xml runtime org.opendaylight.netconf features-restconf features xml runtime org.opendaylight.dlux features-dlux features ${dlux.version} xml runtime ${project.groupId} ncrpcadaptor-impl ${project.version} ${project.groupId} ncrpcadaptor-impl ${project.version} xml config ${project.groupId} ncrpcadaptor-api ${project.version}

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

edit retag flag offensive close merge delete

Comments

It happened to me when I downgraded my dependencies to the Carbon release, but disappeared when I upgraded to the most recent deployment build (I used l2switch as a reference, it was using 2.0.4-generation imports for parent projects). This is *sort of* a fix, but I don't understand the problem.

VincentJahjah ( 2017-08-29 12:47:25 -0800 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-07-20 13:45:56 -0800

sofs gravatar image

Hi there!

Did you manage to solve your question?

I'm following the mdsal startup archetype tutorial and I'm also getting a similar error while doing mvn clean install. The error I get is:


Test set: org.opendaylight.odlparent.featuretest.SingleFeatureTest

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.06 sec <<< FAILURE! - in org.opendaylight.odlparent.featuretest.SingleFeatureTest initializationError(org.opendaylight.odlparent.featuretest.SingleFeatureTest) Time elapsed: 0.057 sec <<< ERROR! java.lang.NoSuchMethodError: org.apache.karaf.features.internal.model.JaxbUtil.unmarshal(Ljava/io/InputStream;Z)Lorg/apache/karaf/features/internal/model/Features; at org.opendaylight.odlparent.featuretest.PerRepoTestRunner.getFeatures(PerRepoTestRunner.java:125) at org.opendaylight.odlparent.featuretest.PerRepoTestRunner.runnersFromRepoUrl(PerRepoTestRunner.java:97) at org.opendaylight.odlparent.featuretest.PerRepoTestRunner.runnersFromRepoUrl(PerRepoTestRunner.java:90) at org.opendaylight.odlparent.featuretest.PerRepoTestRunner.<init>(PerRepoTestRunner.java:58) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:29) at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:21) at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59) at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26) at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59) at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:26) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283) at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)

Do you think you can help me?

Thanks!

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2016-08-04 01:54:29 -0800

Seen: 126 times

Last updated: Jul 20