You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@plc4x.apache.org by "Christofer Dutz (Jira)" <ji...@apache.org> on 2020/01/07 08:32:00 UTC

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

     [ https://issues.apache.org/jira/browse/PLC4X-164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christofer Dutz resolved PLC4X-164.
-----------------------------------
    Resolution: Fixed

Fixed via GitHub PR

> [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
>            Assignee: Christofer Dutz
>            Priority: Major
>             Fix For: 0.6.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> 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)