Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> 8i with EJB/Visibroker Problem

8i with EJB/Visibroker Problem

From: Lothar Joeckel <ljoeckel_at_iname.com>
Date: Fri, 30 Jul 1999 23:42:38 +0200
Message-ID: <37A21C4E.528B0818@iname.com>



I'm runnig Oracle 8i on Solaris 7.

I've modified the EJB sample in '../examples/ejb/basic/helloworld' in a way
that the request will be repeated 100000 times. After running this program for a
while i receive the following Java-Exception:

-----THE OUTPUT -----------------------------------------------------
i=1 time=3 ms.  Hello client, your javavm version is 8.1.5.
...
...
i=50808 time=3 ms.  Hello client, your javavm version is 8.1.5.
i=50809 time=4 ms.  Hello client, your javavm version is 8.1.5.
org.omg.CORBA.INTERNAL[completed=MAYBE]
        at java.lang.Throwable.<init>(Compiled Code)
        at java.lang.Exception.<init>(Compiled Code)
        at java.lang.RuntimeException.<init>(Compiled Code)
        at org.omg.CORBA.SystemException.<init>(Compiled Code)
        at org.omg.CORBA.INTERNAL.<init>(Compiled Code)
        at com.visigenic.vbroker.orb.GiopConnectionFactoryImpl.destroy(Compiled Code)
        at com.visigenic.vbroker.orb.GiopConnectionImpl.close(Compiled Code)
        at com.visigenic.vbroker.orb.GiopStubDelegate.invoke(Compiled Code)
        at com.visigenic.vbroker.orb.GiopStubDelegate.invoke(Compiled Code)
        at org.omg.CORBA.portable.ObjectImpl._invoke(Compiled Code)
        at hello._st_Hello.helloWorld(Compiled Code)
        at Client.main(Compiled Code)
make: *** [run] Error 1
=================================================
Sometimes it was possible to run the 100000 iterations. But most of the
cases the exception will be thrown between 10000 and 80000 iterations.
Any idea. Is this a known problem?
 

-------- THE SOURCE --------------------------------------
import hello.Hello;
import hello.HelloHome;

import oracle.aurora.jndi.sess_iiop.ServiceCtx;

import javax.naming.Context;
import javax.naming.InitialContext;
import java.util.Hashtable;

public class Client
{
  public static void main (String[] args) throws Exception {
    if (args.length != 4) {
      System.out.println ("usage: Client serviceURL objectName user password");
      System.exit (1);
    }
    String serviceURL = args [0];
    String objectName = args [1];
    String user = args [2];
    String password = args [3];

    Hashtable env = new Hashtable ();
    env.put (Context.URL_PKG_PREFIXES, "oracle.aurora.jndi");
    env.put (Context.SECURITY_PRINCIPAL, user);
    env.put (Context.SECURITY_CREDENTIALS, password);
    env.put (Context.SECURITY_AUTHENTICATION, ServiceCtx.NON_SSL_LOGIN);
    Context ic = new InitialContext (env);

    HelloHome hello_home = (HelloHome)ic.lookup (serviceURL + objectName);
    Hello hello = hello_home.create ();
    long t = 0;

    for (int i=0; i<100000; i++) {
        t = System.currentTimeMillis();
        String result = hello.helloWorld();
        System.out.println("i="+i+" time="+(System.currentTimeMillis()-t)+" ms.  "+result);
    }

  }
}


Received on Fri Jul 30 1999 - 16:42:38 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US