Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with IDL inheritance!

Status
Not open for further replies.

Ruvera

Programmer
May 8, 2002
12
RU
I have a ploblem 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?

 
This iis not an inheritance problem. Try to analyze more attentive the code. It means what you pass a parammeter with no sence while calling an interface method. Ion Filipski
1c.bmp


filipski@excite.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top