Oracle连接池上的一个很奇怪的问题

R3商业智能 发布于 2016/05/31 10:38
阅读 1K+
收藏 0

@wenshao 你好,想跟你请教个问题:

系统刚启动的时候是没有问题的,运行一段时间以后,就抛出了下面这个奇怪的问题

java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "weblogic.jdbc.wrapper.PreparedStatement_oracle_jdbc_driver_T4CPreparedStatement.setResultSetCache(Loracle/jdbc/OracleResultSetCache;)V" the class loader (instance of weblogic/utils/classloaders/ChangeAwareClassLoader) of the current class, weblogic/jdbc/wrapper/PreparedStatement_oracle_jdbc_driver_T4CPreparedStatement, and the class loader (instance of sun/misc/Launcher$AppClassLoader) for interface weblogic/jdbc/vendor/oracle/OracleStatement have different Class objects for the type oracle/jdbc/OracleResultSetCache used in the signature
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.newInstance0(Class.java:326)
at java.lang.Class.newInstance(Class.java:308)
at weblogic.utils.wrapper.WrapperFactory.createWrapper(WrapperFactory.java:162)
at weblogic.jdbc.wrapper.JDBCWrapperFactory.getWrapper(JDBCWrapperFactory.java:175)
at weblogic.jdbc.wrapper.PreparedStatement.makePreparedStatement(PreparedStatement.java:56)
at weblogic.jdbc.wrapper.PreparedStatement.makePreparedStatement(PreparedStatement.java:35)
at weblogic.jdbc.wrapper.Connection.prepareStatement(Connection.java:559)
at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:497)
at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:94)
at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:87)
at org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(AbstractBatcher.java:218)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2220)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2656)
at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:52)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:232)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:139)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
at org.springframework.orm.hibernate3.HibernateAccessor.flushIfNecessary(HibernateAccessor.java:390)
at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:407)
at org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)
at org.springframework.orm.hibernate3.HibernateTemplate.save(HibernateTemplate.java:683)


加载中
0
wenshao
wenshao

没看到druid的栈,和druid无关吧

0
我才是卡卡
我才是卡卡

您好,问题解决了吗?我们也遇到这个问题,好像是weblogic自带的jdbc驱动与应用带的jdbc驱动有类重复,发生冲突,您具体是怎么解决的?

返回顶部
顶部