-
Bug
-
Resolution: Fixed
-
P2
-
1.4.0
-
beta2
-
x86, sparc
-
generic, linux
-
Verified
Name: iaR10016 Date: 07/18/2001
JDK : JDK1.4.0-beta-b72
JCK : JCK1.4-b06
Platform[s] : RedHat Linux 6.2
switch/Mode : The test fails when running in headless mode (-Djava.awt.headless=true)
JCK test owner : http://javaweb.eng/jck/usr/owners.jto
Failing Test : api/javax_swing/JPasswordField/descriptions.html#setgetXXX
[TestCaseID JPasswordField3014, JPasswordField3015]
Test source location:
=====================
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/javax_swing/JPasswordField/setgetXXXTests.java
jtr file location:
==================
/net/jtgb4u4c.eng/export/sail16/results/merlin/b71/jck14/linux/redhat7.1_smp_gnomeclient_headless_linux-24/workDir/api/javax_swing/JPasswordField/descriptions_setgetXXX.jtr
How to reproduce:
====================
Run the following script under RedHat Linux 6.2
(probably, you need to change JCK and JAVA_HOME paths):
--------Script START---------------------
#!/bin/sh
JAVA_HOME=/net/jdk/export/disk8/local.java/jdk1.4/linux-i386
JCK=/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14
export CLASSPATH="$JCK/classes:$JCK/javatest.jar"
executeClass="javasoft.sqe.tests.api.javax.swing.JPasswordField.setgetXXXTests -TestCaseID JPasswordField3014 JPasswordField3015"
$JAVA_HOME/bin/java -Djava.awt.headless=true -Xfuture ${executeClass}
---------Script END----------------------
Test output:
=============
java.lang.NullPointerException
at javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.importData(BasicTextUI.java:2190)
at javax.swing.TransferHandler$TransferAction.actionPerformed(TransferHandler.java:792)
at javax.swing.text.JTextComponent.invokeAction(JTextComponent.java:1138)
at javax.swing.text.JTextComponent.paste(JTextComponent.java:1116)
at javasoft.sqe.tests.api.javax.swing.JPasswordField.setgetXXXTests.JPasswordField3014(setgetXXXTests.java:249)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Method.java:311)
at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:407)
at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:203)
at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:135)
at javasoft.sqe.tests.api.javax.swing.JPasswordField.setgetXXXTests.main(setgetXXXTests.java:35)
JPasswordField3014: Failed. Test case throws exception: java.lang.NullPointerException
java.lang.NullPointerException
at javax.swing.plaf.basic.BasicTextUI$TextTransferHandler.importData(BasicTextUI.java:2190)
at javax.swing.TransferHandler$TransferAction.actionPerformed(TransferHandler.java:792)
at javax.swing.text.JTextComponent.invokeAction(JTextComponent.java:1138)
at javax.swing.text.JTextComponent.paste(JTextComponent.java:1116)
at javasoft.sqe.tests.api.javax.swing.JPasswordField.setgetXXXTests.JPasswordField3015(setgetXXXTests.java:271)
at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Method.java:311)
at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:407)
at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:203)
at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:135)
at javasoft.sqe.tests.api.javax.swing.JPasswordField.setgetXXXTests.main(setgetXXXTests.java:35)
JPasswordField3015: Failed. Test case throws exception: java.lang.NullPointerException
====== JPasswordField3014 ====== public void cut()
====== JPasswordField3015 ====== public void copy()
STATUS:Failed.tests: 2; failed: 2; first test case failure: JPasswordField3014
Specific Machine Info:
=====================
Hostname: linux-14
OS: RedHat Linux 6.2
======================================================================