Posted By:
Tanya_Ruvera
Posted On:
Wednesday, November 27, 2002 02:25 AM
I have a problem with IDL inheritance. module MainObjects { interface MainObject { attribute wstring src_id; }; interface ITele : MainObject { attribute wstring tele_type; attribute wstring tele; }; }; Java code is: class MainObject exyendes MainObjectPOA { .... } class Tele extends MainObject implements ITeleOperations { ..... } When writing in server: TeleVector.addElement(ITeleHelper.narrow(_poa().servant_to_reference(tele))); Corba server comes back with the following message: org.omg.CORBA.BAD_PARAM: Narrow failed minor code: 0 c
More>>
I have a problem with IDL inheritance.
module MainObjects
{
interface MainObject
{
attribute wstring src_id;
};
interface ITele : MainObject
{
attribute wstring tele_type;
attribute wstring tele;
};
};
Java code is:
class MainObject exyendes MainObjectPOA
{
....
}
class Tele extends MainObject implements ITeleOperations
{
.....
}
When writing in server:
TeleVector.addElement(ITeleHelper.narrow(_poa().servant_to_reference(tele)));
Corba server comes back with the following message:
org.omg.CORBA.BAD_PARAM: Narrow failed minor code: 0 completed: No
How can I resolve this problem?
<<Less