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
# 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 ...
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 ☺.☺
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)
>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