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
unexpected EUaConnectException on port 4840
September 12, 2024
15:53, EEST
Avatar
DenisF
Member
Members
Forum Posts: 24
Member Since:
March 26, 2021
sp_UserOfflineSmall Offline

Hello,
Our application uses Prosys OPC UA server SDK v7.5.1.
There is a connection attempt every 10 minutes on port 4840, which ends in an exception. The application log is full of them.
Is there a way to disable this feature?
Thanks in advance.
Best Regards
Denis

12/09/2024 14:29:53.590 ServerOptima_OPC_UA.exe (THREAD 3856) Exception EUaConnectException occurred in ProsysOPC.UaClient.TUaClient.DiscoverEndpoints at 0 in file
12/09/2024 14:29:53.592 Message: Failed to retrieve endpoints. Failed to connect to server opc.tcp://localhost:4840. StatusCode=Bad_Disconnect (0x80AD0000 – The server has disconnected from the client.)
12/09/2024 14:29:53.592 [00A40738] ProsysOPC.UaClient.TUaClient.DiscoverEndpoints
12/09/2024 14:29:53.592 [00A415B0] ProsysOPC.UaClient.TUaClient.GetEndpoints
12/09/2024 14:29:53.592 [00A4453B] ProsysOPC.UaClient.TUaClient.InitEndpoint
12/09/2024 14:29:53.592 [00D3CB68] ProsysOPC.UaServer.TUaLocalRegistrationClient.RegisterServer2 (Line 25996, “ProsysOPC.UaServer.Types.pas”)
12/09/2024 14:29:53.592 [00D3A842] ProsysOPC.UaServer.TUaServer.RegisterServer (Line 25996, “ProsysOPC.UaServer.Types.pas”)
12/09/2024 14:29:53.592 [00D3C521] ProsysOPC.UaServer.TUaRegisterServerThread.Execute (Line 25996, “ProsysOPC.UaServer.Types.pas”)
12/09/2024 14:29:53.592 [0048AA0D] System.Classes.ThreadProc (Line 15367, “System.Classes.pas”)
12/09/2024 14:29:53.592 [0040B3E8] System.ThreadWrapper (Line 24941, “System.pas”)
12/09/2024 14:39:54.217 ServerOptima_OPC_UA.exe (THREAD 3856) Exception EUaStatusException occurred in ProsysOPC.UaClasses.HandleOpcUaStatus at 0 in file
12/09/2024 14:39:54.221 Message: Failed to connect to server opc.tcp://localhost:4840. StatusCode=Bad_Disconnect (0x80AD0000 – The server has disconnected from the client.)
12/09/2024 14:39:54.221 [00AA9167] ProsysOPC.UaClasses.HandleOpcUaStatus
12/09/2024 14:39:54.221 [00AA91AA] ProsysOPC.UaClasses.HandleOpcUaStatus
12/09/2024 14:39:54.221 [00A40529] ProsysOPC.UaClient.TUaClient.DiscoverEndpoints
12/09/2024 14:39:54.221 [00A415B0] ProsysOPC.UaClient.TUaClient.GetEndpoints
12/09/2024 14:39:54.221 [00A4453B] ProsysOPC.UaClient.TUaClient.InitEndpoint
12/09/2024 14:39:54.221 [00D3CB68] ProsysOPC.UaServer.TUaLocalRegistrationClient.RegisterServer2 (Line 25996, “ProsysOPC.UaServer.Types.pas”)
12/09/2024 14:39:54.221 [00D3A842] ProsysOPC.UaServer.TUaServer.RegisterServer (Line 25996, “ProsysOPC.UaServer.Types.pas”)
12/09/2024 14:39:54.221 [00D3C521] ProsysOPC.UaServer.TUaRegisterServerThread.Execute (Line 25996, “ProsysOPC.UaServer.Types.pas”)
12/09/2024 14:39:54.221 [0048AA0D] System.Classes.ThreadProc (Line 15367, “System.Classes.pas”)
12/09/2024 14:39:54.221 [0040B3E8] System.ThreadWrapper (Line 24941, “System.pas”)

September 12, 2024
18:38, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1019
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

You can disable the registration to the Local Discovery Server (LDS) by calling

server.setDiscoveryServerUrl("");

as also shown in the ‘SampleConsoleServer’, if you run it with the ‘-d-‘ option .

The LDS is an optional component that can be installed, and the servers are typically trying to register to it by default, but you can also opt out of that – or make it optional within your own application.

September 13, 2024
11:17, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1019
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

And, since it seems I answered the question in relation to the SDK for Java, although you asked in relation to Delphi and Sentrol, the proper answer is to set:

UaServer.AutoRegister := False;
September 16, 2024
11:41, EEST
Avatar
DenisF
Member
Members
Forum Posts: 24
Member Since:
March 26, 2021
sp_UserOfflineSmall Offline

Hi Jouni,

Thank you very much for the information.

Best regards
Denis

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
16 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Heikki Tahvanainen: 402

hbrackel: 144

rocket science: 86

pramanj: 86

Francesco Zambon: 83

Ibrahim: 78

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

Member Stats:

Guest Posters: 0

Members: 732

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1508

Posts: 6396

Newest Members:

elainesever, powhephenry, mamiecaldwell5, Lamasom, scsneed, berrybulcock, icerdraizomma, athenasummy5, vtaletbhcx, HaroldaDob

Moderators: Jouni Aro: 1019, Pyry: 1, Petri: 0, Bjarne Boström: 1016, Jimmy Ni: 26, Matti Siponen: 340, Lusetti: 0

Administrators: admin: 1