[jbossseam-issues] [JBoss JIRA] Updated: (JBSEAM-1251) EL coercion and proxies
Noname Noname (JIRA)
jira-events at lists.jboss.org
Wed May 16 22:23:52 EDT 2007
[ http://jira.jboss.com/jira/browse/JBSEAM-1251?page=all ]
Noname Noname updated JBSEAM-1251:
----------------------------------
Attachment: issue.zip
Moin
i'm sorry for the very narrow error description, but i had to work (without a hot swap feature it takes a lot of time with jboss & ejb3 ).
********************************************************************************************
So, in the attachment you will find two Entities (A.java and B.java) and the A references the B. Important is, that A loads B lazily!
The action take place in Action.java
Method createA() loads the A-instance, it's a factory for "a"
I think, because the B, that is referenced by this A, is already in a current persistent context, it can be found in a list, retrieved by the method getBs(), as a B_javassist$.
And, finally, the exception, described above, occurs during the rendering of the page home.xhtml.
I hope, my MyConverter is not a problem. It receives a list, retrieved by getBs and finds a corresponding entity by using the hash value.
**********************************************************************************
How to install: generate an example application and copy the attached archive's content over it. In a import-dev.sql are my "demo"-data to find. The corresponding persistence-dev.xml is also prepared. The jboss.home in build.properties should be changed to proper value.
Thanks, and sorry for my english...
Gena
> EL coercion and proxies
> -----------------------
>
> Key: JBSEAM-1251
> URL: http://jira.jboss.com/jira/browse/JBSEAM-1251
> Project: JBoss Seam
> Issue Type: Bug
> Components: JSF
> Affects Versions: 1.2.1.GA
> Reporter: Pete Muir
> Assigned To: Pete Muir
> Priority: Critical
> Fix For: 1.3.0.BETA1
>
> Attachments: issue.zip
>
>
> SCHWERWIEGEND: Error Rendering View[/offer/step1.xhtml]
> java.lang.IllegalArgumentException: Cannot convert (id=1868 token=REPAIRED title=repaired) of type c
> lass de.intermobil.model.feature.AccidentState to class de.intermobil.model.feature.AccidentState_$$
> _javassist_33
> at org.jboss.el.lang.ELSupport.coerceToType(ELSupport.java:358)
> at org.jboss.el.ExpressionFactoryImpl.coerceToType(ExpressionFactoryImpl.java:46)
> at com.sun.faces.renderkit.html_basic.RadioRenderer.renderOption(RadioRenderer.java:87)
> at com.sun.faces.renderkit.html_basic.SelectManyCheckboxListRenderer.encodeEnd(SelectManyChe
> ckboxListRenderer.java:146)
> at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:833)
> at org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:286)
> at org.ajax4jsf.framework.renderer.RendererBase.renderChildren(RendererBase.java:262)
> at org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:284)
> at org.ajax4jsf.framework.renderer.RendererBase.renderChildren(RendererBase.java:262)
> at org.ajax4jsf.renderkit.html.AjaxOutputPanelRenderer.encodeChildren(AjaxOutputPanelRendere
> r.java:79)
> at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:809)
> at org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:282)
> at org.ajax4jsf.framework.renderer.RendererBase.renderChildren(RendererBase.java:262)
> at org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:284)
> at org.ajax4jsf.framework.renderer.RendererBase.renderChildren(RendererBase.java:262)
> at org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:284)
> at org.ajax4jsf.framework.renderer.RendererBase.renderChildren(RendererBase.java:262)
> at org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:284)
> at org.ajax4jsf.framework.renderer.RendererBase.renderChildren(RendererBase.java:262)
> at org.ajax4jsf.renderkit.html.AjaxOutputPanelRenderer.encodeChildren(AjaxOutputPanelRendere
> r.java:79)
> at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:809)
> at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
> at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
> at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:571)
> at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:178)
> at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImp
> l.java:174)
> at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
> at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:229)
> at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
> at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
> at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
> ava:290)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:96)
> at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:220)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
> ava:235)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFil
> terImpl.java:209)
> at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilte
> rImpl.java:166)
> at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl
> .java:139)
> at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
> ava:235)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at de.intermobil.util.CommonFilter.doFilter(CommonFilter.java:33)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
> ava:235)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
> at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
> at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
> at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
> at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
> at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
> at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
> at org.jboss.seam.web.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:43)
> at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
> at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
> at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
> at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
> ava:235)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at de.intermobil.util.PrimeFilter.doFilter(PrimeFilter.java:33)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
> ava:235)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
> ava:235)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.ja
> va:179)
> at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
> at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
> at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:
> 156)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.ja
> va:624)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
> at java.lang.Thread.run(Thread.java:619)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list