IDL / CORBA

hi all, first, i apologize if this topic is in the wrong forum, didn't find a better place though. i don't have any problem with the classpath.. :)
Problem description:
- i use jdk 1.5.0
- i'm running the orbd before i try to run the example :)
- i have no classpath problems
- trying to set up and run the IDL HelloWorld example, both server and client on the same machine.
- when running the server, i get the following problem/error after some waiting time on this instruction (all instructions before this one actually make no problems):
NamingContextExt ncRef = NamingContextExtHelper.narrow(objRef);
06.07.2005 10:31:45 com.sun.corba.se.impl.transport.SocketOrChannelConnectionImp
l <init>
WARNUNG: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR
_TEXT; hostname: 192.168.1.104; port: 1049"
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(Unknown Source)
at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(Unknown Source)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(Unknown Source)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(Unknown Source)
at com.sun.corba.se.impl.transport.SocketOrChannelContactInfoImpl.createConnection(Unknown Source)
at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(Unknown Source)
at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.request(Unknown Source)
at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.is_a(Unknown Source)
at org.omg.CORBA.portable.ObjectImpl._is_a(Unknown Source)
at org.omg.CosNaming.NamingContextExtHelper.narrow(Unknown Source)
at HelloServer.main(HelloServer.java:65)
Caused by: java.net.ConnectException: Connection timed out: connect
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(Unknown Source)
at java.nio.channels.SocketChannel.open(Unknown Source)
at com.sun.corba.se.impl.transport.DefaultSocketFactoryImpl.createSocket
(Unknown Source)
... 9 more
i followed all instructions in the example and cannot figure out what's wrong, also, i'm running the orbd..
i am really really happy if someone with more knowledge and experience could solve my problem!
thanks alot in advance!
greetings.

Check whether any other application is using port 1049. Or try changing the port of orbd.
You should also take care to pass the port num as argument to the server.

Similar Messages

  • Communication between Java and C++, IDL/CORBA

    I have not been working with CORBA before.... but as far as I know the server and client has to be prepared for CORBA during the developpenent. Am I wrong? Or is this only the case for IDL?
    Is it possible to add CORBA/IDL to an already developped c++ server without modifying it?

    You are correct.
    CORBA is the architecture for one program to call another. Some changes will be needed to an existing program. The change might be small, but you will need access to the source.

  • C client calls EJB weblogic 6.1 - Do I need to purchase ORB

    My client is in C.
    The clint calls beans in weblogic 6.1 through IDL corba.
    Does weblogic 6.1 gives all the tools / software needed while developing ?
    while running ?
    Do I need to buy except of the weblogic also an ORB ?
    Thanks,
    Dalia

    Hi,
    You dont need to buy anothere orb untill it meets your requirements. Most of the app server supports rmi-iiop sementics. You should check this with Weblogic instead for more accurate info.
    Cheers
    Ashwani Kalra
    http://www.geocities.com/ashwani_kalra/
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  • Memory leakage with oracle oci driver

    I have developed a Solaris8 client/server application using the JAVA IDL CORBA implementation. The client sends requests to the server to update the database (database is Oracle 8.1.7 and I connect to it using oci oracle drivers). Requests are sent one at a time. No concurrent connections. I have a static connection that I establish with database once I start the server. If that connection is lost for any reason (timeout or database faliure) the application tries automatically to reconnect to database. I have noticed that if the new connection to database fails and an sql exception is thrown, memory used by the application process increases. This memory is not garbage collected so application hangs. I tried similar behaviour with the oracle thin driver and things went fine. There was no memory leakage.
    I would really appreciate, if you can help me in this since I can't use the thin driver because of failover limitations.

    I have noticed
    that if the new connection to database fails and an
    sql exception is thrown, memory used by the
    application process increases.
    How have you noticed this?I noticed this using the command pmap under solaris it operating system
    every time I test reconnecting to database I go and check the memory used by the application before after attepmting to reconnect:
    /usr/proc/bin/pmap [myapp pid] | tail -1
    If I'm using normal connection then the memory will be increased by 100KB. If I'm using the OraclePooledConnection class then the increase will be something like 500KB. Again this is if still there is a problem connecting to database. If connection to database is okay then no memory increase at all.
    This memory is not
    garbage collected so application hangs.
    Then it isn't a java problem. When java runs out of memory it throws a out of memory exception.Well I'm not saying it is a java problem for sure. I suspect that it might be oracle oci8 driver problem. I would appreciate if anyone can help in specifying teh source of the error.
    I tried
    similar behaviour with the oracle thin driver and
    things went fine. There was no memory leakage.
    I would really appreciate, if you can help me in this
    since I can't use the thin driver because of failover
    limitations.
    I don't understand that last sentence at all.What I mean here is that instead of using the oci8 driver to connect to database I used the thin driver and kept everything else the same. I simulated the faliure to reconnect to database and based on the pmap command observations there was no memory leakage.
    I want to know what is needed to be done in order to get a normal behavior once using the oci8 drivers.

  • Bottleneck Between Oracle and Application Server

    I am connecting Tomcat to Oracle thru thin JDBC driver. The link between tomcat & oracle is now found to be the bottleneck - too many JDBC calls that could be handled by the network. What are the possible solutions I can use now?
    Some suggest to use Oracle Real Application Cluster (RAC) to scale the db tier. I am new to this. Would setting up RAC causes any change to my programs? Is it difficult to setup? Also, are there any other alternatives?

    Web servers just handle static content, like HTML pages.
    App servers have a few flavors.
    A servlet/JSP engine has a Web server built into it, too. It can handle static content, like HTML pages, and also act as a container for servlets and JSPs. You can use JDBC with servlets and JSPs, of course.
    A J2EE app server has a servlet/JSP engine and a Web server built into it. It can handle static content, like HTML pages and act as a container for servlets and JSPs. But it can also act as a container for EJBs - session, entity, and message EJBs. It has other services built in, like Java Messaging Service (queues), Java IDL (Corba), RMI, JNDI (naming services), XML parsers, JDBC (database access), and Java Transaction Service.
    Enterprise Application Integration servers (EAI), like WebMethods, using XML messaging to tie multiple J2EE app servers together.
    It's like those Russian dolls, where smaller ones fit inside larger ones. It's a hierarchy. - MOD

  • Beginner CORBA idl struct said to be abstract class

    How do I instantiate a class declared in my .idl file for use by the methods implementing the interface?
    I want to return an array of Record objects in my CORBA implentation, and my .idl file has:  struct Record
        long recordNumber;
        string firstName;
        string lastName;
        string streetAddress;
        string city;
        string country;
        string phone;
        string eMail;
        string fax;
         typedef sequence <Record> recordSet;
      interface AddRecord
        void setUser(in string user);
        string getUser();
            recordSet getRecords();
    // plus more stuffWhen my implementing class in the server tries to define the getRecords() method like so:  public Record[] getRecords()
        Record r = null;
        Record[] allRecs;
        int index = 0;
        String selectAll = "SELECT * FROM Record ORDER BY Record_number";
        try
          Statement s = connection.createStatement();
          ResultSet recs = s.executeQuery(selectAll);
          while(recs.next())
            index++;
          allRecs = new Record[index];
    //plus more stuffthe compiler complains
    C:\My Documents\Java\CIS 290\hw5\RecordObj.java:178: Record is abstract; cannot be instantiated
    r = new Record();
    I went into the Record.java that the idlj compiler generated, and it is a final, non-abstract class. What incantation do I need here?

    Whoops; solved that one; the real question is this: My .idl file declares some methods that I want to call in my implementation, but the .java class generated by the idlj compiler doesn't show the methods. Here's the full idl:module hw5Corba
    typedef sequence <string> columns;
      struct Record
        long recordNumber;
        string firstName;
        string lastName;
        string streetAddress;
        string city;
        string country;
        string phone;
        string eMail;
        string fax;
       typedef sequence <Record> recordSet;
      interface AddRecord
       void setUser(in string user);
        string getUser();
       recordSet getRecords();
        columns getColumnNames(in string user);
        void newRecord(in Record r);
        void deleteRecord(in long num);
        void updateRecord(in Record r);
        void setRecordNumber(in long num);
        long getRecordNumber();
        void setFirstName(in string first);
        string getFirstName();
        void setLastName(in string last);
        string getLastName();
        void setStreetAddr(in string add);
        string getStreetAddr();
        void setCity(in string city);
        string getCity();
        void setCountry(in string country);
        string getCountry();
        void setEmail(in string email);
        string getEmail();
        void setPhone(in string phone);
        string getPhone();
        void setFax(in string fax);
        string getFax();
    };Here's the method I expect to be able to implement:  public Record[] getRecords()
        Record r = null;
        Record[] allRecs;
        int index = 0;
        String selectAll = "SELECT * FROM Record ORDER BY Record_number";
        try
          Statement s = connection.createStatement();
          ResultSet recs = s.executeQuery(selectAll);
          while(recs.next())
            index++;
          allRecs = new Record[index];
          //cycle through records again, adding each
          //to the array
          index = 0;
          recs = s.executeQuery(selectAll);
          while(recs.next())
            r = new Record();
            r.setRecordNumber(recs.getInt(1));
            r.setFirstName(recs.getString(2));
            r.setLastName(recs.getString(3));
            r.setStreetAddr(recs.getString(4));
            r.setCity(recs.getString(5));
            r.setCountry(recs.getString(6));
            r.setEmail(recs.getString(7));
            r.setPhone(recs.getString(8));
            r.setFax(recs.getString(9));
            allRecs[index] = r;
          catch (SQLException ex)
            exceptionCode(ex);
        return allRecs;
      }The compiler error lists the 9 sub-methods as "can't resolve symbol", because as the Record.java file generated by the idlj shows, the methods aren't there:package hw5Corba;
    * hw5Corba/Record.java
    * Generated by the IDL-to-Java compiler (portable), version "3.0"
    * from Record.idl
    * Tuesday, November 20, 2001 10:08:15 PM CST
    public final class Record implements org.omg.CORBA.portable.IDLEntity
      public int recordNumber = (int)0;
      public String firstName = null;
      public String lastName = null;
      public String streetAddress = null;
      public String city = null;
      public String country = null;
      public String phone = null;
      public String eMail = null;
      public String fax = null;
      public Record ()
      } // ctor
      public Record (int _recordNumber,
    String _firstName, String _lastName,
    String _streetAddress, String _city,
    String _country, String _phone,
    String _eMail, String _fax)
        recordNumber = _recordNumber;
        firstName = _firstName;
        lastName = _lastName;
        streetAddress = _streetAddress;
        city = _city;
        country = _country;
        phone = _phone;
        eMail = _eMail;
        fax = _fax;
      } // ctor
    } // class Record What do I need to do to implement these methods declared in the .idl file?

  • Caused by: weblogic.corba.cos.naming.NamingContextAnyPackage.NotFound: IDL:

    I am recieving the following error , when I try to get home intervface by using JNDI name from sample java program
    Caused by: weblogic.corba.cos.naming.NamingContextAnyPackage.NotFound: IDL:weblogic/corba/cos/naming/NamingContextAny/NotFound:1.0
    If any one let me know solution, I 'll be gr8ful to u.
    Regards,
    Siva

    Siva ramakrishna <> writes:
    It probably means what it says: the name cannot be found. So either
    you are looking up the wrong name or the thing did not get deployed
    correctly.
    andy
    I am recieving the following error , when I try to get home intervface by using JNDI name from sample java program
    Caused by: weblogic.corba.cos.naming.NamingContextAnyPackage.NotFound: IDL:weblogic/corba/cos/naming/NamingContextAny/NotFound:1.0
    If any one let me know solution, I 'll be gr8ful to u.
    Regards,
    Siva

  • CORBA IDL "pragma ID" not solving problem

    Similar to "CORBA Bug?", I get the stacktrace that is listed at the end of this note. I have put "pragma ID..." for typedefs, structs and interfaces in my idl file. I did nothing else to the code. The same errors were generated, so I assume the "pragma ID..." had no effect.
    This program connects to a Cloudscape DB on the server, and works very well with servants that have only "string" types. It produces errors with strings that have user-defined or boolean return types.
    I appreciate any help in this matter.
    Gary Lance
    [email protected]
    Exception in thread "main" org.omg.CORBA.UNKNOWN:
    vmcid: SUN minor code: 202 completed: Maybe at
    sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at
    sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct orAccessorImpl.java:39)
    at
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
    at java.lang.Class.newInstance0(Class.java:296)
    at java.lang.Class.newInstance(Class.java:249)
    at
    com.sun.corba.se.internal.iiop.messages.ReplyMessage_1_2.ge
    tSystemException(ReplyMessage_1_2.java:90)
    at
    com.sun.corba.se.internal.iiop.ClientResponseImpl.getSystemEx
    ception(ClientResponseImpl.java:105)
    at
    com.sun.corba.se.internal.POA.GenericPOAClientSC.invoke
    (GenericPOAClientSC.java:129)
    at org.omg.CORBA.portable.ObjectImpl._invoke
    (ObjectImpl.java:457)
    at TeachApp._TeachingStub.getProfessors
    (_TeachingStub.java:43)
    at TeachEntry.getNames(TeachEntry.java:127)
    at TeachEntry.<init>(TeachEntry.java:85)
    at TeachEntry.main(TeachEntry.java:295)

    I had this problem myself and I finally managed to crack it ...
    Let's take an example IDL for reference
        typedef string<100> Name;
        struct PersonStruct {
            string  age;
            Name    name;
        typedef sequence<PersonStruct> PersonSeq;
        interface PersonHandling {
            long getPersons(in string personId, in Name name, out PersonSeq persons);
        };The method getPerson returns an array of PersonStructs.
    The most likely place where the error 202 is thrown is in the implementation class
         public int getPersons(String personId, String name, PersonSeqHolder persons) {
                PersonStruct a = new PersonStruct();
                a.age = "28";
                a.name = "John Smith";
                persons = new PersonSeqHolder();    //this line is the cause of error 202
                persons.value = new PersonStruct[]{a};                                         
                return 0;          
            }The return PersonSeqHolder object should not be reinitialised. We must use the object given in the input params as is ..
    i.e. persons = new PersonSeqHolder();//should be removed Remove this line and simply set the value
         persons.value = new PersonStruct[]{a};

  • IOP00710309: (INTERNAL) Worker thread Thread[p: default-threadpool; w: Idle,5,ORB ThreadGroup 0] caught throwable com.sun.corba.se.impl.orbutil.threadpool

    Hi ,
    I am seeing this issue while starting my managed server.
    com.sun.corba.se.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread run
    FINE: "IOP00710309: (INTERNAL) Worker thread Thread[p: default-threadpool; w: Idle,5,ORB ThreadGroup 0] caught throwable com.sun.corba.se.impl.orbutil.threadpool.TimeoutException when requesting work from work queue default-workqueue."
    org.omg.CORBA.INTERNAL:   vmcid: SUN  minor code: 309  completed: No
            at com.sun.corba.se.impl.logging.ORBUtilSystemException.workerThreadThrowableFromRequestWork(ORBUtilSystemException.java:6330)
            at com.sun.corba.se.impl.logging.ORBUtilSystemException.workerThreadThrowableFromRequestWork(ORBUtilSystemException.java:6355)
            at com.sun.corba.se.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:494
    I have searched the net for this but didnt find any resolution. Please help.
    Regards,
    Rishi

    This became bug 6560301. And Sun pointed out that it was my bad in not handling spurious wakeups. Java 6 makes spurious wakeups more likely. (My experience is from "never" to "sometimes".)
    More info at:
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6560301

  • Is there some limitation for the numbers of CORBA objects under Java IDL

    Operation System : Windows 98 Second Edition(4.10.2222)
    Java 2 SDK version :
    java version "1.4.1"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-b21)
    Java HotSpot(TM) Client VM (build 1.4.1-b21, mixed mode)
    I have programmed a distributed application with java IDL.
    there are a lot of CORBA objects in my application and all of those objects must registered with the same orb.
    At the beginning,I launched 4 CORBA objects,which is the least number of CORBA objects needed to run my application,and the application runs well.Then I increased the number of CORBA objects gradually.But when the number of CORBA objects has been changed to 6,the application runs instably,that is, the application sometimes runs well,and sometimes it generates an error when I launched my client-side program,the error is as follow:
    org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
    at com.sun.corba.se.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:161)
    at com.sun.corba.se.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:65)
    at com.sun.corba.se.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:67)
    at com.sun.corba.se.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:644)
    at com.sun.corba.se.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:586)
    at com.sun.corba.se.internal.corba.ClientDelegate.is_a(ClientDelegate.java:838)
    at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
    at org.omg.CosNaming.NamingContextExtHelper.narrow(NamingContextExtHelper.java:73)
    at Client.main(Client.java:19)
    the NO.19 line in Client.java is :
    NamingContextExt ncref = NamingContextExtHelper.narrow(comobj);
    The COMM_FAILURE/SUN-201 means CONNECT_FAILURE.
    This will happen if a client gets a reference to an object reference whose server is not yet started,or perhaps not yet initialized.
    But I think I have waited for enough long time before launched Client.java?Can anybody help me?Thanks very much....

    We are trying to connect to corba naming services using Apache/Tomcat5.0 .We are using servlets to call the Corba services.
    We are initializing the ORB as follows:
    Properties p= new Properties();
    p.setProperty("org.omg.CORBA.ORBInitialHost","ramesh");
    p.setProperty("org.omg.CORBA.ORBInitialPort","1234");
    p.setProperty("org.omg.CORBA.ORBClass","com.sun.corba.se.internal.iiop.ORB");
    ORB orb = ORB.init((String[])null,p);
    nmref = NamingContextHelper.narrow(orb.resolve_initial_references("NameService"));
    NameComponent[] dmNamingComps ={new NameComponent("DATAMgt","")};
    DataManagement.DatamanagementFactory data_factory_ref= DataManagement.DatamanagementHelper.narrow(nmref.resolve(dmNamingComps ));
    masterDataref = data_factory_ref.createMasterData();
    =====================
    when we run the program:
    we are getting the error message:
    org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
    at com.sun.corba.se.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:161)
    at com.sun.corba.se.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:65)
    at com.sun.corba.se.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:67)
    at com.sun.corba.se.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:644)
    at com.sun.corba.se.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:586)
    at com.sun.corba.se.internal.corba.ClientDelegate.is_a(ClientDelegate.java:838)
    at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
    at org.omg.CosNaming.NamingContextExtHelper.narrow(NamingContextExtHelper.java:73)
    at Client.main(Client.java:19)
    Can anybody help ?Do we need any other configuration setup apart from the code in Apache/Tomcat?

  • How can I analyse corba idl files just as xml files are analysed by dom api

    I want to analyse and control corba idl files just like xml. We know that xml can be controled with org.omg.dom api, every element in xml can be read and write.But now, I want to realize a small program which can read every element in idl (eg. module, interface, methord) and auto-produce a element-tree. How can I do? Have dom api for idl files?

    You need a parser - try Antlr (http://www.antlr.org/). I believe it comes with an IDL grammar.
    Chuck

  • Can I send a Java HashTable using IDL and CORBA?

    I have code that uses a HashTable implementation of the Map datatype. I would like to be able to send this datatype using IDL and CORBA without trying to map it to Struct, if at all possible. I have just started with this yesterday, IDL that is, have successfully run the Hello World over the network and passed a string variable instead of just the string, and would welcome any help whatsoever.
    Thanks,
    Teresa Redmond

    - Don't transfer the Hashtable at all, but writea
    server, which gives access to the Hashtableentries
    I think what Martin means is: why not let yourserver
    actually do the work with the Hashtable in itself
    instead of making the client do it?
    Yes, exactly this is what I meant. And I will
    strengthen your arguments, why building a server for
    the Hashtables would probably be the best solution. So
    first double-check, whether you can go this way,
    before reading any further!
    But anyway, if you want to look deeper into
    serialization:
    - Create an ObjectOutputStream consisting of a
    ByteArrayOutputStream:
    ByteArrayOutputStream baos = new
    ByteArrayOutputStream(100);
    ObjectOutputStream oos = new
    ObjectOutputStream(baos);where "100" is the initial size in bytes.
    - Write to this stream with
    oos.writeObject(hashtable);
    oos.flush();- Send the data as a sequence of bytes, which can be
    accessed by:
    baos.toByteArray()- on the receiving side, create an ObjectInputStream
    from the received byteArray:
    ByteArrayInputStream bais = new
    ByteArrayInputStream(byteArray);
    ObjectInputStream ois = new
    ObjectInputStream(bais);- Then read the hashtable:
    Hashtable h =
    (Hashtable)ois.readObject();This is only a very coares description of the process,
    but should just give some pointers to the basic way to
    serialization.So, in the client, I could:
    Map m = new HashMap();
    //fill m
    baosSize = m.getsizeofm();//pseudo method
    ByteArrayOutputStream baos = new ByteArrayOutputStream(baosSize);
    ObjectOutputStream oos = new ObjectOutputStream(baos);
    oos.writeObject(m);
    oos.flush();
    baos.toByteArray()and in the server code, I could:
    ByteArrayInputStream bais = new ByteArrayInputStream(byteArray);
    ObjectInputStream ois = new ObjectInputStream(bais);
    Map mh = (HashMap)ois.readObject();is that about right? If that's the case, how do I write the idl file? is this a string? say, "string baos;"?
    Thanks, guys, I really appreciate your help!

  • Wide Character Strings support in WLE CORBA Servers IDL

    From the WLE documentation i see that the IDL does not support wstring or wchar.
    I have a requirement to pass back a multi-byte character to the clients. How can i achieve the same?
    Also can i use wstrings within the code? Is the restriction only for the IDL?

    Subha
    If you are use Java Use char (see WLE documentations for detail mapping explainations.) If you are using C++ only work around I see is using IDL type long (CORBA::Long).
    WChar are always reprsented as 16-bit Unicode character. That means Unicode can represent 65,536 (2^16) characters.
    Convert values from long to wchar on client end.
    "Subha Balaji" <[email protected]> wrote:
    >
    Hi!,
    I have a server which needs to return multi-byte character info to the client applications? But i find that
    wchar and wstring are not supported types in the IDL. So how can i achieve my requirements using
    WLE?
    Thanks!
    Subha

  • How to get IDL file name from CORBA IOR string

    hi, is it possible to get IDL file name from the IOR string? how?
    regards

    Hi,
    I don't think so.
    And if it was possible, which interface should be returned if
    the referenced object implements more than one?
    Regards.
    Karl

  • CORBA IDL and JNI

    Hello everybody,
    I am trying to develop a CORBA server that implements a method written in C language. This method is making RPC calls to a UNIX remote host. The reason why I used a native language is because I did not find yet how to make RPC calls in Java (I guess it is not possible ...).
    When I run a client invoking the remote (native) method on the server everything works fine. But when I run more than one client at the same time the JVM exits with a message "An unexpected exception has been detected in native code outside the VM".
    I believe this is a problem with memory allocation in the native code but I have tested and re-tested the C code (by calling it from a java class) and it works fine. The problem only occurs when the client invokes the method using the ORB.
    Did anybody experience this problem? Is there any known incompatibility between JNI and CORBA?
    By the way, I am running in Red Hat Linux 7.0.
    If anybody has any tips please give me some help ASAP.
    Thanks,
    Jo�o

    1. I have CORBA clients invoking CORBA servers. CORBA servers use native code to process the request and callback the client.
    2. Right! The server crashes due to some kind of invalid memory reference in the C code. I checked and double checked and there is a problem with a strcmp() function in the C code. something I really can not understand ...
    I ended up by giving up on the JNI. I managed to make RPC calls directly from JAVA.
    Thanks for your reply,
    Jo�o

Maybe you are looking for

  • Inserting a new row in a child table referencing an already existing parent

    I have two tables PARENT & CHILD (one to many), both of which are populated at different times. In our toplink mappings, parent contains a collection of child Domain Objects, & and child Domain object contains a one - one to parent. How can I insert

  • Center the component without resize in JPanel

    Hi, I have a JPanel in a JFrame. I put in this JPanel objects that extends from a JPanel. It works all ok, but I want to center the components that I include. I use the BorderLayout.CENTER , but the components automaticly have resize it and this is v

  • XDK upgrade problems (9.0.4 to 10.1.0.2)

    We are currently on version 9.0.4 of the XDK which came with our application server installation. I would like to upgrade our j2ee applications to use 10.1.0.2. It appears during the installation two XDK's are installed. One for the infrastructure (/

  • How to get the terminal name of http user?

    Hi Gurus, I use function TH_USER_LIST to get all online users. But for http users I can only get their IP address, but no terminal name. I searched the forum and tried the function RFC_IP_TO_HOST. However, when I input IP address it didn't return the

  • Is there a Project Server 2013 JSOM typescript definition file available?

    Hi, is there a typescript definition file (.d.ts) file available for PS.js? If not, are there any plans to come up with the definition file in the future?