{"action":"created","issue":{"url":"https://api.github.com/repos/fp7-netide/Engine/issues/71","repository_url":"https://api.github.com/repos/fp7-netide/Engine","labels_url":"https://api.github.com/repos/fp7-netide/Engine/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/fp7-netide/Engine/issues/71/comments","events_url":"https://api.github.com/repos/fp7-netide/Engine/issues/71/events","html_url":"https://github.com/fp7-netide/Engine/issues/71","id":135584332,"number":71,"title":"Deploying the core (master branch and demo-brussels tag)","user":{"login":"ElisaRojas","id":2779496,"avatar_url":"https://avatars.githubusercontent.com/u/2779496?v=3","gravatar_id":"","url":"https://api.github.com/users/ElisaRojas","html_url":"https://github.com/ElisaRojas","followers_url":"https://api.github.com/users/ElisaRojas/followers","following_url":"https://api.github.com/users/ElisaRojas/following{/other_user}","gists_url":"https://api.github.com/users/ElisaRojas/gists{/gist_id}","starred_url":"https://api.github.com/users/ElisaRojas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ElisaRojas/subscriptions","organizations_url":"https://api.github.com/users/ElisaRojas/orgs","repos_url":"https://api.github.com/users/ElisaRojas/repos","events_url":"https://api.github.com/users/ElisaRojas/events{/privacy}","received_events_url":"https://api.github.com/users/ElisaRojas/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fp7-netide/Engine/labels/Core","name":"Core","color":"e11d21"},{"url":"https://api.github.com/repos/fp7-netide/Engine/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":{"login":"schwabe","id":1038539,"avatar_url":"https://avatars.githubusercontent.com/u/1038539?v=3","gravatar_id":"","url":"https://api.github.com/users/schwabe","html_url":"https://github.com/schwabe","followers_url":"https://api.github.com/users/schwabe/followers","following_url":"https://api.github.com/users/schwabe/following{/other_user}","gists_url":"https://api.github.com/users/schwabe/gists{/gist_id}","starred_url":"https://api.github.com/users/schwabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schwabe/subscriptions","organizations_url":"https://api.github.com/users/schwabe/orgs","repos_url":"https://api.github.com/users/schwabe/repos","events_url":"https://api.github.com/users/schwabe/events{/privacy}","received_events_url":"https://api.github.com/users/schwabe/received_events","type":"User","site_admin":false},"milestone":null,"comments":13,"created_at":"2016-02-23T00:03:23Z","updated_at":"2016-02-23T14:50:55Z","closed_at":null,"body":"Hi,\r\n\r\nI'm preparing a backup VM with the most updated code of the Engine. Right now, I have successfully installed Ryu backend, shim and Python core (everything worked), also compiled the ODL shim (but not tested yet); however, I got stuck with the Java core.\r\n\r\nIf I use the demo-brussels tag, I can add the repo, but when trying to install the core, I get this error:\r\n<pre>\r\nkaraf@root()> feature:install netide-core\r\nError executing command: Can't install feature netide-core/0.0.0:     \r\nCould not start bundle mvn:eu.netide.core/core.management/1.0.0.0-SNAPSHOT in feature(s) netide-core-management-0.0.0: Unresolved constraint in bundle core.management [69]: Unable to resolve 69.0: missing requirement [69.0] osgi.wiring.package; (&(osgi.wiring.package=org.apache.felix.service.command)(version>=0.16.0)(!(version>=1.0.0)))\r\n</pre>\r\n\r\nAfter searching in Google, I decided to change the core.management bundle pom.xml and write:\r\n` org.apache.felix.service.command;version=\"[0.16.0,1.0.0)\",` (to look for specific versions of the package) and then, the _feature:install netide-core_ command does not raise any errors, but gets stuck forever :disappointed: \r\n\r\nIf I use the master branch instead (I know it is not fully working, but I just wanted to have a try), I see a long error trace when installing the core:\r\n<pre>\r\nkaraf@root()> feature:install netide-core\r\njava.lang.ArrayIndexOutOfBoundsException: 42752\r\n    at aQute.bnd.osgi.Clazz.classConstRef(Clazz.java:1862)\r\n    at aQute.bnd.osgi.Clazz.crawl(Clazz.java:1174)\r\n    at aQute.bnd.osgi.Clazz.doCode(Clazz.java:1134)\r\n    at aQute.bnd.osgi.Clazz.doAttribute(Clazz.java:945)\r\n    at aQute.bnd.osgi.Clazz.doAttributes(Clazz.java:910)\r\n    at aQute.bnd.osgi.Clazz.parseClassFile(Clazz.java:741)\r\n    at aQute.bnd.osgi.Clazz.parseClassFile(Clazz.java:494)\r\n    at aQute.bnd.osgi.Clazz.parseClassFileWithCollector(Clazz.java:483)\r\n    at aQute.bnd.osgi.Clazz.parseClassFile(Clazz.java:473)\r\n    at aQute.bnd.osgi.Analyzer.analyzeJar(Analyzer.java:2177)\r\n    at aQute.bnd.osgi.Analyzer.analyzeBundleClasspath(Analyzer.java:2083)\r\n    at aQute.bnd.osgi.Analyzer.analyze(Analyzer.java:138)\r\n    at aQute.bnd.osgi.Analyzer.calcManifest(Analyzer.java:616)\r\n    at org.ops4j.pax.swissbox.bnd.BndUtils.createBundle(BndUtils.java:161)\r\n    at org.ops4j.pax.url.wrap.internal.Connection.getInputStream(Connection.java:83)\r\n    at java.net.URL.openStream(URL.java:1038)\r\n    at org.apache.karaf.features.internal.BundleManager.getInputStreamForBundle(BundleManager.java:185)\r\n    at org.apache.karaf.features.internal.BundleManager.doInstallBundleIfNeeded(BundleManager.java:95)\r\n    at org.apache.karaf.features.internal.BundleManager.installBundleIfNeeded(BundleManager.java:89)\r\n    at org.apache.karaf.features.internal.FeaturesServiceImpl.doInstallFeature(FeaturesServiceImpl.java:556)\r\n    at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatureDependency(FeaturesServiceImpl.java:613)\r\n    at org.apache.karaf.features.internal.FeaturesServiceImpl.doInstallFeature(FeaturesServiceImpl.java:547)\r\n    at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:419)\r\n    at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:400)\r\n    at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:378)\r\n    at Proxy2eb7271f_a3f2_4b1e_a53c_eaa7c58d1e21.installFeature(Unknown Source)\r\n    at org.apache.karaf.features.command.InstallFeatureCommand.doExecute(InstallFeatureCommand.java:67)\r\n    at org.apache.karaf.features.command.FeaturesCommandSupport.doExecute(FeaturesCommandSupport.java:38)\r\n    at org.apache.karaf.shell.console.AbstractAction.execute(AbstractAction.java:33)\r\n    at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:39)\r\n    at org.apache.karaf.shell.commands.basic.AbstractCommand.execute(AbstractCommand.java:33)\r\n    at Proxy12928ac4_c793_4da7_a9c1_e1afa60992d7.execute(Unknown Source)\r\n    at Proxy12928ac4_c793_4da7_a9c1_e1afa60992d7.execute(Unknown Source)\r\n    at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)\r\n    at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)\r\n    at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)\r\n    at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)\r\n    at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)\r\n    at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)\r\n    at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:92)\r\n    at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:208)\r\n    at org.apache.karaf.shell.console.impl.jline.LocalConsoleManager$2$1$1.run(LocalConsoleManager.java:109)\r\n    at java.security.AccessController.doPrivileged(Native Method)\r\n    at org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:57)\r\n    at org.apache.karaf.shell.console.impl.jline.LocalConsoleManager$2$1.run(LocalConsoleManager.java:102)\r\n</pre>\r\nand more errors when connecting the Ryu shim:\r\n<pre>\r\nkaraf@root()> Exception in thread \"ZeroMQBasedConnector Receive Loop\" java.lang.NoClassDefFoundError: com/google/common/hash/Funnel\r\n    at java.lang.ClassLoader.defineClass1(Native Method)\r\n    at java.lang.ClassLoader.defineClass(ClassLoader.java:760)\r\n    at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.findClass(BundleWiringImpl.java:2279)\r\n    at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1501)\r\n    at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75)\r\n    at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955)\r\n    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)\r\n    at org.projectfloodlight.openflow.protocol.ver10.OFMatchV1Ver10.<clinit>(OFMatchV1Ver10.java:2301)\r\n    at org.projectfloodlight.openflow.protocol.ver10.OFFactoryVer10.<clinit>(OFFactoryVer10.java:460)\r\n    at org.projectfloodlight.openflow.protocol.OFFactories$GenericReader.readFrom(OFFactories.java:57)\r\n    at org.projectfloodlight.openflow.protocol.OFFactories$GenericReader.readFrom(OFFactories.java:49)\r\n    at eu.netide.lib.netip.NetIPUtils.toOpenFlowMessage(NetIPUtils.java:129)\r\n    at eu.netide.lib.netip.NetIPUtils.ConcretizeMessage(NetIPUtils.java:43)\r\n    at eu.netide.lib.netip.NetIPConverter.parseConcreteMessage(NetIPConverter.java:18)\r\n    at eu.netide.core.connectivity.ShimManager.OnDataReceived(ShimManager.java:47)\r\n    at eu.netide.core.connectivity.ZeroMQBasedConnector.run(ZeroMQBasedConnector.java:110)\r\n    at java.lang.Thread.run(Thread.java:745)\r\nCaused by: java.lang.ClassNotFoundException: com.google.common.hash.Funnel not found by org.onosproject.openflowj [65]\r\n    at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1532)\r\n    at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75)\r\n    at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955)\r\n    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)\r\n    ... 17 more\r\n</pre>\r\nand of course, the combo Ryu backend + Java core + Java shim does not work :(\r\n\r\nThese errors (particularly the ones for the demo-brussels tag) might be too obvious, but I've been several hours trying and recompiling with different changes in different pom.xml files and the only thing I was able to do is what I said before. So I would really appreciate if @schwabe or @amarsico can give any hints.\r\n\r\nAlso, @schwabe , does this tag work for you? Maybe we could use another more stable version? I guess the _org.apache.felix.service.command_ package is needed for the custom commands inside Karaf, did you install something else or am I missing something there?\r\n\r\nAny help at all would be really appreciated, because we're running out of time, unfortunately :(\r\n\r\nP.S: I'm using Maven 3.3.3 and Karaf 3.0.3, just in case it matters."},"comment":{"url":"https://api.github.com/repos/fp7-netide/Engine/issues/comments/187727138","html_url":"https://github.com/fp7-netide/Engine/issues/71#issuecomment-187727138","issue_url":"https://api.github.com/repos/fp7-netide/Engine/issues/71","id":187727138,"user":{"login":"schwabe","id":1038539,"avatar_url":"https://avatars.githubusercontent.com/u/1038539?v=3","gravatar_id":"","url":"https://api.github.com/users/schwabe","html_url":"https://github.com/schwabe","followers_url":"https://api.github.com/users/schwabe/followers","following_url":"https://api.github.com/users/schwabe/following{/other_user}","gists_url":"https://api.github.com/users/schwabe/gists{/gist_id}","starred_url":"https://api.github.com/users/schwabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schwabe/subscriptions","organizations_url":"https://api.github.com/users/schwabe/orgs","repos_url":"https://api.github.com/users/schwabe/repos","events_url":"https://api.github.com/users/schwabe/events{/privacy}","received_events_url":"https://api.github.com/users/schwabe/received_events","type":"User","site_admin":false},"created_at":"2016-02-23T14:50:55Z","updated_at":"2016-02-23T14:50:55Z","body":"Yeah, we can talk in slack, just message me there.\r\n\r\n@ElisaRojas the ryu specification is invalid xml. The java parser is more strict. 0x1 is not a valid xml integer for the java parser."}}