View Single Post
  #1 (permalink)  
Old 09-01-2003
Mr.Freeze Mr.Freeze is offline
Registered User
 
 
Join Date: Aug 2003
Location: Germany
Posts: 23
Ice::NoObjectFactoryException

Hello,

I my slice definition I've created a sequence, that contains Test objects. In this class there is a function, which returns the 'TestSequence':

class Test;
sequence<Test> TestSequence;
class Test
{
TestSequence op();
};

The client invokes the function as follows:

TestSequence test = new TestSequence;
test = testProxy->op();


The server executes the function call:

TestSequence TestI:p()
{
TestSequence testSeq = new TestSequence;
...
TestPtr obj = new TestI();
testSeq.push_back(obj);
...
return testSeq;
}

If I run my application I get the following error message:

Test.cxx: Ice::NoObjectFactoryException:
protocol error: no suitable object factory found for '::Test'


I don't know where the problem lies. Can you help me out?

Thanks
Reply With Quote