Am 21.10.2013 15:40, schrieb Cleverson Pohlod:
Does anyone know why when migrating from version 1.7.1 to version 1.8.2
error now occurs in the loop of images from pdf?
code:
      Iterator<Entry<String, Object>> it = images.entrySet().iterator();
      while (it.hasNext()) {
         Entry<String, Object> entry = it.next();

error:

java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(HashMap.java:806)
at java.util.HashMap$EntryIterator.next(HashMap.java:847)
at java.util.HashMap$EntryIterator.next(HashMap.java:845)

This simply means that the images map from which you get the iterator is changed (images added/removed) while you are iterating over it. Thus the shown code is not the problem but some other statement not shown.


Best,
Timo


--

 Timo Boehme
 OntoChem GmbH
 H.-Damerow-Str. 4
 06120 Halle/Saale
 T: +49 345 4780474
 F: +49 345 4780471
 [email protected]

_____________________________________________________________________

 OntoChem GmbH
 Geschäftsführer: Dr. Lutz Weber
 Sitz: Halle / Saale
 Registergericht: Stendal
 Registernummer: HRB 215461
_____________________________________________________________________

Reply via email to