Explanation: If your application fails during init initialization or when the invoke method is first used, there may be an error in the virtual machine’s configuration parameters. Check the log file for a message similar to the following message:
ERROR - resolve naming service failed during initial reference:
org.omg.CORBA.COMM_FAILURE: minor code: 1398079490 completed: No
at com.sun.corba.se.internal.iiop.IIOPConnection.writeLock(Unknown Source)
If you receive an org.omg.CORBA.COMM_FAILURE exception, and the exception was thrown from the com.sun.corba.se.internal.iiop package, you probably did not specify to the virtual machine that it must use the JacORB (CORBA) implementation (in place of the Sun default implementation).
Corrective Action: You must specify to the Java virtual machine that it must use the CORBA implementation.
Use one of the following methods to solve the problem:
java -Dorg.omg.CORBA.ORBClass=org.jacorb.orb.ORB
-Dorg.omg.CORBA.ORBSingletonClass=org.jacorb.orb.ORBSingleton projectAppName
projectAppName is the executable file of your project.
org.omg.CORBA.ORBClass=org.jacorb.orb.ORB
org.omg.CORBA.ORBSingletonClass=org.jacorb.orb.ORBSingleton
Properties props = new Properties();
props.setProperty("org.omg.CORBA.ORBClass",
"org.jacorb.orb.ORB");
props.setProperty("org.omg.CORBA.ORBSingletonClass", "org.jacorb.orb.ORBSingleton");
EMXMLInvoker.init(args, props);
Parent Topic |