List Info

Thread: An error with the latest Java 1.5.0_06-b05 and "com/sun/star/reflection/XTypeDescription"




An error with the latest Java 1.5.0_06-b05 and "com/sun/star/reflection/XTypeDescr iption"
user name
2006-01-16 12:12:30
Hi there,

a few people testing the latest version of Rexx4OOo have reported an error which I was only able to reproduce right now, as all tests with previous versions of Java have worked without a problem.

Using the latest downloadable Windows version of  Sun's "Java 1.5.0_06" exhibits the following error:

------------------ cut here ------------------
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/star/reflection/XTypeDescription
      ;  at java.lang.Class.getDeclaredMethods0(Native Method)
    ;    at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
    ;    at java.lang.Class.getDeclaredMethods(Unknown Source)
    ;    at org.rexxla.bsf.engines.rexx.RexxAndJava.javaCallBSF(RexxAndJava.java:2246)
------------------ cut here ------------------

This error does not occur in earlier version of Java, so I was wondering what the cause could be.

The OOo implementation of wrapping/proxying the UNO classes as Java classes, Java 1.5.0_06 or my little Java program that uses Java reflection to find methods and fields at runtime?

Any ideas?

Further information on the Java versions used on Windows:

Does not work:
------------------ cut here ------------------
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)
------------------ cut here ------------------
Works:
------------------ cut here ------------------
E:ronydevbsfsrcbin>java -version
java version "1.5.0_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)
Java HotSpot(TM) Client VM (build 1.5.0_03-b07, mixed mode)
------------------ cut here ------------------
Works:
------------------ cut here ------------------
java version "1.4.2_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)
------------------ cut here ------------------
Even Java 1.3 Works:
------------------ cut here ------------------
java version "1.3.1_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_06-b01)
Java HotSpot(TM) Client VM (build 1.3.1_06-b01, mixed mode)
------------------ cut here ------------------
Again, thankful for any hint/idea !

Regards,

---rony




An error with the latest Java 1.5.0_06-b05 and "com/sun/star/reflection/XTypeDescr iption"
user name
2006-01-18 21:11:17
Hi there,

just an additional info: just ran that little program on a Linux Red Hat Fedora Core 3 with Sun's Java 1.4.2_10 and experience the reported error on it. Here the information of that Java version:

------------------ cut here ------------------
[rootlocalhost bsf4rexx]# java -version
java version "1.4.2_10"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-b03)
Java HotSpot(TM) Client VM (build 1.4.2_10-b03, mixed mode)
------------------ cut here ------------------

Regards,

---rony



Rony G. Flatscher wrote:
wu-wien.ac.at" type="cite"> Hi there,

a few people testing the latest version of Rexx4OOo have reported an error which I was only able to reproduce right now, as all tests with previous versions of Java have worked without a problem.

Using the latest downloadable Windows version of  Sun's "Java 1.5.0_06" exhibits the following error:

------------------ cut here ------------------
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/star/reflection/XTypeDescription
      ;  at java.lang.Class.getDeclaredMethods0(Native Method)
    ;    at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
    ;    at java.lang.Class.getDeclaredMethods(Unknown Source)
    ;    at org.rexxla.bsf.engines.rexx.RexxAndJava.javaCallBSF(RexxAndJava.java:2246)
------------------ cut here ------------------

This error does not occur in earlier version of Java, so I was wondering what the cause could be.

The OOo implementation of wrapping/proxying the UNO classes as Java classes, Java 1.5.0_06 or my little Java program that uses Java reflection to find methods and fields at runtime?

Any ideas?

Further information on the Java versions used on Windows:

Does not work:
------------------ cut here ------------------
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)
------------------ cut here ------------------
Works:
------------------ cut here ------------------
E:ronydevbsfsrcbin>java -version
java version "1.5.0_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)
Java HotSpot(TM) Client VM (build 1.5.0_03-b07, mixed mode)
------------------ cut here ------------------
Works:
------------------ cut here ------------------
java version "1.4.2_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)
------------------ cut here ------------------
Even Java 1.3 Works:
------------------ cut here ------------------
java version "1.3.1_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_06-b01)
Java HotSpot(TM) Client VM (build 1.3.1_06-b01, mixed mode)
------------------ cut here ------------------
Again, thankful for any hint/idea !

Regards,

---rony





An error with the latest Java 1.5.0_06-b05 and "com/sun/star/reflection/XTypeDescr iption"
user name
2006-01-22 20:52:28
Hi there,

received an error report with an IBM Java JVM on Ubuntu Linux:

------------------ cut here ------------------
Kubuntu Linux 5.10 mit aktuellsten patches

OOo von openoffice.org aktuellste Version 
(OOA680_m1_native_packed-1_en-US.8990)


$ java -version
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pxi32dev-20051104)
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux x86-32 j9vmxi3223-20051103 
(JIT enabled)
J9VM - 20051027_03723_lHdSMR
JIT  - 20051027_1437_r8
GC   - 20051020_AA)
JCL  - 20051102

$ rexx testOOo2.rex
testOOo.rex: started to run; please be patient on the very first invocation
             as creating the full Java support for OpenOffice.org (OOo) or
             StarOffice (SO) takes a while initially.

... getting at a componentLoader ...
Exception in thread "main" java.lang.NoClassDefFoundError: com.sun.star.uno.XComponentContext
        at java.lang.Class.getDeclaredMethodsImpl(Native Method)
        at java.lang.Class.getDeclaredMethods(Class.java:630)
        at org.rexxla.bsf.engines.rexx.RexxAndJava.javaCallBSF(RexxAndJava.java:2246)
   727 *-* call BSF "invoke", "java.lang.Class29d429d4", "GETTYPENAME" , a.1
   688 *-* return .uno~rgfReflectUNO~getTypeName(o)
   358 *-* return uno.getTypeName(self)
    27 *-* say "    componentLoader~uno.getTypeName="pp(componentLoader~uno.getTypeName)
REX0040E: Error 40 running /home/me/workspace/apps/bsf4rexx/UNO.CLS line 688:  Incorrect call to routine
REX0372E: Error 40.1:  External routine "BSF" failed
------------------ cut here ------------------

Interestingly, IBM's JVM reports the error with "com.sun.star.unoXComponentContext", whereas Suns' JVM report it with "com/sun/star/reflection/XTypeDescription" (which is the class that gets excercised).

---

Is there anything I can/should do? Shall I officially report this as an error to the OOo/SO team (assuming an OOo/SO error in wrapping up the C++ classes into Java) or to Sun and IBM (because assuming a JVM error).

Would it help to point you to the present download spot of the beta-version of the ooRexx (AFAICT it is about ready for release to the public, working at the installer at the moment)?

Regards,

---rony

P.S.: If not using OOo reflection, *everything* works allright with all versions of Java on the tested platforms Windows  and Linux! Needless to say, it should be possible to employ OOo reflection via Java reflection without errors using the latest JVMs. (So far all tests show, that driving OOo by ooRexx externally and internally (via the Scripting Framework) works under Windows and Linux as well. The scripts are platform independent.)




Rony G. Flatscher wrote:
wu-wien.ac.at" type="cite"> Hi there,

just an additional info: just ran that little program on a Linux Red Hat Fedora Core 3 with Sun's Java 1.4.2_10 and experience the reported error on it. Here the information of that Java version:

------------------ cut here ------------------
[rootlocalhost bsf4rexx]# java -version
java version "1.4.2_10"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-b03)
Java HotSpot(TM) Client VM (build 1.4.2_10-b03, mixed mode)
------------------ cut here ------------------

Regards,

---rony



Rony G. Flatscher wrote:
wu-wien.ac.at" type="cite"> Hi there,

a few people testing the latest version of Rexx4OOo have reported an error which I was only able to reproduce right now, as all tests with previous versions of Java have worked without a problem.

Using the latest downloadable Windows version of  Sun's "Java 1.5.0_06" exhibits the following error:

------------------ cut here ------------------
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/star/reflection/XTypeDescription
      ;  at java.lang.Class.getDeclaredMethods0(Native Method)
    ;    at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
    ;    at java.lang.Class.getDeclaredMethods(Unknown Source)
    ;    at org.rexxla.bsf.engines.rexx.RexxAndJava.javaCallBSF(RexxAndJava.java:2246)
------------------ cut here ------------------

This error does not occur in earlier version of Java, so I was wondering what the cause could be.

The OOo implementation of wrapping/proxying the UNO classes as Java classes, Java 1.5.0_06 or my little Java program that uses Java reflection to find methods and fields at runtime?

Any ideas?

Further information on the Java versions used on Windows:

Does not work:
------------------ cut here ------------------
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)
------------------ cut here ------------------
Works:
------------------ cut here ------------------
E:ronydevbsfsrcbin>java -version
java version "1.5.0_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)
Java HotSpot(TM) Client VM (build 1.5.0_03-b07, mixed mode)
------------------ cut here ------------------
Works:
------------------ cut here ------------------
java version "1.4.2_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)
------------------ cut here ------------------
Even Java 1.3 Works:
------------------ cut here ------------------
java version "1.3.1_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_06-b01)
Java HotSpot(TM) Client VM (build 1.3.1_06-b01, mixed mode)
------------------ cut here ------------------
Again, thankful for any hint/idea !

Regards,

---rony






[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )