plc4x-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alessandro Rossignoli (Jira)" <j...@apache.org>
Subject [jira] [Created] (PLC4X-201) OPC-UA PlcList underlying type not compatible with Eclipse Milo
Date Thu, 28 May 2020 19:58:00 GMT
Alessandro Rossignoli created PLC4X-201:
-------------------------------------------

             Summary: 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


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)

Mime
View raw message