You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@plc4x.apache.org by "Alvaro del Castillo (Jira)" <ji...@apache.org> on 2019/12/18 05:59:00 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=16998828#comment-16998828 ]
Alvaro del Castillo commented on PLC4X-164:
-------------------------------------------
PR with the fix uploaded: https://github.com/apache/plc4x/pull/112
> [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
> Priority: Major
> Time Spent: 10m
> 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)