hkishoreb
asked on
java.io.NotSerializableException in new servers
Recently we moved our code to new Weblogic servers. Now in the new servers we are getting java.io.NotSerializableExc eption wich is not there in the old servers. Nothing has changed . The same code we moved to new servers. Need to solve this as early as possible. Please let me know a solution. Thank you.
ASKER
This is causing the Payment failure (Not able to accept payments). This is a serious issue.Here is what log says.
CCPayment.authorize() : returning failed authorization :
java.rmi.MarshalException: failed to marshal performCommunication(Lcom. alltel.hyp ersuite.pa y.objects. CommPaymen t;); nested exc
eption is:
java.io.NotSerializableExc eption: com.alltel.hypersuite.pay. objects.Co mmPayment
java.io.NotSerializableExc eption: com.alltel.hypersuite.pay. objects.Co mmPayment
at java.io.ObjectOutputStream .outputObj ect(Object OutputStre am.java:11 43)
at java.io.ObjectOutputStream .writeObje ct(ObjectO utputStrea m.java:361 )
at weblogic.common.internal.C hunkedObje ctOutputSt ream.write Object(Chu nkedObject OutputStre am.java:11 7)
at weblogic.rjvm.MsgAbbrevOut putStream. writeObjec t(MsgAbbre vOutputStr eam.java:8 2)
at weblogic.rmi.internal.Obje ctIO.write Object(Obj ectIO.java :36)
at weblogic.rmi.internal.Basi cOutboundR equest.mar shalArgs(B asicOutbou ndRequest. java:81)
at weblogic.rmi.cluster.Repli caAwareRem oteRef.inv oke(Replic aAwareRemo teRef.java :257)
at weblogic.rmi.cluster.Repli caAwareRem oteRef.inv oke(Replic aAwareRemo teRef.java :230)
at com.alltel.hypersuite.pay. ejbs.payco mmunicatio n.Paymente chCommunic ationBean_ 1u1zr6_EOI mpl_WLStub .performCo mmunicati
on(Unknown Source)
at com.alltel.hypersuite.pay. objects.CC Payment.au thorize(CC Payment.ja va:324)
at com.alltel.hypersuite.pay. objects.CC Payment.au thorize(CC Payment.ja va:264)
at com.alltel.hypersuite.pay. objects.Pa ymentTran. create(Pay mentTran.j ava:162)
at com.alltel.hypersuite.pay. objects.Pa yment.crea te(Payment .java:1766 )
at com.alltel.hypersuite.pay. ejbs.payau thorizatio n.PaymentA uthorizati onBean.per formPayAut horization (PaymentAu thorizati
onBean.java:161)
at com.alltel.hypersuite.pay. ejbs.payau thorizatio n.PaymentA uthorizati onBean_gdc 7kz_EOImpl .performPa yAuthoriza tion(Paym
entAuthorizationBean_gdc7k z_EOImpl.j ava:46)
at com.alltel.hypersuite.pay. ejbs.payau thorizatio n.PaymentA uthorizati onBean_gdc 7kz_EOImpl _WLSkel.in voke(Unkno wn Source
)
at weblogic.rmi.internal.Basi cServerRef .invoke(Ba sicServerR ef.java:45 5)
at weblogic.rmi.cluster.Repli caAwareSer verRef.inv oke(Replic aAwareServ erRef.java :114)
at weblogic.rmi.internal.Basi cServerRef $1.run(Bas icServerRe f.java:396 )
at weblogic.security.service. SecuritySe rviceManag er.runAs(S ecuritySer viceManage r.java:726 )
at weblogic.rmi.internal.Basi cServerRef .handleReq uest(Basic ServerRef. java:391)
at weblogic.rmi.internal.Basi cExecuteRe quest.exec ute(BasicE xecuteRequ est.java:3 0)
at weblogic.kernel.ExecuteThr ead.execut e(ExecuteT hread.java :251)
at weblogic.kernel.ExecuteThr ead.run(Ex ecuteThrea d.java:219 )
**** EXCEPTION HANDLER: END EXCEPTION DESCRIPTION ***
>
<Mar 21, 2006 1:55:07 PM CST> <Info> <HYPERSUITE> <000000> <ERROR: User: JKL0706 Account: RAW6Q7B Sev: 2 Code: 1434 Desc: Prob
lem while processing the debit card payment>
Thank you.
CCPayment.authorize() : returning failed authorization :
java.rmi.MarshalException:
eption is:
java.io.NotSerializableExc
java.io.NotSerializableExc
at java.io.ObjectOutputStream
at java.io.ObjectOutputStream
at weblogic.common.internal.C
at weblogic.rjvm.MsgAbbrevOut
at weblogic.rmi.internal.Obje
at weblogic.rmi.internal.Basi
at weblogic.rmi.cluster.Repli
at weblogic.rmi.cluster.Repli
at com.alltel.hypersuite.pay.
on(Unknown Source)
at com.alltel.hypersuite.pay.
at com.alltel.hypersuite.pay.
at com.alltel.hypersuite.pay.
at com.alltel.hypersuite.pay.
at com.alltel.hypersuite.pay.
onBean.java:161)
at com.alltel.hypersuite.pay.
entAuthorizationBean_gdc7k
at com.alltel.hypersuite.pay.
)
at weblogic.rmi.internal.Basi
at weblogic.rmi.cluster.Repli
at weblogic.rmi.internal.Basi
at weblogic.security.service.
at weblogic.rmi.internal.Basi
at weblogic.rmi.internal.Basi
at weblogic.kernel.ExecuteThr
at weblogic.kernel.ExecuteThr
**** EXCEPTION HANDLER: END EXCEPTION DESCRIPTION ***
>
<Mar 21, 2006 1:55:07 PM CST> <Info> <HYPERSUITE> <000000> <ERROR: User: JKL0706 Account: RAW6Q7B Sev: 2 Code: 1434 Desc: Prob
lem while processing the debit card payment>
Thank you.
> com.alltel.hypersuite.pay. objects.Co mmPayment
This class is not Serializable and needs to be.
Reason being that it is being passed in an RMI call
This class is not Serializable and needs to be.
Reason being that it is being passed in an RMI call
Make com.alltel.hypersuite.pay. objects.Co mmPayment implement Serializable
ASKER
But why did it work on the old servers with out any problem ? This is the exception i am getting in only one server out of six. Please let me know your ideas.
Thank you
Thank you
It may not have been using RMI, and instead making the call directly.
Perhaps check the release notes.
Perhaps check the release notes.
ASKER
ITs using everything same. We installed the same old application to the new servers. Nothing has changed.
something has changed, ie. the server.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Is this something related to session persistance ?
no
ASKER
We solved it. Thank you
It is a configuration issue
It is a configuration issue
can you post more details of the error.