kh-fataoui / xdocreport

Automatically exported from code.google.com/p/xdocreport
0 stars 0 forks source link

Multithreading problem #491

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,I'm converting odt to pdf with a multithread application 10-20 thread

I'm using 1.0.5 on windows 7 64 bit with these libraries

org.odftoolkit.odfdom.converter.pdf-1.0.5.jar
org.odftoolkit.odfdom.converter.core-1.0.5.jar
fr.opensagres.xdocreport.itext.extension-1.0.5.jar
itext 2.1.7
odfdom-java-0.8.7.jar
xercesImpl-2.9.1.jar
xml-apis-1.3.04.jar

Hi receive this exception,something seems non thread safe:

rg.odftoolkit.odfdom.converter.core.ODFConverterException: 
java.util.ConcurrentModificationException
    at org.odftoolkit.odfdom.converter.pdf.PdfConverter.doConvert(PdfConverter.java:82)
    at org.odftoolkit.odfdom.converter.pdf.PdfConverter.doConvert(PdfConverter.java:43)
    at org.odftoolkit.odfdom.converter.core.AbstractODFConverter.convert(AbstractODFConverter.java:42)
    at fr.opensagres.xdocreport.samples.odt.converters.pdf.TestConverter.convert(TestConverter.java:67)
    at fr.opensagres.xdocreport.samples.odt.converters.pdf.MultiThreadManipolationRunnerDocX.run(MultiThreadManipolationRunnerDocX.java:65)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.util.ConcurrentModificationException
    at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:901)
    at java.util.ArrayList$Itr.next(ArrayList.java:851)
    at com.lowagie.text.FontFactoryImp.getFont(Unknown Source)
    at com.lowagie.text.FontFactoryImp.getFont(Unknown Source)
    at com.lowagie.text.FontFactory.getFont(Unknown Source)
    at com.lowagie.text.FontFactory.getFont(Unknown Source)
    at fr.opensagres.xdocreport.itext.extension.font.AbstractFontRegistry.getFont(AbstractFontRegistry.java:53)

Please provide any additional information below.

Original issue reported on code.google.com by lavi.ian...@gmail.com on 4 Aug 2015 at 1:45

GoogleCodeExporter commented 9 years ago
Please create your issues at https://github.com/opensagres/xdocreport/issues

Original comment by angelo.z...@gmail.com on 5 Aug 2015 at 6:03