• Post Reply Bookmark Topic Watch Topic
  • New Topic

print causes jre crash  RSS feed

 
Bernard Grimshaw
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an application program written in java version 1.3 which prints fine on many networks but on one site I have a JRE crash whenever the user tries to print. The are using version 1.5 which I have tested on elsewhere and found to be OK with my print routines. I have attached the error report as I don't know enough to understand its meaning. Any help would be greatly appreciated

Many Thanks
Bernard

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0c4110a6, pid=3360, tid=2528
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode, sharing)
# Problematic frame:
# C [CPC10S.DLL+0x110a6]
#

--------------- T H R E A D ---------------

Current thread (0x02c8dbc0): JavaThread "AWT-EventQueue-0" [_thread_in_native, id=2528]

siginfo: ExceptionCode=0xc0000005, reading address 0x0000000a

Registers:
EAX=0x00000000, EBX=0x02fbf130, ECX=0x000c65d8, EDX=0x035e3118
ESP=0x02fbe88c, EBP=0x02fbe890, ESI=0x000c65d8, EDI=0x00000000
EIP=0x0c4110a6, EFLAGS=0x00010206

Top of Stack: (sp=0x02fbe88c)
0x02fbe88c: 0c41108f 02fbe8d0 71b725a5 035e3118
0x02fbe89c: 000c65d8 00000003 77c84948 035e3118
0x02fbe8ac: 00000001 02fbf130 000bed28 00000000
0x02fbe8bc: 00000001 00000000 00000001 00000000
0x02fbe8cc: 00000000 02fbf120 77d6e115 00000000
0x02fbe8dc: 02fbe8e8 00000004 00000000 00000000
0x02fbe8ec: 00000000 00000000 00000000 00000000
0x02fbe8fc: 00000000 00000000 00000000 00000000

Instructions: (pc=0x0c4110a6)
0x0c411096: 75 0c 85 f6 75 04 33 c0 eb 43 8b 86 d4 00 00 00
0x0c4110a6: 8b 48 0a 8b 40 0e 57 ff b6 48 01 00 00 50 51 ff


Stack: [0x02f80000,0x02fc0000), sp=0x02fbe88c, free space=250k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [CPC10S.DLL+0x110a6]
C [Cnp50M_D6E80.DLL+0x725a5]
C [USER32.dll+0x2e115]
C [ntdll.dll+0x25da3]
C [awt.dll+0xdb0df]
j sun.awt.windows.WPrinterJob._startDoc(Ljava/lang/String;)V+0
j sun.awt.windows.WPrinterJob.startDoc()V+5
j sun.print.RasterPrinterJob.print(Ljavax/print/attribute/PrintRequestAttributeSet;)V+251
j sun.print.RasterPrinterJob.print()V+5
j coriolis1_1b.ProdDatIn2Prime.jButton31_actionPerformed(Ljava/awt/event/ActionEvent;)V+45
j coriolis1_1b.ProdDatIn2Prime$81.actionPerformed(Ljava/awt/event/ActionEvent;)V+5
j javax.swing.AbstractButton.fireActionPerformed(Ljava/awt/event/ActionEvent;)V+84
j javax.swing.AbstractButton$Handler.actionPerformed(Ljava/awt/event/ActionEvent;)V+5
j javax.swing.DefaultButtonModel.fireActionPerformed(Ljava/awt/event/ActionEvent;)V+35
j javax.swing.DefaultButtonModel.setPressed(Z)V+117
j javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Ljava/awt/event/MouseEvent;)V+35
j java.awt.Component.processMouseEvent(Ljava/awt/event/MouseEvent;)V+64
j javax.swing.JComponent.processMouseEvent(Ljava/awt/event/MouseEvent;)V+23
J java.awt.Component.processEvent(Ljava/awt/AWTEvent;)V
J java.awt.Container.processEvent(Ljava/awt/AWTEvent;)V
J java.awt.Component.dispatchEventImpl(Ljava/awt/AWTEvent;)V
J java.awt.Container.dispatchEventImpl(Ljava/awt/AWTEvent;)V
J java.awt.LightweightDispatcher.retargetMouseEvent(Ljava/awt/Component;ILjava/awt/event/MouseEvent;)V
v ~RuntimeStub::alignment_frame_return Runtime1 stub
j java.awt.LightweightDispatcher.processMouseEvent(Ljava/awt/event/MouseEvent;)Z+139
J java.awt.LightweightDispatcher.dispatchEvent(Ljava/awt/AWTEvent;)Z
J java.awt.Container.dispatchEventImpl(Ljava/awt/AWTEvent;)V
J java.awt.Window.dispatchEventImpl(Ljava/awt/AWTEvent;)V
J java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V
J java.awt.EventDispatchThread.pumpOneEventForHierarchy(ILjava/awt/Component;)Z
v ~RuntimeStub::alignment_frame_return Runtime1 stub
j java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+26
j java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
j java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
j java.awt.EventDispatchThread.run()V+9
v ~StubRoutines::call_stub
V [jvm.dll+0x845a9]
V [jvm.dll+0xd9317]
V [jvm.dll+0x8447a]
V [jvm.dll+0x841d7]
V [jvm.dll+0x9ed69]
V [jvm.dll+0x109fe3]
V [jvm.dll+0x109fb1]
C [MSVCRT.dll+0x27fb8]
C [kernel32.dll+0x1d33b]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j sun.awt.windows.WPrinterJob._startDoc(Ljava/lang/String;)V+0
j sun.awt.windows.WPrinterJob.startDoc()V+5
j sun.print.RasterPrinterJob.print(Ljavax/print/attribute/PrintRequestAttributeSet;)V+251
j sun.print.RasterPrinterJob.print()V+5
j coriolis1_1b.ProdDatIn2Prime.jButton31_actionPerformed(Ljava/awt/event/ActionEvent;)V+45
j coriolis1_1b.ProdDatIn2Prime$81.actionPerformed(Ljava/awt/event/ActionEvent;)V+5
j javax.swing.AbstractButton.fireActionPerformed(Ljava/awt/event/ActionEvent;)V+84
j javax.swing.AbstractButton$Handler.actionPerformed(Ljava/awt/event/ActionEvent;)V+5
j javax.swing.DefaultButtonModel.fireActionPerformed(Ljava/awt/event/ActionEvent;)V+35
j javax.swing.DefaultButtonModel.setPressed(Z)V+117
j javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Ljava/awt/event/MouseEvent;)V+35
j java.awt.Component.processMouseEvent(Ljava/awt/event/MouseEvent;)V+64
j javax.swing.JComponent.processMouseEvent(Ljava/awt/event/MouseEvent;)V+23
J java.awt.Component.processEvent(Ljava/awt/AWTEvent;)V
J java.awt.Container.processEvent(Ljava/awt/AWTEvent;)V
J java.awt.Component.dispatchEventImpl(Ljava/awt/AWTEvent;)V
J java.awt.Container.dispatchEventImpl(Ljava/awt/AWTEvent;)V
J java.awt.LightweightDispatcher.retargetMouseEvent(Ljava/awt/Component;ILjava/awt/event/MouseEvent;)V
v ~RuntimeStub::alignment_frame_return Runtime1 stub
j java.awt.LightweightDispatcher.processMouseEvent(Ljava/awt/event/MouseEvent;)Z+139
J java.awt.LightweightDispatcher.dispatchEvent(Ljava/awt/AWTEvent;)Z
J java.awt.Container.dispatchEventImpl(Ljava/awt/AWTEvent;)V
J java.awt.Window.dispatchEventImpl(Ljava/awt/AWTEvent;)V
J java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V
J java.awt.EventDispatchThread.pumpOneEventForHierarchy(ILjava/awt/Component;)Z
v ~RuntimeStub::alignment_frame_return Runtime1 stub
j java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+26
j java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
j java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
j java.awt.EventDispatchThread.run()V+9
v ~StubRoutines::call_stub

--------------- P R O C E S S ---------------

Java Threads: ( => current thread )
0x02ca1de8 JavaThread "TimerQueue" daemon [_thread_blocked, id=532]
0x00356170 JavaThread "DestroyJavaVM" [_thread_blocked, id=3724]
=>0x02c8dbc0 JavaThread "AWT-EventQueue-0" [_thread_in_native, id=2528]
0x00a3f720 JavaThread "AWT-Shutdown" [_thread_blocked, id=3960]
0x02c4d370 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=1512]
0x00a3fc30 JavaThread "AWT-Windows" daemon [_thread_in_native, id=3408]
0x009f8c90 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2960]
0x009f7860 JavaThread "CompilerThread0" daemon [_thread_blocked, id=3588]
0x009f6af0 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3328]
0x0035fc70 JavaThread "Finalizer" daemon [_thread_blocked, id=2816]
0x009f1aa0 JavaThread "Reference Handler" daemon [_thread_blocked, id=3492]

Other Threads:
0x009efdf8 VMThread [id=3416]
0x009f9ea8 WatcherThread [id=3864]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
def new generation total 576K, used 245K [0x22a60000, 0x22b00000, 0x22f40000)
eden space 512K, 35% used [0x22a60000, 0x22a8d7f8, 0x22ae0000)
from space 64K, 100% used [0x22af0000, 0x22b00000, 0x22b00000)
to space 64K, 0% used [0x22ae0000, 0x22ae0000, 0x22af0000)
tenured generation total 7244K, used 5730K [0x22f40000, 0x23653000, 0x26a60000)
the space 7244K, 79% used [0x22f40000, 0x234d88b0, 0x234d8a00, 0x23653000)
compacting perm gen total 8192K, used 4601K [0x26a60000, 0x27260000, 0x2aa60000)
the space 8192K, 56% used [0x26a60000, 0x26ede6d8, 0x26ede800, 0x27260000)
ro space 8192K, 63% used [0x2aa60000, 0x2af6b178, 0x2af6b200, 0x2b260000)
rw space 12288K, 46% used [0x2b260000, 0x2b7f9fa8, 0x2b7fa000, 0x2be60000)

Dynamic libraries:
0x00400000 - 0x0040c000 C:\Program Files\Java\jre1.5.0_06\bin\javaw.exe
0x77f50000 - 0x77ff7000 C:\WINDOWS\System32\ntdll.dll
0x77e60000 - 0x77f46000 C:\WINDOWS\system32\kernel32.dll
0x77dd0000 - 0x77e5d000 C:\WINDOWS\system32\ADVAPI32.dll
0x78000000 - 0x78086000 C:\WINDOWS\system32\RPCRT4.dll
0x77d40000 - 0x77dcc000 C:\WINDOWS\system32\USER32.dll
0x77c70000 - 0x77cb0000 C:\WINDOWS\system32\GDI32.dll
0x77c10000 - 0x77c63000 C:\WINDOWS\system32\MSVCRT.dll
0x6d670000 - 0x6d804000 C:\Program Files\Java\jre1.5.0_06\bin\client\jvm.dll
0x76b40000 - 0x76b6c000 C:\WINDOWS\System32\WINMM.dll
0x6d280000 - 0x6d288000 C:\Program Files\Java\jre1.5.0_06\bin\hpi.dll
0x76bf0000 - 0x76bfb000 C:\WINDOWS\System32\PSAPI.DLL
0x6d640000 - 0x6d64c000 C:\Program Files\Java\jre1.5.0_06\bin\verify.dll
0x6d300000 - 0x6d31d000 C:\Program Files\Java\jre1.5.0_06\bin\java.dll
0x6d660000 - 0x6d66f000 C:\Program Files\Java\jre1.5.0_06\bin\zip.dll
0x6d000000 - 0x6d167000 C:\Program Files\Java\jre1.5.0_06\bin\awt.dll
0x73000000 - 0x73023000 C:\WINDOWS\System32\WINSPOOL.DRV
0x76390000 - 0x763ac000 C:\WINDOWS\System32\IMM32.dll
0x771b0000 - 0x772d1000 C:\WINDOWS\system32\ole32.dll
0x51000000 - 0x51047000 C:\WINDOWS\System32\ddraw.dll
0x73bc0000 - 0x73bc6000 C:\WINDOWS\System32\DCIMAN32.dll
0x5c000000 - 0x5c0c8000 C:\WINDOWS\System32\D3DIM700.DLL
0x74720000 - 0x74764000 C:\WINDOWS\System32\MSCTF.dll
0x773d0000 - 0x77bc2000 C:\WINDOWS\system32\shell32.dll
0x63180000 - 0x631e5000 C:\WINDOWS\system32\SHLWAPI.dll
0x71950000 - 0x71a34000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.10.0_x-ww_f7fb5805\comctl32.dll
0x77340000 - 0x773cb000 C:\WINDOWS\system32\comctl32.dll
0x6d240000 - 0x6d27d000 C:\Program Files\Java\jre1.5.0_06\bin\fontmanager.dll
0x6d4c0000 - 0x6d4d3000 C:\Program Files\Java\jre1.5.0_06\bin\net.dll
0x71ab0000 - 0x71ac4000 C:\WINDOWS\System32\WS2_32.dll
0x71aa0000 - 0x71aa8000 C:\WINDOWS\System32\WS2HELP.dll
0x6d4e0000 - 0x6d4e9000 C:\Program Files\Java\jre1.5.0_06\bin\nio.dll
0x71a50000 - 0x71a8b000 C:\WINDOWS\System32\mswsock.dll
0x76f20000 - 0x76f45000 C:\WINDOWS\System32\DNSAPI.dll
0x76fb0000 - 0x76fb7000 C:\WINDOWS\System32\winrnr.dll
0x76f60000 - 0x76f8c000 C:\WINDOWS\system32\WLDAP32.dll
0x76fc0000 - 0x76fc5000 C:\WINDOWS\System32\rasadhlp.dll
0x71a90000 - 0x71a98000 C:\WINDOWS\System32\wshtcpip.dll
0x6d1c0000 - 0x6d1e3000 C:\Program Files\Java\jre1.5.0_06\bin\dcpr.dll
0x763b0000 - 0x763f5000 C:\WINDOWS\system32\COMDLG32.DLL
0x6a900000 - 0x6ab38000 C:\WINDOWS\System32\spool\DRIVERS\W32X86\3\Cnp50MUI_D6E80.DLL
0x77c00000 - 0x77c07000 C:\WINDOWS\system32\VERSION.dll
0x71b00000 - 0x71c2f000 C:\WINDOWS\System32\spool\DRIVERS\W32X86\3\Cnp50M_D6E80.DLL
0x73b30000 - 0x73b43000 C:\WINDOWS\System32\mscms.dll
0x0c0d0000 - 0x0c2e3000 C:\WINDOWS\System32\spool\DRIVERS\W32X86\3\CNP50809_D6E80.DLL
0x0c400000 - 0x0c454000 C:\WINDOWS\System32\spool\DRIVERS\W32X86\3\CPC10S.DLL
0x0c8c0000 - 0x0ca4a000 C:\WINDOWS\System32\spool\DRIVERS\W32X86\3\CNS30MUI_D08E4.DLL
0x0cb80000 - 0x0cc7a000 C:\WINDOWS\System32\spool\DRIVERS\W32X86\3\CNS30M_D08E4.DLL
0x77120000 - 0x771ab000 C:\WINDOWS\system32\OLEAUT32.dll

VM Arguments:
java_command: C:\Documents and Settings\shererg\Desktop\MARSDEN.jar
Launcher Type: SUN_STANDARD

Environment Variables:
CLASSPATH=.;C:\Program Files\QuickTime\QTSystem\QTJava.zip
PATH=C:\Program Files\Compaq\Compaq Management Agents\Dmi\Win32\Bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\QuickTime\QTSystem\
USERNAME=shererg
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 9, GenuineIntel



--------------- S Y S T E M ---------------

OS: Windows XP Build 2600 Service Pack 1

CPU:total 1 family 15, cmov, cx8, fxsr, mmx, sse, sse2, ht

Memory: 4k page, physical 253424k(14356k free), swap 620284k(341968k free)

vm_info: Java HotSpot(TM) Client VM (1.5.0_06-b05) for windows-x86, built on Nov 10 2005 11:12:14 by "java_re" with MS VC++ 6.0
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Welcome to JavaRanch!

There's not much you personally can do; it's a bug in either the JVM itself or in the O/S. Since I see from the trace that this machine is running XP SP1, it's entirely possible that it's a Windows bug, and patching the machine at least to SP2 might fix things right up. Alternatively, see if there's a newer Java 5 release than the one they're running.
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16057
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or try if you can find a newer printer driver for your printer.

The crash happens in CPC10S.DLL according to the stack trace, which is probably a library that belongs to the printer driver.
 
Bernard Grimshaw
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the suggestions I'll give it a go

Regards
Bernard
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!