Skip to content

Instantly share code, notes, and snippets.

@garethahealy
Created September 14, 2016 14:44
Show Gist options
  • Save garethahealy/e397df61965df7b766b41a30a3f33ca2 to your computer and use it in GitHub Desktop.
Save garethahealy/e397df61965df7b766b41a30a3f33ca2 to your computer and use it in GitHub Desktop.
treeHash - cast exception client
[main] DEBUG org.hawkular.client.core.jaxrs.RestRequestFilter - >> HTTP: POST
[main] DEBUG org.hawkular.client.core.jaxrs.RestRequestFilter - >> URI: http://192.168.99.100:8080/hawkular/inventory/entity/t;unit-testing/e
[main] DEBUG org.hawkular.client.core.jaxrs.RestRequestFilter - >> Headers: [Accept=application/json,Accept-Encoding=gzip, deflate,Content-Type=application/json,Hawkular-Tenant=unit-testing]
[main] DEBUG org.hawkular.client.core.jaxrs.RestRequestFilter - >> Data: {
"properties" : { },
"id" : "ua2shhq9",
"outgoing" : {
"customRel" : [ "/t;unit-testing" ]
},
"incoming" : { }
}
[main] DEBUG org.hawkular.client.core.jaxrs.RestResponseFilter - << Response headers:[Cache-Control=no-cache, no-store, must-revalidate,Connection=keep-alive,Content-Type=application/json,Date=Wed, 14 Sep 2016 14:41:37 GMT,Expires=0,Location=http://192.168.99.100:8080/hawkular/inventory/entity/e;ua2shhq9,Pragma=no-cache,Server=WildFly/10,X-Powered-By=Undertow/1]
[main] DEBUG org.hawkular.client.core.jaxrs.RestResponseFilter - << Status -> code:201, message:Created
[main] DEBUG org.hawkular.client.core.DefaultClientResponse - Client Response: Status Code:201, Is Success:true, Error Message:-, Raw Entity:{
"path" : "/t;unit-testing/e;ua2shhq9",
"id" : "ua2shhq9"
}, Entity:[null]
[main] DEBUG org.hawkular.client.core.jaxrs.RestRequestFilter - >> HTTP: GET
[main] DEBUG org.hawkular.client.core.jaxrs.RestRequestFilter - >> URI: http://192.168.99.100:8080/hawkular/inventory/entity/t;unit-testing/e;ua2shhq9
[main] DEBUG org.hawkular.client.core.jaxrs.RestRequestFilter - >> Headers: [Accept=application/json,Accept-Encoding=gzip, deflate,Hawkular-Tenant=unit-testing]
[main] DEBUG org.hawkular.client.core.jaxrs.RestRequestFilter - >> Data: null
[main] DEBUG org.hawkular.client.core.jaxrs.RestResponseFilter - << Response headers:[Cache-Control=no-cache, no-store, must-revalidate,Connection=keep-alive,Content-Type=application/json,Date=Wed, 14 Sep 2016 14:41:37 GMT,Expires=0,Pragma=no-cache,Server=WildFly/10,X-Powered-By=Undertow/1]
[main] DEBUG org.hawkular.client.core.jaxrs.RestResponseFilter - << Status -> code:200, message:OK
[main] DEBUG org.hawkular.client.core.DefaultClientResponse - Client Response: Status Code:200, Is Success:true, Error Message:-, Raw Entity:{
"path" : "/t;unit-testing/e;ua2shhq9",
"contentHash" : "da39a3ee5e6b4bd3255bfef95601890afd879",
"id" : "ua2shhq9"
}, Entity:[null]
[main] DEBUG org.hawkular.client.core.jaxrs.RestRequestFilter - >> HTTP: GET
[main] DEBUG org.hawkular.client.core.jaxrs.RestRequestFilter - >> URI: http://192.168.99.100:8080/hawkular/inventory/entity/t;unit-testing/e;ua2shhq9/treeHash
[main] DEBUG org.hawkular.client.core.jaxrs.RestRequestFilter - >> Headers: [Accept=application/json,Accept-Encoding=gzip, deflate,Hawkular-Tenant=unit-testing]
[main] DEBUG org.hawkular.client.core.jaxrs.RestRequestFilter - >> Data: null
[main] DEBUG org.hawkular.client.core.jaxrs.RestResponseFilter - << Response headers:[Cache-Control=no-cache, no-store, must-revalidate,Connection=keep-alive,Content-Type=application/json,Date=Wed, 14 Sep 2016 14:41:37 GMT,Expires=0,Pragma=no-cache,Server=WildFly/10,X-Powered-By=Undertow/1]
[main] DEBUG org.hawkular.client.core.jaxrs.RestResponseFilter - << Status -> code:500, message:Internal Server Error
[main] DEBUG org.hawkular.client.core.DefaultClientResponse - Client Response: Status Code:500, Is Success:false, Error Message:-, Raw Entity:{
"errorMsg" : "Cannot cast org.hawkular.inventory.base.BaseEnvironments$Single to org.hawkular.inventory.api.Synced$Single"
}, Entity:[null]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment