Discussion:
[jacorb-developer] What happens with jacorb.properties and orb.properties on the client side?
Alexandra Niculai
2009-08-21 16:28:46 UTC
Permalink
Hi

On the client side, not passing any properties to the ORB.init() method
gives this error:

"com.sun.corba.se.spi.orb.OperationFactory$ClassAction operate
WARNING: "IOP00110208: (BAD_PARAM) Could not load class standard_init"
org.omg.CORBA.BAD_PARAM: vmcid: SUN minor code: 208 completed: No
at
com.sun.corba.se.impl.logging.ORBUtilSystemException.couldNotLoadClass(Unknown
Source)".
Anyway, it doesn't stop the program from running, it just doesn't use
JacORB.

If I pass these Properties:

"System.setProperty("org.omg.CORBA.ORBClass", "org.jacorb.orb.ORB");
System.setProperty("org.omg.CORBA.ORBSingletonClass",
"org.jacorb.orb.ORBSingleton");
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(args,
System.getProperties());"

the program will try to load the jacorb.properties and the orb.properties.
This goes all well if you're on the server side. But what happens on the
client side? The client won't have these files.
Can anyone please help me understand this?Thank you.

Greetings
Alexandra.
Wagner, Marcus (Marcus)
2009-08-24 05:11:44 UTC
Permalink
Hi,

Why don't you have these files on the client side. I do not have a "real" client (because I am using callbacks) but I have these classes even on the client side. This is because I have jacorb.jar and its dependencies on each side. And I set those properties on each side.

You need to have an ORB on any site. Imagine that CORBA itself doesn't really know what you call a server or client. First there is the ORB and the operations that are done with the ORB define wheter it's a server or client.

JacORB provides a implementation for the CORBA API in the Java SDK. The properties are used to hook different implementations. In mixed installations there are C++ and other implementations, too. So it's up on you if you'd like to use JacORB on "server" and "client" side. But due to compatibility reasons it's a good practise to minimize the number of implementations (I am using a C++ one (OmniORB) and a JacORB wherever I need CORBA)

regards Marcus
-----Ursprüngliche Nachricht-----
] Im Auftrag von Alexandra Niculai
Gesendet: Freitag, 21. August 2009 18:29
An: JacORB
Betreff: [jacorb-developer] What happens with
jacorb.properties andorb.properties on the client side?
Hi
On the client side, not passing any properties to the
"com.sun.corba.se.spi.orb.OperationFactory$ClassAction operate
WARNING: "IOP00110208: (BAD_PARAM) Could not load class standard_init"
org.omg.CORBA.BAD_PARAM: vmcid: SUN minor code: 208 completed: No
at
com.sun.corba.se.impl.logging.ORBUtilSystemException.couldNotL
oadClass(Unknown
Source)".
Anyway, it doesn't stop the program from running, it just
doesn't use JacORB.
"System.setProperty("org.omg.CORBA.ORBClass", "org.jacorb.orb.ORB");
System.setProperty("org.omg.CORBA.ORBSingletonClass",
"org.jacorb.orb.ORBSingleton");
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(args,
System.getProperties());"
the program will try to load the jacorb.properties and the
orb.properties.
This goes all well if you're on the server side. But what
happens on the client side? The client won't have these files.
Can anyone please help me understand this?Thank you.
Greetings
Alexandra.
_______________________________________________
jacorb-developer maillist -
https://lists.spline.inf.fu-berlin.de/mailman/listinfo/jacorb-
developer
Wagner, Marcus (Marcus)
2009-08-24 05:44:43 UTC
Permalink
OOOPS
there was a spelling problem, I think.

"You need to have an ORB on any site"
should be
"You need to have an ORB on every site"

sorry
-----Ursprüngliche Nachricht-----
] Im Auftrag von Wagner, Marcus (Marcus)
Gesendet: Montag, 24. August 2009 07:12
An: Discussions concerning CORBA development with JacORB
Betreff: Re: [jacorb-developer] What happens with
jacorb.propertiesandorb.properties on the client side?
Hi,
Why don't you have these files on the client side. I do not
have a "real" client (because I am using callbacks) but I
have these classes even on the client side. This is because I
have jacorb.jar and its dependencies on each side. And I set
those properties on each side.
You need to have an ORB on any site. Imagine that CORBA
itself doesn't really know what you call a server or client.
First there is the ORB and the operations that are done with
the ORB define wheter it's a server or client.
JacORB provides a implementation for the CORBA API in the
Java SDK. The properties are used to hook different
implementations. In mixed installations there are C++ and
other implementations, too. So it's up on you if you'd like
to use JacORB on "server" and "client" side. But due to
compatibility reasons it's a good practise to minimize the
number of implementations (I am using a C++ one (OmniORB) and
a JacORB wherever I need CORBA)
regards Marcus
-----Ursprüngliche Nachricht-----
] Im Auftrag von Alexandra Niculai
Gesendet: Freitag, 21. August 2009 18:29
An: JacORB
Betreff: [jacorb-developer] What happens with jacorb.properties
andorb.properties on the client side?
Hi
On the client side, not passing any properties to the
"com.sun.corba.se.spi.orb.OperationFactory$ClassAction operate
WARNING: "IOP00110208: (BAD_PARAM) Could not load class
standard_init"
org.omg.CORBA.BAD_PARAM: vmcid: SUN minor code: 208
completed: No
at
com.sun.corba.se.impl.logging.ORBUtilSystemException.couldNotL
oadClass(Unknown
Source)".
Anyway, it doesn't stop the program from running, it just
doesn't use
JacORB.
"System.setProperty("org.omg.CORBA.ORBClass", "org.jacorb.orb.ORB");
System.setProperty("org.omg.CORBA.ORBSingletonClass",
"org.jacorb.orb.ORBSingleton");
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(args,
System.getProperties());"
the program will try to load the jacorb.properties and the
orb.properties.
This goes all well if you're on the server side. But what
happens on
the client side? The client won't have these files.
Can anyone please help me understand this?Thank you.
Greetings
Alexandra.
_______________________________________________
jacorb-developer maillist -
https://lists.spline.inf.fu-berlin.de/mailman/listinfo/jacorb-
developer
_______________________________________________
jacorb-developer maillist -
https://lists.spline.inf.fu-berlin.de/mailman/listinfo/jacorb-
developer
Alexandra Niculai
2009-08-24 08:39:39 UTC
Permalink
Hi,

Thank you. It works ok like that. I put the two files on the class path and
added jacorb.jar on both sides. I've seen that even without those two files
I can put all the configurations I need in System properties.

Greetings
Alexandra.
Post by Wagner, Marcus (Marcus)
Hi,
Why don't you have these files on the client side. I do not have a "real"
client (because I am using callbacks) but I have these classes even on the
client side. This is because I have jacorb.jar and its dependencies on each
side. And I set those properties on each side.
You need to have an ORB on any site. Imagine that CORBA itself doesn't
really know what you call a server or client. First there is the ORB and the
operations that are done with the ORB define wheter it's a server or client.
JacORB provides a implementation for the CORBA API in the Java SDK. The
properties are used to hook different implementations. In mixed
installations there are C++ and other implementations, too. So it's up on
you if you'd like to use JacORB on "server" and "client" side. But due to
compatibility reasons it's a good practise to minimize the number of
implementations (I am using a C++ one (OmniORB) and a JacORB wherever I need
CORBA)
regards Marcus
-----Ursprüngliche Nachricht-----
] Im Auftrag von Alexandra Niculai
Gesendet: Freitag, 21. August 2009 18:29
An: JacORB
Betreff: [jacorb-developer] What happens with
jacorb.properties andorb.properties on the client side?
Hi
On the client side, not passing any properties to the
"com.sun.corba.se.spi.orb.OperationFactory$ClassAction operate
WARNING: "IOP00110208: (BAD_PARAM) Could not load class standard_init"
org.omg.CORBA.BAD_PARAM: vmcid: SUN minor code: 208 completed: No
at
com.sun.corba.se.impl.logging.ORBUtilSystemException.couldNotL
oadClass(Unknown
Source)".
Anyway, it doesn't stop the program from running, it just
doesn't use JacORB.
"System.setProperty("org.omg.CORBA.ORBClass", "org.jacorb.orb.ORB");
System.setProperty("org.omg.CORBA.ORBSingletonClass",
"org.jacorb.orb.ORBSingleton");
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(args,
System.getProperties());"
the program will try to load the jacorb.properties and the
orb.properties.
This goes all well if you're on the server side. But what
happens on the client side? The client won't have these files.
Can anyone please help me understand this?Thank you.
Greetings
Alexandra.
_______________________________________________
jacorb-developer maillist -
https://lists.spline.inf.fu-berlin.de/mailman/listinfo/jacorb-
developer
_______________________________________________
jacorb-developer maillist -
https://lists.spline.inf.fu-berlin.de/mailman/listinfo/jacorb-developer
Loading...