1 详细异常信息 User class threw exception: java.sql.SQLException: Duplicate entry '2019-07-30 00:00:00-110100' for key 'dc' Query: update t_user_register_analyse set city_code = ?, city = ?, total_user_register_count = ?, day_user_register_count = ?, first…
前言 1.问题背景 偶尔会出现登录请求出错的情况,一旦失败就会短时间内再也登录不上,更换浏览器或者刷新可能会暂时解决这个问题. 项目运行日志如下: 2022-07-21 09:43:40.946 DEBUG 8644 --- [http-nio-0.0.0.0-8080-exec-4] org.hibernate.SQL : select useraccoun0_.id as id1_65_, useraccoun0_.created_by_id as created23_65_, userac…
异常: 由Java.q.L.SqLExpExt引起:字段“CuSTyID”没有默认值 Caused by: java.sql.SQLException: Field 'cust_id' doesn't have a default value 应用场景: SpringDataJpa添加数据 分析过程: 1 看下实体类有没有配置主键注解自增长策略 2 看下数据库表字段信息是不是真的没有默认值:  字段“CuSTyID”没有默认值 解决: 数据库表主键没有自增长. 添加接口.…
原因: Oracle表空间为0,没有分配空间内存. 解决办法在代码框里: 1. 查看用户表空间的限额 select * from user_ts_quotas; max_bytes字段就是了 -1是代表没有限制,其它值多少就是多少了. 2. 不对用户做表空间限额控制: GRANT UNLIMITED TABLESPACE TO ***(用户); ----------------------------------------------------------------------------…
1.错误截图 2.错误分析 数据库的版本比连接驱动的版本高很多. 3.解决方法 因此将mysql-connector-java升级到最新版本就解决了问题. 原本我的版本是mysql-connector-java-5.1.7.jar 后来提升到mysql-connector-java-8.0.15.jar就可以了 可以去maven的网站   https://mvnrepository.com/   找到所需版本,复制到pom.xml自动生成就可以了…
基础环境是用CM 安装的cdh5.4.7,phoenix使用的版本是phoenix-4.5.2-HBase-1.0-bin. 出现异常信息:java.sql.SQLException: ERROR 1102 (XCL02): Cannot get all table regions 下载地址:http://mirror.bit.edu.cn/apache/phoenix/phoenix-4.5.2-HBase-1.0/bin/phoenix-4.5.2-HBase-1.0-bin.tar.gz…
公司开发档案系统使用框架:Spring+Struts2+Mybatis+EasyUI,在开发过程中出现sql异常:“Cause: java.sql.SQLException: 无法转换为内部表示”,错误如下: org.springframework.jdbc.UncategorizedSQLException: ### Error querying database. Cause: java.sql.SQLException: 无法转换为内部表示 ### The error may involv…
package com.swift; import java.io.File; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.SQLException; import java.util.List; import com.google.gson.Gson; public class UpdateUrl { public static void main(String[] args) {…
1 详细异常 java.sql.SQLException: Could not retrieve transaction read-only status , ], [ChargingOrderRealTimeStatistics, maxwell, , ], [ChargingOrderRealTimeStatistics, maxwell, , ]] at org.apache.commons.dbutils.AbstractQueryRunner.rethrow(AbstractQuery…
在执行sql: delete from emp where id in (select id from emp where cdate<'2018-02-02') 时报出以下异常: ### The error occurred while setting parameters ### SQL: delete from emp where id in (select id from emp where cdate<?) ### Cause: java.sql.SQLException: You…