You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@plc4x.apache.org by "Alvaro del Castillo (Jira)" <ji...@apache.org> on 2019/12/18 05:44:00 UTC

[jira] [Created] (PLC4X-164) [OPC-UA] Can't read values from OPC-UA server because NOT FOUND exception

Alvaro del Castillo created PLC4X-164:
-----------------------------------------

             Summary: [OPC-UA] Can't read values from OPC-UA server because NOT FOUND exception
                 Key: PLC4X-164
                 URL: https://issues.apache.org/jira/browse/PLC4X-164
             Project: Apache PLC4X
          Issue Type: Bug
          Components: Driver-OPC-UA
            Reporter: Alvaro del Castillo


Trying to read values from the opc-ua server from the [IQunet sensor|https://iqunet.com/] no data is received because of a *NOT FOUND* exception that appears reading all node ids. You can access these node ids using other clients, like [FreeOpcUa|https://github.com/FreeOpcUa/opcua-client-gui].

After debugging the problem, the issue is located in this [logical check|https://github.com/apache/plc4x/blob/develop/plc4j/drivers/opcua/src/main/java/org/apache/plc4x/java/opcua/connection/OpcuaTcpPlcConnection.java#L400].

This condition:
{code:java}
readValues.get(counter).getStatusCode() != StatusCode.GOOD
{code}
must be
{code:java}
! readValues.get(counter).getStatusCode().equals(StatusCode.GOOD)
{code}
I am uploading a PR which fixes the issue.



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