首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏Java实战博客

    Java.sql.SQLException

    Cause: java.sql.SQLException: Value’0000-00-00 00:00:00′ can not be represented as java.sql.Timestamp

    65320编辑于 2022-01-19
  • 来自专栏ppjun专栏

    记录一个SQLException

    问题 我前端form-data上传图文到后台时,返回一个服务器内部异常SQLException: Incorrect string value: '\xE5\x92\x8CH' for column '

    43540发布于 2018-09-05
  • 来自专栏大数据学习笔记

    SQLException: 无效的列类型: 1111

    Cause: java.sql.SQLException: 无效的列类型: 1111 ; uncategorized SQLException for SQL []; SQL state [99999] ; error code [17004]; 无效的列类型: 1111; nested exception is java.sql.SQLException: 无效的列类型: 1111 org.springframework.web.servlet.FrameworkServlet.processRequest

    2.3K20编辑于 2022-05-06
  • 来自专栏一个会写诗的程序员的博客

    java.sql.SQLException: connection holder is null

    java.sql.SQLException: connection holder is null Cause: java.sql.SQLException: connection holder is null ; uncategorized SQLException for SQL []; SQL state [null]; error code [0]; connection holder is null ; nested exception is java.sql.SQLException: connection holder is null at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate com.alibaba.dts.client.executor.simple.processor.SimpleTaskProcessor.run(SimpleTaskProcessor.java:100) Caused by: java.sql.SQLException

    2.3K10发布于 2018-08-17
  • 来自专栏Java探索之路

    java.sql.SQLException: 列名无效

    在进行jdbc操作时,出现了如下图的bug: 错误原因:在执行sql语句后,进行遍历,但是取值与数据库中的列名不一致。 主要是因为字段名错误,如下,本来应该从数据库中取emp表中的realName字段

    3.2K20发布于 2020-07-24
  • 来自专栏项目文章

    【已解决】:java.sql.SQLException 问题

    java.sql.SQLException: java.lang.RuntimeException: java.sql.SQLException: Can not issue executeUpdate 140) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at Caused by: java.sql.SQLException

    64910编辑于 2024-06-07
  • 来自专栏Kirin博客

    java.sql.SQLException: The server time zone value ‘?й???????’

    Cause: java.sql.SQLException: The server time zone value '?й???????'

    71020发布于 2020-12-14
  • 来自专栏笔记2022

    SQLException:Lock wait timeout exceeded; try restarting transaction

    图中红色语句 LOCK WAIT为占用系统资源的语句,我们需要杀掉这个锁,执行 kill 线程id号。上面这条记录的id为199120823069, trx_mysql_thread_id 为 738178711, 所以我们执行:kill 738178711杀掉这个MySQL语句的线程即可。 执行之后:

    46110编辑于 2022-06-17
  • 来自专栏IT杂谈学习

    【Java】已解决java.sql.SQLException异常

    在Java中,java.sql.SQLException是一个通用的异常类,用于表示在数据库操作中发生的错误。 本文将深入探讨SQLException的背景、可能的原因、错误代码示例、解决方案以及编写数据库代码时需要注意的事项。 一、分析问题背景 SQLException异常通常会在以下场景中出现: 执行SQL查询或更新时语法错误。 试图访问不存在的数据库或表。 试图插入或更新不符合表结构的数据。 e) { e.printStackTrace(); // 这里会捕获到SQLException } 二、可能出错的原因 SQL语法错误:查询语句可能包含拼写错误、缺少逗号、 错误处理:不要忽视SQLException。总是捕获并适当地处理它,以便了解发生了什么错误。

    2.7K10编辑于 2025-05-22
  • 来自专栏JAVA

    SQLException: No suitable driver found - 完美解决方法

    SQLException: No suitable driver found - 完美解决方法 摘要 大家好,我是默语,今天我们将讨论一个常见但令人头痛的错误:SQLException: No suitable 引言 SQLException: No suitable driver found 是Java开发人员经常会遇到的错误之一,尤其是在使用JDBC驱动与数据库进行交互时。 什么是 SQLException: No suitable driver found? 什么是JDBC? 错误的含义 SQLException: No suitable driver found 通常意味着Java应用无法找到合适的JDBC驱动来连接数据库。 小结 SQLException: No suitable driver found 是Java开发中一个常见的错误,通常由驱动程序未加载、类路径配置错误或JDBC URL格式不正确引发。

    1.8K10编辑于 2024-11-22
  • 来自专栏软件开发-青出于蓝

    JDK之java.sql.SQLException有个坑

    我们一般情况下,只记录了Log.error(e.getMessage(),e);但是如果e是SQLException类型,那么就要注意这个nextException()了,因为底层上有可能会把错误信息封装为 SQLException链,如果只是简单的Log.error(e.getMessage(),e);那么整个SQLException链打印不出来,所以报错了,但是我们看不到异常的根源。 我们一般会忽略这个问题,所以建议在操作数据库时,先判断是否为了SQLException,而后进行nextException处理。 要注意SQLException的子类都有这个问题。

    58930发布于 2019-04-15
  • 来自专栏码出code

    java.sql.SQLException: MONTH 报错解决方法

    idea控制台报错:java.sql.SQLException: MONTH Error attempting to get column 'xxx' from result set. Cause: java.sql.SQLException: MONTH ; MONTH; nested exception is java.sql.SQLException: MONTH] with root 总结 java.sql.SQLException: MONTH 报错。先定位到对应字段,如果无法确认问题原因,先去掉字段,去掉后没有问题,应该就是时间字段的问题。

    74620编辑于 2023-02-26
  • 来自专栏JAVA

    SQLException: No Suitable Driver Found - 完美解决方法详解

    SQLException: No Suitable Driver Found - 完美解决方法详解 摘要 在Java开发中,SQLException: No suitable driver found 引言 SQLException: No suitable driver found 错误通常出现在试图连接数据库时,意味着Java无法找到适合的JDBC驱动程序。 问题概述 ❗ 当Java应用程序试图通过JDBC与数据库建立连接时,如果未能找到合适的驱动程序,通常会抛出 SQLException: No suitable driver found 错误。 ; } catch (ClassNotFoundException | SQLException e) { e.printStackTrace(); 如果省略这一行代码,Java将无法找到驱动程序,从而抛出SQLException。 3.

    4.8K10编辑于 2024-11-22
  • 来自专栏HueiFeng技术专栏

    SqlException:ConnectionTimeout Expired. The timeout period elapsed during the po

    linux系统部署.netcore程序后,访问某台sqlserver 2008 R2数据库

    1.2K10发布于 2020-01-22
  • 来自专栏笔记2022

    java.sql.SQLException: Internal error: Cannot obtain XAConnection

    解决办法:进入weblogic控制台中–>数据源—>选择对应数据源–>连接池—>最大容量 将最大容量调大一点

    1.1K10编辑于 2022-06-17
  • 启动 hive产生 java.sql.SQLException 异常问题

    Exception in thread “main” java.lang.RuntimeException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClien t at org.apache.hadoop.hive.ql.session.SessionState.start(Session State.java:522) at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:677) at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:621 ) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.hadoop.util.RunJar.run(RunJar.java:221) at org.apache.hadoop.util.RunJar.main(RunJar.java:136) Caused by: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClien t at org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance( MetaStoreUtils.java:1523) at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.(RetryingMetaStoreClient.java:86) at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.get Proxy(RetryingMetaStoreClient.java:132) at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.get Proxy(RetryingMetaStoreClient.java:104) at org.apache.hadoop.hive.ql.metadata.Hive.createMetaStoreClien t(Hive.java:3005) at org.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:302 4) at org.apache.hadoop.hive.ql.session.SessionState.start(Session State.java:503) … 8 more 解决方案:原因是,Metastore 默认存储在自带的 derby 数据库中,推荐使用 MySQL 存储 Metastore;

    13210编辑于 2025-12-23
  • 来自专栏CodingToDie

    Druid 异常分析 java.sql.SQLException: interrupt Druid

    java.sql.SQLException: interrupt Druid 今天看线上一直报 java.sql.SQLException: interrupt 因为第一次遇到也在网上找了一些资料,其中网上的大部分内容如下 报错为 Could not open JDBC Connection for transaction; nested exception is java.sql.SQLException: interrupt 异常具体内容如下: 2021-05-10 at 16:25:05.262 CST ERROR java.sql.SQLException: interrupt at com.alibaba.druid.pool.DruidDataSource.getConnectionInternal 查看具体的错误位置代码为: private DruidPooledConnection getConnectionInternal(long maxWait) throws SQLException { ; } catch (InterruptedException e) { connectErrorCount.incrementAndGet(); throw new SQLException

    9.9K30发布于 2021-05-13
  • 来自专栏凯哥Java

    java.sql.SQLException: The server time zone value:xx异常

    java.sql.SQLException: The server time zone value '�й���׼ʱ��' is unrecognized or represents more than

    2.1K30发布于 2019-06-28
  • 来自专栏分享学习

    java.sql.SQLException: sql injection violation, multi-statement not allow

    解决——》java.sql.SQLException: sql injection violation, multi-statement not allow 1、操作 Spring Boot配置druid 连接池,进行批量插入 2、现象(错误信息) Caused by: java.sql.SQLException: sql injection violation, multi-statement not

    5K20发布于 2021-05-10
  • 来自专栏java 微风

    解决 Unable to translate SQLException with Error code ‘17059‘, will now try the fallback translator

    1.报错: Unable to translate SQLException with Error code '17059', will now try the fallback translator

    1.9K20编辑于 2022-04-13
领券