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
Logging error from Stack utils
August 11, 2023
10:33, EEST
Avatar
iivanov
Member
Members
Forum Posts: 4
Member Since:
August 11, 2023
sp_UserOfflineSmall Offline

Hi there!

In the logs we receive an error every couple of seconds:
2023-08-11 07:12:19.177 ERROR 1 — [Executor-107540] com.prosysopc.ua.stack.utils.StackUtils : Uncaught Exception in Thread: Thread[OPC-UA-Stack-Non-Blocking-Work-Executor-107540,5,main]
2023-08-11 10:12:19.177
java.lang.ArrayIndexOutOfBoundsException: null

That’s all the info we have and we could not troubleshoot any further. We are using the latest version and this is only happening in our prod environment. We did not see it happening in dev and stage.

August 11, 2023
11:10, EEST
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 983
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Hi,

Was there a stacktrace as well?

The default UncaughtExceptionHandler can be overridden by static com.prosysopc.ua.stack.utils.StackUtils.setUncaughtExceptionHandler(UncaughtExceptionHandler), but the default one by us already does (only) “logger.error(“Uncaught Exception in Thread: {}”, thread, ex);”, which should have resulted in a stacktrace as part of the log.

Anyway, if that fails to produce it, maybe you could override it and obtain it more manually? Or that override could anyway provide an entry point for e.g. profiler/debugger etc. (if possible in your prod environment).

August 11, 2023
11:41, EEST
Avatar
iivanov
Member
Members
Forum Posts: 4
Member Since:
August 11, 2023
sp_UserOfflineSmall Offline

Hi Bjarne,

No, unfortunately no stacktrace.
The main question is what can we check to figure out with what it is related and why can it be happening only on this environment.
The other strange part was that yesterday it was happening every 2 seconds and today it is more rare – like once every couple of minutes.

That’s all the info we get:
2023-08-11 08:40:01.024 ERROR 1 — [Executor-107577] com.prosysopc.ua.stack.utils.StackUtils : Uncaught Exception in Thread: Thread[OPC-UA-Stack-Non-Blocking-Work-Executor-107577,5,main]

java.lang.ArrayIndexOutOfBoundsException: null

August 11, 2023
12:40, EEST
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 983
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Is this the client or the server side? If client are there any different servers vs. other environments. And the same for the clients if the server side?

It is a bit hard to say anything without the stacktrace I’m afraid, sorry. But I was able to find: https://stackoverflow.com/questions/12582370/getting-arrayindexoutofboundsexception-null-with-no-stack-trace and https://bugs.openjdk.org/browse/JDK-8273392 , it would seem there might be an optimization by the JVM so that only the first exception shows the stacktrace. Is it possible to find the first instance where it happened? Alternative you could try to do the -XX:-OmitStackTraceInFastThrow mentioned in the link.

P.S.
Also I’m assuming by latest SDK version you mean https://downloads.prosysopc.com/opcua/Prosys_OPC_UA_SDK_for_Java_4_Release_Notes.html#version-4-10-6

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
9 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

TimK: 41

Member Stats:

Guest Posters: 0

Members: 684

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6261

Newest Members:

digitechroshni, LouieWreve, Kickbiche, karrimacvitie5, graciela2073, sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma

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