首页 > 解决方案 > 合并中的 JPA 错误:仅插入时出现密码过期错误

问题描述

我们正在使用 entitymanager 合并方法来更新(如果存在)或插入(如果不存在)某个表中的记录。发生的情况是,如果是更新,则没有错误,但如果是插入,我们会从日志中看到以下错误:

原因:java.sql.SQLException: ORA-28001: 密码已过期\n DSRA0010E: SQL 状态 = 99999,错误代码 = 28,001\n\tat oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:450) \n\tat oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:392)\n\tat oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:385)\n\tat oracle.jdbc.driver。 T4CTTIfun.processError(T4CTTIfun.java:938)\n\tat oracle.jdbc.driver.T4CTTIoauthenticate.processError(T4CTTIoauthenticate.java:480)\n\tat oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:655)

当我们检查数据源是否连接成功时 - 我们没有密码过期错误。

我们还尝试通过 oracle sql developer tool 手动插入表 - 没有错误

谁能告诉我为什么会这样?

标签: oraclejpaoracle11gjpa-2.1hibernate-jpa

解决方案


推荐阅读