

0:34, EET

May 31, 2024

Hi guys,
i am using the Prosys Opcua Client SDK (4.10.6) to build a opcua client and connect it to opcua server.
Most of the time, it works fine. But sometimes when the opc server is not very stable, e.g. the opcua server state is changed from “Running” to “‘CommunicationFault'”, the client will automatically disconnect. But during the disconnecting, the following exception will be reported:
[pc.ua.client.UaClient@4ad8c5a7] client.UaClient :5281: Failed to CloseSession:
com.prosysopc.ua.stack.common.ServiceResultException: Bad_ServerNotConnected (code=0x800D0000, description=”The operation could not complete because the client is not connected to the server.”)
at com.prosysopc.ua.stack.transport.tcp.io.TcpConnection.sendRequest(SourceFile:1671) ~[?:?]
at com.prosysopc.ua.stack.transport.tcp.io.SecureChannelTcp.serviceRequest(SourceFile:852) ~[?:?]
at com.prosysopc.ua.stack.transport.tcp.io.SecureChannelTcp.serviceRequest(SourceFile:822) ~[?:?]
at com.prosysopc.ua.stack.application.SessionChannel.serviceRequest(SourceFile:439) ~[?:?]
at com.prosysopc.ua.stack.transport.ChannelService.CloseSession(SourceFile:432) ~[?:?]
at com.prosysopc.ua.client.UaClient.e(SourceFile:5279) [?:?]
at com.prosysopc.ua.client.UaClient.disconnect(SourceFile:1120) [?:?]
at com.prosysopc.ua.client.UaClient.disconnect(SourceFile:1096) [?:?]
at com.prosysopc.ua.client.UaClient.disconnect(SourceFile:1080) [?:?]
at com.communication.opcua.client.OPCUADAClient.disconnect(OPCUADAClient.java:188) [?:?]
at com.communication.opcua.listener.OPCUADAServerStatusListener.onStateChange(OPCUADAServerStatusListener.java:46) [?:?]
at com.prosysopc.ua.client.UaClient.a(SourceFile:5710) [?:?]
at com.prosysopc.ua.client.UaClient.updateServerStatus(SourceFile:4749) [?:?]
at com.prosysopc.ua.client.UaClient$a.aK(SourceFile:307) [?:?]
at com.prosysopc.ua.client.UaClient$a.run(SourceFile:251) [?:?]
at java.lang.Thread.run(Thread.java:750) [?:1.8.0_422]
Unfortunately, I can’t catch this exception in my own code either, and after this exception occurs, the session of the connection between the client and the server will not be closed and the memory will not be released in client process. So, after multiple disconnections and automatic reconnections, my opcua client will have an OutOfMemory exception.
Could you please help me with this issue ? Is this a issue at Prosys Opcua Client SDK ?
Thank you very much !
10:53, EET

Moderators
February 11, 2020

Hello,
Prosys OPC UA SDK for Java version 4.10.6 is already quite old. Please, update to the latest version of the SDK, which is currently version 5.2.8, and check if the problem persists.
If you can’t update to the latest version of the SDK, contact uajava-support@prosysopc.com to discuss how to proceed with resolving your issue.
Most Users Ever Online: 1919
Currently Online:
141 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 88
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 769
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1532
Posts: 6478
Newest Members:
Arthurarrer, bettyestambaugh, bgqestelle, Jaydenenjv, jeanettelphinsto, Michalewek, AnthonyHek, HarryWal, WilliamNulty, RobertCumModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1033, Jimmy Ni: 26, Matti Siponen: 351, Lusetti: 0
Administrators: admin: 1