“Illegal type in constant pool”异常

 

 

朋友的系统不定时不定位会抛出异常:

Root cause of ServletException.
java.lang.VerifyError: (class: com/XXXXXXX/addons/tools/action/SysUserChangeAction, method: userJudgeTest signature: ()V) Illegal type in constant pool
        at java.lang.Class.getDeclaredConstructors0(Native Method)
        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2416)
        at java.lang.Class.getConstructor0(Class.java:2726)
        at java.lang.Class.newInstance0(Class.java:330)
        at java.lang.Class.newInstance(Class.java:312)
        Truncated. see log file for complete stacktrace

 

怀疑可能是代码缓存溢出了,建议他加个参数:  

XX:ReservedCodeCacheSize=64m

试试,有没有效果待观察。

 

============================

相关阅读:

http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html

http://stackoverflow.com/questions/7513185/what-are-reservedcodecachesize-and-initialcodecachesize 

 

你可能感兴趣的:(Illegal)