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

how could i fix could not be resolved. Reason: Missing Constraint: Import-Package: com.esotericsoftware.kryo

asked 2014-11-01 04:49:00 -0800

anonymous user

Anonymous

Hi all;

I can not fix it.

Have you guys been suffered this problem?

org.osgi.framework.BundleException: The bundle "org.opendaylight.openflowplugin.fresco-application-core0.1.0.SNAPSHOT [23]" could not be resolved. Reason: Missing Constraint: Import-Package: com.esotericsoftware.kryo; version="[3.0.0,4.0.0)" at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1332) at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1316) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:323) at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390) at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176) at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559) at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544) at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457) at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243) at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438) at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340) 2014-11-01 04:45:33.579 PDT [org.opendaylight.controller.logging.bridge.internal.LogListenerImpl@524eaead] ERROR o.o.c.logging.bridge.OSGI2SLF4J - Bundle:org.opendaylight.openflowplugin.fresco-application-core Message:FrameworkEvent ERROR org.osgi.framework.BundleException: The bundle "org.opendaylight.openflowplugin.fresco-application-core0.1.0.SNAPSHOT [23]" could not be resolved. Reason: Missing Constraint: Import-Package: com.esotericsoftware.kryo; version="[3.0.0,4.0.0)" at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1332) ~[org.eclipse.osgi-3.8.1.v20120830-144521.jar:na] at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1316) ~[org.eclipse.osgi-3.8.1.v20120830-144521.jar:na] at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:323) ~[org.eclipse.osgi-3.8.1.v20120830-144521.jar:na] at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390) ~[org.eclipse.osgi-3.8.1.v20120830-144521.jar:na] at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176) ~[org.eclipse.osgi-3.8.1.v20120830-144521.jar:na] at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559) ~[org.eclipse.osgi-3.8.1.v20120830-144521.jar:na] at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544) ~[org.eclipse.osgi-3.8.1.v20120830-144521.jar:na] at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457) ~[org.eclipse.osgi-3.8.1.v20120830-144521.jar:na] at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243) ~[org.eclipse.osgi-3.8.1.v20120830-144521.jar:na] at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438) ~[org.eclipse.osgi-3.8.1.v20120830-144521.jar:na] at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1) ~[org.eclipse.osgi-3.8.1.v20120830-144521.jar:na] at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) ~[org.eclipse.osgi-3.8.1 ... (more)

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-11-03 13:13:15 -0800

anu.nair gravatar image

Can you check in your.m2/repository search for this snapshot. if it is not there , make sure your settings.xml is pointing to the right nexus.

Maven repository have version only till 2.24 http://mvnrepository.com/artifact/com.esotericsoftware.kryo/kryo

There is no version betweem 3.0.0 and 4.0.0 So change you pom to add version as 2.24 <dependency> <groupid>com.esotericsoftware.kryo</groupid> <artifactid>kryo</artifactid> <version>2.24.0</version> </dependency>

edit flag offensive delete publish link more

Comments

Thank you for your reply. The kryo 3.0.1-SNAPSHOT is now available. Please check this Link(https://github.com/EsotericSoftware/kryo)

Seunghyeon ( 2014-11-04 16:02:23 -0800 )edit
0

answered 2014-11-04 16:05:37 -0800

Seunghyeon gravatar image

Now i solve this problem through modifying Pom.xml file like below.

If you guys hope to add third party plugin, you need to check <export-package>, <embeded-dependency> and entry in pom.xml file.</embeded-dependency></export-package>

<build>
    <plugins>
        <plugin>
            <groupId>org.apache.felix</groupId>
            <artifactId>maven-bundle-plugin</artifactId>
            <version>${bundle.plugin.version}</version>
            <extensions>true</extensions>
            <configuration>
                <instructions>
                    <Export-Package>
                        com.esotericsoftware.kyro,
                    </Export-Package>
                    <Import-Package>*</Import-Package>
                    <Embed-Dependency>
                        kryo;type=!pom;inline=false
                    </Embed-Dependency>
                    <Embed-Transitive>
                        true
                    </Embed-Transitive>
                </instructions>
        </configuration>
    </plugin>

Then OSGI opendaylight will sucessfully find your third party plugin.

Thnaks

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

Stats

Asked: 2014-11-01 04:49:00 -0800

Seen: 5,520 times

Last updated: Nov 04 '14