I am writing both, Java and .NET clients against the same Slice definitions of classes without methods (only data members). All works fine with .NET, but in Java I get Ice.NoObjectFactoryException errors, and I only get my client working once I add the appropriate factories. This is with ICE 3.2.1.
This seems to contradict the docs, with state (for both, java and C#) that one does not need to register an object factory for classes that only have data members.
One example of the Slice definitions I am using is:
Calling GetCountries() throws an Ice.NoObjectFactoryException. Is this my error, a problem with the docs, or a bug in ICE for Java?Code:["clr:property"] class State { string Key; string CountryKey; string Id; string Name; }; sequence<State> StateSeq; ["clr:property"] class Country { string Key; string Id; string Name; StateSeq States; }; sequence<Country> CountrySeq; ["ami", "amd"] interface CommonServices { ... idempotent OpStatus GetCountries(out CountrySeq countries) throws ServiceError; ... };
Regards,
Karl

Reply With Quote
