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
Bad_UnexpectedError
November 4, 2024
18:07, EET
Avatar
Patrick
Member
Members
Forum Posts: 9
Member Since:
October 15, 2020
sp_UserOfflineSmall Offline

Hi,
I’m trying to connect to an OPC UA Client written with Prosys using the Prosys Sample Client. I get the certificate message and can accept it (it says the certificate is invalid in some form, but I can still just accept it).

But after that it takes about 2 seconds and I get the message: Failed to CreateSession.. StatusCode=Bad_UnexpectedError (0x80010000 – An unexpected error occured).

Do you know common causes for this? And what I might need to do?

Thanks & Greetings
Patrick Kottmeyer

November 6, 2024
17:21, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

The usual reason for Bad_Unexpected error is an unexpected exception in the server implementation.

You write that you are “trying to connect to an OPC UA Client”, but did you mean you are connecting to your own server written with Sentrol, too? Can you connect to the UaSampleServer, though?

If the server certificate is invalid, it may help to regenerate it. If you remove (rename) the old one in PKI\CA\private folder, the application should create a new one automatically.

November 11, 2024
10:42, EET
Avatar
Patrick
Member
Members
Forum Posts: 9
Member Since:
October 15, 2020
sp_UserOfflineSmall Offline

Sorry for the unclear formulation. Yes, I use the testclient (based on the test implementation you provide) to connect to a server written with Sentrol components. Connection to other servers work’s fine. Just not this one.

The server side at least does not log any problems / exceptions. Which makes it harder to determine the cause of this.

I’ll see if it helps to regenerate the certificates. Thanks for the tip.

November 11, 2024
10:57, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

OK. Check also, if you have any event handlers in UaServer. If they raise exceptions, it would probably turn out like this in the client.

If you don’t find anything, I can provide you a debug version of Sentrol that can log more of the server internals. Send email to sentrol-support at prosysopc dot com for this, please.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
14 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: 724

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1526

Posts: 6457

Newest Members:

forrestdilke5, ernestoportus31, martin123, rickie5305, shaylamaggard4, rickyjuarez140, jonathonmcintyre, fannielima, kristiewinkle8, rust

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1028, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0

Administrators: admin: 1