×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Exception while initializing VisiBroker in a Servlet

Exception while initializing VisiBroker in a Servlet

Exception while initializing VisiBroker in a Servlet

(OP)
Hi all,

I am an amateur using CORBA. I am actually trying to use an integration software to make an servlet talk to my integrtion server. And for this to happen, I need to make my servlet use IIOP. So I am initializing VisiBroker. Below is the code that I am using to achieve this.

void intializeVisi() {
  Properties orbProperties = new java.util.Properties();
        orbProperties.setProperty("org.omg.CORBA.ORBClass", "com.inprise.vbroker.orb.ORB");
        orbProperties.setProperty("org.omg.CORBA.ORBSingletonClass", "com.inprise.vbroker.orb.ORBSingleton");
        
        ORB orb = ORB.init((String[])null, orbProperties);
}

and I get an exception :

Exception in thread "main" java.lang.VerifyError: class org.omg.PortableServer.AdapterActivatorPOA o
verrides final method ☺.☺
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
        at com.inprise.vbroker.orb.ORB.adapterManager(ORB.java:1101)
        at com.inprise.vbroker.ds.DSUser.<init>(DSUser.java:282)
        at com.inprise.vbroker.ds.Init.init(Init.java:20)
        at com.inprise.vbroker.orb.ORB.installServices(ORB.java:922)
        at com.inprise.vbroker.orb.ORB.initialize(ORB.java:831)
        at com.inprise.vbroker.orb.ORB.set_parameters(ORB.java:950)
        at org.omg.CORBA.ORB.init(ORB.java:337)
        at Visi.intializeVisi(Visi.java:11)
        at Visi.main(Visi.java:17)

I have my VisiBroker in my classpath. So any insight that you can give on how to clear this error will be helpful.

Thank you
-kms

RE: Exception while initializing VisiBroker in a Servlet

wow, how do you start the server, could you put theer the command line?

Ion Filipski

RE: Exception while initializing VisiBroker in a Servlet

(OP)
I am sorry. I didn't understand your reply.

If I write a small java program with just the code that I mentioned above, it gives me the same exception (mentioned above).

Any suggestions?

RE: Exception while initializing VisiBroker in a Servlet

it is not a reply, it is a question to you.

Ion Filipski

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close