Re: PrettyFaces, CDI and the case of the missing ?cid=xxx…

Splash Forums PrettyFaces Users PrettyFaces, CDI and the case of the missing ?cid=xxx… Re: PrettyFaces, CDI and the case of the missing ?cid=xxx…


Tony Herstell

Once you get the project and get it running.

Go to “manage users” and then click [Done]

You will get a stack trace as [Done] is trying to close a conversation that does not exist.

04:53:21,799 INFO  [com.entermyevents.userManagement.UserManagementController] (http-- +++CONVERSATION END for conversation:null
04:53:21,802 INFO [] (http-- JBAS014101: Failed to find {[0, 60, 48, -124, 1, -102, 72, 53, -100, -48, 98, 47, 55, -32, 14, -27]} in cache
04:53:21,803 ERROR [org.jboss.ejb3.invocation] (http-- JBAS014134: EJB Invocation failed on component UserManagementController for method public java.lang.String com.entermyevents.userManagement.UserManagementController.finished(): javax.ejb.EJBException: org.jboss.weld.exceptions.IllegalStateException: WELD-000215 Attempt to call end() on a transient conversation
at [jboss-as-ejb3-7.1.0.CR1b.jar:7.1.0.CR1b]

You can see the Conversation was started in the logs.

I can manually “fix” this by looking in the logs for the conversation starting

04:49:51,576 INFO  [com.entermyevents.userManagement.UserManagementController] (http-- +++CONVERSATION START
04:49:51,577 INFO [com.entermyevents.userManagement.UserManagementController] (http-- conversation:1

and append onto the URL the test:


and re-fresh the page.

Now I can mess around on the page and all is well as the conversation is maintained… finally hitting [Done] will close the conversation without a stack trace.

It seems that between CDI and PrettyFaces the initial


is being stripped off.

Hopefully it’s a simple fix to stop this being stripped.