那些开发中遇见过的异常
文章平均质量分 54
在开发过程中遇见过的错误
Chen_leilei
头发掉光,技术见长
展开
-
java排查故障思路
线上的故障无非就是四种,cpu,磁盘,内存,网络。出现的大多数问题都不仅仅在一个层面上面,基本出现问题了就是df,free,top 三连,然后上jstack,jmap.遇见具体问题分析即可。原创 2024-04-30 16:11:30 · 876 阅读 · 0 评论 -
derby数据库插入异常The number of values assigned is not the same as the number of specified or implied colu
The number of values assigned is not the same as the number of specified or implied columns.原创 2022-09-22 22:11:10 · 1386 阅读 · 0 评论 -
Unable to make protected final java.lang.Class
在jdk1.8升级到17之后,会有许多问题,今天遇见了一个,下面是异常详情:com.alibaba.excel.exception.ExcelGenerateException: java.lang.ExceptionInInitializerError at com.alibaba.excel.write.ExcelBuilderImpl.addContent(ExcelBuilderImpl.java:64) at com.alibaba.excel.ExcelWr原创 2022-05-27 18:10:49 · 1669 阅读 · 4 评论 -
Caused by: java.lang.NoSuchMethodException:.PoiExcelExport.<init>()
在启动项目时报如下错误java.lang.InstantiationException: com.keesail.weba.kltYdKpiTarget.PoiExcelExport at java.lang.Class.newInstance(Class.java:427) at com.keesail.web.config.KeeJFinalKit.mapping(KeeJFinal...原创 2019-07-09 15:31:10 · 281 阅读 · 0 评论 -
解决JavaEE开发的颠覆者SpringBoot实战 SpringBoot整合Thymeleaf中使用th:onclick报错
在学习到SpringBoot整合Thymeleaf中原文是<button class="btn" th:onclick="'getName(\''+${person.name}+'\');'">获得名字</button>但是发现报错报错信息:2018-11-20 17:26:55.778 ERROR 14900 --- [nio-8080-exec...原创 2019-10-31 10:44:03 · 357 阅读 · 0 评论 -
HTTP Status 500 - An invalid character [44] was present in the Cookie value
不多说,在servlet中获取cookie的时候报错HTTP Status 500 - An invalid character [44] was present in the Cookie value开始我以为是我代码逻辑的问题。后来发现就是这个“,”搞鬼。换成#就可以了,完美运行~~美滋滋...原创 2018-03-24 11:20:25 · 3506 阅读 · 5 评论 -
在Hibernate中常见的异常
在学习hibernate过程中,遇见了以下几种错误,有的是因为配置文件写的不够细心,有的是因为延迟加载的问题,所以拿出来分享一下。(1).org.hibernate.boot.MappingNotFoundException:Mapping (RESOURCE) not found : com/pojo/Dept.hbm.xml :origin(com/pojo/Dept.hbm.xml)原创 2018-04-14 09:17:37 · 2453 阅读 · 0 评论 -
SpringBoot整合SpringJPA时,findOne报错
这个时候你应该看看SpringBoot的版本,我刚才是用的2.0以上的版本,findOne就是打死找不到,后来想到了会不会是版本问题,结果将版本改为<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent...原创 2018-09-26 11:43:43 · 250 阅读 · 0 评论