JDK-6957699 : Case of PrintServiceFormatData.java fails with java.lang.NullPointerException in JDK7
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris,solaris_10
  • CPU: sparc
  • Submitted: 2010-06-02
  • Updated: 2011-03-08
  • Resolved: 2011-01-14
Related Reports
Duplicate :  
Duplicate :  
Description
Testsuite name: 2D

JDK/JRE tested: jdk7b94 (jdk-7-ea-bin-b94-solaris-sparc-20_may_2010.sh)

OS/architecture: solaris10-sparc

Reproducible: Always

Reproducible on machine:
Test run log location: http://jsqalab.sfbay.sun.com/results/Evergreen/7/automation/7b94/2d/automation/solaris10-sparc/Standalone_2d_2010_05_25_17_19_30/root.SunOS.sparc/

 

Steps to reproduce:

launch test case of  2D_PrintingMerlin/Automated/PrintServiceFormatData/PrintServiceFormatData.java

 

Actual behavior:

PrintServiceFormatData.java fails with java.lang.NullPointerException.

 

For jdk7b94, it fails over sles11-x64, passed over win7-x64.

For jdk7b95(32bit), it fails over rhel5.5-x64 and opensolaris-x64, passed over win2008-r2-x64.

For jdk6u21b04 it passed.
test name: 2D_PrintingMerlin/PrintServiceFormatData

Comments
EVALUATION The log shows that its another duplicate of 6943487: NPE in makeMultiCharsetString while printing on linux Note: Recompile with -Xlint:deprecation for details. java.lang.NullPointerException at sun.awt.PlatformFont.makeMultiCharsetString(PlatformFont.java:154) at sun.awt.PlatformFont.makeMultiCharsetString(PlatformFont.java:114) at sun.print.PSPrinterJob.textOut(PSPrinterJob.java:1201) at sun.print.PSPathGraphics.drawString(PSPathGraphics.java:228) at sun.print.PSPathGraphics.drawString(PSPathGraphics.java:140) at sun.print.PSPathGraphics.drawString(PSPathGraphics.java:114) at Print.paint(PrintServiceFormatData.java:436) at Print.print(PrintServiceFormatData.java:478) at sun.print.RasterPrinterJob.printPage(RasterPrinterJob.java:2008) at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1457) at sun.print.UnixPrintJob.pageableJob(UnixPrintJob.java:661) at sun.print.UnixPrintJob.print(UnixPrintJob.java:477) at PrintServiceFormatData.print(PrintServiceFormatData.java:208) at PrintServiceFormatData.start(PrintServiceFormatData.java:148) at javasoft.clientsqe.tonga.TongaAppletTest.invokeTest(TongaAppletTest.java:72) at javasoft.clientsqe.tonga.TTBuilder.main(TTBuilder.java:116) java.lang.NullPointerException at sun.awt.PlatformFont.makeMultiCharsetString(PlatformFont.java:154) at sun.awt.PlatformFont.makeMultiCharsetString(PlatformFont.java:114) at sun.print.PSPrinterJob.textOut(PSPrinterJob.java:1201) at sun.print.PSPathGraphics.drawString(PSPathGraphics.java:228) at sun.print.PSPathGraphics.drawString(PSPathGraphics.java:140) at sun.print.PSPathGraphics.drawString(PSPathGraphics.java:114) at DisplayImages.drawDemo(PrintServiceFormatData.java:698) at DisplayImages.paint(PrintServiceFormatData.java:750) at DisplayImages.print(PrintServiceFormatData.java:741) at sun.print.RasterPrinterJob.printPage(RasterPrinterJob.java:2008) at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1457) at sun.print.UnixPrintJob.printableJob(UnixPrintJob.java:636) at sun.print.UnixPrintJob.print(UnixPrintJob.java:493) at PrintServiceFormatData.print(PrintServiceFormatData.java:198) at PrintServiceFormatData.start(PrintServiceFormatData.java:148) at javasoft.clientsqe.tonga.TongaAppletTest.invokeTest(TongaAppletTest.java:72) at javasoft.clientsqe.tonga.TTBuilder.main(TTBuilder.java:116) java.lang.RuntimeException: <br>FAIL: Following exception thrown while trying to print images with different representation classes: java.lang.NullPointerException<br>FAIL: Following exception thrown while trying to print images with different representation classes: java.lang.NullPointerException at PrintServiceFormatData.destroy(PrintServiceFormatData.java:89) at javasoft.clientsqe.tonga.TongaAppletTest.destroy(TongaAppletTest.java:98) at javasoft.clientsqe.tonga.TTBuilder.main(TTBuilder.java:131)
14-01-2011