Thank you for your response!
The bug is fixed in JDK 1.4.2_13. I just tested this.
But upgrading to this patch level is no option for our customer.
I solved the problem by installing Java Advanced Imaging Image I/O 1.1.
It's not a fix for the bug, but a workaround which does his job. :)
Jeremias Maerki schrieb:
Have you tried with JDK 1.4.2_13 or later? The Sun bug entry you
mentioned says at the top that the bugfix has been released with the
13th revision. Surely you can upgrade your JVM to that version.
Another option would write an image loader using XML Graphics Commons'
own PNG codec like I've already written for TIFF (see [1]).
[1]
https://svn.apache.org/repos/asf/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageLoaderInternalTIFF.java
On 04.07.2008 15:08:04 Tim Peteler wrote:
Hi,
I'm referring to a older post which can be found at:
http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-users/200711.mbox/[EMAIL
PROTECTED]
I'm facing the exact same problem as nancy_b in the mentioned post. (see
my stack trace below)
My problem is, that I'm using FOP 0.95beta and the workaround for FOP
0.94 mentioned by Jeremias can't be used in FOP 0.95beta.
I know, that this is not a FOP problem itself, but my question is: Is
there another workaround to fix this issue?
We are currently using JDK 1.4.2 and upgrading to JDK 1.6 (where the
ImageIO bug is fixed, see
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5098176) is not
possible for us.
Thanks in advance,
Tim
java.lang.IllegalArgumentException: LUT has improper length!
at
javax.imageio.ImageTypeSpecifier$Indexed.<init>(ImageTypeSpecifier.java:815)
at
javax.imageio.ImageTypeSpecifier.createIndexed(ImageTypeSpecifier.java:903)
at
com.sun.imageio.plugins.png.PNGImageReader.getImageTypes(PNGImageReader.java:1463)
at
com.sun.imageio.plugins.png.PNGImageReader.readImage(PNGImageReader.java:1348)
at
com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java:1530)
at javax.imageio.ImageIO.read(ImageIO.java:1384)
at com.inxire.ioc.util.ImageHelper.getImageWidth(ImageHelper.java:178)
at sun.reflect.GeneratedMethodAccessor47.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
oracle.xml.parser.v2.XSLExtFunctions.callStaticMethod(XSLExtFunctions.java:109)
at
oracle.xml.parser.v2.XPathExtFunction.evaluateMethod(XPathExtFunction.java:298)
at
oracle.xml.parser.v2.XPathExtFunction.evaluate(XPathExtFunction.java:225)
at oracle.xml.parser.v2.XSLVariable.getValue(XSLVariable.java:205)
at oracle.xml.parser.v2.XSLVariable.processAction(XSLVariable.java:117)
at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:417)
at oracle.xml.parser.v2.XSLTemplate.processAction(XSLTemplate.java:191)
at
oracle.xml.parser.v2.XSLApplyTemplates.processAction(XSLApplyTemplates.java:210)
at
oracle.xml.parser.v2.XSLApplyTemplates.processAction(XSLApplyTemplates.java:123)
at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:417)
at
oracle.xml.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:417)
at oracle.xml.parser.v2.XSLTemplate.processAction(XSLTemplate.java:191)
at
oracle.xml.parser.v2.XSLApplyTemplates.processAction(XSLApplyTemplates.java:210)
at
oracle.xml.parser.v2.XSLApplyTemplates.processAction(XSLApplyTemplates.java:123)
at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:417)
at
oracle.xml.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:417)
at oracle.xml.parser.v2.XSLTemplate.processAction(XSLTemplate.java:191)
at
oracle.xml.parser.v2.XSLApplyTemplates.processAction(XSLApplyTemplates.java:210)
at
oracle.xml.parser.v2.XSLApplyTemplates.processAction(XSLApplyTemplates.java:123)
at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:417)
at
oracle.xml.parser.v2.XSLCondition.processAction(XSLCondition.java:161)
at
oracle.xml.parser.v2.XSLCondition.processAction(XSLCondition.java:152)
at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:417)
at oracle.xml.parser.v2.XSLTemplate.processAction(XSLTemplate.java:191)
at oracle.xml.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:508)
at oracle.xml.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:255)
at oracle.xml.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:147)
at oracle.xml.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:200)
at
com.inxire.ioc.component.xsl.XSLComponent.formatInternal(XSLComponent.java:1441)
at
com.inxire.ioc.component.xsl.XSLComponent.format(XSLComponent.java:428)
at jsp_servlet.__printview._jspService(__printview.java:827)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1077)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at
com.inxire.ioc.web.servlet.RequestCleanupFilter.doFilter(RequestCleanupFilter.java:189)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:334)
at
com.inxire.ioc.web.servlet.ControllerServlet.dispatch(ControllerServlet.java:295)
at
com.inxire.ioc.web.servlet.ControllerServlet.doPost(ControllerServlet.java:245)
at
com.inxire.ioc.webapp.iogui.BrowseServlet.doPost(BrowseServlet.java:409)
at
com.inxire.ioc.web.servlet.ControllerServlet.doGet(ControllerServlet.java:183)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1077)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at
com.inxire.ioc.web.servlet.RequestCleanupFilter.doFilter(RequestCleanupFilter.java:166)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:7053)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3902)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2773)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Tim Peteler inxire GmbH
[EMAIL PROTECTED] Hanauer Landstraße 293 a
Tel. +49(0)69/870000-27 60314 Frankfurt am Main
Fax +49(0)69/870000-01 Sitz der Gesellschaft: Frankfurt am Main
Deutschland / Germany Geschäftsführer: Axel Morgner, Toni Schnell
http://www.inxire.com Registergericht: Amtsgericht FFM, HRB 55218
begin:vcard
fn:Tim Peteler
n:Peteler;Tim
org:inxire GmbH
adr:;;Hanauer Landstrasse 293a;Frankfurt am Main;Hessen;60314;Germany
email;internet:[EMAIL PROTECTED]
tel;work:+49 (0) 69 870000 27
tel;fax:+49 (0) 69 870000 11
x-mozilla-html:FALSE
url:http://www.inxire.com
version:2.1
end:vcard
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]