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: 1026
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:
9 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: 735

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1523

Posts: 6449

Newest Members:

rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger, howardkennerley, Thomassnism, biancacraft16

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

Administrators: admin: 1