Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Visibroker: ClassCastException

0 views
Skip to first unread message

u5914...@spawnkill.ip-mobilphone.net

unread,
Jun 22, 2001, 6:08:09 PM6/22/01
to
Hello there,
We have installed Inprise VisiBroker Developer for Java 3.2
on our PC running Windows NT 4.0. When we tried to compile the samples from an ORB book, however, we got the following errors:

D:\Visigenic\vbroker\java_examples\bank>vbmake
Building the bank example ...
Exception in thread "main" java.lang.ClassCastException: com.sun.corba.se.intern
al.iiop.ORB
at com.visigenic.vbroker.tools.idl2java.main(idl2java.java:30)
Client.java:9: cannot resolve symbol
symbol : class AccountManager
location: package Bank
Bank.AccountManager manager =
^
...

Any advice on how to get around this problem will be helpful.

Thanks,

Shicheng

--
Sent by s.tian from shu included in ac subpart from uk
This is a spam protected message. Please answer with reference header.
Posted via http://www.usenet-replayer.com/cgi/content/new

Shicheng Tian

unread,
Jun 23, 2001, 4:42:39 AM6/23/01
to
Hello there,

We have installed Inprise VisiBroker Developer for Java 3.2

on our PC running Windows NT 4.0. When we tried to compile the samples from
an ORB book, however, we got the following errors:

D:\Visigenic\vbroker\java_examples\bank>vbmake

Building the bank example ...

Exception in thread "main" java.lang.ClassCastException:
com.sun.corba.se.intern

al.iiop.ORB

at com.visigenic.vbroker.tools.idl2java.main(idl2java.java:30)

Client.java:9: cannot resolve symbol

symbol : class AccountManager

location: package Bank

Bank.AccountManager manager =

^

..

Any advice on how to get around this problem will be helpful.

Thanks,

Shicheng

Bill Lloyd

unread,
Jun 24, 2001, 12:40:39 PM6/24/01
to
What version of the JDK are you using? Visibroker 3.2 works with JDK 1.1.x.
It won't work with JDK 1.2 or 1.3.

There's a conflict with the Sun ORB (that's why you see the
com.sun.corba.... stuff). I'd suggest you try Visibroker for Java 4.5 or
else use an old 1.1 version of the JDK. Visibroker 3.2 is about 4 years
old -- lots has changed since then!

-B

"Shicheng Tian" <S.T...@shu.ac.uk> wrote in message
news:9h1ks5$6cg$1...@fig.shu.ac.uk...

Zeljko Trogrlic

unread,
Jul 13, 2001, 2:57:21 AM7/13/01
to
Maybe that's because you are using Sun's ORB instead of Visibroker's. For
Visibroker 4.5 and JDK 1.3, you have to add orb.properties to your classpath
with following content:

# Make VisiBroker for Java the default ORB
org.omg.CORBA.ORBClass=com.inprise.vbroker.orb.ORB
org.omg.CORBA.ORBSingletonClass=com.inprise.vbroker.orb.ORB

u5914...@spawnkill.ip-mobilphone.net wrote in message ...

Shicheng

unread,
Aug 8, 2001, 7:23:46 AM8/8/01
to
"Zeljko Trogrlic" <pe...@jozo.com> wrote in message news:<9im63k$usp$1...@news.siemens.at>...

> Maybe that's because you are using Sun's ORB instead of Visibroker's. For
> Visibroker 4.5 and JDK 1.3, you have to add orb.properties to your classpath
> with following content:
>
> # Make VisiBroker for Java the default ORB
> org.omg.CORBA.ORBClass=com.inprise.vbroker.orb.ORB
> org.omg.CORBA.ORBSingletonClass=com.inprise.vbroker.orb.ORB

I did what you suggested above; when trying out an example on a NT 4.0 PC,
the example worked; but the same piece of example didn't work on
a PC running Windows 2000, instead I got the following error:

Any advice would be helpful, thanks!

================the errors=============================

D:\Inprise\vbroker\examples\basic\bank_agent>vbj Server
Exception in thread "main" java.lang.VerifyError: class org.omg.PortableServer.A
dapterActivatorPOA overrides final method &#9786;.&#9786;
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11
1)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11
1)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
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:329)
at Server.main(Server.java:9)

Shicheng

unread,
Aug 8, 2001, 7:33:14 AM8/8/01
to
>>From: Bill Lloyd (bll...@my-deja.com)
>>Subject: Re: Visibroker: ClassCastException
>>Newsgroups: comp.lang.java.corba
>>Date: 2001-06-24 09:40:40 PST

>What version of the JDK are you using? Visibroker 3.2 works with JDK 1.1.x.
Yes, I tried to use Visibroker 3.2 with JDK 1.1, it works; thanks.

>It won't work with JDK 1.2 or 1.3.

>There's a conflict with the Sun ORB (that's why you see the
>com.sun.corba.... stuff). I'd suggest you try Visibroker for Java 4.5 or
>else use an old 1.1 version of the JDK. Visibroker 3.2 is about 4 years
>old -- lots has changed since then!

BTW, is it possible to use Sun's ORB only instead?! is there any other
free ORBs available apart from the free JacORB?!

Shicheng

0 new messages