ejb - java.io.NotSerializableException: oracle.jdbc.driver.T4CConnection -
environment - ejb 3.1, struts 2.2, wildfly-10.1.0
from struts 2.2 action class, doing remote calls method of stateless session bean. method returning java.sql.connection
object.
15:09:40,934 error [stderr] (default task-8) java.lang.runtimeexception: wflyejb0054: failed marshal ejb parameters 15:09:40,935 error [stderr] (default task-8) @ org.jboss.as.ejb3.remote.localejbreceiver.clone(localejbreceiver.java:338) 15:09:40,935 error [stderr] (default task-8) @ org.jboss.as.ejb3.remote.localejbreceiver.clone(localejbreceiver.java:318) 15:09:40,935 error [stderr] (default task-8) @ org.jboss.as.ejb3.remote.localejbreceiver.processinvocation(localejbreceiver.java:275) 15:09:40,935 error [stderr] (default task-8) @ org.jboss.ejb.client.ejbclientinvocationcontext.sendrequest(ejbclientinvocationcontext.java:184) 15:09:40,935 error [stderr] (default task-8) @ org.jboss.ejb.client.ejbobjectinterceptor.handleinvocation(ejbobjectinterceptor.java:58) 15:09:40,935 error [stderr] (default task-8) @ org.jboss.ejb.client.ejbclientinvocationcontext.sendrequest(ejbclientinvocationcontext.java:186) 15:09:40,935 error [stderr] (default task-8) @ org.jboss.ejb.client.ejbhomeinterceptor.handleinvocation(ejbhomeinterceptor.java:83) 15:09:40,935 error [stderr] (default task-8) @ org.jboss.ejb.client.ejbclientinvocationcontext.sendrequest(ejbclientinvocationcontext.java:186) 15:09:40,935 error [stderr] (default task-8) @ org.jboss.ejb.client.transactioninterceptor.handleinvocation(transactioninterceptor.java:42) 15:09:40,936 error [stderr] (default task-8) @ org.jboss.ejb.client.ejbclientinvocationcontext.sendrequest(ejbclientinvocationcontext.java:186) 15:09:40,936 error [stderr] (default task-8) @ org.jboss.ejb.client.receiverinterceptor.handleinvocation(receiverinterceptor.java:138) 15:09:40,936 error [stderr] (default task-8) @ org.jboss.ejb.client.ejbclientinvocationcontext.sendrequest(ejbclientinvocationcontext.java:186) 15:09:40,936 error [stderr] (default task-8) @ org.jboss.ejb.client.ejbinvocationhandler.sendrequestwithpossibleretries(ejbinvocationhandler.java:255) 15:09:40,936 error [stderr] (default task-8) @ org.jboss.ejb.client.ejbinvocationhandler.doinvoke(ejbinvocationhandler.java:200) 15:09:40,936 error [stderr] (default task-8) @ org.jboss.ejb.client.ejbinvocationhandler.doinvoke(ejbinvocationhandler.java:183) 15:09:40,936 error [stderr] (default task-8) @ org.jboss.ejb.client.ejbinvocationhandler.invoke(ejbinvocationhandler.java:146) 15:09:40,936 error [stderr] (default task-8) @ com.sun.proxy.$proxy70.getconnection(unknown source) 15:09:40,936 error [stderr] (default task-8) @ tod.ss.tasm.aehcs.struts2.myaction.retrieveoracleconnection(testaction.java:428) 15:09:40,937 error [stderr] (default task-8) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) 15:09:40,937 error [stderr] (default task-8) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62) 15:09:40,937 error [stderr] (default task-8) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) 15:09:40,937 error [stderr] (default task-8) @ java.lang.reflect.method.invoke(method.java:497) 15:09:40,937 error [stderr] (default task-8) @ com.opensymphony.xwork2.defaultactioninvocation.invokeaction(defaultactioninvocation.java:452) 15:09:40,947 error [stderr] (default task-8) caused by: java.io.notserializableexception: oracle.jdbc.driver.t4cconnection 15:09:40,948 error [stderr] (default task-8) @ org.jboss.marshalling.cloner.serializingcloner.clone(serializingcloner.java:253) 15:09:40,948 error [stderr] (default task-8) @ org.jboss.marshalling.cloner.serializingcloner.clone(serializingcloner.java:128) 15:09:40,948 error [stderr] (default task-8) @ org.jboss.as.ejb3.remote.localejbreceiver.clone(localejbreceiver.java:335) 15:09:40,948 error [stderr] (default task-8) ... 116 more
why error occurs while returning java.sql.connection
object ejb3 session bean struts 2.1 action class on remote calls? , solution solve this?
Comments
Post a Comment