could not insert: [com.linln.modules.system.domain.ActionLog] ??方法尚未被实作。

源码节点 发布于 10/08 23:08
阅读 141
收藏 0

华为云11月刊推送:DIY微信问答机器人,高性能计算代码的20个技巧!>>>

SQL Error: 0, SQLState: 0A000
2020-10-08 23:05:10.938 ERROR 5600 --- [nio-8080-exec-4] o.h.engine.jdbc.spi.SqlExceptionHelper   : 这个 org.postgresql.jdbc.PgPreparedStatement.setCharacterStream(int, Reader, long) 方法尚未被实作。
2020-10-08 23:05:10.952 ERROR 5600 --- [nio-8080-exec-4] o.s.t.i.TransactionInterceptor           : Application exception overridden by rollback exception

javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: could not insert: [com.linln.modules.system.domain.ActionLog]
    at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:154) ~[hibernate-core-5.3.9.Final.jar:5.3.9.Final]
    at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:181) ~[hibernate-core-5.3.9.Final.jar:5.3.9.Final]
    at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:188) ~[hibernate-core-5.3.9.Final.jar:5.3.9.Final]
    at org.hibernate.internal.SessionImpl.firePersist(SessionImpl.java:806) ~[hibernate-core-5.3.9.Final.jar:5.3.9.Final]
    at org.hibernate.internal.SessionImpl.persist(SessionImpl.java:784) ~[hibernate-core-5.3.9.Final.jar:5.3.9.Final]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_241]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_241]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_241]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_241]
    at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:350) ~[spring-orm-5.1.6.RELEASE.jar:5.1.6.RELEASE]
    at com.sun.proxy.$Proxy123.persist(Unknown Source) ~[na:na]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_241]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_241]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_241]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_241]
    at org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke

加载中
0
源码节点
源码节点

Hibernate: select user0_.id as id1_7_, user0_.create_date as create_d2_7_, user0_.dept_id as dept_id14_7_, user0_.email as email3_7_, user0_.nickname as nickname4_7_, user0_.password as password5_7_, user0_.phone as phone6_7_, user0_.picture as picture7_7_, user0_.remark as remark8_7_, user0_.salt as salt9_7_, user0_.sex as sex10_7_, user0_.status as status11_7_, user0_.update_date as update_12_7_, user0_.username as usernam13_7_ from sys_user user0_ where ( user0_.status != 3) and user0_.username=?
Hibernate: select dept0_.id as id1_1_0_, dept0_.create_by as create_10_1_0_, dept0_.create_date as create_d2_1_0_, dept0_.pid as pid3_1_0_, dept0_.pids as pids4_1_0_, dept0_.remark as remark5_1_0_, dept0_.sort as sort6_1_0_, dept0_.status as status7_1_0_, dept0_.title as title8_1_0_, dept0_.update_by as update_11_1_0_, dept0_.update_date as update_d9_1_0_ from sys_dept dept0_ where dept0_.id=? and ( dept0_.status != 3)
Hibernate: select role0_.id as col_0_0_ from sys_role role0_ left outer join sys_user_role users1_ on role0_.id=users1_.role_id left outer join sys_user user2_ on users1_.user_id=user2_.id and ( user2_.status != 3) where ( role0_.status != 3) and user2_.id=? and role0_.status=? limit ?
Hibernate: insert into sys_action_log (clazz, create_date, ipaddr, message, method, model, name, oper_by, oper_name, record_id, type) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
2020-10-08 23:09:03.487  WARN 5600 --- [nio-8080-exec-9] com.zaxxer.hikari.pool.ProxyConnection   : HikariPool-1 - Connection org.postgresql.jdbc.PgConnection@25108d1f marked as broken because of SQLSTATE(0A000), ErrorCode(0)

java.sql.SQLFeatureNotSupportedException: 这个 org.postgresql.jdbc.PgPreparedStatement.setCharacterStream(int, Reader, long) 方法尚未被实作。
    at org.postgresql.Driver.notImplemented(Driver.java:699) ~[postgresql-42.2.16.jar:42.2.16]
    at org.postgresql.jdbc.PgPr

0
源码节点
源码节点

PgPreparedStatement.setCharacterStream(int, Reader, long) 方法尚未被实作。

0
源码节点
源码节点

SQLServerException

备注

此 setCharacterStream 方法是由 java.sql.PreparedStatement 接口中的 setCharacterStream 方法指定的。

如果流长度与 length 参数指定的长度不同,则 JDBC 驱动程序将在更新或插入行时引发异常**。

如果流长度未知,则可将 length 参数设置为 -1 以指示驱动程序应接受流而不考虑其长度**。 使用 sqljdbc4.jar,当应用程序希望使用长度未知的流来更新列时,建议使用 JDBC 4.0 方法 setCharacterStream 方法 (int, java.io.Reader)

0
返回顶部
顶部