datacons
asked on
java.io.NotSerializableException WAS 6.0
Hi all
i am creating EAR Comp. from WASD 5.1.1 and deploying in WAS 6.0.
here one of my Stateless Session Bean calling another Stateless Session Bean. while calling , i am getting this exception.
java.rmi.MarshalException: Exception occurred in server thread; nested exception is:
java.io.NotSerializableExc eption
at com.ibm.rmi.util.ProxyUtil .copyObjec ts(ProxyUt il.java:28 9)
at com.ibm.CORBA.iiop.UtilDel egateImpl. copyObject s(UtilDele gateImpl.j ava:764)
at javax.rmi.CORBA.Util.copyO bjects(Uti l.java:315 )
at com.dcons.iss.ejb._ISS_Stu b.handleRe quest(_ISS _Stub.java :325)
at com.dcons.iss.ejb.CountryB ean.postRe quest(Coun tryBean.ja va:142)
at com.dcons.iss.ejb.EJSRemot eStateless CountryBea n_92aaebd3 .postReque st(EJSRemo teStateles sCountryBe an_92aaebd 3.java:35)
at com.dcons.iss.ejb._Country Remote_Stu b.postRequ est(_Count ryRemote_S tub.java:2 57)
at com.dcons.iss.ejb.BeanHand lerFacadeB ean.delega teRequest( BeanHandle rFacadeBea n.java:74)
at com.dcons.iss.ejb.EJSRemot eStateless BeanHandle rFacade_7b 05eacf.del egateReque st(EJSRemo teStateles sBeanHandl erFacade_7 b05eacf.ja va:35)
at com.dcons.iss.ejb._BeanHan dlerFacade Remote_Stu b.delegate Request(_B eanHandler FacadeRemo te_Stub.ja va:263)
at com.dcons.iss.BeanHandler. doPost(Bea nHandler.j ava:97)
at javax.servlet.http.HttpSer vlet.servi ce(HttpSer vlet.java: 763)
at javax.servlet.http.HttpSer vlet.servi ce(HttpSer vlet.java: 856)
at com.ibm.ws.webcontainer.se rvlet.Serv letWrapper .service(S ervletWrap per.java:1 282)
at com.ibm.ws.webcontainer.se rvlet.Serv letWrapper .handleReq uest(Servl etWrapper. java:673)
at com.ibm.ws.webcontainer.we bapp.WebAp pRequestDi spatcher.f orward(Web AppRequest Dispatcher .java:265)
at com.dcons.iss.Controller.d oPost(Cont roller.jav a:109)
at javax.servlet.http.HttpSer vlet.servi ce(HttpSer vlet.java: 763)
at javax.servlet.http.HttpSer vlet.servi ce(HttpSer vlet.java: 856)
at com.ibm.ws.webcontainer.se rvlet.Serv letWrapper .service(S ervletWrap per.java:1 282)
at com.ibm.ws.webcontainer.se rvlet.Serv letWrapper .handleReq uest(Servl etWrapper. java:673)
at com.ibm.ws.webcontainer.se rvlet.Cach eServletWr apper.hand leRequest( CacheServl etWrapper. java:80)
at com.ibm.ws.webcontainer.We bContainer .handleReq uest(WebCo ntainer.ja va:1802)
at com.ibm.ws.webcontainer.ch annel.WCCh annelLink. ready(WCCh annelLink. java:84)
at com.ibm.ws.http.channel.in bound.impl .HttpInbou ndLink.han dleDiscrim ination(Ht tpInboundL ink.java:4 69)
at com.ibm.ws.http.channel.in bound.impl .HttpInbou ndLink.han dleNewInfo rmation(Ht tpInboundL ink.java:4 08)
at com.ibm.ws.http.channel.in bound.impl .HttpInbou ndLink.rea dy(HttpInb oundLink.j ava:286)
at com.ibm.ws.tcp.channel.imp l.NewConne ctionIniti alReadCall back.sendT oDiscrimin aters(NewC onnectionI nitialRead Callback.j ava:201)
at com.ibm.ws.tcp.channel.imp l.NewConne ctionIniti alReadCall back.compl ete(NewCon nectionIni tialReadCa llback.jav a:103)
at com.ibm.ws.tcp.channel.imp l.WorkQueu eManager.r equestComp lete(WorkQ ueueManage r.java:566 )
at com.ibm.ws.tcp.channel.imp l.WorkQueu eManager.a ttemptIO(W orkQueueMa nager.java (Compiled Code))
at com.ibm.ws.tcp.channel.imp l.WorkQueu eManager.w orkerRun(W orkQueueMa nager.java :952)
at com.ibm.ws.tcp.channel.imp l.WorkQueu eManager$W orker.run( WorkQueueM anager.jav a:1039)
at com.ibm.ws.util.ThreadPool $Worker.ru n(ThreadPo ol.java(Co mpiled Code))
Caused by: java.io.NotSerializableExc eption
i am creating EAR Comp. from WASD 5.1.1 and deploying in WAS 6.0.
here one of my Stateless Session Bean calling another Stateless Session Bean. while calling , i am getting this exception.
java.rmi.MarshalException:
java.io.NotSerializableExc
at com.ibm.rmi.util.ProxyUtil
at com.ibm.CORBA.iiop.UtilDel
at javax.rmi.CORBA.Util.copyO
at com.dcons.iss.ejb._ISS_Stu
at com.dcons.iss.ejb.CountryB
at com.dcons.iss.ejb.EJSRemot
at com.dcons.iss.ejb._Country
at com.dcons.iss.ejb.BeanHand
at com.dcons.iss.ejb.EJSRemot
at com.dcons.iss.ejb._BeanHan
at com.dcons.iss.BeanHandler.
at javax.servlet.http.HttpSer
at javax.servlet.http.HttpSer
at com.ibm.ws.webcontainer.se
at com.ibm.ws.webcontainer.se
at com.ibm.ws.webcontainer.we
at com.dcons.iss.Controller.d
at javax.servlet.http.HttpSer
at javax.servlet.http.HttpSer
at com.ibm.ws.webcontainer.se
at com.ibm.ws.webcontainer.se
at com.ibm.ws.webcontainer.se
at com.ibm.ws.webcontainer.We
at com.ibm.ws.webcontainer.ch
at com.ibm.ws.http.channel.in
at com.ibm.ws.http.channel.in
at com.ibm.ws.http.channel.in
at com.ibm.ws.tcp.channel.imp
at com.ibm.ws.tcp.channel.imp
at com.ibm.ws.tcp.channel.imp
at com.ibm.ws.tcp.channel.imp
at com.ibm.ws.tcp.channel.imp
at com.ibm.ws.tcp.channel.imp
at com.ibm.ws.util.ThreadPool
Caused by: java.io.NotSerializableExc
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanx for reply. instead of using Serializable , we can define in Deployment Descriptor files. for Example in Weblogic-ejb-jar.xml , we can define like <call-by-reference>true </call-by-reference>. so all Ejbs are becoming serializable.
my question is how do we define in Websphere 6.0 server./ WASD 5.1.1 Deployment Descriptor Files.