A NullPointerException occurs in Seam Image.getImage() method for images with unsupported content type in JBoss EAP 5.1.0.

Solution Verified - Updated -

Issue

The following NullPointerException occurs in Seam Image.getImage() method for images with unsupported content type in JBoss EAP 5.1.0.

java.lang.NullPointerException
    at org.jboss.seam.ui.graphicImage.Image.getImage(Image.java:154)
    at org.jboss.seam.ui.graphicImage.GraphicImageRendererBase.doEncodeBegin(GraphicImageRendererBase.java:44)
    at org.jboss.seam.ui.util.cdk.RendererBase.encodeBegin(RendererBase.java:79)
    at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:813)
    at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:232)
    at com.sun.faces.renderkit.html_basic.CommandLinkRenderer.encodeChildren(CommandLinkRenderer.java:149)
    at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
...

Environment

JBoss Enterprise Application Platform (EAP) 5.1.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.