You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@plc4x.apache.org by "Ben Hutcheson (Jira)" <ji...@apache.org> on 2021/08/03 20:42:00 UTC

[jira] [Commented] (PLC4X-201) OPC-UA PlcList underlying type not compatible with Eclipse Milo

    [ https://issues.apache.org/jira/browse/PLC4X-201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17392531#comment-17392531 ] 

Ben Hutcheson commented on PLC4X-201:
-------------------------------------

This should be fixed in both 0.8 and 0.9.

> OPC-UA PlcList underlying type not compatible with Eclipse Milo
> ---------------------------------------------------------------
>
>                 Key: PLC4X-201
>                 URL: https://issues.apache.org/jira/browse/PLC4X-201
>             Project: Apache PLC4X
>          Issue Type: Bug
>          Components: Driver-OPC-UA
>    Affects Versions: 0.7.0
>            Reporter: Alessandro Rossignoli
>            Priority: Major
>              Labels: beginner
>
> java.util.Collections$UnmodifiableRandomAccessList is not compatible with Eclipse Milo built-in types.
> When writing to the OPC-UA driver a simple array of Double, I receive the following error:
> [org.eclipse.milo.opcua.stack.core.serialization.OpcUaBinaryStreamEncoder:608]: Not a built-in type: class java.util.Collections$UnmodifiableRandomAccessList
> When writing a single value in the array the type is PlcDouble instead of PlcList, and there is no error.
>  
> I think that a possible solution could be changing the underlying type, or better to change the getter for the value.
> [https://github.com/apache/plc4x/blob/4a74ff526aeb57e978005e37c878fe55021462aa/plc4j/api/src/main/java/org/apache/plc4x/java/api/value/PlcList.java#L46]
> I will try to find myself a solution and I will keep you posted.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)