首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > oracle >

java.sql.SQLException: 违反协议

2014-01-28 
------解决方法--------------------------------------------------------i struts+hibernate2 做的,我试

------解决方法--------------------------------------------------------i

struts+hibernate2 做的,我试着把数据库驱动换成了oracle8i 还是这个错误,感觉是配置问题,因为在项目的别的模块的一样的操作都能用,怀疑是不是hibernate2与hibernate3不兼容?但是别的地方怎么能用了?


在保存信息的时候 出现下面的 错误


java.sql.SQLException: 违反协议
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:1160)
at oracle.jdbc.ttc7.Ocommoncall.receive(Ocommoncall.java:149)
at oracle.jdbc.ttc7.TTC7Protocol.rollback(TTC7Protocol.java:487)
at oracle.jdbc.driver.OracleConnection.rollback(OracleConnection.java:1376)
at com.mchange.v2.c3p0.impl.C3P0PooledConnection.reset(C3P0PooledConnection.java:251)
at com.mchange.v2.c3p0.impl.C3P0PooledConnection.access$000(C3P0PooledConnection.java:35)
at com.mchange.v2.c3p0.impl.C3P0PooledConnection$ProxyConnectionInvocationHandler.doSilentClose(C3P0PooledConnection.java:531)
at com.mchange.v2.c3p0.impl.C3P0PooledConnection$ProxyConnectionInvocationHandler.invoke(C3P0PooledConnection.java:636)
at com.mchange.v2.c3p0.impl.$Proxy0.close(Unknown Source)
at net.sf.hibernate.connection.C3P0ConnectionProvider.closeConnection(C3P0ConnectionProvider.java:48)
at net.sf.hibernate.impl.BatcherImpl.closeConnection(BatcherImpl.java:275)
at net.sf.hibernate.impl.SessionImpl.disconnect(SessionImpl.java:3285)
at net.sf.hibernate.impl.SessionImpl.close(SessionImpl.java:497)
at gmit.gsf.tool.hibernate.PersistentTool.search(PersistentTool.java:586)
at gmit.gsf.arch.BaseBO._search(BaseBO.java:81)
at gmit.gsf.arch.BaseSI._search(BaseSI.java:39)
at gmit.jzt.orguser.action.OrgRoleManageSI_updateAction.searchOrgAgent(OrgRoleManageSI_updateAction.java:138)
at gmit.jzt.orguser.action.OrgRoleManageSI_updateAction.execute(OrgRoleManageSI_updateAction.java:86)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:509)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:277)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1490)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:530)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)