JSF: NullPointerException in SelectItemsIterator.java:478 and the Solution

A NullPointerException at com.sun.faces.renderkit.SelectItemsIterator$GenericObjectSelectItemIterator$GenericObjectSelectItem.updateItem(SelectItemsIterator.java:478) happens in case the itemLabel bound to a null String

 <f:selectItems var="country" itemLabel="#{country}" (...)"/>

Tested with GlassFish v3

See you at Java EE Workshops at Munich Airport, Terminal 2 or Virtual Dedicated Workshops / consulting

NEW online workshop: Web Components training (online)

Airport MUC workshops: Java EE 8, Java 9: Bootstrap, Effective, Architectures, Single Page Apps, Progressive Web Apps, HTML 5, ES 6, CSS 3 and Microservices

Podcast: airhacks.fm and newsletter: airhacks.news

A book about rethinking Java EE Patterns


Hello Adam I hope this message finds you well.

I am currently working on a global project and was wondering if you could help me.

I would love what parameters do you consider are the most important to find the best 10 countries to find java developers.

Posted by Paola on October 04, 2015 at 02:23 AM CEST #

Post a Comment:
  • HTML Syntax: NOT allowed
Online Workshops
...the last 150 posts
...the last 10 comments