Parameters are being NULLed when they are passes to server side
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   mitesh_vora
Posted On:   Tuesday, June 28, 2005 02:57 AM

HI, I have very strange Q.N Need someones help soon. Before calling remote's method, i m getting exact values which i wanna send to server side.but on server side exaclty after calling the same method,i m not getting sent values but null. Heres more detail. System.out.println("Mit-->(KeyValue)changes.at(i)=" + (KeyValue)changes.at(i)); System.out.println("getOperatingContext().toOperatingContextStruct()=" + getOperatingContext().toOperatingContextStruct()); _tbloftblFactory.updateTblOfTbl(getTableId(),(KeyValue)changes.at(i),getOperatingContext().toOperatingContextStruct()); This is my client code.Here i m getting wanted values.this updateTblofTbl method is on remote    More>>

HI,
I have very strange Q.N Need someones help soon.
Before calling remote's method, i m getting exact values which i wanna send to server side.but on server side exaclty after calling the same method,i m not getting sent values but null.
Heres more detail.
System.out.println("Mit-->(KeyValue)changes.at(i)=" + (KeyValue)changes.at(i));
System.out.println("getOperatingContext().toOperatingContextStruct()=" + getOperatingContext().toOperatingContextStruct());
_tbloftblFactory.updateTblOfTbl(getTableId(),(KeyValue)changes.at(i),getOperatingContext().toOperatingContextStruct());


This is my client code.Here i m getting wanted values.this updateTblofTbl method is on remote side n the parameters are passing properly but on server side...

public void updateTblOfTbl(String _tblID,KeyValue _keyValueStruc,OperatingContextStruct oc) throws ServerSideException, RemoteException {
methodName = "Update()";
log(SIMPLE_MESSAGE," UPDATE STARTED Mit-->");
log(SIMPLE_MESSAGE," _tblID-->"+_tblID+",isNULL -->"+(_tblID == null));
log(SIMPLE_MESSAGE," _keyValueStruc-->"+_keyValueStruc+",isNULL -->"+(_keyValueStruc == null));
log(SIMPLE_MESSAGE," oc-->"+oc+",isNULL -->"+(oc == null));



This parameters prints NULL>

So what can be the problem????In network d parameters gets NULLed.So any way to check it in network.or to debug it?

Need Reply Soon if possible.

Thanks.
MItesh

   <<Less

Re: Parameters are being NULLed when they are passes to server side

Posted By:   ankush_purwar  
Posted On:   Tuesday, June 28, 2005 03:45 AM

Make sure the parameters that you are passing are neither static nor transient.

And the objects of the class that you are sending over the network must implement java.io.Serializable interface
About | Sitemap | Contact