Dear Experts,
I am afraid that this question might be too general, but I still hope you can advice me.
I am working on a distributed project written in Java.
Sometimes I get this error (error report included at the end of this post). It sometimes occurs when a client disconnects from the server. But as I said this happens occasionally (even very rarely), only after mentioned client action. Unfortunately I cannot exactly reproduce actions leading to this error.
When this error happens, server application crashes (and prints error report) but client application functions normaly and can even connect again when server is up again.
I would be really grateful if you gave me some advice on how to spot this error. Where to look, I hope you can conclude something from this report.
I don't know what is the problem. If it is my programming error, then exception should occur. I am not sure whether this error is related to my current java environment or I can expect it while demonstrating this project at school.
This is a fragment of the error report:
#
# An unexpected error has been detected by Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION
(0xc0000005) at pc=0x7c918fea, pid=3508, tid=112
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0_02-b06 mixed mode, sharing)
# Problematic frame:
# C [ntdll.dll+0x18fea]
#
# If you would like to submit a bug report, please visit:
#
http://java.sun.com/webapps/bugreport/crash.jsp#
--------------- T H R E A D ---------------
Current thread (0x02ae8400): JavaThread "Thread-6" [_thread_in_native, id=112]
siginfo: ExceptionCode=0xc0000005, writing address 0x00000010
Registers:
EAX=0x00000000, EBX=0x00000000, ECX=0x00001778, EDX=0x02fc634c
ESP=0x04e1f09c, EBP=0x04e1f110, ESI=0x02fc633c, EDI=0x00000000
EIP=0x7c918fea, EFLAGS=0x00010246
Top of Stack: (sp=0x04e1f09c)
0x04e1f09c: 02f93c68 00000000 00000000 ffffffff
0x04e1f0ac: 7fffffff 0014cd48 00000000 00000000
0x04e1f0bc: 04e1f134 71a557c9 00001758 00001784
0x04e1f0cc: 00000000 71a544b0 04e1f1c0 04e1f1cc
0x04e1f0dc: 00000001 04e1f1a8 00000001 00000000
0x04e1f0ec: 00000020 04e1f1b4 04e1f1b8 00000000
0x04e1f0fc: 00000000 00001758 00000000 00000000
0x04e1f10c: 00001778 04e1f1a8 7c90104b 00fc633c
Instructions: (pc=0x7c918fea)
0x7c918fda: 8b 46 10 3b c3 89 45 fc 0f 84 9e 00 00 00 8b 06
0x7c918fea: ff 40 10 8b 45 fc 83 e0 01 89 45 e8 8b 06 ff 40
Stack: [0x04dd0000,0x04e20000), sp=0x04e1f09c, free space=316k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [ntdll.dll+0x18fea]
C [ntdll.dll+0x104b]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J java.net.SocketInputStream
.socketRea
d0(Ljava/i
o/FileDesc
riptor;[BI
II)I
J java.net.SocketInputStream
.read([BII
)I
J java.net.SocketInputStream
.read()I
J java.io.ObjectInputStream$
BlockDataI
nputStream
.peek()I
J java.io.ObjectInputStream.
readObject
0(Z)Ljava/
lang/Objec
t;
J java.io.ObjectInputStream.
readObject
()Ljava/la
ng/Object;
J utils.IOUtils.receiveJob(L
java/io/Ob
jectInputS
tream;Ljav
a/lang/Str
ing;Lworks
tation/Wor
kstationFo
rm;)Lshare
d/Job;
j server.ClientThread.run()V
+145
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x03441800 JavaThread "Thread-20" [_thread_in_native, id=2560]
0x03439c00 JavaThread "Thread-18" [_thread_in_native, id=2348]
0x02aa1400 JavaThread "Timer-3" [_thread_blocked, id=804]
0x02a43000 JavaThread "Timer-2" [_thread_blocked, id=3816]
0x02a42400 JavaThread "Timer-1" [_thread_blocked, id=1936]
=>0x02ae8400 JavaThread "Thread-6" [_thread_in_native, id=112]
0x02ae0400 JavaThread "Timer-0" [_thread_blocked, id=2904]
0x02a8cc00 JavaThread "TimerQueue" daemon [_thread_blocked, id=2092]
0x02a8c400 JavaThread "Thread-4" [_thread_blocked, id=3060]
0x02b2cc00 JavaThread "Thread-3" [_thread_in_native, id=3544]
0x033b4800 JavaThread "Swing-Shell" daemon [_thread_blocked, id=1592]
0x002a6800 JavaThread "DestroyJavaVM" [_thread_blocked, id=3176]
0x02b30c00 JavaThread "AWT-EventQueue-0" [_thread_in_native, id=3512]
0x02b23000 JavaThread "AWT-Windows" daemon [_thread_in_native, id=2228]
0x02b22000 JavaThread "AWT-Shutdown" [_thread_blocked, id=3408]
0x02b21400 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=3944]
0x02a6d400 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2616]
0x02a69400 JavaThread "CompilerThread0" daemon [_thread_blocked, id=716]
0x02a67400 JavaThread "Attach Listener" daemon [_thread_blocked, id=3720]
0x02a66400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3796]
0x02a61c00 JavaThread "Finalizer" daemon [_thread_blocked, id=884]
0x02a5d800 JavaThread "Reference Handler" daemon [_thread_blocked, id=2540]
Other Threads:
0x02a54400 VMThread [id=1464]
0x02a77c00 WatcherThread [id=2700]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 960K, used 288K [0x22970000, 0x22a70000, 0x22e50000)
eden space 896K, 30% used [0x22970000, 0x229b36c0, 0x22a50000)
from space 64K, 29% used [0x22a50000, 0x22a54a68, 0x22a60000)
to space 64K, 0% used [0x22a60000, 0x22a60000, 0x22a70000)
tenured generation total 4096K, used 2606K [0x22e50000, 0x23250000, 0x26970000)
the space 4096K, 63% used [0x22e50000, 0x230dbbc0, 0x230dbc00, 0x23250000)
compacting perm gen total 12288K, used 1709K [0x26970000, 0x27570000, 0x2a970000)
the space 12288K, 13% used [0x26970000, 0x26b1b6f0, 0x26b1b800, 0x27570000)
ro space 8192K, 66% used [0x2a970000, 0x2aebd978, 0x2aebda00, 0x2b170000)
rw space 12288K, 52% used [0x2b170000, 0x2b7b9cb8, 0x2b7b9e00, 0x2bd70000)
Start Free Trial