首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > Ruby Rails >

Android socket程序遇到的有关问题 Internal Error (classFileParser.cpp:3161)

2012-09-20 
Android socket程序遇到的问题 Internal Error (classFileParser.cpp:3161)《Android应用开发揭秘》第八章 P

Android socket程序遇到的问题 Internal Error (classFileParser.cpp:3161)

《Android应用开发揭秘》第八章 P245 有一个“Socket应用(简易聊天室的例子)”,实现了一个简单的聊天室程序,在服务器上运行一个永久的程序,可以接收来自其它多个客户端的请求,并提供相应的服务,利用多纯种实现了多客户机制。运行Server.java时报的错如下:

#

# A fatal error has been detected by the Java Runtime Environment:

#

# ?Internal Error (classFileParser.cpp:3161), pid=3452, tid=1872

# ?Error: ShouldNotReachHere()

#

# JRE version: 6.0_21-b07

# Java VM: Java HotSpot(TM) Client VM (17.0-b17 mixed mode windows-x86 )

# An error report file with more information is saved as:

# D:\workspace\Android unleashed\第8章\Examples_08_05\hs_err_pid3452.log

#

# If you would like to submit a bug report, please visit:

# ? http://java.sun.com/webapps/bugreport/crash.jsp

#




文件D:\workspace\Android unleashed\第8章\Examples_08_05\hs_err_pid3452.log的内容如下:## A fatal error has been detected by the Java Runtime Environment:## ?Internal Error (classFileParser.cpp:3161), pid=1752, tid=2876# ?Error: ShouldNotReachHere()## JRE version: 6.0_21-b07# Java VM: Java HotSpot(TM) Client VM (17.0-b17 mixed mode 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 (0x00847800): ?JavaThread "Unknown thread" [_thread_in_vm, id=2876, stack(0x008d0000,0x00920000)]
Stack: [0x008d0000,0x00920000], ?sp=0x0091f8ac, ?free space=13e0091f8bckNative frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)V ?[jvm.dll+0x1fd090]V ?[jvm.dll+0xa47c9]V ?[jvm.dll+0x75f01]V ?[jvm.dll+0x775a4]V ?[jvm.dll+0x1cbcb5]V ?[jvm.dll+0x1cc3ed]V ?[jvm.dll+0x1cc7a5]V ?[jvm.dll+0x1cc7eb]V ?[jvm.dll+0x1cc912]V ?[jvm.dll+0x1cc98a]V ?[jvm.dll+0x1cce3d]V ?[jvm.dll+0x1cd252]V ?[jvm.dll+0x1eceb3]V ?[jvm.dll+0x1ed28c]V ?[jvm.dll+0xdb721]V ?[jvm.dll+0x1e6618]V ?[jvm.dll+0x1065d0]C ?[javaw.exe+0x1657]C ?[javaw.exe+0x1e2c]C ?[javaw.exe+0x8614]C ?[kernel32.dll+0xb729]

--------------- ?P R O C E S S ?---------------
Java Threads: ( => current thread )
Other Threads:
=>0x00847800 (exited) JavaThread "Unknown thread" [_thread_in_vm, id=2876, stack(0x008d0000,0x00920000)]
VM state:not at safepoint (not fully initialized)
VM Mutex/Monitor currently owned by a thread: None
Dynamic libraries:0x00400000 - 0x00424000 C:\Program Files\Java\jre6\bin\javaw.exe0x7c920000 - 0x7c9b6000 C:\WINDOWS\system32\ntdll.dll0x7c800000 - 0x7c91e000 C:\WINDOWS\system32\kernel32.dll0x77da0000 - 0x77e49000 C:\WINDOWS\system32\ADVAPI32.dll0x77e50000 - 0x77ee3000 C:\WINDOWS\system32\RPCRT4.dll0x77fc0000 - 0x77fd1000 C:\WINDOWS\system32\Secur32.dll0x77d10000 - 0x77da0000 C:\WINDOWS\system32\USER32.dll0x77ef0000 - 0x77f39000 C:\WINDOWS\system32\GDI32.dll0x76300000 - 0x7631d000 C:\WINDOWS\system32\IMM32.DLL0x62c20000 - 0x62c29000 C:\WINDOWS\system32\LPK.DLL0x73fa0000 - 0x7400b000 C:\WINDOWS\system32\USP10.dll0x7c340000 - 0x7c396000 C:\Program Files\Java\jre6\bin\msvcr71.dll0x6d800000 - 0x6daa7000 C:\Program Files\Java\jre6\bin\client\jvm.dll0x76b10000 - 0x76b3a000 C:\WINDOWS\system32\WINMM.dll0x6d7b0000 - 0x6d7bc000 C:\Program Files\Java\jre6\bin\verify.dll0x6d330000 - 0x6d34f000 C:\Program Files\Java\jre6\bin\java.dll0x6d290000 - 0x6d298000 C:\Program Files\Java\jre6\bin\hpi.dll0x76bc0000 - 0x76bcb000 C:\WINDOWS\system32\PSAPI.DLL0x6d7f0000 - 0x6d7ff000 C:\Program Files\Java\jre6\bin\zip.dll
VM Arguments:jvm_args: -Xbootclasspath:E:\android\android-sdk-windows\platforms\android-8\android.jar?java_command: com.yarin.android.Examples_08_05.ServerLauncher Type: SUN_STANDARD
Environment Variables:JAVA_HOME=C:\Program Files\Java\jdk1.6.0_13CLASSPATH=.;C:\Program Files\Java\jdk1.6.0_13\lib\dt.jar;C:\Program Files\Java\jre6\bin\tools.jar;C:\Program Files\Java\jdk1.6.0_13\bin\jar.exe;C:\Program Files\Java\jdk1.6.0_13\bin;C:\Program Files\Java\jre6\lib\darwinsys.jar;C:\Program Files\Java\jre6\lib;.;C:\Program Files\Java\jdk1.6.0_13\lib\mysql-connector-java-5.0.8-bin.jar;C:\Program Files\Java\jdk1.6.0_13\lib\mysql-connector-java-5.0.8-bin-g.jar;C:\apache-tomcat-6.0.29\lib\servlet-api.jar;..;C:\TIJ4\code;D:\apache-ant-1.8.1\\bin;C:\Program Files\Java\jdk1.6.0_13\jre\lib\ext\xom-1.2.6.jarPATH=C:\Program Files\Java\jdk1.6.0_13\bin\..\jre\bin\client;C:\Program Files\Java\jdk1.6.0_13\bin\..\jre\bin;C:\Program Files\ARM\ADSv1_2\bin;C:\Program Files\Common Files\Symbian\Tools;C:\Program Files\Nokia\Carbide.c++ v2.3\x86Build\Symbian_Tools\Command_Line_Tools;C:\Program Files\CSL Arm Toolchain\bin;C:\Program Files\Perl\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\Thunder Network\KanKan\Codecs;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Nokia\Update_Manager\bin;C:\Program Files\Java\jdk1.6.0_13\bin;C:\apache-tomcat-6.0.29\bin;D:\software\MySQL\MySQL Server 5.0\bin;D:\software\Matlab\bin\win32;C:\Program Files\VRE IDE\bin\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\ARM\ADSv1_2;D:\apache-ant-1.8.1\\bin;C:\Python31;C:\Program Files\Common Files\TTKN\BinUSERNAME=tjOS=Windows_NTPROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 13, GenuineIntel


--------------- ?S Y S T E M ?---------------
OS: Windows XP Build 2600 Service Pack 3
CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 15 stepping 13, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3
Memory: 4k page, physical 1037204k(113312k free), swap 2485976k(975092k free)
vm_info: Java HotSpot(TM) Client VM (17.0-b17) for windows-x86 JRE (1.6.0_21-b07), built on Jul 17 2010 01:10:15 by "java_re" with MS VC++ 7.1 (VS2003)
time: Sat Feb 26 15:35:12 2011elapsed time: 0 seconds
在?http://www.simpleframework.net/blog/v/5013.html?上有人说“这个错误是因为jdk 与 android 冲突,解决办法,是调整下jre 的位置。” 这个调整jre的位置是说重装一个jre还是啥意思的?以前从没遇到过这个问题,请大家多多指点

热点排行