Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

jdk1.2.2 corba works on nt not on 98


  • From: hanasaki@xxxxxxxxxxxxx (hanasaki)
  • Subject: jdk1.2.2 corba works on nt not on 98
  • Date: Sun, 31 Oct 1999 16:06:36 -0600

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
hanasaki wrote:
<blockquote TYPE=CITE>Actually, it is reported as a bug in the JDK1.3.&nbsp;
They say its fixed.... Guess it will come out with the next release.
<p>However, the following program
<br>&nbsp; - works on jdk1.2.2 NT
<br>&nbsp; - fails as shown on jdk1.2..2 win 98
<p>
<hr SIZE=5 NOSHADE WIDTH="100%">
<br><tt><font size=-1>import java.util.*;</font></tt>
<br><tt><font size=-1>import org.omg.CORBA.*;</font></tt>
<p><tt><font size=-1>public class MakeAnORB {</font></tt>
<br><tt><font size=-1>&nbsp; private static String[] orbArgs = { "ORBClass=com.sun.CORBA.iiop.ORB"
};</font></tt>
<p><tt><font size=-1>&nbsp; public static void main(String[] args) {</font></tt>
<br><tt><font size=-1>&nbsp;&nbsp;&nbsp; new MakeAnORB(args);</font></tt>
<br><tt><font size=-1>&nbsp; }</font></tt>
<p><tt><font size=-1>&nbsp; public MakeAnORB(String[] args) {</font></tt>
<br><tt><font size=-1>&nbsp;&nbsp;&nbsp; Properties properties = new Properties();</font></tt>
<br><tt><font size=-1>&nbsp;&nbsp;&nbsp; org.omg.CORBA.ORB orb=null;</font></tt>
<p><tt><font size=-1>//&nbsp;&nbsp;&nbsp; properties.put("org.omg.CORBA.ORBSingletonClass",
"com/sun/corba/se/internal/corba/ORBSingleton.class");</font></tt>
<br><tt><font size=-1>//&nbsp;&nbsp;&nbsp; properties.put("org.omg.CORBA.ORBSingletonClass",
"com/sun/corba/se/internal/corba/ORBSingleton.class");</font></tt>
<br><tt><font size=-1>//&nbsp;&nbsp;&nbsp; properties.put("org.omg.CORBA.ORBClass",
"com/sun/corba/se/internal/iiop/ORB.class");</font></tt>
<br><tt><font size=-1>//&nbsp;&nbsp;&nbsp; properties.put("org.omg.CORBA.ORBClass",
"org/omg/CORBA.ORB.class");</font></tt>
<p><tt><font size=-1>//&nbsp;&nbsp;&nbsp; properties.put("org.omg.CORBA.ORBClass",
"com.sun.rmi.corba.ORB.class");</font></tt>
<br><tt><font size=-1>//&nbsp;&nbsp;&nbsp; properties.put("org.omg.CORBA.ORBSingletonClass",
"com.sun.rmi.corba.ORBSingleton.class");</font></tt>
<p><tt><font size=-1>&nbsp;&nbsp;&nbsp; properties.put("org.omg.CORBA.ORBClass",
"org.omg.CORBA.ORB.class");</font></tt>
<br><tt><font size=-1>&nbsp;&nbsp;&nbsp; properties.put("org.omg.CORBA.ORBSingletonClass",
"com.sun.rmi.corba.ORBSingleton.class");</font></tt>
<p><tt><font size=-1>//&nbsp;&nbsp;&nbsp; System.getProperties().list(System.out);</font></tt>
<br><tt><font size=-1>&nbsp;&nbsp;&nbsp; properties.list(System.out);</font></tt>
<p><tt><font size=-1>//&nbsp;&nbsp;&nbsp; orb = org.omg.CORBA.ORB.init(args,
properties);</font></tt>
<br><tt><font size=-1>&nbsp;&nbsp;&nbsp; orb = org.omg.CORBA.ORB.init(orbArgs,
null);</font></tt>
<br><tt><font size=-1>&nbsp;&nbsp;&nbsp; System.out.println("Successful
ORB init");</font></tt>
<br><tt><font size=-1>&nbsp; }</font></tt>
<br><tt><font size=-1>}</font></tt>
<br>
<hr SIZE=5 NOSHADE WIDTH="100%">
<br><tt><font size=-1>-- listing properties --</font></tt>
<br><tt><font size=-1>org.omg.CORBA.ORBClass=org.omg.CORBA.ORB.class</font></tt>
<br><tt><font size=-1>org.omg.CORBA.ORBSingletonClass=com.sun.rmi.corba.ORBSingleton.class</font></tt>
<br><tt><font size=-1>Exception in thread "main" org.omg.CORBA.INTERNAL:&nbsp;&nbsp;
minor code: 7&nbsp; completed: No</font></tt>
<br><tt><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.sun.CORBA.iiop.Connection.getLocalHost(Connection.java:145)</font></tt>
<br><tt><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.sun.CORBA.idl.ORB.checkApplicationPropertyDefaults(ORB.java:398)</font></tt>
<br><tt><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.sun.CORBA.idl.ORB.set_parameters(ORB.java:200)</font></tt>
<br><tt><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.omg.CORBA.ORB.init(ORB.java:353)</font></tt>
<br><tt><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at MakeAnORB.&lt;init>(MakeAnORB.java:30)</font></tt>
<br><tt><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at MakeAnORB.main(MakeAnORB.java:8)</font></tt>
<br>
<hr SIZE=5 NOSHADE WIDTH="100%">
<br>&nbsp;
<p>I have no clue but input is appreciated.
<p>Jose Alberto Fernandez wrote:
<blockquote TYPE=CITE>I do not think this is a bug, or at least not yet.
<br>The idea of the org.omg.CORBA.ORBClass property is to specify the concreate
<br>implementation of the ORB this is done so that the JDK can enable other
ORBs
<br>implementations. So if you are using Visigenic you will have to set
it to
<br>something like:
<br>"com.visigenic.CORBA.ORB" or something like that.
<p>So when you do&nbsp; o = org,omg.CORBA.ORB.init(); "o" will be actually
an instance
<br>the visigenic ORB.
<p>The problem is that you are specifying the ORB to be the abstract class
provided
<br>by the JDK which is not a real implementation but just a superclass.
<p>If you just want to use the JDK ORB implementation you do not have to
specify
<br>this property, the default should pick up the right thing.
<p>Hope it helps,
<p>Jose Alberto
<p>Bill Lloyd wrote:
<p>> It's called a bug.&nbsp; You'll have to go back to JDK 1.2 until they
fix it.
<br>> There's definitely
<br>> a problem using 1.3 with any ORB but sun's.
<br>>
<br>> -B
<br>> "hanasaki" &lt;hanasaki@xxxxxxxxxxxxx> wrote in message
<br>> <a href="news:3819AFE1.604C140F@xxxxxxxxxxxxx";>news:3819AFE1.604C140F@xxxxxxxxxxxxx</a>...
<br>> The below code produces the below error.&nbsp; Any suggestions would
be
<br>> appreciated.&nbsp;&nbsp; The jar file rt.jar is in the classpath
and does contain the
<br>> class:
<br>> C:\jdk1.3\jre\lib>jar -tf rt.jar | grep&nbsp; "ORB.class"
<br>> com/sun/corba/se/internal/core/ORB.class
<br>> com/sun/corba/se/internal/iiop/ORB.class
<br>> com/sun/corba/se/internal/corba/ORB.class
<br>> org/omg/CORBA/ORB.class
<br>> org/omg/CORBA_2_3/ORB.class
<br>> C:\jdk1.3\jre\lib>
<br>> Thanks in advance.
<br>>
<br>>&nbsp; private void config()
<br>>
<br>>&nbsp;&nbsp;&nbsp;&nbsp; Properties properties = new Properties();
<br>>&nbsp;&nbsp;&nbsp;&nbsp; properties.put("org.omg.CORBA.ORBClass",
"org.omg.CORBA.ORB.class");&nbsp; //
<br>> also tried without the .class on the end
<br>> //&nbsp;&nbsp;&nbsp; properties = null;&nbsp; // hack till properties
on orb init are needed
<br>>&nbsp;&nbsp;&nbsp;&nbsp; // create ORB
<br>>&nbsp;&nbsp;&nbsp;&nbsp; orb = null;
<br>>&nbsp;&nbsp;&nbsp;&nbsp; try
<br>>
<br>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; orb = ORB.init(args, properties);
<br>>&nbsp;&nbsp;&nbsp;&nbsp; } catch (Exception ex)
<br>>
<br>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ex.printStackTrace ();
<br>>&nbsp;&nbsp;&nbsp;&nbsp; }
<br>>&nbsp;&nbsp; } // config
<br>>
<br>> org.omg.CORBA.INITIALIZE: can't instantiate default ORB implementation
<br>> org.omg.C
<br>> ORBA.ORB.class&nbsp; minor code: 0&nbsp; completed: No
<br>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.omg.CORBA.ORB.create_impl(Unknown
Source)
<br>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.omg.CORBA.ORB.init(Unknown
Source)
<br>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.TestCORBA.ORBUtil.config(ORBUtil.java:29)
<br>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.TestCORBA.ORBUtil.&lt;init>(ORBUtil.java:18)
<br>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.TestCORBA.Main.go(Main.java:95)
<br>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.TestCORBA.Main.main(Main.java:26)
<br>> Error parsing args.</blockquote>
</blockquote>

<br>&nbsp;</html>


---
To unsubscribe, mail advanced-java-unsubscribe@xxxxxxxxxxxxxxxx
To get help, mail advanced-java-help@xxxxxxxxxxxxxxxx