Error multizone_status chromecast binding

Hello, I have this error :

2019-08-29 10:16:38.953 [WARN ] [su.litvak.chromecast.api.v2.Channel ] - Error while handling

org.codehaus.jackson.map.JsonMappingException: Could not resolve type id ‘MULTIZONE_STATUS’ into a subtype of [simple type, class su.litvak.chromecast.api.v2.StandardResponse]

at [Source: N/A; line: -1, column: -1]

at org.codehaus.jackson.map.JsonMappingException.from(JsonMappingException.java:163) ~[206:org.openhab.binding.chromecast:2.4.0]

at org.codehaus.jackson.map.deser.StdDeserializationContext.unknownTypeException(StdDeserializationContext.java:273) ~[206:org.openhab.binding.chromecast:2.4.0]

at org.codehaus.jackson.map.jsontype.impl.TypeDeserializerBase._findDeserializer(TypeDeserializerBase.java:117) ~[206:org.openhab.binding.chromecast:2.4.0]

at org.codehaus.jackson.map.jsontype.impl.AsPropertyTypeDeserializer.deserializeTypedFromObject(AsPropertyTypeDeserializer.java:74) ~[206:org.openhab.binding.chromecast:2.4.0]

at org.codehaus.jackson.map.deser.AbstractDeserializer.deserializeWithType(AbstractDeserializer.java:89) ~[206:org.openhab.binding.chromecast:2.4.0]

at org.codehaus.jackson.map.deser.StdDeserializerProvider$WrappedDeserializer.deserialize(StdDeserializerProvider.java:494) ~[206:org.openhab.binding.chromecast:2.4.0]

at org.codehaus.jackson.map.ObjectMapper._readValue(ObjectMapper.java:2695) ~[206:org.openhab.binding.chromecast:2.4.0]

at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1990) ~[206:org.openhab.binding.chromecast:2.4.0]

at su.litvak.chromecast.api.v2.EventListenerHolder.deliverEvent(EventListenerHolder.java:56) ~[206:org.openhab.binding.chromecast:2.4.0]

at su.litvak.chromecast.api.v2.Channel.notifyListenersOfSpontaneousEvent(Channel.java:452) ~[206:org.openhab.binding.chromecast:2.4.0]

at su.litvak.chromecast.api.v2.Channel.access$600(Channel.java:51) ~[206:org.openhab.binding.chromecast:2.4.0]

at su.litvak.chromecast.api.v2.Channel$ReadThread.run(Channel.java:195) [206:org.openhab.binding.chromecast:2.4.0]

I make reboot and clear cache. You have an idea ? thank you :slight_smile:

1 Like

This error is happening inside the third party library used by the binding. I would suggest you put the library into debug mode, capture the message that is causing the error, then open an issue for the third party library. The library developer needs to see the actual message to know what to fix/change.

This will put the library into debug mode.

log:set DEBUG su.litvak.chromecast

You’ll likely see a line that looks something like this just before the error occurs.

2019-07-30 09:32:31.237 [DEBUG] [su.litvak.chromecast.api.v2.Channel ] -  <-- {"type":"MULTIZONE_STATUS", <<lots of other stuff>>}

Then log the issue here.

i have the same issue… issue started today, it was fine for the last 2 month

ok so problem with the V0.11.1 of chromecast-java-api-v2 , I see a bump on v0.11.2 of version yesterday …:confused:

Same here. org.openhab.binding.chromecast:2.4.0

Previously Yannis opened the ticket to follow for everyone: https://github.com/vitalidze/chromecast-java-api-v2/issues/117

The exception is invoked by playing sounds
playSound("chromecast:audiogroup:allspeakers", "doorbell.mp3", new PercentType(100))

It does not occur in case of where I use the method say(msg) on the same sink (audio devices).

Yes I know, it’s me who opened ticket :slight_smile:

1 Like

You have this error only when the playSound command is launch ? because here there is 10 or 20 times this error per hour without request ask at chromecast binding :confused:

1 Like

Hi, yes I have this error several time per day but without any rule or action related to the binding.

1 Like

Same errors has started here as well…

2019-09-12 10:14:03.371 [WARN ] [su.litvak.chromecast.api.v2.Channel ] - Error while handling
org.codehaus.jackson.map.JsonMappingException: Could not resolve type id 'MULTIZONE_STATUS' into a subtype of [simple type, class su.litvak.chromecast.api.v2.StandardResponse]
 at [Source: N/A; line: -1, column: -1]
	at org.codehaus.jackson.map.JsonMappingException.from(JsonMappingException.java:163) ~[252:org.openhab.binding.chromecast:2.5.0.201902121048]
	at org.codehaus.jackson.map.deser.StdDeserializationContext.unknownTypeException(StdDeserializationContext.java:273) ~[252:org.openhab.binding.chromecast:2.5.0.201902121048]
	at org.codehaus.jackson.map.jsontype.impl.TypeDeserializerBase._findDeserializer(TypeDeserializerBase.java:117) ~[252:org.openhab.binding.chromecast:2.5.0.201902121048]
	at org.codehaus.jackson.map.jsontype.impl.AsPropertyTypeDeserializer.deserializeTypedFromObject(AsPropertyTypeDeserializer.java:74) ~[252:org.openhab.binding.chromecast:2.5.0.201902121048]
	at org.codehaus.jackson.map.deser.AbstractDeserializer.deserializeWithType(AbstractDeserializer.java:89) ~[252:org.openhab.binding.chromecast:2.5.0.201902121048]
	at org.codehaus.jackson.map.deser.StdDeserializerProvider$WrappedDeserializer.deserialize(StdDeserializerProvider.java:494) ~[252:org.openhab.binding.chromecast:2.5.0.201902121048]
	at org.codehaus.jackson.map.ObjectMapper._readValue(ObjectMapper.java:2695) ~[252:org.openhab.binding.chromecast:2.5.0.201902121048]
	at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1990) ~[252:org.openhab.binding.chromecast:2.5.0.201902121048]
	at su.litvak.chromecast.api.v2.EventListenerHolder.deliverEvent(EventListenerHolder.java:56) ~[252:org.openhab.binding.chromecast:2.5.0.201902121048]
	at su.litvak.chromecast.api.v2.Channel.notifyListenersOfSpontaneousEvent(Channel.java:452) ~[252:org.openhab.binding.chromecast:2.5.0.201902121048]
	at su.litvak.chromecast.api.v2.Channel.access$600(Channel.java:51) ~[252:org.openhab.binding.chromecast:2.5.0.201902121048]
	at su.litvak.chromecast.api.v2.Channel$ReadThread.run(Channel.java:195) [252:org.openhab.binding.chromecast:2.5.0.201902121048]
2019-09-12 10:14:03.419 [WARN ] [su.litvak.chromecast.api.v2.Channel ] - Error while handling
org.codehaus.jackson.map.JsonMappingException: Could not resolve type id 'MULTIZONE_STATUS' into a subtype of [simple type, class su.litvak.chromecast.api.v2.StandardResponse]
 at [Source: N/A; line: -1, column: -1]
	at org.codehaus.jackson.map.JsonMappingException.from(JsonMappingException.java:163) ~[252:org.openhab.binding.chromecast:2.5.0.201902121048]
	at org.codehaus.jackson.map.deser.StdDeserializationContext.unknownTypeException(StdDeserializationContext.java:273) ~[252:org.openhab.binding.chromecast:2.5.0.201902121048]
	at org.codehaus.jackson.map.jsontype.impl.TypeDeserializerBase._findDeserializer(TypeDeserializerBase.java:117) ~[252:org.openhab.binding.chromecast:2.5.0.201902121048]
	at org.codehaus.jackson.map.jsontype.impl.AsPropertyTypeDeserializer.deserializeTypedFromObject(AsPropertyTypeDeserializer.java:74) ~[252:org.openhab.binding.chromecast:2.5.0.201902121048]
	at org.codehaus.jackson.map.deser.AbstractDeserializer.deserializeWithType(AbstractDeserializer.java:89) ~[252:org.openhab.binding.chromecast:2.5.0.201902121048]
	at org.codehaus.jackson.map.deser.StdDeserializerProvider$WrappedDeserializer.deserialize(StdDeserializerProvider.java:494) ~[252:org.openhab.binding.chromecast:2.5.0.201902121048]
	at org.codehaus.jackson.map.ObjectMapper._readValue(ObjectMapper.java:2695) ~[252:org.openhab.binding.chromecast:2.5.0.201902121048]
	at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1990) ~[252:org.openhab.binding.chromecast:2.5.0.201902121048]
	at su.litvak.chromecast.api.v2.EventListenerHolder.deliverEvent(EventListenerHolder.java:56) ~[252:org.openhab.binding.chromecast:2.5.0.201902121048]
	at su.litvak.chromecast.api.v2.Channel.notifyListenersOfSpontaneousEvent(Channel.java:452) ~[252:org.openhab.binding.chromecast:2.5.0.201902121048]
	at su.litvak.chromecast.api.v2.Channel.access$600(Channel.java:51) ~[252:org.openhab.binding.chromecast:2.5.0.201902121048]
	at su.litvak.chromecast.api.v2.Channel$ReadThread.run(Channel.java:195) [252:org.openhab.binding.chromecast:2.5.0.201902121048]

Do you guys know the root cause yet? It doesn’t seem to affect any function but seeing the exception is annoying.

Yes, it´s something about some lib (or jackson…something…) which doesnt support the multi room yet, Or something like that).

It is highly annoying.

As several binding on openhab… no solution :frowning:
it’s a shame, but with the multiple bugs, openhab loses its interest

Seeing the same. Anyone already contacted the developer like Mark suggested?

@Ferry There’s an open issue for it.

Resolve on the master tree, just wait the release

As far as I understand this require a library update. How will it get pushed to openhab?

With a PR that looks like this, but with the new library version number.

The issue seems to be fixed. But I don’t kown how to integrate the fix into my openhab installation.
(Sorry I’m not really fimiliar with GitHub, PullRequests, change to snapshot and so on).
Any short description or link would be great!

The fix has been committed, but it’s not yet in a release of the chromecast-java-api-v2 third party library. Once it’s in a release of the library, someone (maybe me) will submit a PR to have the new lib included with the binding. After that, the fix will be available in subsequent snapshot versions of OH until the next milestone release comes out.

1 Like

so this binding will not resolve for openhab 2.4 ?