很奇怪的一个问题

SocketAcceptor acceptor=new NioSocketAcceptor();
这句话会报以下异常谁遇到过,帮忙解决一下,谢谢!
代码:
private static final int PORT = 8080;

public static void main(String[] orgs) throws Exception {
    // 监听即将到来的TCP连接
    SocketAcceptor acceptor=new NioSocketAcceptor();


}

异常信息:
SLF4J: This version of SLF4J requires log4j version 1.2.12 or later. See also http://www.slf4j.org/codes.html#log4j_version
[JRockit] ERROR: The JVM has crashed. Writing crash information to D:\Work\webpro\jrockit.2788.dump.

===== BEGIN DUMP =============================================================

JRockit dump produced after 0 days, 00:00:07 on Wed Nov 23 13:59:02 2011

**************************************************************************

*  If you see this dump, please go to                                    *

*  http://download.oracle.com/docs/cd/E15289_01/go2troubleshooting.html  *

*  for troubleshooting information.                                      *

**************************************************************************

Additional information is available in:

D:\Work\webpro\jrockit.2788.dump

D:\Work\webpro\jrockit.2788.mdmp

Error Message: Illegal memory access. [54]

Exception Rec: EXCEPTION_ACCESS_VIOLATION (c0000005) at 0x009F00E2 - memory at 0x00000014 could not be read.

Minidump : Wrote mdmp. Size is 138MB

SafeDllMode : -1

Version : Oracle JRockit(R) R28.0.0-679-130297-1.6.0_17-20100312-2123-windows-ia32

CPU : Intel Core 2 SSE SSE2 SSE3 SSSE3 Core Intel64

Number CPUs : 2

Tot Phys Mem : 2072788992 (1976 MB)

OS version : Microsoft Windows XP version 5.1 Service Pack 3 (Build 2600) (32-bit)

Thread System: Windows Threads

Java locking : Lazy unlocking enabled (class banning) (transfer banning)

State : JVM is running

Command Line : -Dfile.encoding=UTF-8 -Xbootclasspath/a:C:\Program Files\Genuitec\Common\plugins\com.genuitec.eclipse.j2eedt.core_8.6.0.me201007292038\data\libraryset\EE_5\javaee.jar;C:\Program Files\Genuitec\Common\plugins\com.genuitec.eclipse.j2eedt.core_8.6.0.me201007292038\data\libraryset\EE_5\jsf-impl.jar;C:\Program Files\Genuitec\Common\plugins\com.genuitec.eclipse.j2eedt.core_8.6.0.me201007292038\data\libraryset\EE_5\jsf-api.jar;C:\Program Files\Genuitec\Common\plugins\com.genuitec.eclipse.j2eedt.core_8.6.0.me201007292038\data\libraryset\EE_5\jstl-1.2.jar -Dsun.java.launcher=SUN_STANDARD iosession.MinaTimeServer

Repository :

java.home : D:\Work\javaJDK\jrmc-4.0.0-1.6.0\jre

j.class.path : D:\Work\webpro\WebRoot\WEB-INF\classes;D:\Work\webpro\WebRoot\WEB-INF\lib\antlr-2.7.6.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\aopalliance-1.0.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\aspectjweaver.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\c3p0-0.9.1.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\cglib-2.2.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\commons-beanutils-1.7.0.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\commons-collections-3.1.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\commons-fileupload-1.2.2.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\commons-httpclient.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\commons-io-2.0.1.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\commons-lang-2.5.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\commons-logging.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\dom4j-1.6.1.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\ezmorph-1.0.3.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\freemarker-2.3.16.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\handsome-ipaddress-bin.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\hazelcast-1.9.2.3.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\hibernate-jpa-2.0-api-1.0.1.Final.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\hibernate3.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\javassist-3.12.0.GA.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\json-lib-2.1-jdk15.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\jta-1.1.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\mysqldriver.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\ognl-3.0.1.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\org.springframework.aop-3.1.0.M2.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\org.springframework.asm-3.1.0.M2.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\org.springframework.aspects-3.1.0.M2.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\org.springframework.beans-3.1.0.M2.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\org.springframework.context-3.1.0.M2.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\org.springframework.core-3.1.0.M2.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\org.springframework.expression-3.1.0.M2.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\org.springframework.jdbc-3.1.0.M2.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\org.springframework.orm-3.1.0.M2.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\org.springframework.transaction-3.1.0.M2.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\org.springframework.web-3.1.0.M2.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\slf4j-api-1.5.8.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\slf4j-log4j12-1.5.8.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\struts2-core-2.2.3.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\struts2-json-plugin-2.2.3.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\struts2-junit-plugin-2.2.3.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\struts2-spring-plugin-2.2.3.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\xwork-core-2.2.3.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\log4j-1.2.6.jar;C:\Program Files\Genuitec\Common\plugins\com.genuitec.eclipse.ws.xfire_8.6.0.me201007281000\lib\webservices-api.jar;C:\Program Files\Genuitec\Common\plugins\com.genuitec.eclipse.ws.xfire_8.6.0.me201007281000\lib\webservices-extra-api.jar;C:\Program Files\Genuitec\Common\plugins\com.genuitec.eclipse.ws.xfire_8.6.0.me201007281000\lib\webservices-extra.jar;C:\Program Files\Genuitec\Common\plugins\com.genuitec.eclipse.ws.xfire_8.6.0.me201007281000\lib\webservices-rt.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\axis-ant.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\axis.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\wsdl4j-1.5.1.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\commons-discovery-0.2.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\jaxen-1.1-beta-6.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\commons-codec-1.4.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\mina-core-2.0.4.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\mina-integration-beans-2.0.4.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\mina-filter-compression-2.0.4.jar;D:\Work\webpro\WebRoot\WEB-INF\lib\mina-example-2.0.4.jar

j.lib.path : D:\Work\javaJDK\jrmc-4.0.0-1.6.0\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Genuitec/Common/binary/com.sun.java.jdk.win32.x86_1.6.0.013/jre/bin/client;C:/Program Files/Genuitec/Common/binary/com.sun.java.jdk.win32.x86_1.6.0.013/jre/bin;C:\Documents and Settings\All Users\IMP2POcx;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;;E:\Program Files\IDM Computer Solutions\UltraEdit-32;D:\Work\apache-ant-1.8.2\bin

JAVA_HOME :

_JAVA_OPTIONS:

PATH : C:/Program Files/Genuitec/Common/binary/com.sun.java.jdk.win32.x86_1.6.0.013/jre/bin/client;C:/Program Files/Genuitec/Common/binary/com.sun.java.jdk.win32.x86_1.6.0.013/jre/bin;C:\Documents and Settings\All Users\IMP2POcx;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;;E:\Program Files\IDM Computer Solutions\UltraEdit-32;D:\Work\apache-ant-1.8.2\bin

StackOverFlow: 0 StackOverFlowErrors have occured

OutOfMemory : 0 OutOfMemoryErrors have occured

C Heap : Good; no memory allocations have failed

GC Strategy : Mode: throughput, with strategy: genparpar (basic strategy: genparpar)

GC Status : OC is not running. Last finished OC was OC#0.

         : YC is not running. Last finished YC was YC#0.

YC History : Ran 0 YCs since last OC.

Heap Holes : 1 hole(s), at 0x04B00000 - 0x1F860000

Heap : 0x02400000 - 0x21160000 (Size: 64 MB)

Compaction : (no compaction area)

NurseryList : 0x02400000 - 0x04400000

KeepArea : 0x03BFFFE8 - 0x04400000

KA Markers : [ 0x033FFFF0, 0x03BFFFE8 , 0x04400000 ]

Forbidden A : (none)

Previous KA : (none)

Previous FA : (none)

CompRefs : References are 32-bit.

Registers (from ThreadContext: 0x00DCF744:

eax = 00000000 ecx = 00000000 edx = 027a9960 ebx = 00dcfb00

esp = 00dcfa10 ebp = 00dcfa58 esi = 00c358a0 edi = 00000000

es = 00000023     cs = 0000001b     ss = 00000023     ds = 00000023 

fs = 0000003b     gs = 00000000 

eip = 009f00e2 eflags = 00010206

Loaded modules:

(* denotes the module where the exception occured)

00400000-00434fff D:\Work\javaJDK\jrmc-4.0.0-1.6.0\bin\javaw.exe

7c920000-7c9b5fff C:\WINDOWS\system32\ntdll.dll

7c800000-7c91dfff C:\WINDOWS\system32\kernel32.dll

77d10000-77d9ffff C:\WINDOWS\system32\USER32.dll

77ef0000-77f38fff C:\WINDOWS\system32\GDI32.dll

77da0000-77e48fff C:\WINDOWS\system32\ADVAPI32.dll

77e50000-77ee2fff C:\WINDOWS\system32\RPCRT4.dll

77fc0000-77fd0fff C:\WINDOWS\system32\Secur32.dll

76300000-7631cfff C:\WINDOWS\system32\IMM32.DLL

62c20000-62c28fff C:\WINDOWS\system32\LPK.DLL

73fa0000-7400afff C:\WINDOWS\system32\USP10.dll

7c340000-7c395fff D:\Work\javaJDK\jrmc-4.0.0-1.6.0\jre\bin\msvcr71.dll

00850000-00b44fff *D:\Work\javaJDK\jrmc-4.0.0-1.6.0\jre\bin\jrockit\jvm.dll

71a20000-71a36fff C:\WINDOWS\system32\WS2_32.dll

77be0000-77c37fff C:\WINDOWS\system32\msvcrt.dll

71a10000-71a17fff C:\WINDOWS\system32\WS2HELP.dll

76b10000-76b39fff C:\WINDOWS\system32\WINMM.dll

10000000-1003afff D:\Work\javaJDK\jrmc-4.0.0-1.6.0\jre\bin\osal.dll

00c40000-00c72fff D:\Work\javaJDK\jrmc-4.0.0-1.6.0\jre\bin\util.dll

724c0000-72517fff C:\WINDOWS\system32\pdh.dll

76320000-76366fff C:\WINDOWS\system32\comdlg32.dll

5d170000-5d209fff C:\WINDOWS\system32\COMCTL32.dll

7d590000-7dd83fff C:\WINDOWS\system32\SHELL32.dll

77f40000-77fb5fff C:\WINDOWS\system32\SHLWAPI.dll

765e0000-76672fff C:\WINDOWS\system32\CRYPT32.dll

76db0000-76dc1fff C:\WINDOWS\system32\MSASN1.dll

73540000-7357cfff C:\WINDOWS\system32\ODBC32.dll

4b4f0000-4b4f5fff C:\WINDOWS\system32\odbcbcp.dll

77bd0000-77bd7fff C:\WINDOWS\system32\VERSION.dll

76990000-76acdfff C:\WINDOWS\system32\ole32.dll

770f0000-7717afff C:\WINDOWS\system32\OLEAUT32.dll

77180000-77282fff C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.6028_x-ww_61e65202\comctl32.dll

1f840000-1f856fff C:\WINDOWS\system32\odbcint.dll

5e8e0000-5e8ecfff C:\WINDOWS\system32\perfproc.dll

5e8f0000-5e8f8fff C:\WINDOWS\system32\perfos.dll

015d0000-015f9fff D:\Work\javaJDK\jrmc-4.0.0-1.6.0\jre\bin\jfr.dll

6d860000-6d86bfff D:\Work\javaJDK\jrmc-4.0.0-1.6.0\jre\bin\verify.dll

6d3e0000-6d3fefff D:\Work\javaJDK\jrmc-4.0.0-1.6.0\jre\bin\java.dll

6d340000-6d347fff D:\Work\javaJDK\jrmc-4.0.0-1.6.0\jre\bin\hpi.dll

6d8a0000-6d8aefff D:\Work\javaJDK\jrmc-4.0.0-1.6.0\jre\bin\zip.dll

76bc0000-76bcafff C:\WINDOWS\system32\psapi.dll

6d6e0000-6d6e8fff D:\Work\javaJDK\jrmc-4.0.0-1.6.0\jre\bin\nio.dll

6d6c0000-6d6d2fff C:\Program Files\Genuitec\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\jre\bin\net.dll

08950000-08962fff D:\Work\javaJDK\jrmc-4.0.0-1.6.0\jre\bin\net.dll

719c0000-719fdfff C:\WINDOWS\system32\mswsock.dll

60fd0000-61024fff C:\WINDOWS\system32\hnetcfg.dll

71a00000-71a07fff C:\WINDOWS\System32\wshtcpip.dll

089b0000-089c7fff D:\Work\javaJDK\jrmc-4.0.0-1.6.0\jre\bin\orii.dll

68000000-68035fff C:\WINDOWS\system32\rsaenh.dll

759d0000-75a7efff C:\WINDOWS\system32\USERENV.dll

5fdd0000-5fe24fff C:\WINDOWS\system32\netapi32.dll

089e0000-08af2fff D:\Work\javaJDK\jrmc-4.0.0-1.6.0\jre\bin\dbghelp.dll

Stack:

(* marks the word pointed to by the stack pointer)

00dcfa10: 00863bb6* 00dcfb00 00000000 a6c5fa24 00dcfb00 00c3599c

00dcfa28: 00dcfb00 00dcfa38 088bfd4e 00c358c8 00000000 00a0fc90

00dcfa40: 00dcfa1c 00dcf624 00dcff14 00a3c1f0 a6b3592c 00000000

00dcfa58: 00dcfa88 6d6c7f98 00000000 00dcfb00 00000000 00dcfb00

Code:

(* marks the word pointed to by the instruction pointer)

009f00b0: 0424448b 0b74c085 0c244c8b 0824548b c3100c89 cccccccc

009f00c8: cccccccc cccccccc 0424448b 0474c085 02eb108b 448bd233

009f00e0: 40f60824* 488b0814 8b0a7410 68408b00 008bc103 0a048bc3

009f00f8: ccccccc3 cccccccc 0424448b 0474c085 02eb108b 448bd233

Last optimized methods:

No methods optimized.

Thread:

"Main Thread" id=1 idx=0x4 tid=2400 lastJavaFrame=0x00DCFAE8

Stack 0: start=0x00D90000, end=0x00DD0000, guards=0x00D93000 (ok), forbidden=0x00D91000

Thread Stack Trace:

at javaHandleLoadIntField+18(javafields.c:175+18)@0x009F00E2

at jni_GetIntField+390(jni.c:514+390)@0x00863BB6

at _NET_InetAddressToSockaddr@24+30()@0x6D6C7F98

at _Java_sun_nio_ch_Net_bind@20+36()@0x6D6E2540

-- Java stack --

at sun/nio/ch/Net.bind(Ljava/io/FileDescriptor;Ljava/net/InetAddress;I)V(Native Method)

at sun/nio/ch/ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)

at sun/nio/ch/ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)

at sun/nio/ch/ServerSocketAdaptor.bind(ServerSocketAdaptor.java:52)

at sun/nio/ch/PipeImpl$Initializer.run(PipeImpl.java:72)

at jrockit/vm/AccessController.doPrivileged(AccessController.java:254)

at jrockit/vm/AccessController.doPrivileged(AccessController.java:268)

at sun/nio/ch/PipeImpl.<init>(PipeImpl.java:122)

at sun/nio/ch/SelectorProviderImpl.openPipe(SelectorProviderImpl.java:27)

at java/nio/channels/Pipe.open(Pipe.java:133)

at sun/nio/ch/WindowsSelectorImpl.<init>(WindowsSelectorImpl.java:40)

at sun/nio/ch/WindowsSelectorProvider.openSelector(WindowsSelectorProvider.java:26)

at java/nio/channels/Selector.open(Selector.java:209)

at org/apache/mina/transport/socket/nio/NioProcessor.<init>(NioProcessor.java:59)

at jrockit/vm/RNI.c2java(IIIII)V(Native Method)

at jrockit/vm/Reflect.invokeMethod(Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;(Native Method)

at sun/reflect/NativeConstructorAccessorImpl.newInstance0(Ljava/lang/reflect/Constructor;[Ljava/lang/Object;)Ljava/lang/Object;(Native Method)

at sun/reflect/NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

at sun/reflect/DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

at java/lang/reflect/Constructor.newInstance(Constructor.java:513)

at org/apache/mina/core/service/SimpleIoProcessorPool.<init>(SimpleIoProcessorPool.java:180)

at org/apache/mina/core/service/SimpleIoProcessorPool.<init>(SimpleIoProcessorPool.java:112)

at org/apache/mina/core/polling/AbstractPollingIoAcceptor.<init>(AbstractPollingIoAcceptor.java:112)

at org/apache/mina/transport/socket/nio/NioSocketAcceptor.<init>(NioSocketAcceptor.java:61)

at iosession/MinaTimeServer.main(MinaTimeServer.java:12)

at jrockit/vm/RNI.c2java(IIIII)V(Native Method)

-- end of trace

Memory usage report:

Total mapped 1182996KB (reserved=1035732KB)

  •          Java heap      1048576KB           (reserved=983040KB)
    
  •          GC tables        49784KB          
    
  •      Thread stacks         7936KB           (#threads=13)
    
  •      Compiled code          704KB           (used=538KB)
    
  •           Internal          648KB          
    
  •                 OS        26800KB          
    
  •              Other        43684KB          
    
  •    Java class data         3840KB           (malloced=3823KB #4815 in 858 classes)
    
                                              Not tracing sites.
    
  • Native memory tracking 1024KB (malloced=154KB #8)

                                              Not tracing sites.
    

Set the env variable TRACE_ALLOC_SITES=1 or use the print_memusage switch

trace_alloc_sites=true to enable alloc site tracing.

**************************************************************************

*  If you see this dump, please go to                                    *

*  http://download.oracle.com/docs/cd/E15289_01/go2troubleshooting.html  *

*  for troubleshooting information.                                      *

**************************************************************************

===== END DUMP ===============================================================

7个回答

[quote]Error Message: Illegal memory access.[/quote]
不是说读数据错误么 访问了不该访问的地方

据说要用 -Xnoopt 参数关闭优化器

真神奇。。。不过不是有提示信息么

[quote]SLF4J: This version of SLF4J requires log4j version 1.2.12 or later. See also http://www.slf4j.org/codes.html#log4j_version [/quote]
log4j的jar包版本不对

SLF4J: This version of SLF4J requires log4j version 1.2.12 or later. See also http://www.slf4j.org/codes.html#log4j_version log4jlib版本不对吧

是不是用户slf4j的版本跟log4j的版本不匹配,使用更高版本的log4j

[quote]This version of SLF4J requires log4j version 1.2.12 or later. See also [/quote]

log4j 的版本不对,很明显的吗

什么都不要说,换个高版本的log4j再试试

请问楼主的Jrocket版本是多少?

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐