Avatar
Please consider registering
guest
sp_LogInOut Log Insp_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 RSSsp_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: 353
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: 1919
Currently Online:
Guest(s) 34
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 90
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 732
Moderators: 8
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1545
Posts: 6515
Newest Members:
mood edibles, LouieWreve, daniellabdx, janessan21, sammiebeak359, gena7127517, thorstenbouldin, Brett.Rollason, steven014223542, Roberthat
Moderators: Jouni Aro: 1029, Pyry: 1, Petri: 1, Bjarne Boström: 1045, Jimmy Ni: 26, Matti Siponen: 353, Lusetti: 0, Elias: 0
Administrators: admin: 1