RVM

DaCapo xalan fails with Apache Harmony class library

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 3.0
  • Fix Version/s: 3.0.1
  • Labels:
    None
  • Environment:
    Jikes RVM r14855 Harmony r681495 prototype configuration SuSE Linux 10.3 x86-64
  • Number of attachments :
    1

Description

Running DaCapo xalan fails with:

      • Incorrect version of Xalan in use!
      • Should be 'Xalan Java 2.4.1',
      • actually is 'Xalan Java 2.7.0').
      • To fix this, extract the included xalan.jar:
      • unzip components/dacapo/2006-10-MR2/dacapo.jar xalan.jar
      • and override your jvm's boot classpath:
      • java -Xbootclasspath/p:xalan.jar [...]
        java.lang.reflect.InvocationTargetException
        java.lang.reflect.InvocationTargetException
        at .<invisible method>(Unknown Source)
        at java.lang.Throwable.fillInStackTrace(Throwable.java:131)
        at java.lang.Throwable.<init>(Throwable.java:77)
        at java.lang.Throwable.<init>(Throwable.java:99)
        at java.lang.Exception.<init>(Exception.java:61)
        at java.lang.reflect.InvocationTargetException.<init>(InvocationTargetException.java:49)
        at java.lang.reflect.VMCommonLibrarySupport.construct(VMCommonLibrarySupport.java:437)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:275)
        at dacapo.TestHarness.runBenchmark(TestHarness.java:263)
        at dacapo.TestHarness.main(TestHarness.java:235)
        at Harness.main(Harness.java:5)
        Caused by: dacapo.DacapoException: Please fix your bootclasspath and try again.
        at .<invisible method>(Unknown Source)
        at java.lang.Throwable.fillInStackTrace(Throwable.java:131)
        at java.lang.Throwable.<init>(Throwable.java:77)
        at java.lang.Throwable.<init>(Throwable.java:87)
        at java.lang.Exception.<init>(Exception.java:48)
        at dacapo.DacapoException.<init>(DacapoException.java:16)
        at dacapo.xalan.XalanHarness.<init>(XalanHarness.java:140)
        at .<invisible method>(Unknown Source)
        at org.jikesrvm.runtime.Reflection.invoke(Reflection.java:132)
        at org.jikesrvm.runtime.Reflection.invoke(Reflection.java:45)
        at java.lang.reflect.VMCommonLibrarySupport.construct(VMCommonLibrarySupport.java:435)
        ... 4 more

Following the advice fails with:

./dist/prototype_x86_64-linux/rvm -Xbootclasspath/p:xalan.jar -jar components/dacapo/2006-10-MR2/dacapo.jar xalan
java.lang.NoClassDefFoundError: Could not find the class -Xbootclasspath.p:xalan.jar:
-Xbootclasspath.p:xalan.jar

I believe the classpath can be hand coded to work around this, but it shouldn't be necessary and we don't appear to support bootclasspath properly.

Activity

Hide
Aleksey Shipilev added a comment -

Error message looks like RVM did not recognize -Xbootclasspath option and treated that as class.

Show
Aleksey Shipilev added a comment - Error message looks like RVM did not recognize -Xbootclasspath option and treated that as class.
Hide
Aleksey Shipilev added a comment -

rvm-cmdline-bootclasspath-v1.patch
Bootclasspath handling in JikesRVM.

  • Classic (p)repend / (a)ppend scheme implemented.
  • BootImageRunner help extended.
Show
Aleksey Shipilev added a comment - rvm-cmdline-bootclasspath-v1.patch Bootclasspath handling in JikesRVM.
  • Classic (p)repend / (a)ppend scheme implemented.
  • BootImageRunner help extended.
Hide
Aleksey Shipilev added a comment -

Correct bootclasspath handling enables RVM to run DaCapo:xalan with Harmony classlib.
Checked on JikesRVM r14973, Harmony classlib r694933 + build fix, Gentoo x86.

Show
Aleksey Shipilev added a comment - Correct bootclasspath handling enables RVM to run DaCapo:xalan with Harmony classlib. Checked on JikesRVM r14973, Harmony classlib r694933 + build fix, Gentoo x86.
Hide
Aleksey Shipilev added a comment -

STATEMENT OF ORIGIN FOR A SINGLE CONTRIBUTOR

I, Aleksey Shipilev:

(a) represent that either:

I am the only author and owner of the contributed software
(described as/entitled "RVM-621 Bootclasspath handling in JikesRVM"),
which was neither derived nor copied from any other software,
or

(ii) that any exception to is software which was obtained under the
CPL (Common Public License),

and

(b) hereby agree to license this contributed software under the CPL.

Show
Aleksey Shipilev added a comment - STATEMENT OF ORIGIN FOR A SINGLE CONTRIBUTOR I, Aleksey Shipilev: (a) represent that either: I am the only author and owner of the contributed software (described as/entitled "RVM-621 Bootclasspath handling in JikesRVM"), which was neither derived nor copied from any other software, or (ii) that any exception to is software which was obtained under the CPL (Common Public License), and (b) hereby agree to license this contributed software under the CPL.
Hide
Ian Rogers added a comment -

Patch committed in r14981.

Show
Ian Rogers added a comment - Patch committed in r14981.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: