JDK-4423616 : JCK13a vm/jni/Miscellaneous/misc001/misc00101/misc00101.html
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 1.4.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS:
    linux,solaris_8,windows_95,windows_2000 linux,solaris_8,windows_95,windows_2000
  • CPU: x86,sparc
  • Submitted: 2001-03-09
  • Updated: 2001-03-27
  • Resolved: 2001-03-27
Related Reports
Duplicate :  
Description
Failing Test:
=============
vm/jni/Miscellaneous/misc001/misc00101/misc00101.html

JCK : 
=====
JCK1.3a

Test source location:
====================

/net/jdk/export/disk8/local.java/jck1.3a/JCK-runtime-13a/tests/vm/jni/Miscellaneous/misc001/misc00101/misc00101.java misc00101.c

Platforms:
=============
Sparc Solaris 8 
Intel Solaris 8
Red Hat 6.2


JDK, switches Info:
==================
java version "1.4.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b54)
Java HotSpot(TM) Client VM (build 1.4beta-B54, mixed mode)



jtr file location:
==================
file:/net/jtg-i116/export/home/jtg-test/JH_JDK14_b54_JCK13a_c1xmixed/workDir/vm/jni/Miscellaneous/misc001/misc00101/misc00101.jtr

How to reproduce:
====================
Run the attached script
   vm_jni_misc00101.ksh

----script start-----
#!/bin/ksh
SWITCH=${1+$@}
JDK=/net/jdk/export/disk8/local.java/jdk1.4
TESTBASE=/net/jtgb4u4c.eng/export/sail16/JCK/jck13afcs
JCK=${TESTBASE}/JCK-runtime-13a


executeClass=javasoft.sqe.tests.vm.jni.misc001.misc00101.misc00101
excludeCmd=
executeClassArgs=
executeTestURL=


executeContextArgs="-platform.nativeCodeSupported true"

case `uname -s` in
  SunOS)
   ARCH=`uname -p`
   case $ARCH in
    sparc)
      sharedJDK=$JDK/solsparc
      ;;
    i386)
      sharedJDK=$JDK/solx86
      ;;
   esac
   ;;
  Linux)
   sharedJDK=$JDK/linux-i386
   ARCH=linux
   ;;
esac

CLASSPATH=${JCK}/classes:${JCK}/javatest.jar
DISPLAY=${DISPLAY-$HOST:0.0}

if `echo $SWITCH|grep "\-d64" >/dev/null`; then
  LD_LIBRARY_PATH=${JCK}/lib/sparcv9
else
  LD_LIBRARY_PATH=${JCK}/lib/${ARCH}
fi
PATH=$JDK/bin:$sharedJDK/bin:$PATH
export PATH CLASSPATH DISPLAY LD_LIBRARY_PATH


echo
java ${SWITCH} -version
echo
java ${SWITCH} -verify -Xfuture -Djava.security.policy=${JCK}/lib/jck.policy -Djava.rmi.activation.port=${executeClass} ${executeClass} ${excludeCmd}  ${executeClassArgs} ${executeContextArgs} ${executeTestURL} 
----script end-----

Test output:
=============
java.lang.UnsatisfiedLinkError: Native Library /net/jtgb4u4c.eng/export/sail16/JCK/jck13afcs/JCK-runtime-13a/lib/sparc/libjckjni.so already loaded in another classloader
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1367)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1327)
        at java.lang.Runtime.loadLibrary0(Runtime.java:773)
        at java.lang.System.loadLibrary(System.java:830)
        at misc00101x.m(misc00101x.java:3)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:30)
        at sun.reflect.InflatableMethodAccessorImpl.invoke(InflatableMethodAccessorImpl.java:46)
        at java.lang.reflect.Method.invoke(Method.java:306)
        at javasoft.sqe.tests.vm.jni.misc001.misc00101.misc00101.run(misc00101.java:77)
        at javasoft.sqe.tests.vm.jni.misc001.misc00101.misc00101.main(misc00101.java:12)




Specific Machine Info:
=====================
sparc
-----
Hostname: jtg-s120
Hostid: 80b8bd5b
Release: 5.8
Kernel architecture: sun4u
Application architecture: sparc
Hardware provider: Sun_Microsystems
Domain: javasoft.eng.sun.com
Kernel version: SunOS 5.8 Generic February 2000
===========
Status of processor 0 as of: 03/08/01 16:59:13
  Processor has been on-line since 02/28/01 07:47:26.
  The sparcv9 processor operates at 360 MHz,
        and has a sparcv9 floating point processor.
Status of processor 2 as of: 03/08/01 16:59:13
  Processor has been on-line since 02/28/01 07:47:27.
  The sparcv9 processor operates at 360 MHz,
        and has a sparcv9 floating point processor.
===========
                           Solaris 8 s28_38shwp2 SPARC
           Copyright 2000 Sun Microsystems, Inc.  All Rights Reserved.
                            Assembled 21 January 2000
===========


intel
-----
Hostname: jtg-i116
Hostid: 2be09290
Release: 5.8
Kernel architecture: i86pc
Application architecture: i386
Hardware provider: 
Domain: javasoft.eng.sun.com
Kernel version: SunOS 5.8 Generic February 2000
===========
Status of processor 0 as of: 03/08/01 17:00:16
  Processor has been on-line since 03/06/01 11:45:06.
  The i386 processor operates at 600 MHz,
        and has an i387 compatible floating point processor.
Status of processor 1 as of: 03/08/01 17:00:16
  Processor has been on-line since 03/06/01 11:45:10.
  The i386 processor operates at 600 MHz,
        and has an i387 compatible floating point processor.
===========
                           Solaris 8 s28_38shwp2 INTEL
           Copyright 2000 Sun Microsystems, Inc.  All Rights Reserved.
                            Assembled 21 January 2000


Additional JCK related info:
============================
URL to find JCK test owners: http://javaweb.eng/jck/usr/owners.jto


*******************************************************************************
In addition to this description please attach the jtr file.

takwing.cheung@Eng 2001-03-08

Comments
EVALUATION The problem was caused by change of VM behavior, which exposed probable incorrectness in the test. When UnsatisfiedLinkError is thrown it is intercepted by the test and the test passes ok. According to Java Language specification it is wrong, the Error must not be intercepted, though Hotspot before build 51 allowed it. Ken is in talks with JCK team to sort things out. -------------- Even though 4428861 has a higher bug ID, has a more complete evaluation than this one, so closing this as a duplicate of that. kenneth.russell@eng 2001-03-27
27-03-2001