JDK-4781685 : JCK1.4a-runtime api/javax_swing/CellRendererPane/AccessibleCellRendererPane/inde
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 1.4.2
  • Priority: P1
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris_9
  • CPU: sparc
  • Submitted: 2002-11-20
  • Updated: 2002-12-17
  • Resolved: 2002-12-09
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.2 b10Fixed
Related Reports
Relates :  
Description

Name: kaR10181			Date: 11/20/2002


Filed By       : J2SE-SQA [###@###.###
JDK            : JDK1.4.2-b07
JCK            : JCK1.4a-runtime
Platform[s]    : Solaris 9 (sparc) (CDE)
switch/Mode    : -Djava.awt.headless=true
JCK test owner : http://javaweb.eng/jck/usr/owners.jto
Falling test[s]: 313 JCK tests fail due to this bug. For example:

api/javax_swing/CellRendererPane/AccessibleCellRendererPane/index.html#AccessibleComponent

Test source location:
=====================
/java/re/jck/1.4a/promoted/fcs/binaries/JCK-runtime-14a/tests/api/javax_swing/CellRendererPane/AccessibleCellRendererPane/AccessibleComponentTests.java

jtr file location:
==================
/net/jtgb4u4c.eng/export/sail15/results/mantis/b07/jck14a/sparc/sol9_sparc_client_novo48/javax_swing/CellRendererPane/AccessibleCellRendererPane/index_AccessibleComponent.jtr

How to reproduce:
=================
Run the following script (you may need to change its variables)

--- script start ---
#!/bin/bash

JCK="/net/linux-15/export/home/java/jck1.4a/JCK-runtime-14a"
JDK="/net/linux-15/export/home/java/jdk1.4.2/sparc"
switches="-Djava.awt.headless=true"
CLASSPATH="$JCK/classes:$JCK/javatest.jar"

$JDK/bin/java $switches -cp $CLASSPATH javasoft.sqe.tests.api.javax.swing.JEditorPane.CtorTests
-TestURL file://$JCK/tests/api/javax_swing/JEditorPane/index.html#Ctor -TestWorkDirURL  file:///

--- script end ---

Test output:
============
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0xF1D92444
Function=[Unknown. Nearest: Java_sun_awt_font_NativeFontWrapper_getFontMetrics+0x2064]
Library=/net/linux-15/export/home/java/jdk1.4.2/sparc/jre/lib/sparc/libfontmanager.so

Current Java thread:
         at sun.awt.font.NativeFontWrapper.getFontMetrics(Native Method)
         - locked <0xf62468f8> (a java.lang.Class)
         at sun.awt.font.FontDesignMetrics.initMatrixAndMetrics(FontDesignMetrics.java:175)
         at sun.awt.font.FontDesignMetrics.<init>(FontDesignMetrics.java:160)
         at sun.awt.font.FontDesignMetrics.<init>(FontDesignMetrics.java:145)
         at sun.awt.SunToolkit.getFontMetrics(SunToolkit.java:402)
         at sun.awt.motif.MToolkit.getFontMetrics(MToolkit.java:343)
         at sun.awt.HeadlessToolkit.getFontMetrics(HeadlessToolkit.java:364)
         at javax.swing.text.GlyphPainter1.sync(GlyphPainter1.java:204)
         at javax.swing.text.GlyphPainter1.getSpan(GlyphPainter1.java:42)
         at javax.swing.text.GlyphView.getTabbedSpan(GlyphView.java:261)
         at javax.swing.text.FlowView$FlowStrategy.layoutRow(FlowView.java:455)
         at javax.swing.text.FlowView$FlowStrategy.layout(FlowView.java:404)
         at javax.swing.text.FlowView$FlowStrategy.insertUpdate(FlowView.java:326)
         at javax.swing.text.FlowView.loadChildren(FlowView.java:124)
         at javax.swing.text.CompositeView.setParent(CompositeView.java:122)
         at javax.swing.text.html.ParagraphView.setParent(ParagraphView.java:58)
         at javax.swing.text.CompositeView.replace(CompositeView.java:200)
         at javax.swing.text.BoxView.replace(BoxView.java:164)
         at javax.swing.text.CompositeView.loadChildren(CompositeView.java:97)
         at javax.swing.text.CompositeView.setParent(CompositeView.java:122)
         at javax.swing.text.html.BlockView.setParent(BlockView.java:55)
         at javax.swing.text.html.HTMLEditorKit$HTMLFactory$BodyBlockView.setParent(HTMLEditorKit.java:1266)
         at javax.swing.text.CompositeView.replace(CompositeView.java:200)
         at javax.swing.text.BoxView.replace(BoxView.java:164)
         at javax.swing.text.CompositeView.loadChildren(CompositeView.java:97)
         at javax.swing.text.CompositeView.setParent(CompositeView.java:122)
         at javax.swing.text.html.BlockView.setParent(BlockView.java:55)
         at javax.swing.plaf.basic.BasicTextUI$RootView.setView(BasicTextUI.java:1214)
         at javax.swing.plaf.basic.BasicTextUI.setView(BasicTextUI.java:593)
         at javax.swing.plaf.basic.BasicTextUI.modelChanged(BasicTextUI.java:581)
         at javax.swing.plaf.basic.BasicTextUI$UpdateHandler.propertyChange(BasicTextUI.java:1668)
         at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:264)
         at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:232)
         at javax.swing.JComponent.firePropertyChange(JComponent.java:3822)
         at javax.swing.text.JTextComponent.setDocument(JTextComponent.java:382)
         at javax.swing.JEditorPane.setEditorKit(JEditorPane.java:945)
         at javax.swing.JEditorPane.setContentType(JEditorPane.java:871)
         at javax.swing.JEditorPane.getStream(JEditorPane.java:696)
         at javax.swing.JEditorPane.setPage(JEditorPane.java:392)
         at javax.swing.JEditorPane.<init>(JEditorPane.java:236)
         at javasoft.sqe.tests.api.javax.swing.JEditorPane.CtorTests.JEditorPane2002(CtorTests.java:69)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:399)
         at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:195)
         at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:127)
         at javasoft.sqe.tests.api.javax.swing.JEditorPane.CtorTests.main(CtorTests.java:29)

Dynamic libraries:
0x10000         /net/linux-15/export/home/java/jdk1.4.2/sparc/bin/java
0xff370000      /usr/lib/libthread.so.1
0xff3a0000      /usr/lib/libdl.so.1
0xff280000      /usr/lib/libc.so.1
0xff350000      /usr/platform/SUNW,Ultra-60/lib/libc_psr.so.1
0xfec00000      /net/linux-15/export/home/java/jdk1.4.2/sparc/jre/lib/sparc/client/libjvm.so
0xff240000      /usr/lib/libCrun.so.1
0xff210000      /usr/lib/libsocket.so.1
0xff100000      /usr/lib/libnsl.so.1
0xff1e0000      /usr/lib/libm.so.1
0xff1c0000      /usr/lib/libsched.so.1
0xff360000      /usr/lib/libw.so.1
0xff0d0000      /usr/lib/libmp.so.2
0xff0b0000      /usr/lib/librt.so.1
0xff090000      /usr/lib/libaio.so.1
0xff060000      /usr/lib/libmd5.so.1
0xff040000      /usr/platform/SUNW,Ultra-60/lib/libmd5_psr.so.1
0xff010000      /net/linux-15/export/home/java/jdk1.4.2/sparc/jre/lib/sparc/native_threads/libhpi.so
0xfebb0000      /net/linux-15/export/home/java/jdk1.4.2/sparc/jre/lib/sparc/libverify.so
0xfeb60000      /net/linux-15/export/home/java/jdk1.4.2/sparc/jre/lib/sparc/libjava.so
0xfeb40000      /net/linux-15/export/home/java/jdk1.4.2/sparc/jre/lib/sparc/libzip.so
0xfa080000      /net/linux-15/export/home/java/jdk1.4.2/sparc/jre/lib/sparc/libawt.so
0xfcd80000      /net/linux-15/export/home/java/jdk1.4.2/sparc/jre/lib/sparc/libmlib_image.so
0xfcfc0000      /net/linux-15/export/home/java/jdk1.4.2/sparc/jre/lib/sparc/head
less/libmawt.so
0xf1d80000      /net/linux-15/export/home/java/jdk1.4.2/sparc/jre/lib/sparc/libfontmanager.so

Heap at VM Abort:
Heap
  def new generation   total 2112K, used 1971K [0xf2000000, 0xf2220000, 0xf2710000)
   eden space 2048K,  93% used [0xf2000000, 0xf21dcfb0, 0xf2200000)
   from space 64K, 100% used [0xf2210000, 0xf2220000, 0xf2220000)
   to   space 64K,   0% used [0xf2200000, 0xf2200000, 0xf2210000)
  tenured generation   total 1408K, used 727K [0xf2710000, 0xf2870000, 0xf6000000)
    the space 1408K,  51% used [0xf2710000, 0xf27c5d50, 0xf27c5e00, 0xf2870000)
  compacting perm gen  total 4096K, used 3915K [0xf6000000, 0xf6400000, 0xfa000000)
    the space 4096K,  95% used [0xf6000000, 0xf63d2c58, 0xf63d2e00, 0xf6400000)

Local Time = Wed Nov 20 16:27:46 2002
Elapsed Time = 2
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2-beta-b07 mixed mode)
#
# An error report file has been saved as hs_err_pid8633.log.
# Please refer to the file for further information.
#
/home/akm/tt: line 8:  8633 Abort                   (core dumped) $JDK/bin/java $switches -cp $CLASSPATH javasoft.sqe.tests.api.javax.swing.JEditorPane.CtorTests -TestURL 
file://$JCK/tests/api/javax_swing/JEditorPane/index.html#Ctor -TestWorkDirURL file:///


Specific machine info:
======================
Hostname: novo48
OS: Solaris 9 (sparc) (CDE)


======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mantis-beta FIXED IN: mantis-beta INTEGRATED IN: mantis-b10 mantis-beta VERIFIED IN: mantis-beta
14-06-2004

WORK AROUND Remove switches="-Djava.awt.headless=true"
11-06-2004

EVALUATION It appears "-Djava.awt.headless=true" on Solaris 9 is causing this to fail. When I removed it test worked fine. Please see comments of stack trace. Its related to headless state. i've attached a doit.sh script. Need to change pointer to your JCK or JDK, but it should work from my location fine. I've commented out the headless flag in script. To make test fail uncomment switches line. This does not appear to be a runtime bug at this time. ###@###.### 2002-11-20 Caused by change in font.properties. ###@###.### 2002-11-20 I can also reproduce this on my Solaris 7 box. When I comment out the remapping of the zapfdingbats font in the font.properties file, the crash disappears. I'm guessing that this is related to us not finding the font path for the F3 font when in headless mode. We do seem to be triggering a load of all fonts. ###@###.### 2002-11-20 This regression was caused by the fix for 4321790. The problem is that in headless mode, we don't have access to the X11 font scaler but T2K cannot read F3 fonts. So the scaler is set to null and we crash. ###@###.### 2002-11-21
21-11-2002