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
OutOfMemoryError in OPC UA Browser when I try to connect to simple server using macOS
April 1, 2022
22:00, EEST
Avatar
parana
New Member
Members
Forum Posts: 2
Member Since:
April 1, 2022
sp_UserOfflineSmall Offline

04/01/2022 15:44:45.665 WARN [Thread-42] com.prosysopc.ua.stack.a.j [] – ServerNonce from ActivateSessionResponse was not valid (must be at least 32 bytes): [0] 0x
04/01/2022 15:44:46.151 ERROR [OPC-UA-Stack-Blocking-Work-Executor-124] com.prosysopc.ua.stack.utils.x [] – Uncaught Exception in Thread: Thread[OPC-UA-Stack-Blocking-Work-Executor-124,5,main]
java.lang.OutOfMemoryError: Java heap space

How can i increase heap space in Browser installed on macOS ?

April 1, 2022
23:17, EEST
Avatar
parana
New Member
Members
Forum Posts: 2
Member Since:
April 1, 2022
sp_UserOfflineSmall Offline

After changing the /Applications/Prosys\ OPC\ UA\ Browser.app/Contents/vmoptions.txt file putting 2GB of memory to Heap I got:

WARN [Thread-18] com.prosysopc.ua.stack.a.j [] – ServerNonce from ActivateSessionResponse was not valid (must be at least 32 bytes): [0] 0x

Is this an error from the server not sending Nonce?

I’m using security mode: None in one simple open server (without security)

April 4, 2022
8:33, EEST
Avatar
Matti Siponen
Moderator
Members

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

Hello,

Since you’re connecting without security, the invalid nonce is logged only as a warning and shouldn’t affect anything. Otherwise, this would have been logged as an error and an Exception would have been thrown.

Nonces are required for certificate validation and UserIdentity signing and encrypting. When MessageSecurityMode is None, SecurityPolicy is NONE and UserIdentity Anonymous, there are no certificates to validate or UserIdentities to sign or encrypt and therefore nonces are not required in this case and the OPC UA Specification allows Servers to not send them. Though, Servers are allowed to send nonces even when they’re not required.

Just to confirm, after increasing the heap space, did you have any trouble connecting to the Server besides this warning related to nonces?

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
20 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

Ibrahim: 76

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

fred: 41

Member Stats:

Guest Posters: 0

Members: 681

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6261

Newest Members:

graciela2073, sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma, fidelduke938316, Jan-Pfizer, DavidROunc, fen.pang@woodside.com

Moderators: Jouni Aro: 1010, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 983, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 321, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1