Results 1 to 4 of 4

Thread: NoObjectFactory Exception

  1. #1
    yesiamvinu is offline Registered User
    Join Date
    Oct 2005
    Location
    Troy
    Posts
    6

    Red face 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(BasicStrea m.java:1622)
    at IceInternal.BasicStream.readObject(BasicStream.jav a:1373)
    at IceInternal.BasicStream.readPendingObjects(BasicSt ream.java:1501)
    at com.myworks.supplier.service._MySupplierServicesDi sp.___performAction(_MySupplierServicesDisp.java:8 5)
    at com.myworks.supplier.service._MySupplierServicesDi sp.__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(Thre adPool.java:1140)
    Caused by: java.lang.ClassCastException: Ice.ObjectImpl
    at com.myworks.supplier.base.SupplierRequestHolder$Pa tcher.patch(SupplierRequestHolder.java:32)
    at IceInternal.BasicStream.patchReferences(BasicStrea m.java:1618)
    ... 10 more
    "
    at IceInternal.Outgoing.invoke(Outgoing.java:147)
    at com.myworks.supplier.service._MySupplierServicesDe lM.performAction(_MySupplierServicesDelM.java:33)
    at com.myworks.supplier.service.MySupplierServicesPrx Helper.performAction(MySupplierServicesPrxHelper.j ava:33)
    at com.myworks.supplier.service.MySupplierServicesPrx Helper.performAction(MySupplierServicesPrxHelper.j ava:19)
    at org.bootstrap.TestService.main(TestService.java:27 )

    ---------------------------------------------------------------------------

    Regards
    vinu
    HTC
    Learning ICE as i find it intresting
    With Smiles
    vinu
    HTC Global Service.inc

  2. #2
    mes's Avatar
    mes
    mes is offline ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,441
    Did you define Ice.Default.Package in the receiver?

    - Mark

  3. #3
    yesiamvinu is offline Registered User
    Join Date
    Oct 2005
    Location
    Troy
    Posts
    6
    yes i have done that
    With Smiles
    vinu
    HTC Global Service.inc

  4. #4
    yesiamvinu is offline Registered User
    Join Date
    Oct 2005
    Location
    Troy
    Posts
    6

    fixed

    error fixed . i had made a small mistake in Ice.Default.Package configration

    Thanks for helping me in fixing that bug
    With Smiles
    vinu
    HTC Global Service.inc

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. user exception causes unmarshalling exception
    By Stuart Brodsky in forum Help Center
    Replies: 9
    Last Post: 04-29-2009, 02:21 PM
  2. Replies: 2
    Last Post: 12-13-2006, 10:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •