File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Distributed Java and the fly likes java.lang.NoClassDefFoundError: com.inprise.vbroker.IIOP.Task Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "java.lang.NoClassDefFoundError: com.inprise.vbroker.IIOP.Task" Watch "java.lang.NoClassDefFoundError: com.inprise.vbroker.IIOP.Task" New topic
Author

java.lang.NoClassDefFoundError: com.inprise.vbroker.IIOP.Task

Vladimir Bezugliy
Ranch Hand

Joined: Sep 29, 2004
Posts: 33
We are migrating to VisiBroker 7.0.
In our client application we started to use VBJ Client Runtime provided as a Java archive vbjclientorb.jar file.

There is no com.inprise.vbroker.IIOP.Task in vbjclientorb.jar for AIX.
But com.inprise.vbroker.IIOP.Connection class located in vbjclientorb.jar uses com.inprise.vbroker.IIOP.Task class.

java.lang.NoClassDefFoundError: com.inprise.vbroker.IIOP.Task
at com.inprise.vbroker.IIOP.Connection.write(Unknown Source)
at com.inprise.vbroker.GIOP.OutputStream.write(Unknown Source)
at com.inprise.vbroker.GIOP.OutputStream.writeUnfragmented(Unknown Source)
at com.inprise.vbroker.GIOP.OutputStream.writeFragmented(Unknown Source)
at com.inprise.vbroker.GIOP.Message.write(Unknown Source)
at com.inprise.vbroker.GIOP.GiopConnection.send_message(Unknown Source)
at com.inprise.vbroker.GIOP.GiopConnection.send_message(Unknown Source)
at com.inprise.vbroker.GIOP.ProtocolConnector.invoke(Unknown Source)
at com.inprise.vbroker.orb.DelegateImpl.invoke(Unknown Source)

Is it a bug?
Or we should include some additional jar?
Roberto Perillo
Bartender

Joined: Dec 28, 2007
Posts: 2264
    
    3

Howdy, Vladimir!

Well, it looks like com.inprise.vbroker.IIOP.Connection depends on com.inprise.vbroker.IIOP.Task. So, if this class can't be found in the class-path when you run the client, then you'll get NoClassDefFoundErrors. I tried to find the name of a jar that contains this class, but couldn't find any. Do you happen to know what is the jar file that contains this com.inprise.vbroker.IIOP.Task class? If you have it, try including it in your class path and hopefully everything will work well.


Cheers, Bob "John Lennon" Perillo
SCJP, SCWCD, SCJD, SCBCD - Daileon: A Tool for Enabling Domain Annotations
Vladimir Bezugliy
Ranch Hand

Joined: Sep 29, 2004
Posts: 33
Roberto Perillo wrote:Well, it looks like com.inprise.vbroker.IIOP.Connection depends on com.inprise.vbroker.IIOP.Task. So, if this class can't be found in the class-path when you run the client, then you'll get NoClassDefFoundErrors. I tried to find the name of a jar that contains this class, but couldn't find any. Do you happen to know what is the jar file that contains this com.inprise.vbroker.IIOP.Task class? If you have it, try including it in your class path and hopefully everything will work well.

Hello Roberto.

Jar: vbjclientorb.jar
Class com\inprise\vbroker\IIOP\Connection.class uses class com\inprise\vbroker\IIOP\Task.class
But there is only com\inprise\vbroker\IIOP\Connection.class in vbjclientorb.jar.

Jar: vbjorb.jar
Class com\inprise\vbroker\IIOP\Connection.class uses class com\inprise\vbroker\IIOP\Task.class
There are both com\inprise\vbroker\IIOP\Connection.class and com\inprise\vbroker\IIOP\Task.class in vbjorb.jar.

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: java.lang.NoClassDefFoundError: com.inprise.vbroker.IIOP.Task