• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 275
  • Last Modified:

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.NotSerializableException 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.
0
hkishoreb
Asked:
hkishoreb
  • 7
  • 5
1 Solution
 
objectsCommented:
you can probably ignore it, it may just be trying to serialize sessions.

can you post more details of the error.
0
 
hkishorebAuthor Commented:
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.hypersuite.pay.objects.CommPayment;); nested exc
eption is:
        java.io.NotSerializableException: com.alltel.hypersuite.pay.objects.CommPayment
java.io.NotSerializableException: com.alltel.hypersuite.pay.objects.CommPayment
        at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1143)
        at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:361)
        at weblogic.common.internal.ChunkedObjectOutputStream.writeObject(ChunkedObjectOutputStream.java:117)
        at weblogic.rjvm.MsgAbbrevOutputStream.writeObject(MsgAbbrevOutputStream.java:82)
        at weblogic.rmi.internal.ObjectIO.writeObject(ObjectIO.java:36)
        at weblogic.rmi.internal.BasicOutboundRequest.marshalArgs(BasicOutboundRequest.java:81)
        at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:257)
        at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:230)
        at com.alltel.hypersuite.pay.ejbs.paycommunication.PaymentechCommunicationBean_1u1zr6_EOImpl_WLStub.performCommunicati
on(Unknown Source)
        at com.alltel.hypersuite.pay.objects.CCPayment.authorize(CCPayment.java:324)
        at com.alltel.hypersuite.pay.objects.CCPayment.authorize(CCPayment.java:264)
        at com.alltel.hypersuite.pay.objects.PaymentTran.create(PaymentTran.java:162)
        at com.alltel.hypersuite.pay.objects.Payment.create(Payment.java:1766)
        at com.alltel.hypersuite.pay.ejbs.payauthorization.PaymentAuthorizationBean.performPayAuthorization(PaymentAuthorizati
onBean.java:161)
        at com.alltel.hypersuite.pay.ejbs.payauthorization.PaymentAuthorizationBean_gdc7kz_EOImpl.performPayAuthorization(Paym
entAuthorizationBean_gdc7kz_EOImpl.java:46)
        at com.alltel.hypersuite.pay.ejbs.payauthorization.PaymentAuthorizationBean_gdc7kz_EOImpl_WLSkel.invoke(Unknown Source
)
        at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:455)
        at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:114)
        at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:396)
        at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:726)
        at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:391)
        at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
        at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:251)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.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.
0
 
objectsCommented:
> com.alltel.hypersuite.pay.objects.CommPayment

This class is not Serializable and needs to be.
Reason being that it is being passed in an RMI call
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

 
objectsCommented:
Make com.alltel.hypersuite.pay.objects.CommPayment implement Serializable
0
 
hkishorebAuthor Commented:
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
0
 
objectsCommented:
It may not have been using RMI, and instead making the call directly.
Perhaps check the release notes.
0
 
hkishorebAuthor Commented:
ITs using everything same. We installed the same old application to the new servers. Nothing has changed.
0
 
objectsCommented:
something has changed, ie. the server.
0
 
objectsCommented:
its the server making the call, not your application.
Have a look at the stack trace for more detail.
0
 
hkishorebAuthor Commented:
Is this something related to session persistance ?
0
 
objectsCommented:
no
0
 
hkishorebAuthor Commented:
We solved it. Thank you
It is a configuration issue
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 7
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now