Re: Problems with JOB 4.3.0 and J2SDK 1.5.0
David Weir <[email protected]> Wed, 14 Dec 2005 12:35:45 -0330
| Newsgroups | gmane.comp.corba.orbacus |
|---|---|
| Organization | Object Oriented Concepts, Inc. - An IONA Company |
| Message-ID | <[email protected]> |
Hello Manuel, On Wed, Dec 14, 2005 at 02:25:12PM +0100, Manuel Fünfrocken wrote: > Hello! > > I've some trouble using my code with JOB 4.3.0 and Java 1.5. We have switch > to this Java version from Java 1.4.2._04. > > As I've seen on the Orbacus home page, ORBacus 4.3.0 should work with Java > 1.5. So I have just recompiled it after installing jsdk 1.5.0. > > I get some warnings while installing: > > build: > > [ob.javac] Compiling 103 source files to C:\Temp\JOB-4.3.0\property\lib > [ob.javac] Note: Some input files use unchecked or unsafe operations. > [ob.javac] Note: Recompile with -Xlint:unchecked for details. > > jar: > [jar] Building jar: C:\Temp\JOB-4.3.0\property\lib\OBProperty.jar > > There are more warnings, but they have the same type: Some input files use > unchecked or unsafe operations. > > I've you think that could be usefull, I will post them here. > > (The option Xlint:unchecked is unknown I've tried: ant Xlint:unchecked > -Dinstall.dir=C:\JOB) I believe this is a case of the Java 1.5 compiler being stricter when it comes to the "Xlint" warnings. Nothing has changed in Orbacus, so this should not be an issue. We didn't worry about this before since the previous compilers didn't complain, but will will work to eliminate these warnings in future versions. > I also get this exception when running my program: > > Exception in thread "main" java.lang.NoSuchMethodError: > org.omg.PortableInterceptor.IORInterceptor_3_0.adapter_manager_state_changed > (Ljava/lang/String;S)V > > at com.ooc.OB.PIManager.adapterManagerStateChange(PIManager.java:688) > at com.ooc.OBPortableServer.POAManager_impl.activate(POAManager_impl.java:220) > at client.ClientServant.getPOAManager(ClientServant.java:135) > at client.ClientServant.<init>(ClientServant.java:71) > at client.ClientServant.<init>(ClientServant.java:57) > > Note: Orbacus works fine as long as my program only works as pure client. If > I try to start function that run as server (neede for callbacks) I get the > exception above. > > Has anybody some advice? I am right, that JOB 4.3.0 can be used with Java > 1.5? And is it just recompiling or does I have to change some code? Orbacus for Java 4.3.0 is compatible with Java 1.5. This particular problem has to do with a change between Java 1.4.2 and 1.5 where Sun introduced an updated API for Portable Interceptors that still is not up to the same level of the OMG spec that Orbacus is. This change now causes the "PortableInterceptor" exception that you are seeing above if the JVM is not told to use the Orbacus classes rather than the Sun classes. This can be done using the "java.endorsed.dirs" property. Here's the supporting documentation around using the Java Endorsed Standards Override Mechanism: http://java.sun.com/j2se/1.5.0/docs/guide/standards/ Basically, this is a way to tell the JVM that user supplied class definitions (in this case, Orbacus) should be used instead of those provided by the JVM. > Kind Regards > Manuel Fünfrocken Cheers, Dave -- David Weir Team Orbacus - Your CORBA Source E-Mail: [email protected] WWW: http://www.orbacus.com _______________________________________________ OB-Users Mailing List - [email protected] http://mail.ooc.nf.ca/mailman/listinfo/ob-users Visit our support FAQ before you send a message. http://www.orbacus.com/faq/support.html