Uploaded image for project: 'Apache PLC4X'
  1. Apache PLC4X
  2. PLC4X-201

OPC-UA PlcList underlying type not compatible with Eclipse Milo

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.7.0
    • 0.9.0
    • Driver-OPC-UA
    • Important

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            itaross Alessandro Rossignoli
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: