`
security
  • 浏览: 379447 次
  • 来自: www.pgp.org.cn
社区版块
存档分类
最新评论

Unexpected Signal : EXCEPTION_ACCESS_VIOLATION

阅读更多

Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6D3B0C4E
Function=[Unknown.]
Library=C:\j2sdk1.4.1_02\jre\bin\client\jvm.dll

NOTE: We are unable to locate the function name symbol for the error
      just occurred. Please refer to release documentation for possible
      reason and solutions.


Current Java thread:
 at jni.JNIInterface.getPrivateKeyAlias(Native Method)
 at jni.JNIInterface.getRSAPrivateKey(JNIInterface.java:478)
 at jni.ReadCertificates.main(ReadCertificates.java:37)

Dynamic libraries:
0x00400000 - 0x00407000  C:\j2sdk1.4.1_02\bin\javaw.exe
0x77F80000 - 0x77FFC000  C:\WINNT\system32\ntdll.dll
0x796D0000 - 0x79735000  C:\WINNT\system32\ADVAPI32.dll
0x77E60000 - 0x77F32000  C:\WINNT\system32\KERNEL32.dll
0x786F0000 - 0x7875F000  C:\WINNT\system32\RPCRT4.dll
0x77DF0000 - 0x77E59000  C:\WINNT\system32\USER32.dll
0x77F40000 - 0x77F7C000  C:\WINNT\system32\GDI32.dll
0x78000000 - 0x78045000  C:\WINNT\system32\MSVCRT.dll
0x75E00000 - 0x75E1A000  C:\WINNT\system32\IMM32.DLL
0x6C330000 - 0x6C338000  C:\WINNT\system32\LPK.DLL
0x65D20000 - 0x65D74000  C:\WINNT\system32\USP10.dll
0x10000000 - 0x1000D000  C:\WINNT\system32\OCMAPIHK.DLL
0x6D340000 - 0x6D46A000  C:\j2sdk1.4.1_02\jre\bin\client\jvm.dll
0x77530000 - 0x77560000  C:\WINNT\system32\WINMM.dll
0x6D1E0000 - 0x6D1E7000  C:\j2sdk1.4.1_02\jre\bin\hpi.dll
0x6D310000 - 0x6D31E000  C:\j2sdk1.4.1_02\jre\bin\verify.dll
0x6D220000 - 0x6D239000  C:\j2sdk1.4.1_02\jre\bin\java.dll
0x6D330000 - 0x6D33D000  C:\j2sdk1.4.1_02\jre\bin\zip.dll
0x0AC90000 - 0x0ACA0000  D:\JavaSource\SecureX\jnicert.dll
0x768D0000 - 0x768FB000  C:\WINNT\system32\WINTRUST.dll
0x79C40000 - 0x79CCC000  C:\WINNT\system32\CRYPT32.dll
0x773F0000 - 0x77401000  C:\WINNT\system32\MSASN1.dll
0x77900000 - 0x77923000  C:\WINNT\system32\IMAGEHLP.dll
0x7CF00000 - 0x7CFEF000  C:\WINNT\system32\ole32.dll
0x7CEA0000 - 0x7CEF3000  C:\WINNT\system32\NETAPI32.dll
0x77960000 - 0x77984000  C:\WINNT\system32\DNSAPI.dll
0x74FD0000 - 0x74FDA000  C:\WINNT\system32\WSOCK32.dll
0x74FB0000 - 0x74FC4000  C:\WINNT\system32\WS2_32.DLL
0x74FA0000 - 0x74FA8000  C:\WINNT\system32\WS2HELP.DLL
0x75150000 - 0x75156000  C:\WINNT\system32\NETRAP.dll
0x77BD0000 - 0x77BE1000  C:\WINNT\system32\NTDSAPI.dll
0x77930000 - 0x7795B000  C:\WINNT\system32\WLDAP32.DLL
0x797B0000 - 0x797BF000  C:\WINNT\system32\SECUR32.DLL
0x750E0000 - 0x750F0000  C:\WINNT\system32\SAMLIB.dll
0x79C00000 - 0x79C13000  C:\WINNT\system32\cryptnet.dll
0x687E0000 - 0x687EB000  C:\WINNT\system32\PSAPI.DLL
0x75A50000 - 0x75A55000  C:\WINNT\system32\SensApi.dll
0x772A0000 - 0x77306000  C:\WINNT\system32\SHLWAPI.dll
0x794D0000 - 0x79534000  C:\WINNT\system32\USERENV.dll
0x4FF90000 - 0x4FFE4000  C:\WINNT\system32\WINHTTP.dll
0x758E0000 - 0x7594F000  C:\WINNT\system32\cryptui.dll
0x71710000 - 0x71794000  C:\WINNT\system32\COMCTL32.dll
0x63000000 - 0x63095000  C:\WINNT\system32\wininet.dll
0x77990000 - 0x77A2B000  C:\WINNT\system32\OLEAUT32.dll
0x7CA00000 - 0x7CA23000  C:\WINNT\system32\rsaenh.dll
0x72960000 - 0x7298D000  C:\WINNT\system32\DBGHELP.dll

Local Time = Fri Jun 30 17:17:50 2006
Elapsed Time = 5
#
# HotSpot Virtual Machine Error : EXCEPTION_ACCESS_VIOLATION
# Error ID : 4F530E43505002E6
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Java VM: Java HotSpot(TM) Client VM (1.4.1_02-b06 mixed mode)
#
# An error report file has been saved as hs_err_pid2024.log.
# Please refer to the file for further information.
#


It happens when I want to call the CryptoAPI through JNI, Can anyone give some advice?

分享到:
评论
1 楼 aaaa 2007-05-11  
package ems.action.systems;

import java.awt.image.RenderedImage;
import java.io.IOException;
import java.io.PrintWriter;

import javax.imageio.ImageIO;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import ems.logic.chars.InterfaceChar;

@SuppressWarnings("serial")
public class CharServletDispatcher  extends HttpServlet
{

	protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
	{
		doPost(req, res);
	}


	protected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
	{
		String userId=(String)req.getSession(true).getAttribute(ems.util.Constants.LOGINUSER);
		if(userId==null)
		{
			res.setCharacterEncoding("GBK");
			PrintWriter pw = res.getWriter();
			pw.println("请重新登录系统!");
			return;
		}
		req.setCharacterEncoding("GBK");
		String path = req.getRequestURI();
		String context = req.getContextPath();
		String reqFlag = "Serv"+path.replaceAll(context + "/CharServlet/", "");
		dispatch(req, res, reqFlag);
	}


	/**
     * @param req
     * @param res
     * @param flag
     * @throws IOException
     */
	synchronized private void dispatch(HttpServletRequest req, HttpServletResponse res, String reqFlag) throws IOException
	{
		String className = "ems.logic.chars." + reqFlag;
		try
		{
			Class cls = Class.forName(className);
			InterfaceChar idg = (InterfaceChar) cls.newInstance();
			idg.transInfo(req, res);
			
			String vml="";
			if(idg.getImageType().equals(InterfaceChar.OUT_IMAGE))
			{
				RenderedImage  img=null;
				img=idg.getImage("PNG");
				res.setContentType("image/png"); 
				res.setHeader("Cache-Control", "Public");
				res.setDateHeader("Expires", 100000L);
				ImageIO.write(img,"PNG",res.getOutputStream());			
			}
			else
			{
				res.setCharacterEncoding("GBK");
				PrintWriter pw=res.getWriter();
				vml=idg.getVML();
				pw.append(vml);
			}
			
		}
		catch (ClassNotFoundException e)
		{
			e.printStackTrace();
		}
		catch (InstantiationException e)
		{
			e.printStackTrace();
		}
		catch (IllegalAccessException e)
		{
			e.printStackTrace();
		}
	}
}

相关推荐

Global site tag (gtag.js) - Google Analytics