Archived

This forum has been archived. Please start a new discussion on GitHub.

NoObjectFactory Exception

hi
i am trying to pass an object from client to server dono why getting NoobjectfactoryException

client code is as follows :
MySupplierServicesPrx prx=MySupplierServicesPrxHelper.checkedCast(base);
SupplierRequest req=new SupplierRequest();
req.action="search";
SupplierData s=new SupplierData();
s.id="HTC";
req.supObj=s;


prx.performAction(req);

Error Got is
Exception in thread "main" Ice.UnknownLocalException
unknown = "Ice.NoObjectFactoryException
reason = (null)
type = "::supplier::base::SupplierRequest"
at IceInternal.BasicStream.patchReferences(BasicStream.java:1622)
at IceInternal.BasicStream.readObject(BasicStream.java:1373)
at IceInternal.BasicStream.readPendingObjects(BasicStream.java:1501)
at com.myworks.supplier.service._MySupplierServicesDisp.___performAction(_MySupplierServicesDisp.java:85)
at com.myworks.supplier.service._MySupplierServicesDisp.__dispatch(_MySupplierServicesDisp.java:130)
at IceInternal.Incoming.invoke(Incoming.java:144)
at Ice.ConnectionI.invokeAll(ConnectionI.java:1940)
at Ice.ConnectionI.message(ConnectionI.java:1139)
at IceInternal.ThreadPool.run(ThreadPool.java:703)
at IceInternal.ThreadPool.access$100(ThreadPool.java:12)
at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:1140)
Caused by: java.lang.ClassCastException: Ice.ObjectImpl
at com.myworks.supplier.base.SupplierRequestHolder$Patcher.patch(SupplierRequestHolder.java:32)
at IceInternal.BasicStream.patchReferences(BasicStream.java:1618)
... 10 more
"
at IceInternal.Outgoing.invoke(Outgoing.java:147)
at com.myworks.supplier.service._MySupplierServicesDelM.performAction(_MySupplierServicesDelM.java:33)
at com.myworks.supplier.service.MySupplierServicesPrxHelper.performAction(MySupplierServicesPrxHelper.java:33)
at com.myworks.supplier.service.MySupplierServicesPrxHelper.performAction(MySupplierServicesPrxHelper.java:19)
at org.bootstrap.TestService.main(TestService.java:27)


Regards
vinu
HTC
Learning ICE as i find it intresting

Comments