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

[OPC-UA] Can't read values from OPC-UA server because NOT FOUND exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.6.0
    • Driver-OPC-UA
    • None

    Description

      Trying to read values from the opc-ua server from the IQunet sensor 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.

      After debugging the problem, the issue is located in this logical check.

      This condition:

      readValues.get(counter).getStatusCode() != StatusCode.GOOD
      

      must be

      ! readValues.get(counter).getStatusCode().equals(StatusCode.GOOD)
      

      I am uploading a PR which fixes the issue.

      Attachments

        Issue Links

          Activity

            People

              cdutz Christofer Dutz
              acs Alvaro del Castillo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m