Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Duplicate
-
2.16.2
-
None
-
None
-
MacOS: 10.11.3
Docker Machine: 0.6.0
Docker: Version 1.10.2, API version 1.22
-
Unknown
Description
Camel complains that different fields are "not marked as ignorable" and fails properly handling the event. Fields:
- Type
- Action
- ID
- Attributes
- image
- name
Camel route:
from("docker://events?host=192.168.99.100&port=2376&secure=true&certPath=/path/to/.docker/machine/machines/default") .process(new Processor() { @Override public void process(Exchange exchange) throws Exception { LOG.info("body = {}", exchange.getIn().getBody()); } });
Error messages:
[ pool-1-thread-1] DockerEventsConsumer ERROR Error Consuming from Docker Events: Unrecognized field "Type" (class com.github.dockerjava.api.model.Event), not marked as ignorable (4 known properties: "status", "id", "time", "from"]) at [Source: com.github.dockerjava.jaxrs.util.WrappedResponseInputStream@7d534017; line: 1, column: 134] (through reference chain: com.github.dockerjava.api.model.Event["Type"]) [ pool-1-thread-1] DockerEventsConsumer ERROR Error Consuming from Docker Events: Unrecognized field "Action" (class com.github.dockerjava.api.model.Event), not marked as ignorable (4 known properties: "status", "id", "time", "from"]) at [Source: com.github.dockerjava.jaxrs.util.WrappedResponseInputStream@7d534017; line: 1, column: 155] (through reference chain: com.github.dockerjava.api.model.Event["Action"]) [ pool-1-thread-1] DockerEventsConsumer ERROR Error Consuming from Docker Events: Unrecognized field "Actor" (class com.github.dockerjava.api.model.Event), not marked as ignorable (4 known properties: "status", "id", "time", "from"]) at [Source: com.github.dockerjava.jaxrs.util.WrappedResponseInputStream@7d534017; line: 1, column: 173] (through reference chain: com.github.dockerjava.api.model.Event["Actor"]) [ pool-1-thread-1] DockerEventsConsumer ERROR Error Consuming from Docker Events: Unrecognized field "ID" (class com.github.dockerjava.api.model.Event), not marked as ignorable (4 known properties: "status", "id", "time", "from"]) at [Source: com.github.dockerjava.jaxrs.util.WrappedResponseInputStream@7d534017; line: 1, column: 179] (through reference chain: com.github.dockerjava.api.model.Event["ID"]) [ pool-1-thread-1] DockerEventsConsumer ERROR Error Consuming from Docker Events: Unrecognized field "Attributes" (class com.github.dockerjava.api.model.Event), not marked as ignorable (4 known properties: "status", "id", "time", "from"]) at [Source: com.github.dockerjava.jaxrs.util.WrappedResponseInputStream@7d534017; line: 1, column: 259] (through reference chain: com.github.dockerjava.api.model.Event["Attributes"]) [ pool-1-thread-1] DockerEventsConsumer ERROR Error Consuming from Docker Events: Unrecognized field "image" (class com.github.dockerjava.api.model.Event), not marked as ignorable (4 known properties: "status", "id", "time", "from"]) at [Source: com.github.dockerjava.jaxrs.util.WrappedResponseInputStream@7d534017; line: 1, column: 268] (through reference chain: com.github.dockerjava.api.model.Event["image"]) [ pool-1-thread-1] DockerEventsConsumer ERROR Error Consuming from Docker Events: Unrecognized field "name" (class com.github.dockerjava.api.model.Event), not marked as ignorable (4 known properties: "status", "id", "time", "from"]) at [Source: com.github.dockerjava.jaxrs.util.WrappedResponseInputStream@7d534017; line: 1, column: 301] (through reference chain: com.github.dockerjava.api.model.Event["name"])
Attachments
Issue Links
- relates to
-
CAMEL-10307 Upgrade docker java version
- Resolved