Vasily,

I've investigated the problem a bit and found that org.omg.CORBA.ORB.init();
call fails because there are no org.apache.yoko.orb.* classes at all in
yoko.jar file. In Yoko they are located in core directory and compiled into
a separated jar file (you may download it from
http://people.apache.org/maven-snapshot-repository/org/apache/yoko/yoko-core/),
which is not downloaded during Harmony building.

So, the solution for this problem is simple: just download
yoko-core.jarfrom the url above, put it to the jdk/jre/lib/boot and
modify
bootclasspath.properties, but there is another important question:
Do we download yoko jars only for compilation purposes?
I suppose we want to have working CORBA implemenation in Harmony :-) and
without yoko-core.jar, i think Yoko will not work.
So, i suggest modifying the building process to download yoko-core.jar along
with other yoko jars and put it to boot directory.

What do you thinks?

Regards,
Mikhail



On 12/22/06, Zakharov, Vasily M <[EMAIL PROTECTED]> wrote:

Hi, all,

Here's another Yoko issue I've found while checking the output from
HARMONY-2615 <http://issues.apache.org/jira/browse/HARMONY-2615>  stress
test.

The following three classes:

org.omg.SendingContext.CodeBasePackage.URLHelper
org.omg.SendingContext.CodeBasePackage.URLSeqHelper
org.omg.SendingContext.CodeBasePackage.ValueDescSeqHelper

fail to load with the same error:

java.lang.ExceptionInInitializerError
       at java.lang.VMClassRegistry.initializeClass(Native Method)
       at java.lang.Class.forName(Unknown Source)
       at java.lang.Class.forName(Unknown Source)
       at CrashTestBCP2.load(CrashTestBCP2.java:119)
       at CrashTestBCP2.main(CrashTestBCP2.java:137)
Caused by: org.omg.CORBA.INITIALIZE: Invalid ORB singleton class:
org.apache.yoko.orb.CORBA.ORBSingleton  minor code: 0x0  completed: No
       at org.omg.CORBA.ORB.init(ORB.java:243)
       at
org.omg.SendingContext.CodeBasePackage.URLHelper.<clinit>(URLHelper.java
)
       at java.lang.VMClassRegistry.initializeClass(Native Method)
       ... 4 more

It looks like Yoko implementations of org.omg.CORBA and
org.apache.yoko.orb.CORBA are not compatible with each other. :)

What should we do with that? File it to Yoko JIRA?

Vasily Zakharov
Intel Enterprise Solutions Software Division

Reply via email to