I Use the same input String to invoke this method, and the output String are same to.
And the previous few invokes is successfully, But the next time it might throw the "java.lang.Error: Invalid memory access" exception.
I add the statements after new Memory :
inputPointer.clear(size);
outputPointer.clear(10240);
The problem has not been solved yet. I don't know why.
And the outputData cannot exceed 10240 bytes, if more than, the exception will be thrown at the first request.
After my testing and feeling, this problem has something to do with GC.
And my appliaction will crashed after exception soon.
In the error report file, i see this information:
Register to memory mapping:
EAX=0x0000000e is an unknown value
EBX=0x27ac0001 is an unknown value
ECX=0x000002fb is an unknown value
EDX=0x00000000 is an unknown value
ESP=0x1a81eb70 is pointing into the stack for thread: 0x17bc0800
EBP=0x1a81eba4 is pointing into the stack for thread: 0x17bc0800
ESI=0x175c2de8 is an unknown value
EDI=0x27ac0000 is an unknown value
Internal exceptions (10 events):
Event: 1564.090 Thread 0x17bbec00 Exception <a 'java/lang/ClassNotFoundException': com/yunhu/pharmacy/domain/BaseDOCustomizer> (0x05642c00) thrown at [C:\jenkins\workspace\8-2-build-windows-i586-cygwin\jdk8u271\605\hotspot\src\share\vm\classfile\systemDictionary.cpp, line 212]
Event: 1564.093 Thread 0x17bbec00 Exception <a 'java/lang/ClassNotFoundException': com/yunhu/pharmacy/domain/DiseaseDOCustomizer> (0x05665710) thrown at [C:\jenkins\workspace\8-2-build-windows-i586-cygwin\jdk8u271\605\hotspot\src\share\vm\classfile\systemDictionary.cpp, line 212]
Event: 1624.172 Thread 0x17bba800 Exception <a 'java/net/SocketTimeoutException': Read timed out> (0x04672558) thrown at [C:\jenkins\workspace\8-2-build-windows-i586-cygwin\jdk8u271\605\hotspot\src\share\vm\prims\jni.cpp, line 737]
Event: 1856.814 Thread 0x17bbc000 Exception <a 'java/lang/Error': Invalid memory access> (0x049585e8) thrown at [C:\jenkins\workspace\8-2-build-windows-i586-cygwin\jdk8u271\605\hotspot\src\share\vm\prims\jni.cpp, line 737]
Event: 1872.473 Thread 0x17bbec00 Exception <a 'java/net/SocketTimeoutException': Read timed out> (0x0477b840) thrown at [C:\jenkins\workspace\8-2-build-windows-i586-cygwin\jdk8u271\605\hotspot\src\share\vm\prims\jni.cpp, line 737]
Event: 1872.474 Thread 0x17bbec00 Exception <a 'java/lang/NullPointerException'> (0x0477f378) thrown at [C:\jenkins\workspace\8-2-build-windows-i586-cygwin\jdk8u271\605\hotspot\src\share\vm\interpreter\linkResolver.cpp, line 1185]
Event: 1872.553 Thread 0x17bbec00 Exception <a 'java/lang/ClassNotFoundException': java/lang/ObjectCustomizer> (0x04fb2778) thrown at [C:\jenkins\workspace\8-2-build-windows-i586-cygwin\jdk8u271\605\hotspot\src\share\vm\classfile\systemDictionary.cpp, line 212]
Event: 1872.554 Thread 0x17bbec00 Exception <a 'java/lang/ArrayIndexOutOfBoundsException': 22> (0x04fb5788) thrown at [C:\jenkins\workspace\8-2-build-windows-i586-cygwin\jdk8u271\605\hotspot\src\share\vm\interpreter\interpreterRuntime.cpp, line 371]
Event: 1872.554 Thread 0x17bbec00 Exception <a 'java/lang/ClassNotFoundException': org/springframework/jdbc/support/SQLErrorCodesCustomizer> (0x04fd2880) thrown at [C:\jenkins\workspace\8-2-build-windows-i586-cygwin\jdk8u271\605\hotspot\src\share\vm\classfile\systemDictionary.cpp, line 21
Event: 1872.555 Thread 0x17bbec00 Exception <a 'java/lang/ArrayIndexOutOfBoundsException': 80> (0x04fd7e98) thrown at [C:\jenkins\workspace\8-2-build-windows-i586-cygwin\jdk8u271\605\hotspot\src\share\vm\interpreter\interpreterRuntime.cpp, line 371]
Please help me, thanks.