相关文章
更多最近更新
更多很奇怪的一个问题
2019-03-25 13:45|来源: 网路
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 : <not set>
_JAVA_OPTIONS: <not set>
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 ===============================================================
问题补充:
现在这句改成[JRockit] ERROR: The JVM has crashed. Writing crash information to D:\Work\webpro\jrockit.4012.dump.了一下内容给一样。
问题补充:
现在这句改成[JRockit] ERROR: The JVM has crashed. Writing crash information to D:\Work\webpro\jrockit.4012.dump.了一下内容给一样。
问题补充:
现在这句改成[JRockit] ERROR: The JVM has crashed. Writing crash information to D:\Work\webpro\jrockit.4012.dump.了一下内容给一样。
问题补充:
log4j 的版本不对,很明显的吗
现在换成[JRockit] ERROR: The JVM has crashed. Writing crash information to D:\Work\webpro\jrockit.1840.dump.
===== BEGIN DUMP =============================================================
JRockit dump produced after 0 days, 00:00:07 on Wed Nov 23 14:36:02 2011
以下的一样。
问题补充:
现在换成[JRockit] ERROR: The JVM has crashed. Writing crash information to D:\Work\webpro\jrockit.1840.dump.
===== BEGIN DUMP =============================================================
JRockit dump produced after 0 days, 00:00:07 on Wed Nov 23 14:36:02 2011
。。。。。
以下的一样。
问题补充:
jrmc-4.0.0-1.6.0
jrockit-R28.0.0-jre1.6.0_17
问题补充:
不是说读数据错误么 访问了不该访问的地方
据说要用 -Xnoopt 参数关闭优化器
- Turn off the optimizations with -Xnoopt option.
https://forums.oracle.com/forums/thread.jspa?messageID=9602862#9602862
不是说读数据错误么 访问了不该访问的地方
据说要用 -Xnoopt 参数关闭优化器
- Turn off the optimizations with -Xnoopt option.
https://forums.oracle.com/forums/thread.jspa?messageID=9602862#9602862
现在是这个[JRockit] ERROR: The JVM has crashed. Writing crash information to D:\Work\webpro\jrockit.4004.dump. 怎么解决?
这句话会报以下异常谁遇到过,帮忙解决一下,谢谢!
代码:
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 : <not set>
_JAVA_OPTIONS: <not set>
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 ===============================================================
问题补充:
asyty 写道
真神奇。。。不过不是有提示信息么
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
log4j的jar包版本不对
现在这句改成[JRockit] ERROR: The JVM has crashed. Writing crash information to D:\Work\webpro\jrockit.4012.dump.了一下内容给一样。
问题补充:
eclipse-my 写道
SLF4J: This version of SLF4J requires log4j version 1.2.12 or later. See also http://www.slf4j.org/codes.html#log4j_version log4jlib版本不对吧
现在这句改成[JRockit] ERROR: The JVM has crashed. Writing crash information to D:\Work\webpro\jrockit.4012.dump.了一下内容给一样。
问题补充:
kendylxy 写道
是不是用户slf4j的版本跟log4j的版本不匹配,使用更高版本的log4j
现在这句改成[JRockit] ERROR: The JVM has crashed. Writing crash information to D:\Work\webpro\jrockit.4012.dump.了一下内容给一样。
问题补充:
yanq12 写道
引用
This version of SLF4J requires log4j version 1.2.12 or later. See also
log4j 的版本不对,很明显的吗
现在换成[JRockit] ERROR: The JVM has crashed. Writing crash information to D:\Work\webpro\jrockit.1840.dump.
===== BEGIN DUMP =============================================================
JRockit dump produced after 0 days, 00:00:07 on Wed Nov 23 14:36:02 2011
以下的一样。
问题补充:
kendylxy 写道
请问楼主的Jrocket版本是多少?
现在换成[JRockit] ERROR: The JVM has crashed. Writing crash information to D:\Work\webpro\jrockit.1840.dump.
===== BEGIN DUMP =============================================================
JRockit dump produced after 0 days, 00:00:07 on Wed Nov 23 14:36:02 2011
。。。。。
以下的一样。
问题补充:
kendylxy 写道
请问楼主的Jrocket版本是多少?
jrmc-4.0.0-1.6.0
jrockit-R28.0.0-jre1.6.0_17
问题补充:
asyty 写道
引用
Error Message: Illegal memory access.
不是说读数据错误么 访问了不该访问的地方
据说要用 -Xnoopt 参数关闭优化器
- Turn off the optimizations with -Xnoopt option.
https://forums.oracle.com/forums/thread.jspa?messageID=9602862#9602862
asyty 写道
引用
Error Message: Illegal memory access.
不是说读数据错误么 访问了不该访问的地方
据说要用 -Xnoopt 参数关闭优化器
- Turn off the optimizations with -Xnoopt option.
https://forums.oracle.com/forums/thread.jspa?messageID=9602862#9602862
现在是这个[JRockit] ERROR: The JVM has crashed. Writing crash information to D:\Work\webpro\jrockit.4004.dump. 怎么解决?
相关问答
更多-
百度翻译在线翻译英语[2023-01-30]
strange strange[streɪn(d)ʒ] [词典释义] adj. 奇怪的;陌生的;外行的 adv. 奇怪地;陌生地,冷淡地 n. (Strange)人名;(英)斯特兰奇;(瑞典、塞)斯特朗格 [网络短语] Strange奇怪,陌生,奇特 Strange quark奇夸克,奇异夸克 Strange Circus奇异人生马戏团,神秘马戏团,奇妙马戏团 -
下载的android手机游戏压缩包怎么装到手机上呀[2023-12-30]
你打开压缩包看看里面是什么文件?如果后缀是APK,解压后安装,如果打开是文件夹和文件组成,把压缩包改成APK后缀文件 你可以通过数据线或是拷贝安装程序到SD卡,安装APK需要下载APK安装器,或者安装91助手 -
奇怪的行为(LUIS strange behavior)[2022-02-11]
发布应用程序,测试端点,然后转到Luis.ai中的“查看端点话语”。 被映射到None的话语可能在那里,表明LUIS想知道他们应该映射到哪个意图。 将它们映射到正确的意图,训练并再次发布。 测试更正的版本。 现在应该是正确的。 Publish the app, test the endpoint, then go to "Review endpoint utterances" in Luis.ai. The utterances that are mapped to None are probably th ... -
奇怪的一个算法(odd one out algorithm)[2023-07-09]
一种可能的O(nlogn)解决方案如下: 对数组进行排序(在O(nlogn)时间内)。 计算排序数组中相邻元素之间的差异。 将差值(以及相应的对)存储在最小堆中。 弹出最小堆中的顶对。 对于每个弹出的对,您将不得不向堆中添加另一对。 这将对应于弹出对中的相邻元素。 例如,如果数组是{....,3,5,6,9,....}并且弹出的对是{5,6},那么在堆{3,9}中添加另一对差值为6。 此外,跟踪已经弹出的元素(可能在哈希表中),并简单地拒绝任何已弹出任何元素的弹出对。 一旦堆为空,未包含在任何有效弹出对中的 ... -
做的奇怪行为(Strange behaviour of do while)[2023-02-11]
这个功能 void push(stack *p, int x) { if(!full(p)) /*full() returns 1 is top==max, 0 otherwise*/ { p->a[p->top++]=x; printf("%d pushed.\n",x); } else printf("Stack is full.\n"); } 是错的。 top的初始值为-1,因此在此语句中 p->a[p->top ... -
这个奇怪的行为(The strange behavior of this)[2021-11-24]
不,上下文不会是全局上下文,它将是字符串“Hello”。 上下文是你的bind()函数的第二个参数,所以当函数“f”被调用时它就是this值。 No, the context won't be the global context, it'll be the string "Hello". The context is the second argument to your bind() function, so that'll be the value of this when function "f" ... -
奇怪的行为?(Strange behavior? [duplicate])[2023-01-10]
这应该可以帮助你: typename map::const_iterator& begin() { return counted.begin(); } typename map ::const_iterator& end() { return counted.end(); } C ++模板很棘手。 T是一个模板参数,取决于你传递了什么T, map ::const_iterator可能意味着不同的事物(类型名称,但也包括 - 静态成员...)。 这就是 ... -
RewriteEngine奇怪(RewriteEngine oddity)[2022-02-12]
我在日志中发现了一个错误......似乎它只是刚出现。 Negotiation: discovered file(s) matching request: /srv/http/.../login (None could be negotiated) 我用Google搜索了,显然MultiViews与我的无扩展名“登录”字符串相冲突。 关闭多视图,它完美地工作。 I found an error in the log... seems it only appeared just now. Negotiati ... -
奇怪的“+ =”行为(Strange “+=” behaviour)[2023-10-11]
对于这里的问题的实际理解,请尝试comp.lang.c有关序列点的 常见问题文章。 For an actual understanding of the issue here try comp.lang.c FAQ article on sequence points. -
非常奇怪的警告(Quite weird warning)[2022-06-25]
根据我们的讨论,决定在应用程序启动期间未正确实例化视图控制器。 我们确定感兴趣的ViewController来自故事板,因此推荐的代码更改如下: // remove this // self.window.rootViewController = self.FbSSOTrialVC; // and replace it with: self.FbSSOTrialVC = [self.window.rootViewController.storyboard instantiateViewController ...