FacesContext的EXCEPTION_ACCESS_VIOLATION

时间:2015-06-30 06:59:01

标签: jsf weblogic-10.x

启动Weblogic服务器后,我收到以下错误

  

Java运行时环境检测到致命错误:   pc = 0x02a3f964的EXCEPTION_ACCESS_VIOLATION(0xc0000005),pid = 22132,tid = 24504

     

JRE版本:6.0_29-b11

     

Java VM:Java HotSpot(TM)客户端VM(20.4-b02混合模式windows-x86)

     

有问题的框架:   j javax.faces.context.FacesContext。()V + 0

     

包含更多信息的错误报告文件保存为:    C:\甲骨文\ Middleware2 \ user_projects \域\ BASE_DOMAIN \ hs_err_pid22132.log

     

如果您想提交错误报告,请访问:      http://java.sun.com/webapps/bugreport/crash.jsp

崩溃日志粘贴在

下面
package com.myApp.security;

import  android.util.Base64;

import javax.crypto.Cipher;
import javax.crypto.spec.SecretKeySpec;

public class Security {
    public static String encrypt(String input, String key){
      byte[] crypted = null;
      try{
        SecretKeySpec skey = new SecretKeySpec(key.getBytes(), "AES");
          Cipher cipher = Cipher.getInstance("AES/ECB/PKCS5Padding");
          cipher.init(Cipher.ENCRYPT_MODE, skey);
          crypted = cipher.doFinal(input.getBytes());
        }catch(Exception e){
            System.out.println(e.toString());
        }
        return new String(Base64.encode(crypted, Base64.DEFAULT));
    }

    public static String decrypt(String input, String key){
        byte[] output = null;
        try{
          SecretKeySpec skey = new SecretKeySpec(key.getBytes(), "AES");
          Cipher cipher = Cipher.getInstance("AES/ECB/PKCS5Padding");
          cipher.init(Cipher.DECRYPT_MODE, skey);
          //output = cipher.doFinal(Base64.decodeBase64(input));
          output = cipher.doFinal(Base64.decode(input, Base64.DEFAULT));
        }catch(Exception e){
          System.out.println(e.toString());
        }
        return new String(output);
    }   
}

我在Weblogic 10.3.6和jsf 2.0中运行应用程序。请帮我解决错误。

0 个答案:

没有答案