[omniORB] Problem with IDL to C++

Frederic Prin frederic.prin at silvaco.com
Thu Mar 3 11:16:45 GMT 2005


I am not sure but I don't think that 'abstract' is an IDL keyword:

abstract interface Handle;

(since an interface is already a kind of abstract class)

Fred


-----Original Message-----
From: omniorb-list-bounces at omniorb-support.com
[mailto:omniorb-list-bounces at omniorb-support.com] On Behalf Of Swapnil
Wale
Sent: jeudi 3 mars 2005 9:16
To: Luke Deller
Cc: omniorb-list at omniorb-support.com
Subject: RE: [omniORB] Problem with IDL to C++

Hi Luke,
        You are right. I tried to compile the same file with omni 4.0.5
and
I got the following message-

-----------------------Message------------------------------------------
----
--

C:\Medipal\self\IDL>omniidl -bcxx EJBObject.idl
EJBObject.idl:61: Warning: Identifier 'primaryKey' clashes with CORBA 3
keyword
'primarykey'
omniidl: 1 warning.
omniidl: Fatal error in C++ backend
omniidl:
omniidl: Unsupported IDL construct found in input (abstract interfaces)
omniidl:
omniidl: omniORB does not currently support:
omniidl:   IDL type valuetype, abstract interfaces

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


So Luke does this mean that I cannot use omni 4.0.5 or any other omni
version to make RMI-IIOP work?I am posting the EJBObject.idl below.


----------------------EJBObject.idl-------------------------------------
----
---

/**
 * javax/ejb/EJBObject.idl
 * Generated by rmic -idl. Do not edit
 * Wednesday, March 2, 2005 1:05:48 PM IST
 */


#ifndef __javax_ejb_Handle__

module javax {
module ejb {

    abstract interface Handle;

};
};

#endif


#ifndef __javax_ejb_EJBObject__

module javax {
module ejb {

    interface EJBObject;

};
};

#endif


#ifndef __javax_ejb_EJBHome__

module javax {
module ejb {

    interface EJBHome;

};

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

Thank you
-Swapnil-















-----Original Message-----
From: Luke Deller [mailto:ldeller at xplantechnology.com]
Sent: Thursday, March 03, 2005 6:08 AM
To: Swapnil Wale
Cc: omniorb-list at omniorb-support.com
Subject: Re: [omniORB] Problem with IDL to C++


Hi Swapnil,

It looks like you're using an old version of omniORB (3.0.x).  Have you
tried using version 4.0.x?  If that doesn't work, can you post your idl
file "EJBObject.idl" to this list?

It looks like the idl file you are trying to compile contains a CORBA
"value" type (or else omniidl is really confused!).  Is this true? The
current stable releases of omniORB do not support such types, though I
believe a development version including such support is available in
CVS.

Regards,
Luke.

On Thu, 2005-03-03 at 01:10 +0530, Swapnil Wale wrote:
> Hi,
>     I am new to CORBA. I am trying to use RMI-IIOP. I have generated
the
IDL
> files for the remote interfaces using rmic. But when I use omniidl I
get
> some strange error. Here is the error message -
>
> ---------------------------------------------------
>
> C:\Med\self\IDL>omniidl -bcxx EJBObject.idl
> Assertion failed: 0, file idlpython.cc, line 1139
>
> This application has requested the Runtime to terminate it in an
unusual
> way.
> Please contact the application's support team for more information.
>
> --------------------------------------------------
>
> I am confused what to do? Can anybody please help me out of this.
>
> Thank you
> -Swapnil-
>
>
> _______________________________________________
> omniORB-list mailing list
> omniORB-list at omniorb-support.com
> http://www.omniorb-support.com/mailman/listinfo/omniorb-list




_______________________________________________
omniORB-list mailing list
omniORB-list at omniorb-support.com
http://www.omniorb-support.com/mailman/listinfo/omniorb-list




More information about the omniORB-list mailing list