Closed gbrost closed 7 years ago
Yes. I will try to fix this today. In the last days Milo wasn't really stable, from an API perspective.
I just checked, the problem should be solved by the changes I already made last week.
Simply re-open this issued if you still encounter any issues.
Thank you very much! It is building now. Just one question: Did you ever encounter the problem that a milo-based route does not start? I tried to deploy the example route from your project. The log outputs:
2016-11-28 15:00:34,454 | INFO | FelixStartLevel | BlueprintContainerImpl | 34 - org.apache.aries.blueprint.core - 1.6.1 | Bundle camel-opc-timer-to-rest.xml/0.0.0 is waiting for namespace handlers [http://camel.apache.org/schema/blueprint]
And bundle:diag prints:
Status: GracePeriod Blueprint 11/28/16 3:48 PM Missing dependencies: (&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://camel.apache.org/schema/blueprint))
Thanks!
Sorry, posted my reply in german language first, out of habit. Translated to english now.
Looks like you are missing OSGi blueprint support. This is available in karaf as "camel-blueprint" IIRC.
I get the feeling this is a "wrong error message" problem or a bug in my karaf version. I describe the problem here. I was just wondering if this could somehow be related to milo, since other routes seem to deploy fine.
I get a "page not found" by this link.
Sorry, i messed up the link. I fixed it, please try again :)
Hm .. I see. This seems rather strange to me. Can you make some sort of reproducer, like a few lines of instructions how to get to this problem.
I now found the root of the problem. You are dependent on Camel 2.18, right? I was on a branch where we did not upgrade yet. Upgrading to Camel 2.18 fixes the problem. Thank you very much!
Sorry for needing your help again: I had my test route up and running (at least it was contacting my OPC-UA server). I restarted karaf and now it get this error:
2016-11-29 15:31:46,786 | ERROR | lixDispatchQueue | camel-milo | 158 - de.dentrassi.camel.milo.camel-milo - 0.1.0.SNAPSHOT | FrameworkEvent ERROR - de.dentrassi.camel.milo.camel-milo org.osgi.framework.BundleException: Unable to resolve de.dentrassi.camel.milo.camel-milo [158](R 158.0): missing requirement [de.dentrassi.camel.milo.camel-milo [158](R 158.0)] osgi.wiring.package; (&(osgi.wiring.package=com.google.common.base)(version>=19.0.0)(!(version>=20.0.0))) Unresolved requirements: [[de.dentrassi.camel.milo.camel-milo [158](R 158.0)] osgi.wiring.package; (&(osgi.wiring.package=com.google.common.base)(version>=19.0.0)(!(version>=20.0.0)))] at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4111)[org.apache.felix.framework-5.4.0.jar:] at org.apache.felix.framework.Felix.startBundle(Felix.java:2117)[org.apache.felix.framework-5.4.0.jar:] at org.apache.felix.framework.Felix$RefreshHelper.restart(Felix.java:5063)[org.apache.felix.framework-5.4.0.jar:] at org.apache.felix.framework.Felix.refreshPackages(Felix.java:4253)[org.apache.felix.framework-5.4.0.jar:] at org.apache.felix.framework.FrameworkWiringImpl.run(FrameworkWiringImpl.java:188)[org.apache.felix.framework-5.4.0.jar:] at java.lang.Thread.run(Thread.java:745)[:1.8.0_111] 2016-11-29 15:31:46,789 | ERROR | lixDispatchQueue | xml | 140 - camel-opc-timer-to-rest.xml - 0.0.0 | FrameworkEvent ERROR - camel-opc-timer-to-rest.xml org.osgi.framework.BundleException: Unable to resolve camel-opc-timer-to-rest.xml [140](R 140.0): missing requirement [camel-opc-timer-to-rest.xml [140](R 140.0)] osgi.wiring.package; (osgi.wiring.package=org.apache.camel.component.milo.client) Unresolved requirements: [[camel-opc-timer-to-rest.xml [140](R 140.0)] osgi.wiring.package; (osgi.wiring.package=org.apache.camel.component.milo.client)] at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4111)[org.apache.felix.framework-5.4.0.jar:] at org.apache.felix.framework.Felix.startBundle(Felix.java:2117)[org.apache.felix.framework-5.4.0.jar:] at org.apache.felix.framework.Felix$RefreshHelper.restart(Felix.java:5063)[org.apache.felix.framework-5.4.0.jar:] at org.apache.felix.framework.Felix.refreshPackages(Felix.java:4253)[org.apache.felix.framework-5.4.0.jar:] at org.apache.felix.framework.FrameworkWiringImpl.run(FrameworkWiringImpl.java:188)[org.apache.felix.framework-5.4.0.jar:]
Obviously com.google.common.base is missing. But how could it be running before? Could you give me a hand finding the root of the problem?
How did you install the milo component? Using the Karaf feature? It should already declare the dependency on Guava.
Hi,
great project idea, we really could use this. However, if i try to build with most current milo, i get this error:
Could you give me hand there?
Thanks Gerd