关于bug细节

时间:2009-02-11 04:47:02

标签: java

我是Java的初学者。在运行java应用程序时,我得到了下面提到的bug。为什么会出现这个错误?

#
# An unexpected error has been detected by Java Runtime Environment:
#
#  Internal Error (exceptions.cpp:367), pid=2552, tid=2532
#  Error: ExceptionMark destructor expects no pending exceptions
#
# Java VM: Java HotSpot(TM) Client VM (10.0-b22 mixed mode, sharing windows-x86)
# 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 (0x00385800):  JavaThread "main" [_thread_in_vm, id=2532, stack(0x00390000,0x003e0000)]

Stack: [0x00390000,0x003e0000]
[error occurred during error reporting (printing stack bounds), id 0xc0000005]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::StubRoutines (1)
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::StubRoutines (1)
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::StubRoutines (1)
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::StubRoutines (1)

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

Java Threads: ( => current thread )
  0x029c6000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2648, stack(0x02c70000,0x02cc0000)]
  0x029b8000 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2876, stack(0x02c20000,0x02c70000)]
  0x029b6c00 JavaThread "Attach Listener" daemon [_thread_blocked, id=1464, stack(0x02bd0000,0x02c20000)]
  0x029b6000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=1248, stack(0x02b80000,0x02bd0000)]
  0x029b1800 JavaThread "Finalizer" daemon [_thread_blocked, id=4084, stack(0x02b30000,0x02b80000)]
  0x029ad400 JavaThread "Reference Handler" daemon [_thread_blocked, id=4068, stack(0x02ae0000,0x02b30000)]
=>0x00385800 JavaThread "main" [_thread_in_vm, id=2532, stack(0x00390000,0x003e0000)]

Other Threads:
  0x029ac000 VMThread [stack: 0x02a90000,0x02ae0000] [id=4064]
  0x029e1400 WatcherThread [stack: 0x02cc0000,0x02d10000] [id=2656]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 def new generation   total 960K, used 271K [0x228d0000, 0x229d0000, 0x22db0000)
  eden space 896K,  30% used [0x228d0000, 0x22913ea8, 0x229b0000)
  from space 64K,   0% used [0x229b0000, 0x229b0000, 0x229c0000)
  to   space 64K,   0% used [0x229c0000, 0x229c0000, 0x229d0000)
 tenured generation   total 4096K, used 0K [0x22db0000, 0x231b0000, 0x268d0000)
   the space 4096K,   0% used [0x22db0000, 0x22db0000, 0x22db0200, 0x231b0000)
 compacting perm gen  total 12288K, used 23K [0x268d0000, 0x274d0000, 0x2a8d0000)
   the space 12288K,   0% used [0x268d0000, 0x268d5cd0, 0x268d5e00, 0x274d0000)
    ro space 8192K,  62% used [0x2a8d0000, 0x2add2a60, 0x2add2c00, 0x2b0d0000)
    rw space 12288K,  52% used [0x2b0d0000, 0x2b7186e0, 0x2b718800, 0x2bcd0000)

Dynamic libraries:
0x00400000 - 0x00423000     C:\Program Files\Java\jre1.6.0_06\bin\javaw.exe
0x77cc0000 - 0x77d75000     C:\WINDOWS\system32\ntdll.dll
0x77e60000 - 0x77f50000     C:\WINDOWS\system32\kernel32.dll
0x77f50000 - 0x77feb000     C:\WINDOWS\system32\ADVAPI32.dll
0x77340000 - 0x773d1000     C:\WINDOWS\system32\RPCRT4.dll
0x77d80000 - 0x77e11000     C:\WINDOWS\system32\USER32.dll
0x773e0000 - 0x77425000     C:\WINDOWS\system32\GDI32.dll
0x7c340000 - 0x7c396000     C:\Program Files\Java\jre1.6.0_06\bin\msvcr71.dll
0x6d7c0000 - 0x6da10000     C:\Program Files\Java\jre1.6.0_06\bin\client\jvm.dll
0x76b40000 - 0x76b6d000     C:\WINDOWS\system32\WINMM.dll
0x6d270000 - 0x6d278000     C:\Program Files\Java\jre1.6.0_06\bin\hpi.dll
0x76bf0000 - 0x76bfb000     C:\WINDOWS\system32\PSAPI.DLL
0x6d770000 - 0x6d77c000     C:\Program Files\Java\jre1.6.0_06\bin\verify.dll
0x6d310000 - 0x6d32f000     C:\Program Files\Java\jre1.6.0_06\bin\java.dll
0x6d7b0000 - 0x6d7bf000     C:\Program Files\Java\jre1.6.0_06\bin\zip.dll

VM Arguments:
jvm_args: -Dfile.encoding=Cp1252 
java_command: com.screen.Splash
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=C:\Program Files\Java\jdk1.6.0_06\bin;.;
CLASSPATH=C:\Program Files\Java\jdk1.6.0_06\bin;.;
PATH=C:/Program Files/Java/jre1.6.0_07/bin/client;C:/Program Files/Java/jre1.6.0_07/bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin;C:\Program Files\Java\jdk1.6.0_06\bin;.;
USERNAME=sun
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 8 Stepping 3, GenuineIntel



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

OS: Windows XP Build 2600 Service Pack 2, v.2096

CPU:total 1 (1 cores per cpu, 1 threads per core) family 6 model 8 stepping 3, cmov, cx8, fxsr, mmx, sse

Memory: 4k page, physical 261616k(53616k free), swap 633092k(297116k free)

vm_info: Java HotSpot(TM) Client VM (10.0-b22) for windows-x86 JRE (1.6.0_06-b02), built on Mar 25 2008 01:22:05 by "java_re" with MS VC++ 7.1

time: Tue Feb 10 16:59:05 2009
elapsed time: 0 seconds

4 个答案:

答案 0 :(得分:2)

您也在运行jre1.6.0_07 - 但您的classpath和java_home指向

JAVA_HOME = C:\ Program Files \ Java \ jdk1.6.0_06 \ bin;。; CLASSPATH = C:\ Program Files \ Java \ jdk1.6.0_06 \ bin;。;

这种路径混合可能会导致运行时出现一些问题。

我建议卸载所有版本的java(看起来你有几个)并升级到最新版本。然后确保所有变量都指向单个版本。

答案 1 :(得分:1)

您是否在IE 7中运行了一些Web应用程序?我看到很少有类似的崩溃在互联网上发布。如果是这种情况,请尝试使用其他浏览器。

可能的接受可以是,

  • 如果您在IE下运行某些应用程序
  • ,请尝试其他浏览器然后使用IE浏览器
  • 尝试卸载JRE / JDK,并从头开始安装新的。 选择已发布的版本,而不是测试版。请不要在程序文件下执行此操作,选择不带空格的路径。虽然空格不能成为崩溃的原因

此后不应该发生崩溃。如果它仍然存在,请按照错误消息中的建议进行报告。

答案 2 :(得分:1)

应始终将内部错误提交给Sun.无论你的代码多么糟糕,它们都不会发生。 Sun提交的网页为herehere

请确保它尚未报告,并且您可以轻松地重现它。

答案 3 :(得分:0)

如果您偶尔或很多次都遇到此问题,那么您可以将错误记录到sun。另外,我建议你升级你的JVM版本,如果可能的话,那就是太阳首先建议的那样。