JDK-6963348 : After clicking the "Print" button,the case PrintWithoutPrinterTest.html crashes in jdk7 b98.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 5.0,7
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux_redhat_5.0,windows_xp
  • CPU: x86
  • Submitted: 2010-06-23
  • Updated: 2011-03-08
  • Resolved: 2011-01-14
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.
JDK 7
7Resolved
Related Reports
Duplicate :  
Description
Testsuite name:  AWT manual
JDK/JRE tested: 1.7.0b98 32bit(jdk-7-ea-bin-b98-linux-i586-17_jun_2010.bin)
OS/architecture:oel5.5-x64
Reproducible: Always
Reproducible on machine:
[If sometimes] Also reproducible on machine:
Is it a platform specific regression: N [If yes] Is it a new platform support:
N [If yes] Regression relative to OS version:
Is it a Regression :N
[If yes] Regression introduced in release/build:
Test result on FCS:

Test run log location: 

#Steps to reproduce:
1. Test case: AWT_Printing/Manual/PrintWithoutPrinter/PrintWithoutPrinterTest.html

2. Click the 'Print' button in the TestFrame.

3. If you get message 'ERROR'

   in the Messagebox of Instruction Dialog press
   'Assertion Fail' else press 'Assertion Pass'
 

#Actual behavior:
After clicking the "Print" button,the case crashes.The log file PrintWithoutPrinterTest.html.log is attached. 

#Exceptions:
None. 

#validation:
1.Same platform/1.7.0b97 32bit(jdk-7-ea-bin-b97-linux-i586-10_jun_2010.bin) :Fail
2.Same platform/6u21b05 32bit(jdk-6u21-ea-bin-b05-linux-i586-29_may_2010.bin) :Pass
3.Same build/opensolaris-sparc: Fail
add the case name for QARE:

AWT_Printing/Manual/PrintWithoutPrinter/PrintWithoutPrinterTest
Partial stack trace :

2010-06-23T04:27:21.41] java.lang.NullPointerException
[2010-06-23T04:27:25.79] 	at sun.awt.PlatformFont.makeMultiCharsetString(PlatformFont.java:154)
[2010-06-23T04:27:25.79] 	at sun.awt.PlatformFont.makeMultiCharsetString(PlatformFont.java:114)
[2010-06-23T04:27:25.79] 	at sun.print.PSPrinterJob.platformFontCount(PSPrinterJob.java:1167)
[2010-06-23T04:27:25.79] 	at sun.print.PSPathGraphics.platformFontCount(PSPathGraphics.java:150)
[2010-06-23T04:27:25.79] 	at sun.print.PathGraphics.printedSimpleGlyphVector(PathGraphics.java:853)
[2010-06-23T04:27:25.79] 	at sun.print.PathGraphics.drawGlyphVector(PathGraphics.java:650)
[2010-06-23T04:27:25.79] 	at sun.font.ExtendedTextSourceLabel.handleDraw(ExtendedTextSourceLabel.java:193)
[2010-06-23T04:27:25.79] 	at sun.font.Decoration.drawTextAndDecorations(Decoration.java:122)
[2010-06-23T04:27:25.79] 	at sun.font.ExtendedTextSourceLabel.draw(ExtendedTextSourceLabel.java:197)
[2010-06-23T04:27:25.79] 	at java.awt.font.TextLine.draw(TextLine.java:774)
[2010-06-23T04:27:25.79] 	at java.awt.font.TextLayout.draw(TextLayout.java:2638)
[2010-06-23T04:27:25.79] 	at sun.swing.SwingUtilities2.drawString(SwingUtilities2.java:509)
[2010-06-23T04:27:25.79] 	at sun.swing.SwingUtilities2.drawStringUnderlineCharAt(SwingUtilities2.java:584)
[2010-06-23T04:27:25.79] 	at javax.swing.plaf.basic.BasicGraphicsUtils.drawStringUnderlineCharAt(BasicGraphicsUtils.java:246)
[2010-06-23T04:27:25.79] 	at sun.awt.X11.XButtonPeer.paintText(XButtonPeer.java:307)
[2010-06-23T04:27:25.79] 	at sun.awt.X11.XButtonPeer.paint(XButtonPeer.java:263)
[2010-06-23T04:27:25.79] 	at sun.awt.X11.XButtonPeer.paint(XButtonPeer.java:91)
[2010-06-23T04:27:25.79] 	at sun.awt.X11.XComponentPeer.print(XComponentPeer.java:451)

Comments
EVALUATION Duplicate of 6943487: NPE in makeMultiCharsetString while printing on linux
14-01-2011

EVALUATION The stack trace shows problem is in PlatformFont so this is more a font issue. Re-assigning for further investigation.
06-01-2011