-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.2.2
-
x86
-
windows_95
Name: skT88420 Date: 11/09/99
java version "1.2.2"
Classic VM (build JDK-1.2.2-W, native threads, symcjit)
PROBLEM:
We cannot print with java.awt.PrinterJob from Windows 95 on a Novell network,
using an HP Laserjet. The program crashes with the following error:
SPECIFIC ERROR:
JAVA caused an exception 10H in module JVM.DLL at 014f:504d8f1e.
Registers:
EAX=00000095 CS=014f EIP=504d8f1e EFLGS=00010216
EBX=00000001 SS=0157 ESP=0063fd30 EBP=00650368
ECX=00000001 DS=0157 ESI=007131de FS=463f
EDX=00650370 ES=0157 EDI=006503a0 GS=0000
Bytes at CS:EIP:
d8 5f fc 83 ef 08 83 c0 02 eb 15 89 1f 83 c7 04
Stack dump:
00000300 00705608 006500cc 00760a10 007123e8 006500cc 1f701370 504aabbe 0063fd74
00760a10 00705608 006500c0 00000000 504914e7 8a800a10 00000000
JAVA ENVIRONMENT:
The problem occurs under both jdk 1.2.2 and jre 1.2.2.
NETWORK ENVIRONMENT:
Network : Novell NetWare 4.11, Service Pack 5, IPX protocol only
Printer: HP Laserjet 5 (with JetDirect, product J2556B, option ABA)
WORKSTATIONS THAT CRASH:
Workstation #1: HP, Windows 95 version 4.00.950 B, Novell Client 3.1.0, 64MB
RAM, Pentium II 266 mhz, 3COM 3C905B-TX operating at 10 Base-T, Newest HP
Laserjet printer driver (LJ620EN)
Workstation #2: Compaq, Windows 95 version 4.00.950 B, Novell Client 3.01, 64MB
RAM, Pentium 200 mhz, 3COM 3C905B-TX operating at 10 Base-T, Newest HP Laserjet
printer driver (LJ620EN)
Workstation #3: Compaq, Windows 95 version 4.00.950 B, Novell Client 32, 64MB
RAM, Pentium 200 mhz, 3COM 3C905B-TX operating at 10 Base-T, ORIGINAL HP
Laserjet 5 drivers version 1.01.
WORKSTATIONS THAT DO NOT CRASH:
Workstation #1: Compaq, Windows NT 4.0 service pack 4, 256MB RAM, Pentium III
550 mhz, Compaq on-board NIC, Newest Laserjet printer driver for NT (LJ101EN)
and Novell Client for NT version 4.60.
Workstation #2: Compaq, Windows 95 version 4.00.950 B, no network clients
(stand-alone machine), 192 MB RAM, Pentium II 300 mhz, Epson 800 Color Printer
(HP printer drivers are installed, but they are not the default printer).
CODE THAT CRASHES:
The following program (and all others) crash. This program was taken from
http://java.sun.com/printing/jdk1.2/printing-chapter-v2.txt:
import java.awt.*;
import java.awt.print.*;
public class SimplePrint implements Printable {
private static Font fnt = new Font("Helvetica", Font.PLAIN, 24);
public static void main(String[] args) {
// Obtain PrinterJob
PrinterJob job = PrinterJob.getPrinterJob();
// Set orientation
// Specify the Printable is an instance of SimplePrint
job.setPrintable(new SimplePrint());
// Put up dialog box
if (job.printDialog()) {
// Print the job if the user does not cancel
try {
job.print();
}
catch (Exception e) {
}
}
System.exit(0);
}
public int print(Graphics g, PageFormat pf, int pageIndex)
throws PrinterException {
// pageIndex 0 to 4 corresponds to page numbers 1 to 5
if (pageIndex >= 5) return Printable.NO_SUCH_PAGE;
g.setFont(fnt);
g.setColor(Color.green);
g.drawString("Page " + (pageIndex + 1), 100, 100);
return Printable.PAGE_EXISTS;
}
}
(Review ID: 97644)
======================================================================
- duplicates
-
JDK-4274071 BeanBox can't load jars and crashes with JDK-1.3fcs-G on Windows 95
- Closed