Peter Keller created CAMEL-9671:
-----------------------------------

             Summary: camel-docker fails to consume events (Docker API version 
1.22)
                 Key: CAMEL-9671
                 URL: https://issues.apache.org/jira/browse/CAMEL-9671
             Project: Camel
          Issue Type: Bug
          Components: camel-docker
    Affects Versions: 2.16.2
         Environment: MacOS: 10.11.3
Docker Machine: 0.6.0
Docker: Version 1.10.2, API version 1.22
            Reporter: Peter Keller


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:
{code}
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());
        }
    });
{code}

Error messages: 
{code}
[               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"])
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to