Issue Details (XML | Word | Printable)

Type: Bug Bug
Status: Closed Closed
Resolution: Won't Fix
Priority: Major Major
Assignee: Kim Haase
Reporter: evil850209
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.

NullPoint error in chapter 8.5 Composite Components example code.

Created: 26/Aug/13 08:05 AM   Updated: 26/Aug/13 06:25 PM   Resolved: 26/Aug/13 06:25 PM
Component/s: examples
Affects Version/s: 7.0.1
Fix Version/s: None

Time Tracking:
Not Specified


Java EE 7
GlasshFish 4.0

Issue Links:

Participants: evil850209, Ian Evans and Kim Haase

 Description  « Hide

I am reading The Java EE 7 Tutorial from

After I typed the example code in the chapter 8.5 Composite Components in my IDE and run the example on GlassFish4.0, I got an error.

at java.util.concurrent.ConcurrentHashMap.putIfAbsent(
at com.sun.faces.util.Cache.get(
at com.sun.faces.application.view.FaceletViewHandlingStrategy.getComponentMetadata(
at com.sun.faces.application.ApplicationImpl.createComponent(
at javax.faces.application.ApplicationWrapper.createComponent(

Then I check the older version of this tutorial, I found a difference in email.xhtml code. The namespace has been changed from Java EE 7. After I changed the namespace back to JavaEE 6 version, it works.

Java EE 7


Java EE 6


Ian Evans added a comment - 26/Aug/13 04:59 PM

Ian Evans made changes - 26/Aug/13 04:59 PM
Field Original Value New Value
Kim Haase added a comment - 26/Aug/13 06:22 PM

I believe this is essentially a duplicate of (of which is also a duplicate, I believe). Several components do not work correctly with the new namespace at the first release of JSF 2.2. The fix for this problem will be in the next released version of JSF 2.2.x.

We document the namespaces the way they are supposed to work, rather than document the incorrect behavior. The facelets pages for the tutorial examples that use composite components (and a few other components) use the namespace so that the examples will run.

Kim Haase made changes - 26/Aug/13 06:22 PM
Status Open [ 1 ] Closed [ 6 ]
Assignee Kim Haase [ chaase3 ]
Fix Version/s 7.0.2 [ 16321 ]
Resolution Won't Fix [ 2 ]
Kim Haase made changes - 26/Aug/13 06:24 PM
Resolution Won't Fix [ 2 ]
Status Closed [ 6 ] Reopened [ 4 ]
Kim Haase made changes - 26/Aug/13 06:25 PM
Fix Version/s 7.0.2 [ 16321 ]
Kim Haase made changes - 26/Aug/13 06:25 PM
Affects Version/s 7.0.1 [ 16320 ]
Kim Haase made changes - 26/Aug/13 06:25 PM
Status Reopened [ 4 ] Closed [ 6 ]
Resolution Won't Fix [ 2 ]