[jboss-user] [JBoss Seam] - Re: save the transient instance before flushing
squ1rr3l
do-not-reply at jboss.com
Tue Aug 14 16:15:19 EDT 2007
I'm getting a similar error, and as a SEAM newbie, I can't figure out how to fix it.
I used seam-gen to create a new project, then used new-entity. The resulting components allow me to create and edit, but the "delete" button produces the TransientObjectException:
16:08:25,384 ERROR [ExceptionFilter] exception root cause
| javax.faces.FacesException: #{commentHome.remove}: org.hibernate.TransientObjectException:
| object references an unsaved transient instance - save the transient instance before flus
| hing: gov.virginia.vec.IT.prov.Comment
| at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.j
| ava:107)
| at javax.faces.component.UICommand.broadcast(UICommand.java:383)
| at org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.java:180)
| at org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:158)
|
| at org.ajax4jsf.framework.ajax.AjaxViewRoot.processApplication(AjaxViewRoot.java:3
| 46)
| at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.j
| ava:97)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
| at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil
| terChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain
| .java:206)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:82)
| at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
| at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
| at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
| at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.j
| ava:127)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
| at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
| at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
| at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:149)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil
| terChain.java: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(ApplicationFil
| terChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain
| .java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
| 230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
| 175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociati
| onValve.java:179)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.ja
| va: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(CachedConnectionV
| alve.java:157)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:10
| 9)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11P
| rotocol.java:580)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: javax.faces.el.EvaluationException: org.hibernate.TransientObjectException: obj
| ect references an unsaved transient instance - save the transient instance before flushing
| : gov.virginia.vec.IT.prov.Comment
| at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBinding
| MethodExpressionAdapter.java:91)
| at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.j
| ava:91)
| ... 45 more
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4074170#4074170
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4074170
More information about the jboss-user
mailing list