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
ConcurrentModificationException at
December 14, 2021
16:49, EET
Avatar
rocket science
Member
Members
Forum Posts: 88
Member Since:
March 16, 2017
sp_UserOfflineSmall Offline

Hi,

I got a ConcurrentModificationException during following call:

UaClient client = new UaClient(serverUri);

—-
Caused by: java.util.ConcurrentModificationException
at java.util.Hashtable$Enumerator.next(Hashtable.java:1387) ~[?:1.8.0_181]
at com.prosysopc.ua.UaApplication.<clinit>(SourceFile:158) ~[prosys-opc-ua-sdk-client-4.6.2-1636.jar:?]

It happened for the first time, and I was not able to reproduce it. But maybe you can take a look at this what happend and which Hashtable was modified here during the enumeration.

Thanks!

December 14, 2021
17:28, EET
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 1032
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Hi,

Do you have DEBUG level logging on for com.prosysopc.ua.UaApplication (or the package etc.)? If on DEBUG it would output System.getProperties() in a for loop and if they would be modified at the same time from another thread this could have happened. The iterator for EntrySet of the Properties would be a HashTable based Set apparently, so I assume this is what happened. Though.. not a scenario I would expect to happen likely, but I’ll add a note in our issue tracker so this can maybe be addressed in the future.

December 14, 2021
17:38, EET
Avatar
rocket science
Member
Members
Forum Posts: 88
Member Since:
March 16, 2017
sp_UserOfflineSmall Offline

Hi Bjarne,
thanks for taking care of this in your ussue tracker, and yes, I had DEBUG log level configured.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
13 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: 728

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1529

Posts: 6471

Newest Members:

ellis87832073466, zkxwilliemae, gabriellabachus, Deakin, KTP25Zof, Wojciech Kubala, efrennowell431, wilfredostuart, caitlynfajardo, jeromechubb7

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

Administrators: admin: 1