android - droidText unstaisfiedLink error while creating Image instance -



android - droidText unstaisfiedLink error while creating Image instance -

i maintain on getting unstaisfied link error while creating pdf using droidtext lib.its on random basis , doesnt happen everytime

the line throws is:

image image = image.getinstance(url);

stacktrace

02-19 12:09:02.534: e/androidruntime(14477): fatal exception: thread-10 02-19 12:09:02.534: e/androidruntime(14477): java.lang.unsatisfiedlinkerror: cmmopenprofile 02-19 12:09:02.534: e/androidruntime(14477): @ org.apache.harmony.awt.gl.color.nativecmm.cmmopenprofile(native method) 02-19 12:09:02.534: e/androidruntime(14477): @ harmony.java.awt.color.icc_profile.<init>(icc_profile.java:324) 02-19 12:09:02.534: e/androidruntime(14477): @ harmony.java.awt.color.icc_profile.getinstance(icc_profile.java:645) 02-19 12:09:02.534: e/androidruntime(14477): @ com.lowagie.text.pdf.codec.pngimage.readpng(pngimage.java:425) 02-19 12:09:02.534: e/androidruntime(14477): @ com.lowagie.text.pdf.codec.pngimage.getimage(pngimage.java:515) 02-19 12:09:02.534: e/androidruntime(14477): @ com.lowagie.text.pdf.codec.pngimage.getimage(pngimage.java:230) 02-19 12:09:02.534: e/androidruntime(14477): @ com.lowagie.text.pdf.codec.pngimage.getimage(pngimage.java:212) 02-19 12:09:02.534: e/androidruntime(14477): @ com.lowagie.text.image.getinstance(image.java:275) 02-19 12:09:02.534: e/androidruntime(14477): @ com.test.view.pdf.pdfcreation.getlogo(pdfcreation.java:1094)

any pointers on doing wrong or how can resolve this.

droidtext uses parts of apache harmony awt dependencies. icc_profile implementation of harmony gets used when png image has iccp chunk (http://www.libpng.org/pub/png/spec/1.2/png-chunks.html#c.iccp) dependent on native library. native code isn't part of droidtext right now.

i opened issue here: http://code.google.com/p/droidtext/issues/detail?id=6 , it. great if attach png issue occurs bug.

as workaround can remove color profile png or prevent droidtext applying uncommenting line 424-429 in pngimage.java

android pdf-generation android-droidtext

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -