[JBoss Seam] - Re: save the transient instance before flushing
by squ1rr3l
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
18Â years, 11Â months
[JBoss Messaging] - Failed to write packet - Error
by monk2005
Hello All,
Has any one come across the following exception when sending JMS over SSL on the client side? The message seem to be getting to the server, but see this exception periodically.
Thanks for any advice in advance
ERROR 15:28:11 (org.jboss.jms.wireformat.JMSWireFormat.java:243) Failed to write packet
| java.io.NotSerializableException: EDU.oswego.cs.dl.util.concurrent.ConcurrentHashMap$Segment
| at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
| at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
| at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
| at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
| at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:416)
| at EDU.oswego.cs.dl.util.concurrent.ConcurrentHashMap.writeObject(ConcurrentHashMap.java:1170)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
| at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
| at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
| at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
| at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
| at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
| at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
| at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
| at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
| at org.jboss.jms.wireformat.SerializedPacket.write(SerializedPacket.java:80)
| at org.jboss.jms.wireformat.JMSWireFormat.write(JMSWireFormat.java:237)
| at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:278)
| at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:135)
| at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
| at org.jboss.remoting.LeasePinger.sendClientPing(LeasePinger.java:283)
| at org.jboss.remoting.LeasePinger.addClient(LeasePinger.java:117)
| at org.jboss.remoting.MicroRemoteClientInvoker.establishLease(MicroRemoteClientInvoker.java:398)
| at org.jboss.remoting.Client.setupClientLease(Client.java:1541)
| at org.jboss.remoting.Client.connect(Client.java:1441)
| at org.jboss.remoting.Client.connect(Client.java:444)
| at org.jboss.jms.client.remoting.JMSRemotingConnection.start(JMSRemotingConnection.java:272)
| at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionDelegate$aop(ClientConnectionFactoryDelegate.java:146)
| at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)
| at org.jboss.jms.client.container.StateCreationAspect.handleCreateConnectionDelegate(StateCreationAspect.java:83)
| at org.jboss.aop.advice.org.jboss.jms.client.container.StateCreationAspect0.invoke(StateCreationAspect0.java)
| at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)
| at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createConnectionDelegate(ClientConnectionFactoryDelegate.java)
| at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:205)
| at org.jboss.jms.client.JBossConnectionFactory.createTopicConnection(JBossConnectionFactory.java:115)
| at org.jboss.jms.client.JBossConnectionFactory.createTopicConnection(JBossConnectionFactory.java:109)
| at com.lmco.spv.jms.topic.AbstractTopic.setupTopicConnection(AbstractTopic.java:90)
| at com.lmco.spv.jms.topic.AbstractTopic.tryStartConnection(AbstractTopic.java:72)
| at com.lmco.spv.jms.topic.AbstractTopic.<init>(AbstractTopic.java:62)
| at com.lm.SemParView.applications.connectSet.jndiNames.SPVHealthTopic.<init>(SPVHealthTopic.java:43)
| at com.lmco.spv.jms.testers.JMSTester.testSPVHealthTopic(JMSTester.java:59)
| at com.lmco.spv.jms.testers.JMSTester.main(JMSTester.java:51)
| WARN 15:28:11 (org.jboss.remoting.LeasePinger.java:290) LeasePinger[org.jboss.remoting.transport.http.ssl.HTTPSClientInvoker@22ab57(afqr-5d3emy-f5csevg1-1-f5csew62-6)] failed to ping to server: Can not connect http client invoker.
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4074160#4074160
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4074160
18Â years, 11Â months