Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> 8i with EJB/Visibroker Problem
I'm runnig Oracle 8i on Solaris 7.
-----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