History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: JRUBY-2367
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Charles Oliver Nutter
Reporter: Song Ma
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
JRuby

JRuby 1.1 is not compatible with IBM JDK 5.0 or 6.0

Created: 07/Apr/08 12:24 AM   Updated: 23/Apr/08 09:58 AM
Component/s: None
Affects Version/s: JRuby 1.1
Fix Version/s: JRuby 1.1.1

Time Tracking:
Not Specified

File Attachments: 1. Text File ant_test.log (3 kb)
2. Text File ant_test_SuSE_10_1.log (177 kb)

Environment:
Linux localhost 2.6.24-gentoo-r4 #1 SMP Tue Apr 1 19:23:15 CST 2008 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz GenuineIntel GNU/Linux
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pxi32devifx-20071025 (SR6b))
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux x86-32 j9vmxi3223-20071005 (JIT enabled)
J9VM - 20071004_14218_lHdSMR
JIT - 20070820_1846ifx1_r8
GC - 200708_10)
JCL - 20071025


 Description  « Hide
JRuby 1.1 can be compiled with IBM JDK 5. 0 or 6.0 with command "ant" (with warning), but "ant test" failed and was terminated at the very beginning without any test case being executed.

JRuby 1.0.3 is working fine with IBM JDK. The problem can be reproduced on Linux distros SuSE, Red Had Enterprise Release and Gentoo.

The IBM JDK is released at http://www.ibm.com/developerworks/java/jdk/

Please refer to the attached "ant test" log file for more details. The file was collected on Gentoo platform.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Song Ma - 07/Apr/08 01:37 AM
I reproduced the "ant test" error on SuSE Linux 10.1 platform with IBM JDK 5.0, but the print out is different, I'd like to upload the file for your reference.

Environment:
Linux SUSE-sma 2.6.16.54-0.2.5-bigsmp #1 SMP Mon Jan 21 13:29:51 UTC 2008 i686 i686 i386 GNU/Linux
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pxi32devifx-20071025 (SR6b))
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux x86-32 j9vmxi3223-20071005 (JIT enabled)
J9VM - 20071004_14218_lHdSMR
JIT - 20070820_1846ifx1_r8
GC - 200708_10)
JCL - 20071025


Damian Steer - 07/Apr/08 12:49 PM
Not working for me either, but I seem to get a different error:
pldms@kessel:~/Development/CVS-Other/jruby$ uname -a
Linux kessel 2.6.22-14-generic #1 SMP Tue Feb 12 07:42:25 UTC 2008 i686 GNU/Linux
pldms@kessel:~/Development/CVS-Other/jruby$ java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build pxi3260-20071123_01)
IBM J9 VM (build 2.4, J2RE 1.6.0 IBM J9 2.4 Linux x86-32 jvmxi3260-20071121_15015 (JIT enabled)
J9VM - 20071121_015015_lHdSMR
JIT  - r9_20071121_1330
GC   - 20071031_AA)
JCL  - 20071118_01
pldms@kessel:~/Development/CVS-Other/jruby$ echo $JAVA_HOME
/home/pldms/Applications/ibm-java-i386-60
pldms@kessel:~/Development/CVS-Other/jruby$ ant clean jar
Buildfile: build.xml

init:

clean:
   [delete] Deleting directory /home/pldms/Development/CVS-Other/jruby/docs/api

init:

jar:

jar-jruby:

init:

extract-rdocs:

prepare:
    [mkdir] Created dir: /home/pldms/Development/CVS-Other/jruby/build/classes
    [mkdir] Created dir: /home/pldms/Development/CVS-Other/jruby/build/classes/jruby
    [mkdir] Created dir: /home/pldms/Development/CVS-Other/jruby/build/classes/test
    [mkdir] Created dir: /home/pldms/Development/CVS-Other/jruby/build/test-results
    [mkdir] Created dir: /home/pldms/Development/CVS-Other/jruby/build/test-results/html
    [mkdir] Created dir: /home/pldms/Development/CVS-Other/jruby/docs/api

compile.tasks:
     [copy] Copying 8 files to /home/pldms/Development/CVS-Other/jruby/build/classes/jruby
     [copy] Copying 21 files to /home/pldms/Development/CVS-Other/jruby/build/classes/jruby/builtin
     [copy] Copying 1 file to /home/pldms/Development/CVS-Other/jruby/build/classes/jruby

check-for-optional-java4-packages:

check-for-optional-packages:

compile-jruby:
    [javac] Compiling 636 source files to /home/pldms/Development/CVS-Other/jruby/build/classes/jruby
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.

compile:

generate-method-classes:
    [touch] Creating /home/pldms/Development/CVS-Other/jruby/build/__empty.rb
     [java] Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -1
     [java]     at org.jruby.runtime.ThreadContext.getCurrentFrame(ThreadContext.java:350)
     [java]     at org.jruby.runtime.ThreadContext.getFrameSelf(ThreadContext.java:372)
     [java]     at org.jruby.RubyClass.invoke(RubyClass.java:234)
     [java]     at org.jruby.javasupport.util.RuntimeHelpers.invokeAs(RuntimeHelpers.java:331)
     [java]     at org.jruby.runtime.Dispatcher$DefaultDispatcher.callMethod(Dispatcher.java:17)
     [java]     at org.jruby.RubyClass.invoke(RubyClass.java:224)
     [java]     at org.jruby.javasupport.util.RuntimeHelpers.invoke(RuntimeHelpers.java:339)
     [java]     at org.jruby.RubyObject.callMethod(RubyObject.java:485)
     [java]     at org.jruby.RubyObject.equals(RubyObject.java:273)
     [java]     at java.util.WeakHashMap.put(Unknown Source)
     [java]     at org.jruby.util.collections.WeakHashSet.add(WeakHashSet.java:44)
     [java]     at org.jruby.RubyClass.addSubclass(RubyClass.java:357)
     [java]     at org.jruby.RubyClass.<init>(RubyClass.java:175)
     [java]     at org.jruby.RubyClass.newClass(RubyClass.java:186)
     [java]     at org.jruby.RubyClass.newClass(RubyClass.java:193)
     [java]     at org.jruby.Ruby.defineClassUnder(Ruby.java:656)
     [java]     at org.jruby.Ruby.defineClass(Ruby.java:612)
     [java]     at org.jruby.RubyThread.createThreadClass(RubyThread.java:119)
     [java]     at org.jruby.Ruby.initCore(Ruby.java:907)
     [java]     at org.jruby.Ruby.bootstrap(Ruby.java:852)
     [java]     at org.jruby.Ruby.init(Ruby.java:828)
     [java]     at org.jruby.Ruby.newInstance(Ruby.java:158)
     [java]     at org.jruby.Main.run(Main.java:121)
     [java]     at org.jruby.Main.run(Main.java:88)
     [java]     at org.jruby.Main.main(Main.java:79)

BUILD FAILED
/home/pldms/Development/CVS-Other/jruby/build.xml:290: The following error occurred while executing this line:
/home/pldms/Development/CVS-Other/jruby/build.xml:185: The following error occurred while executing this line:
/home/pldms/Development/CVS-Other/jruby/build.xml:156: Java returned: 1

Total time: 23 seconds

Charles Oliver Nutter - 09/Apr/08 10:14 PM
Fix for 1.1.1.

Charles Oliver Nutter - 16/Apr/08 06:37 PM
I made a change that got this working on IBM JDKs...could you retry? There were other reasons the tests didn't pass, but I didn't look into those yet.

Charles Oliver Nutter - 18/Apr/08 02:11 PM
The fix I made appears to let JRuby start up and run under IBM's JDKs. If there are additional issues running under IBM JDK (and there certainly are, since ant test does not pass) they should be filed separately.