{"action":"opened","issue":{"url":"https://api.github.com/repos/eclipse/hono/issues/547","repository_url":"https://api.github.com/repos/eclipse/hono","labels_url":"https://api.github.com/repos/eclipse/hono/issues/547/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/hono/issues/547/comments","events_url":"https://api.github.com/repos/eclipse/hono/issues/547/events","html_url":"https://github.com/eclipse/hono/issues/547","id":307711425,"number":547,"title":"java.lang.String cannot be cast to java.lang.Boolean when uploading telemetry data using the HTTP adapter","user":{"login":"maximilianschwab","id":13770223,"avatar_url":"https://avatars0.githubusercontent.com/u/13770223?v=4","gravatar_id":"","url":"https://api.github.com/users/maximilianschwab","html_url":"https://github.com/maximilianschwab","followers_url":"https://api.github.com/users/maximilianschwab/followers","following_url":"https://api.github.com/users/maximilianschwab/following{/other_user}","gists_url":"https://api.github.com/users/maximilianschwab/gists{/gist_id}","starred_url":"https://api.github.com/users/maximilianschwab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximilianschwab/subscriptions","organizations_url":"https://api.github.com/users/maximilianschwab/orgs","repos_url":"https://api.github.com/users/maximilianschwab/repos","events_url":"https://api.github.com/users/maximilianschwab/events{/privacy}","received_events_url":"https://api.github.com/users/maximilianschwab/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-22T16:10:01Z","updated_at":"2018-03-22T16:10:01Z","closed_at":null,"author_association":"NONE","body":"I setup Hono on Docker Swarm using the tutorial on this site:\r\nhttps://www.eclipse.org/hono/getting-started/\r\n\r\nRegistering a device works perfect but every time when i try to upload telemetry for the example device with the id 4711 i get the following response:\r\n\r\nHTTP/1.1 503 Service Unavailable\r\nContent-Length: 19\r\nRetry-After: 2\r\n\r\nService Unavailable\r\n\r\nWhen i try to update the telemetry i see the following log of the REST adapter.\r\n\r\n```hono-adapter-http-vertx.1.ro81e31oiz1g@v22016103605938256    | 15:44:08.505 [vert.x-eventloop-thread-1] DEBUG o.e.h.c.RequestResponseClientConfigProperties - using certificates from file [/run/secrets/trusted-certs.pem] as trust anchor\r\nhono-adapter-http-vertx.1.ro81e31oiz1g@v22016103605938256    | 15:44:08.505 [vert.x-eventloop-thread-1] DEBUG o.e.h.c.ConnectionFactoryImpl - connecting to AMQP 1.0 container [amqps://hono-service-device-registry.hono:5671]\r\nhono-adapter-http-vertx.1.ro81e31oiz1g@v22016103605938256    | 15:44:08.774 [vert.x-eventloop-thread-1] DEBUG o.e.h.c.ConnectionFactoryImpl - connected to AMQP 1.0 container [amqps://hono-service-device-registry.hono:5671], opening connection ...\r\nhono-adapter-http-vertx.1.ro81e31oiz1g@v22016103605938256    | 15:44:08.779 [vert.x-eventloop-thread-1] DEBUG o.e.h.c.ConnectionFactoryImpl - connection to container [Hono-DeviceRegistry-0.0.0.0:5671] at [amqps://hono-service-device-registry.hono:5671] open\r\nhono-adapter-http-vertx.1.ro81e31oiz1g@v22016103605938256    | 15:44:08.779 [vert.x-eventloop-thread-1] INFO  o.e.h.s.a.d.UsernamePasswordAuthProvider - reconnected to Credentials service\r\nhono-adapter-http-vertx.1.ro81e31oiz1g@v22016103605938256    | 15:49:14.283 [vert.x-eventloop-thread-1] DEBUG o.e.hono.client.impl.HonoClientImpl - creating new client for credentials/DEFAULT_TENANT\r\nhono-adapter-http-vertx.1.ro81e31oiz1g@v22016103605938256    | 15:49:14.285 [vert.x-eventloop-thread-1] DEBUG o.e.h.c.impl.CredentialsClientImpl - creating new credentials client for [DEFAULT_TENANT]\r\nhono-adapter-http-vertx.1.ro81e31oiz1g@v22016103605938256    | 15:49:14.307 [vert.x-eventloop-thread-1] DEBUG o.e.h.client.impl.AbstractHonoClient - receiver open [source: credentials/DEFAULT_TENANT/5a6af998-d0c9-412e-9fa8-ff9c2340be39]\r\nhono-adapter-http-vertx.1.ro81e31oiz1g@v22016103605938256    | 15:49:14.310 [vert.x-eventloop-thread-1] DEBUG o.e.h.client.impl.AbstractHonoClient - sender open [target: credentials/DEFAULT_TENANT, sendQueueFull: false]\r\nhono-adapter-http-vertx.1.ro81e31oiz1g@v22016103605938256    | 15:49:14.311 [vert.x-eventloop-thread-1] DEBUG o.e.h.c.i.AbstractRequestResponseClient - request-response client for peer [Hono-DeviceRegistry-0.0.0.0:5671] created\r\nhono-adapter-http-vertx.1.ro81e31oiz1g@v22016103605938256    | 15:49:14.311 [vert.x-eventloop-thread-1] DEBUG o.e.h.c.impl.CredentialsClientImpl - successfully created credentials client for [DEFAULT_TENANT]\r\nhono-adapter-http-vertx.1.ro81e31oiz1g@v22016103605938256    | 15:49:14.311 [vert.x-eventloop-thread-1] DEBUG o.e.hono.client.impl.HonoClientImpl - successfully created new client for credentials/DEFAULT_TENANT\r\nhono-adapter-http-vertx.1.ro81e31oiz1g@v22016103605938256    | 15:49:14.317 [vert.x-eventloop-thread-1] DEBUG o.e.h.c.i.AbstractRequestResponseClient - sent request [target address: credentials/DEFAULT_TENANT, subject: get, correlation ID: cred-client-ad83a9b2-8c6f-4e9a-a7db-c6b7d2c21f38] to service\r\nhono-adapter-http-vertx.1.ro81e31oiz1g@v22016103605938256    | 15:49:14.330 [vert.x-eventloop-thread-1] DEBUG o.e.h.c.i.AbstractRequestResponseClient - received response [reply-to: credentials/DEFAULT_TENANT/5a6af998-d0c9-412e-9fa8-ff9c2340be39, subject: null, correlation ID: cred-client-ad83a9b2-8c6f-4e9a-a7db-c6b7d2c21f38, status: 200]\r\nhono-adapter-http-vertx.1.ro81e31oiz1g@v22016103605938256    | 15:49:14.335 [vert.x-eventloop-thread-2] DEBUG o.e.hono.client.impl.HonoClientImpl - creating new message sender for telemetry/DEFAULT_TENANT\r\nhono-adapter-http-vertx.1.ro81e31oiz1g@v22016103605938256    | 15:49:14.335 [vert.x-eventloop-thread-0] DEBUG o.e.hono.client.impl.HonoClientImpl - creating new client for registration/DEFAULT_TENANT\r\nhono-adapter-http-vertx.1.ro81e31oiz1g@v22016103605938256    | 15:49:14.336 [vert.x-eventloop-thread-0] DEBUG o.e.h.c.impl.RegistrationClientImpl - creating new registration client for [DEFAULT_TENANT]\r\nhono-adapter-http-vertx.1.ro81e31oiz1g@v22016103605938256    | 15:49:14.336 [vert.x-eventloop-thread-0] INFO  o.e.h.c.i.AbstractRequestResponseClient - enabling caching of responses from registration/DEFAULT_TENANT\r\nhono-adapter-http-vertx.1.ro81e31oiz1g@v22016103605938256    | 15:49:14.344 [vert.x-eventloop-thread-0] DEBUG o.e.h.client.impl.AbstractHonoClient - receiver open [source: registration/DEFAULT_TENANT/2ef702e8-5791-4459-ba48-0864b6e630d7]\r\nhono-adapter-http-vertx.1.ro81e31oiz1g@v22016103605938256    | 15:49:14.347 [vert.x-eventloop-thread-0] DEBUG o.e.h.client.impl.AbstractHonoClient - sender open [target: registration/DEFAULT_TENANT, sendQueueFull: false]\r\nhono-adapter-http-vertx.1.ro81e31oiz1g@v22016103605938256    | 15:49:14.348 [vert.x-eventloop-thread-0] DEBUG o.e.h.c.i.AbstractRequestResponseClient - request-response client for peer [Hono-DeviceRegistry-0.0.0.0:5671] created\r\nhono-adapter-http-vertx.1.ro81e31oiz1g@v22016103605938256    | 15:49:14.348 [vert.x-eventloop-thread-0] DEBUG o.e.h.c.impl.RegistrationClientImpl - successfully created registration client for [DEFAULT_TENANT]\r\nhono-adapter-http-vertx.1.ro81e31oiz1g@v22016103605938256    | 15:49:14.348 [vert.x-eventloop-thread-0] DEBUG o.e.hono.client.impl.HonoClientImpl - successfully created new client for registration/DEFAULT_TENANT\r\nhono-adapter-http-vertx.1.ro81e31oiz1g@v22016103605938256    | 15:49:14.365 [vert.x-eventloop-thread-1] DEBUG o.e.hono.client.impl.HonoClientImpl - creating new client for tenant\r\nhono-adapter-http-vertx.1.ro81e31oiz1g@v22016103605938256    | 15:49:14.365 [vert.x-eventloop-thread-1] DEBUG o.e.h.client.impl.TenantClientImpl - creating new tenant API client.\r\nhono-adapter-http-vertx.1.ro81e31oiz1g@v22016103605938256    | 15:49:14.366 [vert.x-eventloop-thread-1] INFO  o.e.h.c.i.AbstractRequestResponseClient - enabling caching of responses from tenant/null\r\nhono-adapter-http-vertx.1.ro81e31oiz1g@v22016103605938256    | 15:49:14.367 [vert.x-eventloop-thread-0] DEBUG o.e.h.c.i.AbstractRequestResponseClient - sent request [target address: registration/DEFAULT_TENANT, subject: assert, correlation ID: reg-client-1fb8f407-d6f0-4dc8-9bbd-0bb28474035c, device ID: 4711] to service\r\nhono-adapter-http-vertx.1.ro81e31oiz1g@v22016103605938256    | 15:49:14.368 [vert.x-eventloop-thread-2] DEBUG o.e.h.client.impl.AbstractHonoClient - sender open [target: telemetry/DEFAULT_TENANT, sendQueueFull: true]\r\nhono-adapter-http-vertx.1.ro81e31oiz1g@v22016103605938256    | 15:49:14.370 [vert.x-eventloop-thread-0] DEBUG o.e.h.c.i.AbstractRequestResponseClient - received response [reply-to: registration/DEFAULT_TENANT/2ef702e8-5791-4459-ba48-0864b6e630d7, subject: null, correlation ID: reg-client-1fb8f407-d6f0-4dc8-9bbd-0bb28474035c, status: 200]\r\nhono-adapter-http-vertx.1.ro81e31oiz1g@v22016103605938256    | 15:49:14.378 [vert.x-eventloop-thread-1] DEBUG o.e.h.client.impl.AbstractHonoClient - receiver open [source: tenant/null/c60a2f60-cf6c-4ecd-964a-e1e9c83469ab]\r\nhono-adapter-http-vertx.1.ro81e31oiz1g@v22016103605938256    | 15:49:14.381 [vert.x-eventloop-thread-1] DEBUG o.e.h.client.impl.AbstractHonoClient - sender open [target: tenant/null, sendQueueFull: false]\r\nhono-adapter-http-vertx.1.ro81e31oiz1g@v22016103605938256    | 15:49:14.381 [vert.x-eventloop-thread-1] DEBUG o.e.h.c.i.AbstractRequestResponseClient - request-response client for peer [Hono-DeviceRegistry-0.0.0.0:5671] created\r\nhono-adapter-http-vertx.1.ro81e31oiz1g@v22016103605938256    | 15:49:14.382 [vert.x-eventloop-thread-1] DEBUG o.e.h.client.impl.TenantClientImpl - successfully created tenant API client\r\nhono-adapter-http-vertx.1.ro81e31oiz1g@v22016103605938256    | 15:49:14.382 [vert.x-eventloop-thread-1] DEBUG o.e.hono.client.impl.HonoClientImpl - successfully created new client for tenant\r\nhono-adapter-http-vertx.1.ro81e31oiz1g@v22016103605938256    | 15:49:14.385 [vert.x-eventloop-thread-1] DEBUG o.e.h.c.i.AbstractRequestResponseClient - sent request [target address: tenant/null, subject: get, correlation ID: tenant-client-39fd640d-36ad-4ad2-8dbe-0d88a928cfd6] to service\r\nhono-adapter-http-vertx.1.ro81e31oiz1g@v22016103605938256    | 15:49:14.386 [vert.x-eventloop-thread-1] DEBUG o.e.h.c.i.AbstractRequestResponseClient - received response [reply-to: tenant/null/c60a2f60-cf6c-4ecd-964a-e1e9c83469ab, subject: null, correlation ID: tenant-client-39fd640d-36ad-4ad2-8dbe-0d88a928cfd6, status: 200]\r\nhono-adapter-http-vertx.1.ro81e31oiz1g@v22016103605938256    | 15:49:14.389 [vert.x-eventloop-thread-2] DEBUG o.e.h.client.impl.AbstractHonoClient - sender [target: telemetry/DEFAULT_TENANT] has 250 credits after grace period of 20ms\r\nhono-adapter-http-vertx.1.ro81e31oiz1g@v22016103605938256    | 15:49:14.390 [vert.x-eventloop-thread-2] DEBUG o.e.hono.client.impl.HonoClientImpl - successfully created new message sender for telemetry/DEFAULT_TENANT\r\nhono-adapter-http-vertx.1.ro81e31oiz1g@v22016103605938256    | 15:49:14.390 [vert.x-eventloop-thread-2] DEBUG o.e.h.a.h.AbstractVertxBasedHttpProtocolAdapter - cannot process message for device [tenantId: DEFAULT_TENANT, deviceId: 4711, endpoint: telemetry]: java.lang.String cannot be cast to java.lang.Boolean\r\n```\r\n\r\nThe last line shows an casting error -> java.lang.String cannot be cast to java.lang.Boolean\r\n\r\nHas someone a hint to solve the problem? Any helping answer to solve the problem is appreciated."}}
{"actor":{"display_login":"maximilianschwab"}}