Tomcat会话复制:java.io.NotSerializableException:oracle.jdbc.driver.T4CConnection

时间:2017-11-02 00:45:13

标签: oracle tomcat serialization

在与Oracle连接时复制的tomcat会话中发生此错误,我的项目的会话对象中没有连接实例,帮助!

01-Nov-2017 16:45:26.653 SEVERE [https-jsse-nio-8443-exec-2] org.apache.catalina.ha.session.DeltaManager.requestCompleted Unable to serialize delta request for sessionid [F825A52DD9E0E7F8FD6BB3E3F721F841]
 java.io.NotSerializableException: oracle.jdbc.driver.T4CConnection
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1183)
    at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547)
    at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508)
    at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)
    at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547)
    at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508)
    at 

1 个答案:

答案 0 :(得分:1)

已解决,会话中Class的一个字段是java.sql.Clob,因此我们删除了此字段并修复了问题。