You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Cannot write multistate property stateText
To Reproduce
Steps to reproduce the behavior:
Create a MultistateValue object in a device
Connect a BACnet client and try to update stateText from the client
Error is generated in the device (server)
java.lang.ClassCastException: com.serotonin.bacnet4j.type.constructed.SequenceOf cannot be cast to com.serotonin.bacnet4j.type.constructed.BACnetArray
at com.serotonin.bacnet4j.obj.mixin.MultistateMixin.validateProperty(MultistateMixin.java:63)
at com.serotonin.bacnet4j.obj.BACnetObject.writeProperty(BACnetObject.java:481)
at com.serotonin.bacnet4j.service.confirmed.WritePropertyRequest.handle(WritePropertyRequest.java:102)
at com.serotonin.bacnet4j.transport.DefaultTransport.handleConfirmedRequest(DefaultTransport.java:870)
at com.serotonin.bacnet4j.transport.DefaultTransport.incomingConfirmedRequest(DefaultTransport.java:827)
at com.serotonin.bacnet4j.transport.DefaultTransport.receiveAPDU(DefaultTransport.java:640)
at com.serotonin.bacnet4j.transport.DefaultTransport.receiveImpl(DefaultTransport.java:578)
at com.serotonin.bacnet4j.transport.DefaultTransport.run(DefaultTransport.java:498)
at java.lang.Thread.run(Thread.java:748)
Expected behavior
I can update stateText from a BACnet client
I logged the request in 'DeviceEventAdapter.allowPropertyWrite()' listener callback and the Property Value is really of the type SequenceOf. The log from my device (server):
Describe the bug
Cannot write multistate property
stateText
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I can update stateText from a BACnet client
I logged the request in 'DeviceEventAdapter.allowPropertyWrite()' listener callback and the Property Value is really of the type SequenceOf. The log from my device (server):
The text was updated successfully, but these errors were encountered: