异常
#空白#
喜爱编程,喜欢一个人的夜晚,喜欢敲击键盘的声音
展开
-
mac上虚拟机上的Redis连接不上报错Could not get a resource from the pool; nested exception
本人用的window虚拟机1.检查yml配置文件是否正确2.用命令ping IP+redis端口(Mac命令是 nc -vz -w 2 10.211.44.6 6379 windows自己百度)3.如果ping不通IP+端口,关闭防火墙、开放端口 windows是在控制面板 - 系统和安全 - 高级设置 -入站规则 -新建规则****4.修改config配置文件降build 修改成 bind 0.0.0.05.如果还是不行,那就将springboot yml配置文件后缀改成yaml。原创 2023-02-23 01:05:32 · 610 阅读 · 0 评论 -
java.lang.IllegalMonitorStateException
一开始代码 代码会抛出异常java.lang.IllegalMonitorStateException。解决:只需要将tasks.notifyAll();放到synchronized代码块中执行。我的问题是 没有将 notifyAll放到synchronized代码块中。原创 2023-01-04 23:03:01 · 177 阅读 · 0 评论 -
JDBC连接 sqlServer2008 版本过低 换jdbc驱动
【代码】JDBC连接 sqlServer2008 版本过低 换jdbc驱动。原创 2022-10-27 21:15:47 · 876 阅读 · 0 评论 -
解决Error:Kotlin: Module was compiled with an incompatible version of Kotlin
Error:Kotlin: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.13.原创 2022-10-17 22:14:20 · 716 阅读 · 0 评论 -
解决 centos 7 eans33 网络
查看IP地址 :ifconfig 输出的 ens33:看不到 inet *** netmask 255.255.255.0。最后在查看ifconfig,在到windows ping 一下 ip。修改文件 ifcfg-ens33 将。原创 2022-09-04 02:23:06 · 1052 阅读 · 0 评论 -
解决数据库表锁
代码】解决数据库表锁。原创 2022-08-16 16:08:39 · 286 阅读 · 0 评论 -
Method breakpoints may dramatically slow down debugging 项目启动不了
解决 取消断点就行了。原创 2022-08-04 15:26:44 · 71 阅读 · 0 评论 -
Optional long parameter ‘PactId‘ is present but cannot be translated into a null value due to being
不能为null值将long接收转成Long。原创 2022-07-20 10:03:17 · 342 阅读 · 0 评论 -
Row was updated or deleted by another transaction or unsaved-value mapping was incorrect解决
我的问题处在,子对象里面fk不为0jpa会报Rowwasupdatedordeletedbyanothertransactionorunsaved-valuemappingwasincorrect。Rowwasupdatedordeletedbyanothertransactionorunsaved-valuemappingwasincorrect记录报错。使用jpa进行update时错误。将jpa子对象fk置0。下面继承自己封装的。......原创 2022-07-19 16:06:17 · 856 阅读 · 0 评论 -
with identifier [6854395]: optimistic locking failed; nested exception is org.hibernate.StaleObjectS
with identifier [6854395]: optimistic locking failed; nested exception is org.hibernate.StaleObjectStateException:我这里的原因是 version 版本号在数据库为null原创 2022-07-12 09:52:12 · 331 阅读 · 0 评论 -
nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet
nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet往下看具体日志:我这里是标识无效,表示数据库没有这个字段 或者映射字段失败java.sql.SQLSyntaxErrorException: ORA-00904: \"POLICYINTE3_\".\"VERSION\": 标识符无效\n\r\n\tat oracle.jdbc.driver.T4CTTIoer11..原创 2022-05-10 10:31:58 · 1707 阅读 · 0 评论 -
Error running ‘StartBasicApp‘: Command line is too long. Shorten command line for StartBasicApp or a
<component name="PropertiesComponent"> <property name="dynamic.classpath" value="true"/>原创 2022-04-29 10:44:40 · 86 阅读 · 0 评论 -
Incorrect string value: ‘\xE7\xA8\x8B\xE5\xBA\x8F...‘ for column ‘course‘ at row 1 插入中文错误
Incorrect string value: ‘\xE7\xA8\x8B\xE5\xBA\x8F…’ for column ‘course’ at row 1 插入中文错误原因 数据库表没有设置utf-8 或 字段不为 utf-8DROP TABLE IF EXISTS xquark_twitter_market_audits;DROP TABLE IF EXISTS xquark_twitter_market_audits;CREATE TABLE xquark_twitter_market_a原创 2022-03-17 14:50:17 · 872 阅读 · 0 评论 -
Creating Server TCP listening socket *:6379: bind: No error
Creating Server TCP listening socket *:6379: bind: No error原创 2022-03-05 12:52:24 · 322 阅读 · 0 评论 -
Process ‘command ‘C:/Program Files/Java/jdk1.8.0_192/bin/java.exe‘‘ finished with non-zero exit valu
Process ‘command ‘C:/Program Files/Java/jdk1.8.0_192/bin/java.exe’’ finished with non-zero exit value 1解决原创 2022-02-14 11:56:27 · 5714 阅读 · 0 评论 -
springboot错误: 找不到或无法加载主类
springboot错误: 找不到或无法加载主类在网上找到了不少,都没解决这个问题!1.配置jdk不要有特殊符号,路径中文2.配置的gradle和maven 同 jdk一样3项目路径不要中文修改完成后 解决原创 2021-12-29 10:05:15 · 340 阅读 · 0 评论 -
Error creating bean with name ‘marketCluesController‘: Unsatisfied dependency expressed through fiel
忘记实service了Error creating bean with name 'marketCluesController': Unsatisfied dependency expressed through field 'marketCluesPlanService'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'me原创 2021-05-25 10:54:57 · 144 阅读 · 0 评论 -
Error:java: Can‘t generate mapping method with primitive return type.
Spring项目中使用了JPA以及Mybatis–mapper文件注解引错包导致编译错误错误导入 jpaimport org.mapstruct.Mapper;正确导入 mybatisPlusimport org.apache.ibatis.annotations.Mapper;原创 2021-05-24 11:48:57 · 9658 阅读 · 22 评论 -
controller.ActivityHistoryController.delActivityHistory(java.util.List<java.lang.Long>)
@GetMapping("/del")@ApiOperation("删除") public R delActivityHistory( List<Long> id){ /*逻辑删除*/ activityHistoryService.removeByIds(id); return R.ok(); }报错org.springframework.http.converter.HttpMessageNotReadableExcept原创 2021-04-16 11:10:20 · 103 阅读 · 0 评论 -
mybatis-plues .xml ava.sql.SQLException: Parameter index out of range (2 >;参数个数,为1)。
Caused by: org.apache.ibatis.type.TypeException: Error setting non null for parameter #2 with JdbcType null . Try setting a different JdbcType for this parameter or a different configuration property. Cause: java.sql.SQLException: Parameter index out of ra原创 2021-04-16 10:31:16 · 154 阅读 · 0 评论 -
前台传入 时间类型 2021-04-16T02:07:21.729Z 后端接收 数据类型为 date 为null
com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type java.util.Date from String “2021-04-16T02:07:21.729Z”: not a valid representation (error: Failed to parse Date value ‘2021-04-16T02:07:21.729Z’: Unparseable date: “原创 2021-04-16 10:19:49 · 671 阅读 · 0 评论