From owner-freebsd-java Tue Aug 10 20:36:13 1999 Delivered-To: freebsd-java@freebsd.org Received: from keywest.seanreilly.com (reillys.erols.com [207.96.124.186]) by hub.freebsd.org (Postfix) with ESMTP id A84AA14E58 for ; Tue, 10 Aug 1999 20:36:10 -0700 (PDT) (envelope-from sreilly@seanreilly.com) Received: from localhost (localhost.seanreilly.com [127.0.0.1]) by keywest.seanreilly.com (8.9.2/8.9.2) with ESMTP id XAA02197 for ; Tue, 10 Aug 1999 23:34:08 -0400 (EDT) (envelope-from sreilly@seanreilly.com) Date: Tue, 10 Aug 1999 23:34:08 -0400 (EDT) From: Sean Reilly To: freebsd-java@freebsd.org Subject: Error code 512 when printing Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Using JDK1.1.8 on FreeBSD-3.1-RELEASE, when I try an print anything from a java program directly to a printer, I just get a dialog that says "Error code 512:" and nothing prints. I can print to a file just fine, and then 'lpr' that file to the printer. The printer I am printing to works just fine (obviously, since lpr works). Is there a known workaround for this problem, or am I doing something wrong? Thanks, Sean To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Aug 10 20:49:35 1999 Delivered-To: freebsd-java@freebsd.org Received: from ns.mt.sri.com (ns.mt.sri.com [206.127.79.91]) by hub.freebsd.org (Postfix) with ESMTP id 154A415444 for ; Tue, 10 Aug 1999 20:49:18 -0700 (PDT) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.8/8.8.8) with SMTP id VAA27909; Tue, 10 Aug 1999 21:47:57 -0600 (MDT) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id VAA26597; Tue, 10 Aug 1999 21:47:57 -0600 Date: Tue, 10 Aug 1999 21:47:57 -0600 Message-Id: <199908110347.VAA26597@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Sean Reilly Cc: freebsd-java@FreeBSD.ORG Subject: Re: Error code 512 when printing In-Reply-To: References: X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Reply-To: nate@mt.sri.com (Nate Williams) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Using JDK1.1.8 on FreeBSD-3.1-RELEASE, when I try an print anything from a > java program directly to a printer, I just get a dialog that says "Error > code 512:" and nothing prints. How are you printing from your Java program? Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Aug 11 5:12: 6 1999 Delivered-To: freebsd-java@freebsd.org Received: from keywest.seanreilly.com (reillys.erols.com [207.96.124.186]) by hub.freebsd.org (Postfix) with ESMTP id 0E0FD154B4 for ; Wed, 11 Aug 1999 05:12:03 -0700 (PDT) (envelope-from sreilly@seanreilly.com) Received: from localhost (localhost.seanreilly.com [127.0.0.1]) by keywest.seanreilly.com (8.9.2/8.9.2) with ESMTP id IAA02795; Wed, 11 Aug 1999 08:11:35 -0400 (EDT) (envelope-from sreilly@seanreilly.com) Date: Wed, 11 Aug 1999 08:11:35 -0400 (EDT) From: Sean Reilly To: Nate Williams Cc: freebsd-java@FreeBSD.ORG Subject: Re: Error code 512 when printing In-Reply-To: <199908110347.VAA26597@mt.sri.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > Using JDK1.1.8 on FreeBSD-3.1-RELEASE, when I try an print anything from a > > java program directly to a printer, I just get a dialog that says "Error > > code 512:" and nothing prints. > > How are you printing from your Java program? I get a java.awt.PrintJob object via the toolkit's getPrintJob(Frame,String,Properties) method. Once I have the printjob, I call getGraphics() and draw directly to that graphics object. In case it helps, here are the properties that are being sent to the getPrintJob method call: awt.print.fileName=checks.ps awt.print.numCopies=1 awt.print.printer=lj5p awt.print.paperSize=letter awt.print.destination=file awt.print.orientation=portrait Again, everything works fine when I print to a file, and I can print from this machine just fine otherwise. In case it matters, lj5p is a remote printer on another freebsd machine. Printing using the linux JDK to this printer works fine as well. Thanks, Sean To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Aug 11 7:40:56 1999 Delivered-To: freebsd-java@freebsd.org Received: from ns.mt.sri.com (ns.mt.sri.com [206.127.79.91]) by hub.freebsd.org (Postfix) with ESMTP id 129DB156A7 for ; Wed, 11 Aug 1999 07:40:47 -0700 (PDT) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.8/8.8.8) with SMTP id IAA02971; Wed, 11 Aug 1999 08:40:29 -0600 (MDT) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id IAA27950; Wed, 11 Aug 1999 08:40:28 -0600 Date: Wed, 11 Aug 1999 08:40:28 -0600 Message-Id: <199908111440.IAA27950@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Sean Reilly Cc: Nate Williams , freebsd-java@FreeBSD.ORG Subject: Re: Error code 512 when printing In-Reply-To: References: <199908110347.VAA26597@mt.sri.com> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Reply-To: nate@mt.sri.com (Nate Williams) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > > Using JDK1.1.8 on FreeBSD-3.1-RELEASE, when I try an print anything from a > > > java program directly to a printer, I just get a dialog that says "Error > > > code 512:" and nothing prints. > > > > How are you printing from your Java program? > > I get a java.awt.PrintJob object via the toolkit's > getPrintJob(Frame,String,Properties) method. I don't know if this has ever been tested. I don't know if the Xprint stuff even works outside of java. Once I have the printjob, I > call getGraphics() and draw directly to that graphics object. In case it > helps, here are the properties that are being sent to the getPrintJob > method call: > > awt.print.fileName=checks.ps > awt.print.numCopies=1 > awt.print.printer=lj5p > awt.print.paperSize=letter > awt.print.destination=file > awt.print.orientation=portrait > > Again, everything works fine when I print to a file, and I can print from > this machine just fine otherwise. In case it matters, lj5p is a remote > printer on another freebsd machine. Printing using the linux JDK to this > printer works fine as well. Hmm, I don't know how this works at all, so I can't test it. Can you send a simple application that does what you want that demonstrates the problem? Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Aug 12 13:51:19 1999 Delivered-To: freebsd-java@freebsd.org Received: from ns.mt.sri.com (ns.mt.sri.com [206.127.79.91]) by hub.freebsd.org (Postfix) with ESMTP id A6BDF15040 for ; Thu, 12 Aug 1999 13:51:14 -0700 (PDT) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.8/8.8.8) with SMTP id OAA19531; Thu, 12 Aug 1999 14:50:37 -0600 (MDT) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id OAA07322; Thu, 12 Aug 1999 14:50:36 -0600 Date: Thu, 12 Aug 1999 14:50:36 -0600 Message-Id: <199908122050.OAA07322@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Greg Lynn Cc: java@freebsd.org Subject: Re: List problems using the appletviewer in JDK1.1.8 In-Reply-To: References: X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Reply-To: nate@mt.sri.com (Nate Williams) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org [ Moved to freebsd-java ] > I have found (this may be an old bug) that the following > code: > > // Fill List > for( fill list up with 1000 strings ) > list.add(string); > > // Then delete all entries from List > list.setVisible(false); > list.removeAll(); > list.setVisible(true); > > causes the redraw on the List to still happen even though setVisible() > is set. If I use the appletviewer that's in jdk1.1.6 it will > work great but it seems to redraw using the viewer in 1.1.8. > Any suggestions? I use Lists *extensively* within my applets :-| Have you tried this on Solaris or any other OS to see if this is a generic JDK1.1.8 bug? Did you check on the JDC? Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Fri Aug 13 18:28:10 1999 Delivered-To: freebsd-java@freebsd.org Received: from mtiwmhc03.worldnet.att.net (mtiwmhc03.worldnet.att.net [204.127.131.38]) by hub.freebsd.org (Postfix) with ESMTP id 9539914E7C for ; Fri, 13 Aug 1999 18:28:07 -0700 (PDT) (envelope-from kfurge@worldnet.att.net) Received: from kfurge.dyn.ez-ip.net ([12.75.197.245]) by mtiwmhc03.worldnet.att.net (InterMail v03.02.07.07 118-134) with ESMTP id <19990814012511.CVOT2068@kfurge.dyn.ez-ip.net>; Sat, 14 Aug 1999 01:25:11 +0000 Received: from localhost (localhost [127.0.0.1]) by kfurge.dyn.ez-ip.net (8.8.8/8.8.5) with SMTP id UAA19661; Fri, 13 Aug 1999 20:15:36 -0500 (EST) From: kfurge@worldnet.att.net Date: Fri, 13 Aug 1999 20:15:36 -0500 (EST) X-Sender: kfurge@kcfhome.my.domain To: Nate Williams Cc: Sean Reilly , freebsd-java@FreeBSD.ORG Subject: Re: Error code 512 when printing In-Reply-To: <199908111440.IAA27950@mt.sri.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, 11 Aug 1999, Nate Williams wrote: > I don't know if this has ever been tested. I don't know if the Xprint > stuff even works outside of java. FWIW, it worked at one time. I developed a program that did some printing a while back (well over 1 yr ago). I can't remember exactly which jdk I developed it under, but whichever one it was printing worked OK at that time. I'm thinking it was pre 1.1.5 or so. Some time later I upgraded to 1.1.7 and the printing began doing to me exactly what Sean is reporting: works fine if printing to a file, doesn't print or gives the "Error 512" if printing directly to the printer. To give a rough time reference for when it was working, I developed my application with the beta Swing classes and Swing 1.0 was released just about the time I was finished. - K.C. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sat Aug 14 10: 4:26 1999 Delivered-To: freebsd-java@freebsd.org Received: from ns.mt.sri.com (ns.mt.sri.com [206.127.79.91]) by hub.freebsd.org (Postfix) with ESMTP id 370E21522B for ; Sat, 14 Aug 1999 10:04:22 -0700 (PDT) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.8/8.8.8) with SMTP id LAA12832; Sat, 14 Aug 1999 11:04:16 -0600 (MDT) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id LAA15615; Sat, 14 Aug 1999 11:04:15 -0600 Date: Sat, 14 Aug 1999 11:04:15 -0600 Message-Id: <199908141704.LAA15615@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: kfurge@worldnet.att.net Cc: Nate Williams , Sean Reilly , freebsd-java@FreeBSD.ORG Subject: Re: Error code 512 when printing In-Reply-To: References: <199908111440.IAA27950@mt.sri.com> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Reply-To: nate@mt.sri.com (Nate Williams) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > I don't know if this has ever been tested. I don't know if the Xprint > > stuff even works outside of java. > > FWIW, it worked at one time. I developed a program that did some printing > a while back (well over 1 yr ago). I can't remember exactly which jdk I > developed it under, but whichever one it was printing worked OK at that > time. I'm thinking it was pre 1.1.5 or so. Some time later I upgraded to > 1.1.7 and the printing began doing to me exactly what Sean is reporting: > works fine if printing to a file, doesn't print or gives the "Error 512" > if printing directly to the printer. We find out why it quit working. Turn off banner creation. It turns out that the JDK has SysV (Solaris) printing hard-coded into the system, so the JDK uses /usr/bin/lp (vs. /usr/bin/lpr). Our lp emulator only supports the Posix features, and apparently Banner pages are not Posix specified, so the banner support in the JDK screws up printing. If you turn off banners, it should work fine. We're trying to figure out how best to solve this. The best solutions involves modifying the classes.zip file, but then you can no longer use the stock class files from other Java releases. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message