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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content