Exception in thread "Thread-4004" java.lang.VerifyError: class loading constrain

问题描述

系统:windows2003环境:WebSphere6.1错误:同时部署多个项目时。第一个能正常访问。其他的访问的时候的日志如下:[11-3-3011:07:11:827CST]000015b4SystemErrRExceptioninthread"Thread-4004"java.lang.VerifyError:classloadingconstraintviolated(class:oracle/jdbc/internal/OracleStatement$$EnhancerByCGLIB$$95478f94method:CGLIB$setROWIDAtName$159(Ljava/lang/String;Loracle/sql/ROWID;)V)atpc:0[11-3-3011:07:11:827CST]000015b4SystemErrRatjava.lang.J9VMInternals.verifyImpl(NativeMethod)[11-3-3011:07:11:827CST]000015b4SystemErrRatjava.lang.J9VMInternals.verify(J9VMInternals.java:59)[11-3-3011:07:11:827CST]000015b4SystemErrRatjava.lang.J9VMInternals.initialize(J9VMInternals.java:120)[11-3-3011:07:11:827CST]000015b4SystemErrRatsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)[11-3-3011:07:11:827CST]000015b4SystemErrRatsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)[11-3-3011:07:11:827CST]000015b4SystemErrRatsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[11-3-3011:07:11:827CST]000015b4SystemErrRatjava.lang.reflect.Method.invoke(Method.java:615)[11-3-3011:07:11:827CST]000015b4SystemErrRatorg.logicalcobwebs.cglib.proxy.Enhancer.setCallbacksHelper(Enhancer.java:616)[11-3-3011:07:11:827CST]000015b4SystemErrRatorg.logicalcobwebs.cglib.proxy.Enhancer.setThreadCallbacks(Enhancer.java:609)[11-3-3011:07:11:827CST]000015b4SystemErrRatorg.logicalcobwebs.cglib.proxy.Enhancer.createUsingReflection(Enhancer.java:631)[11-3-3011:07:11:827CST]000015b4SystemErrRatorg.logicalcobwebs.cglib.proxy.Enhancer.firstInstance(Enhancer.java:538)[11-3-3011:07:11:827CST]000015b4SystemErrRatorg.logicalcobwebs.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:231)[11-3-3011:07:11:827CST]000015b4SystemErrRatorg.logicalcobwebs.cglib.proxy.Enhancer.createHelper(Enhancer.java:377)[11-3-3011:07:11:827CST]000015b4SystemErrRatorg.logicalcobwebs.cglib.proxy.Enhancer.create(Enhancer.java:285)[11-3-3011:07:11:827CST]000015b4SystemErrRatorg.logicalcobwebs.proxool.ProxyFactory.getProxy(ProxyFactory.java:78)[11-3-3011:07:11:827CST]000015b4SystemErrRatorg.logicalcobwebs.proxool.ProxyFactory.getStatement(ProxyFactory.java:60)[11-3-3011:07:11:827CST]000015b4SystemErrRatorg.logicalcobwebs.proxool.WrappedConnection.invoke(WrappedConnection.java:196)[11-3-3011:07:11:827CST]000015b4SystemErrRatorg.logicalcobwebs.proxool.WrappedConnection.intercept(WrappedConnection.java:87)[11-3-3011:07:11:827CST]000015b4SystemErrRatoracle.jdbc.internal.OracleConnection$$EnhancerByCGLIB$$a6816abf.prepareStatement(<generated>)[11-3-3011:07:11:827CST]000015b4SystemErrRatpde.ams.database.jdbc.JdbcOracleDao.executeQuery(JdbcOracleDao.java:80)[11-3-3011:07:11:827CST]000015b4SystemErrRatpde.ams.search.IndexRunner.startIndex(IndexRunner.java:176)[11-3-3011:07:11:827CST]000015b4SystemErrRatpde.ams.search.IndexRunner.work(IndexRunner.java:119)[11-3-3011:07:11:827CST]000015b4SystemErrRatpde.ams.search.IndexRunner.run(IndexRunner.java:106)[11-3-3011:07:11:827CST]000015b4SystemErrRatjava.lang.Thread.run(Thread.java:797)

解决方案

解决方案二:
打开oracle驱动的jar里面的MANIFEST.MF清单文件看,这个jar包是不是已经经过数字签名,并且Sealed:true如果Sealed:true那么这个jar里面的javapackage列表中的所有类,如果在这个jar文件之外也有其它类在这些javapackage中的话就会出错,再加上数字签名就能防止其它人弄一个类往你的javapackage名字空间里面混淆替换,篡改原来的jar文件。你这个CGLIB增强在它看来属于篡改行为。
解决方案三:
Manifest-Version:1.0Specification-Title:OracleJDBCdriverclassesforusewithJDK14Sealed:trueCreated-By:1.4.2_08(SunMicrosystemsInc.)Implementation-Title:ojdbc14.jarSpecification-Vendor:OracleCorporationSpecification-Version:OracleJDBCDriverversion-"10.2.0.1.0"Implementation-Version:OracleJDBCDriverversion-"10.2.0.1.0"Implementation-Vendor:OracleCorporationImplementation-Time:WedJun2211:19:452005Name:oracle/sql/converter/Sealed:falseName:oracle/sql/Sealed:falseName:oracle/sql/converter_xcharset/Sealed:false
解决方案四:
上面这个是MANIFEST.MF清单。Sealed:true下面我应该怎么做呢
解决方案五:
把这个jar解压后重新打包成不带签名和sealed试试看,反正你是自己用的,又不是像Oracle那样发布产品出去。

时间: 2024-09-08 11:04:30

Exception in thread &amp;quot;Thread-4004&amp;quot; java.lang.VerifyError: class loading constrain的相关文章

Exception in thread &amp;amp;quot;main&amp;amp;quot; java.lang.VerifyError:

问题描述 Exceptioninthread"main"java.lang.VerifyError:(class:org/apache/hadoop/mapred/JobTrackerInstrumentation,method:createsignature:(Lorg/apache/hadoop/mapred/JobTracker;Lorg/apache/hadoop/mapred/JobConf;)Lorg/apache/hadoop/mapred/JobTrackerInstr

Linux(centOS):Exception in thread &amp;quot;main&amp;quot; java.lang.UnsupportedClassVersionError***

问题1: Exception in thread "main" java.lang.UnsupportedClassVersionError: HWByCentOS : Unsupported major.minor version 52.0 现象:在安装完jdk后,执行javabean.class文件时候出现错误            javac HWByCentOS.java            java HWByCentOS   (***)            使用javac

hashmap-Java中遇到的一个异常Exception in thread &amp;amp;quot;main&amp;amp;quot; java.lang.NullPointerException

问题描述 Java中遇到的一个异常Exception in thread "main" java.lang.NullPointerException import java.util.*; public class NewHashTest{ public static void main(String[] args) { HashMap hash = new HashMap(); Emp emp1 = new Emp(""laoda""111&q

Exception in thread &amp;amp;quot;AWT-EventQueue-0&amp;amp;quot; java.lang.NullPointerException

问题描述 我的代码如下:JTabbedDemo.javaimport javax.swing.*;import java.awt.*;public class JTabbedDemo{public static void main(String[] args) throws Exception{//显示外观风格UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());JFrame jframe=new JFrame("

List操作错误Exception in thread &amp;amp;quot;main&amp;amp;quot; java.lang.IllegalStateException

问题描述 Iterator<Teacher> iter = teacherList.iterator();while(iter.hasNext()){Teacher teacher =iter.next();//①查找老师的最大上限值,如果该老师已经达到上限了,则将该老师从List中拿出,不予安排if(teacher.getMaxnum()<=teacher.getRealnum()){iter.remove();teacherList.remove(teacher);}//②找到该考试

Exception in thread &amp;amp;quot;main&amp;amp;quot; java.lang.NoClassDefFoundError:

问题描述 <?xml version='1.0' encoding='UTF-8'?><!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"><!-- Generated by

java程序编译成功但运行不了(Exception in thread &amp;amp;quot;main&amp;amp;quot; java.lang.IllegalArgumentException

问题描述 D:work>javac JComboBoxDemo.javaD:work>java JComboBoxDemoException in thread "main" java.lang.IllegalArgumentException: adding container's parent to itself at java.awt.Container.checkAddToSelf(Unknown Source) at java.awt.Container.addI

Exception in thread &amp;amp;quot;main&amp;amp;quot; java.lang.Exception: 网页内容获取异常!Http Status Code:403

问题描述 packagecom.mobile.util;importjava.util.regex.Matcher;importjava.util.regex.Pattern;importorg.apache.commons.httpclient.HttpClient;importorg.apache.commons.httpclient.NameValuePair;importorg.apache.commons.httpclient.methods.PostMethod;importorg.

jdk-Exception in thread &amp;amp;quot;main&amp;amp;quot; java.lang.

问题描述 Exception in thread "main" java.lang. 从svn上down下来的源码,在搭建本机环境的时候报错 Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apdplat/word/analysis/TextSimilarity : Unsupported major.minor version 52.0 2 at java.lang.Cl