From owner-freebsd-java@FreeBSD.ORG Thu May 27 13:00:16 2010 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1032D1065673 for ; Thu, 27 May 2010 13:00:16 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (unknown [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E0E488FC12 for ; Thu, 27 May 2010 13:00:15 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o4RD0FAX043988 for ; Thu, 27 May 2010 13:00:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o4RD0FR9043987; Thu, 27 May 2010 13:00:15 GMT (envelope-from gnats) Resent-Date: Thu, 27 May 2010 13:00:15 GMT Resent-Message-Id: <201005271300.o4RD0FR9043987@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-java@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Dr. Andreas Haakh" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A5E1D106566B for ; Thu, 27 May 2010 12:53:14 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 7A7FE8FC19 for ; Thu, 27 May 2010 12:53:14 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o4RCrDxO057252 for ; Thu, 27 May 2010 12:53:13 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o4RCrDa2057251; Thu, 27 May 2010 12:53:13 GMT (envelope-from nobody) Message-Id: <201005271253.o4RCrDa2057251@www.freebsd.org> Date: Thu, 27 May 2010 12:53:13 GMT From: "Dr. Andreas Haakh" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: java/147129: Printing to cups-network-printer fails with null-pointer-exception X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 May 2010 13:00:16 -0000 >Number: 147129 >Category: java >Synopsis: Printing to cups-network-printer fails with null-pointer-exception >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-java >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu May 27 13:00:15 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Dr. Andreas Haakh >Release: 8.0-STABLE >Organization: Ingenieurbüro Haakh >Environment: FreeBSD Crabberio.Haakh.de 8.0-STABLE FreeBSD 8.0-STABLE #46: Thu Apr 22 12:44:27 CEST 2010 root@Crabberio.Haakh.de:/usr/obj/usr/src/sys/CRABBERIO amd64 >Description: Trying to print to causes: Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: null attribute at sun.print.IPPPrintService.isAttributeValueSupported(IPPPrintService.java:1147) at sun.print.ServiceDialog$OrientationPanel.updateInfo(ServiceDialog.java:2121) at sun.print.ServiceDialog$PageSetupPanel.updateInfo(ServiceDialog.java:1263) at sun.print.ServiceDialog.updatePanels(ServiceDialog.java:437) at sun.print.ServiceDialog.initPrintDialog(ServiceDialog.java:195) at sun.print.ServiceDialog.(ServiceDialog.java:124) at javax.print.ServiceUI.printDialog(ServiceUI.java:188) at sun.print.RasterPrinterJob.printDialog(RasterPrinterJob.java:855) at com.haakh.stwWV.StwGuiWV.jMenuItemPrintActionPerformed(StwGuiWV.java:438) StwGuiWV.java contains: 434 try { 435 pj.setPrintService(services[0]); 436 pj.setJobName("Druckausgabe"); 437 pj.setPrintable(printable); 438 if (pj.printDialog(aset)==false) { 439 return; 440 } 441 pj.print(aset); 442 } catch (java.awt.print.PrinterException pe) { ... } javax.print.PrintService[] services contains two valid network-printers: hp laserjet 2200d Lexmark c543dn It seems that in PrintServise, the orientation of the pages are undefined. Neither explicit nor implicit. Ports related are: /var/db/pkg/jdk-1.6.0.3p4_15/ /var/db/pkg/cups-base-1.4.3 /var/db/pkg/cups-client-1.4.3 /var/db/pkg/cups-image-1.4.3 /var/db/pkg/cups-pstoraster-8.15.4_6 >How-To-Repeat: Set up an cups printing-environment containing only network-printers. Try to print to them (see code above). >Fix: Define page-orientation in pps-Fils or teach cups or java-vm to provide a default. >Release-Note: >Audit-Trail: >Unformatted: