Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Disconnect failed and memory of session will not be released in OPCUA client
January 24, 2025
0:34, EET
Avatar
xinyu
Member
Members
Forum Posts: 4
Member Since:
May 31, 2024
sp_UserOfflineSmall Offline

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 !

January 24, 2025
10:53, EET
Avatar
Matti Siponen
Moderator
Members

Moderators
Forum Posts: 353
Member Since:
February 11, 2020
sp_UserOfflineSmall Offline

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.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
74 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: 791

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1538

Posts: 6493

Newest Members:

Phillipbus, Oscarsat, WilliamJer, WilliamTunse, mvsjonah79, RaymondSmutt, Merlin AI pap, patlawrence98, opcua_1232141232321, DavidGaday

Moderators: Jouni Aro: 1027, Pyry: 1, Petri: 0, Bjarne Boström: 1037, Jimmy Ni: 26, Matti Siponen: 353, Lusetti: 0

Administrators: admin: 1