Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-9671

camel-docker fails to consume events (Docker API version 1.22)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 2.16.2
    • None
    • camel-docker
    • 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

          Activity

            People

              acosentino Andrea Cosentino
              Peter Keller Peter Keller
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: