voyent
FacesMessages.instance().add generates an error  XML
Forum Index -> JBoss Seam Integration
Author Message
maguri

Joined: 17/Jul/2006 00:00:00
Messages: 84
Offline


Hi,

Env: Seam1.2.0PATCH1, IceFaces 1.6DR2 and JBoss4.05

I migrated the seam example "seam-registration" to Icefaces - Seam and found out that messages generated by org.jboss.seam.core.FacesMessages class generate the following error at renderResponse time:


2007-03-27 16:12:08,781 ERROR [com.icesoft.faces.facelets.D2DFaceletViewHandler] Problem in renderResponse: java.util.Vector
java.lang.ClassCastException: java.util.Vector
at com.icesoft.faces.renderkit.dom_html_basic.MessagesRenderer.encodeEnd(MessagesRenderer.java:116)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:525)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:520)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:520)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:520)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:520)
at com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:282)
at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:146)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(ReceiveSendUpdates.java:67)
at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:46)
at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer$Matcher.serviceOnMatch(PathDispatcherServer.java:50)
at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:19)
at com.icesoft.faces.webapp.http.core.PushServer.service(PushServer.java:35)
at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:29)
at com.icesoft.faces.webapp.http.servlet.PushServlet.service(PushServlet.java:27)
at com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:41)
at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:18)
at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:32)
at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:31)
at com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:41)
at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:18)
at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:48)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)

The code is:

FacesMessages.instance().add("User #{user.username} already exists");

I tried using ice:messages and h:messages with the same result.


So, is there a known way to workaround this?

----
By the way, how can I include code or log parts in a frame, common in lots of posts so they don't look scrambled? (Excuse my ignorance).

Thanks a lot

A.Gurisatti
[Email]
tony.herstell

Joined: 01/Dec/2006 00:00:00
Messages: 206
Offline


did you find a workaround for this?
maguri

Joined: 17/Jul/2006 00:00:00
Messages: 84
Offline


Not yet

Thanks a lot

A.Gurisatti
[Email]
Andreh

Joined: 11/Dec/2006 00:00:00
Messages: 33
Offline


this exception also appear not using seam, in this case creating a custom validator:
http://www.icefaces.org/JForum/posts/list/4105.page


are you using a Development build?
try with version 1.5.3
maguri

Joined: 17/Jul/2006 00:00:00
Messages: 84
Offline


Hi,

Yes I'm migrating some of the Seam1.2 examples to IceFaces 1.6DR2 to do some testing.

So its a bug in 1.6DR2. Should I report it?

Thanks a lot

A.Gurisatti
[Email]
Andreh

Joined: 11/Dec/2006 00:00:00
Messages: 33
Offline


First, test it with 1.5.3 maybe It works, if not... I'ts probably a bug
mark.collette


Joined: 07/Feb/2005 00:00:00
Messages: 1692
Offline


We're still in the process of enabling support for Seam 1.2, with ICEfaces 1.6. For now, I recommend using Seam 1.1.6, if possible.
[Email]
 
Forum Index -> JBoss Seam Integration
Go to:   
Powered by JForum 2.1.7ice © JForum Team