使用Oracle的Spring Session JDBC无法创建Blob

时间:2018-11-05 16:53:20

标签: java spring oracle jdbc spring-session

目前,我想在我的Spring session配置基础项目中实现Spring XML。但是,在Spring Session试图将数据保存到数据库的点上出现了错误。 这是我从控制台获得的信息:

  

java.lang.AbstractMethodError       在org.apache.commons.dbcp.DelegatingConnection.createBlob(DelegatingConnection.java:571)       在org.apache.commons.dbcp.DelegatingConnection.createBlob(DelegatingConnection.java:571)       在org.springframework.jdbc.support.lob.TemporaryLobCreator.setBlobAsBytes(TemporaryLobCreator.java:64)       在org.springframework.session.jdbc.JdbcOperationsSessionRepository.setObjectAsBlob(JdbcOperationsSessionRepository.java:667)       在org.springframework.session.jdbc.JdbcOperationsSessionRepository.lambda $ insertSessionAttributes $ 4(JdbcOperationsSessionRepository.java:550)       在org.springframework.session.jdbc.JdbcOperationsSessionRepository $$ Lambda $ 128 / 1131500542.setValues(来源不明)       在org.springframework.jdbc.core.JdbcTemplate.lambda $ update $ 0(JdbcTemplate.java:865)       在org.springframework.jdbc.core.JdbcTemplate $$ Lambda $ 105 / 1374416583.doInPreparedStatement(未知来源)       在org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:617)       在org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:862)       在org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:917)       在org.springframework.session.jdbc.JdbcOperationsSessionRepository.insertSessionAttributes(JdbcOperationsSessionRepository.java:547)       在org.springframework.session.jdbc.JdbcOperationsSessionRepository.access $ 300(JdbcOperationsSessionRepository.java:135)       在org.springframework.session.jdbc.JdbcOperationsSessionRepository $ 2.doInTransactionWithoutResult(JdbcOperationsSessionRepository.java:414)       在org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:36)       在org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)       在org.springframework.session.jdbc.JdbcOperationsSessionRepository.save(JdbcOperationsSessionRepository.java:397)       在org.springframework.session.jdbc.JdbcOperationsSessionRepository.save(JdbcOperationsSessionRepository.java:135)       在org.springframework.session.web.http.SessionRepositoryFilter $ SessionRepositoryRequestWrapper.commitSession(SessionRepositoryFilter.java:236)       在org.springframework.session.web.http.SessionRepositoryFilter $ SessionRepositoryRequestWrapper.access $ 100(SessionRepositoryFilter.java:197)

注意:我使用Spring 5.1.2.RELEASEhibernate 3.2.5.ga

0 个答案:

没有答案