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:43:00 UTC
[jira] [Resolved] (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:all-tabpanel ]
Ben Hutcheson resolved PLC4X-201.
---------------------------------
Fix Version/s: 0.8.0
Resolution: Fixed
> 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
> Fix For: 0.8.0
>
>
> 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)