Hi,
Receiving a json marshalling during a build. I have included the details at the bottom. The issue is actually occuring in alexec/docker-java, but manifested here.
I noticed that this issue has been found and fixed in the new "official" fork of kpelykh/docker-java -> docker-java/docker-java.
docker-java/docker-java#3
cheers
error occurs running docker-maven-plugin:1.2.0-SNAPSHOT:package a 2nd time on the same project.
after the following request:
[INFO] 4 * Client out-bound request
4 > GET http://192.168.59.103:2375/v1.9/containers/00accd1b3c51efe8bc2b4de1a87b648bde6637d1119f57bb47bddd0aa13ee824/json
4 > Accept: application/json
[INFO] 4 * Client in-bound response
4 < 200
4 < Content-Type: application/json
4 < Date: Sat, 28 Jun 2014 20:16:48 GMT
4 < Content-Length: 2007
4 <
{"ID":"00accd1b3c51efe8bc2b4de1a87b648bde6637d1119f57bb47bddd0aa13ee824","Created":"2014-06-28T20:16:21.38554651Z","Path":"/bin/sh","Args":["-c","$CATALINA_HOME/bin/startup.sh \u0026\u0026 tail -F $CATALINA_HOME/logs/catalina.out"],"Config":{"Hostname":"00accd1b3c51","Domainname":"","User":"","Memory":0,"MemorySwap":0,"CpuShares":0,"Cpuset":"","AttachStdin":false,"AttachStdout":false,"AttachStderr":false,"PortSpecs":null,"ExposedPorts":{"8080/tcp":{}},"Tty":false,"OpenStdin":false,"StdinOnce":false,"Env":["HOME=/","PATH=/usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","JAVA_HOME=/usr/lib/jvm/jre-1.7.0-openjdk.x86_64","CATALINA_HOME=/usr/local/tomcat"],"Cmd":["/bin/sh","-c","$CATALINA_HOME/bin/startup.sh \u0026\u0026 tail -F $CATALINA_HOME/logs/catalina.out"],"Image":"8b8f8b6048edda26ff4346c62501e3f9098c662959a7bf33e88a01b26a190f20","Volumes":null,"WorkingDir":"","Entrypoint":null,"NetworkDisabled":false,"OnBuild":null},"State":{"Running":false,"Paused":false,"Pid":0,"ExitCode":-1,"StartedAt":"2014-06-28T20:16:22.56811803Z","FinishedAt":"2014-06-28T20:16:25.18060382Z"},"Image":"8b8f8b6048edda26ff4346c62501e3f9098c662959a7bf33e88a01b26a190f20","NetworkSettings":{"IPAddress":"","IPPrefixLen":0,"Gateway":"","Bridge":"","PortMapping":null,"Ports":null},"ResolvConfPath":"/etc/resolv.conf","HostnamePath":"/mnt/sda1/var/lib/docker/containers/00accd1b3c51efe8bc2b4de1a87b648bde6637d1119f57bb47bddd0aa13ee824/hostname","HostsPath":"/mnt/sda1/var/lib/docker/containers/00accd1b3c51efe8bc2b4de1a87b648bde6637d1119f57bb47bddd0aa13ee824/hosts","Name":"/devops-docker-tomcat_scrouch","Driver":"aufs","ExecDriver":"native-0.2","MountLabel":"","ProcessLabel":"","Volumes":{},"VolumesRW":{},"HostConfig":{"Binds":null,"ContainerIDFile":"null","LxcConf":null,"Privileged":false,"PortBindings":{"8080/tcp":[{"HostIp":"0.0.0.0","HostPort":"49154"}]},"Links":null,"PublishAllPorts":true,"Dns":null,"DnsSearch":null,"VolumesFrom":null,"NetworkMode":""}}
the build dies with this error:
[ERROR] Failed to execute goal com.alexecollins.docker:docker-maven-plugin:1.2.0-SNAPSHOT:start (default-cli) on project devops-docker-tomcat: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "Paused" (class com.kpelykh.docker.client.model.ContainerInspectResponse$ContainerState), not marked as ignorable (6 known properties: "StartedAt", "FinishedAt", "Pid", "ExitCode", "Running", "Ghost"])
[ERROR] at [Source: com.sun.jersey.client.apache4.ApacheHttpClient4Handler$HttpClientResponseInputStream@571efd; line: 1, column: 1028](through reference chain: com.kpelykh.docker.client.model.ContainerInspectResponse["State"]->com.kpelykh.docker.client.model.ContainerState["Paused"])
the offending request:
[INFO] 4 * Client out-bound request
4 > GET http://192.168.59.103:2375/v1.9/containers/00accd1b3c51efe8bc2b4de1a87b648bde6637d1119f57bb47bddd0aa13ee824/json
4 > Accept: application/json
[INFO] 4 * Client in-bound response
4 < 200
4 < Content-Type: application/json
4 < Date: Sat, 28 Jun 2014 20:16:48 GMT
4 < Content-Length: 2007
4 <
{"ID":"00accd1b3c51efe8bc2b4de1a87b648bde6637d1119f57bb47bddd0aa13ee824","Created":"2014-06-28T20:16:21.38554651Z","Path":"/bin/sh","Args":["-c","$CATALINA_HOME/bin/startup.sh \u0026\u0026 tail -F $CATALINA_HOME/logs/catalina.out"],"Config":{"Hostname":"00accd1b3c51","Domainname":"","User":"","Memory":0,"MemorySwap":0,"CpuShares":0,"Cpuset":"","AttachStdin":false,"AttachStdout":false,"AttachStderr":false,"PortSpecs":null,"ExposedPorts":{"8080/tcp":{}},"Tty":false,"OpenStdin":false,"StdinOnce":false,"Env":["HOME=/","PATH=/usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","JAVA_HOME=/usr/lib/jvm/jre-1.7.0-openjdk.x86_64","CATALINA_HOME=/usr/local/tomcat"],"Cmd":["/bin/sh","-c","$CATALINA_HOME/bin/startup.sh \u0026\u0026 tail -F $CATALINA_HOME/logs/catalina.out"],"Image":"8b8f8b6048edda26ff4346c62501e3f9098c662959a7bf33e88a01b26a190f20","Volumes":null,"WorkingDir":"","Entrypoint":null,"NetworkDisabled":false,"OnBuild":null},"State":{"Running":false,"Paused":false,"Pid":0,"ExitCode":-1,"StartedAt":"2014-06-28T20:16:22.56811803Z","FinishedAt":"2014-06-28T20:16:25.18060382Z"},"Image":"8b8f8b6048edda26ff4346c62501e3f9098c662959a7bf33e88a01b26a190f20","NetworkSettings":{"IPAddress":"","IPPrefixLen":0,"Gateway":"","Bridge":"","PortMapping":null,"Ports":null},"ResolvConfPath":"/etc/resolv.conf","HostnamePath":"/mnt/sda1/var/lib/docker/containers/00accd1b3c51efe8bc2b4de1a87b648bde6637d1119f57bb47bddd0aa13ee824/hostname","HostsPath":"/mnt/sda1/var/lib/docker/containers/00accd1b3c51efe8bc2b4de1a87b648bde6637d1119f57bb47bddd0aa13ee824/hosts","Name":"/devops-docker-tomcat_scrouch","Driver":"aufs","ExecDriver":"native-0.2","MountLabel":"","ProcessLabel":"","Volumes":{},"VolumesRW":{},"HostConfig":{"Binds":null,"ContainerIDFile":"null","LxcConf":null,"Privileged":false,"PortBindings":{"8080/tcp":[{"HostIp":"0.0.0.0","HostPort":"49154"}]},"Links":null,"PublishAllPorts":true,"Dns":null,"DnsSearch":null,"VolumesFrom":null,"NetworkMode":""}}