
报错记录
蒂法洛克
君未全力以赴,何言人生艰苦。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
com.alibaba.fastjson.JSONException: not match : - =, info : pos 14, json :..
1. 分析 :数据集合字符串转换为对象集合的时候报出“com.alibaba.fastjson.JSONException: not match : - =..”2. 最开始写的转换代码如下List<GQueryAllocationRespDTO> allocDtos = JSONArray.parseArray(response.getAllocation().toString(), GQueryAllocationRespDTO.class);修改如下解决问题:Strin..转载 2020-06-18 14:16:27 · 7076 阅读 · 0 评论 -
Eureka Client启动后就关闭 Unregistering application xxx with eureka with status DOWN
报错如下:DiscoveryClient_USER-CENTER/192.168.1.231:user-center:2001: registering service...Started UserCenterApplication in 2.351 seconds (JVM running for 2.892)Unregistering application USER-CENTER w...转载 2020-03-08 12:21:30 · 2274 阅读 · 0 评论 -
Boot上传文件报错 the request was rejected because its size (576134143) exceeds the configured maximum (524
SpringBoot上传文件过大解决办法1、yml配置:# 本地文件上传:最大支持文件大小spring: servlet: multipart: max-file-size: 1024MB max-request-size: 1024MB enabled: true resolve-lazily: false2、在启动类中...原创 2020-01-12 13:48:55 · 2254 阅读 · 0 评论 -
cloud 启动报错(mysql连接):Failed to configure a DataSource: 'url' attribute is not specified and no embedd
原因:在父pom中引入了jdbc和mysql相关依赖,如下: <!--mysql--> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactI...原创 2020-01-11 11:55:12 · 580 阅读 · 0 评论 -
cloud 启动报错 Cannot execute request on any known server 几种解决办法
报错解释:连接Eureka服务端地址不对。也就是defaultZone 这里。1、我自己的错default-zone 改为 defaultZone在配置eureka配置yaml参数中,关于默认地址default-zone下划线+下划线后面的小写字母等同于去掉下划线大写下划线后面的字母(驼峰原则),这个原则在其他参数上可有可无 ,但是针对于 default-zone 这个是必须改...原创 2019-12-26 13:48:14 · 934 阅读 · 0 评论 -
cloud feign 报错 feign/Feign$Builder
报错信息:Caused by: java.lang.IllegalStateException: Failed to introspect Class [org.springframework.cloud.openfeign.FeignClientFactoryBean] from ClassLoader [sun.misc.Launcher$AppClassLoader@18b4aac2]...原创 2019-12-26 13:27:36 · 1027 阅读 · 0 评论 -
spring boot项目启动报错:Failed to load property source from location 'classpath:/application.yml' 语法格式问题
控制台报错信息:01:25:43.686 [main] ERROR org.springframework.boot.SpringApplication - Application run failedjava.lang.IllegalStateException: Failed to load property source from location 'classpath:/appli...转载 2019-12-26 13:19:34 · 413 阅读 · 0 评论 -
mysql sql 报错:Duplicate entry 'DEM03523005-653' for key 'unionKey'
具体:2019-05-27 14:57:01.329 [http-nio-7000-exec-4] ERROR - 接口名: [ /studentApply/breakIn ] 错误信息: [ org.springframework.dao.DuplicateKeyException:### Error updating database. Cause: java.sql.SQLInte...原创 2019-05-27 15:01:03 · 552 阅读 · 0 评论 -
常见的java非运行时异常有哪些
1、常见的java运行时异常有哪些了解非运行时异常看这里:什么是java中的异常常见的运行时异常看这里:常见的运行时异常有哪些我们所说的常见异常是jdk或者其他常用第三方jar中的异常,出现频次很高的异常。常见的非运行时异常(即检查异常,checked exception)包括:操作数据库异常:SQLException 输入输出异常:IOException 文件未找到异常:Fi...转载 2019-12-14 19:27:37 · 8118 阅读 · 1 评论 -
boot项目,读取yml 数字数据 以数字0开头,获得数据与记录数据不符
今天对接第三方,将第三方appId(6位数的数字)存于yml,这个比较特殊,是以数字0开头的,存储值为:00746;appId: 000746在代码内获取此参数,@value("${appId}")private Integer appId;但是,此时获得此参数为486,而不是00746;后来搜索得到答案,因boot在读取yml内数据时,会将以数字0开头的纯数字数据,以二...原创 2019-12-14 18:43:41 · 1244 阅读 · 0 评论 -
java.lang.UnsupportedOperationException解决方法
在项目中对List进行操作时报错java.lang.UnsupportedOperationException,后来发现操作的List是由数组转换而成的,通过看源码发现问题,并写测试程序如下。代码块:public class ListTest { public static void main(String[] args) { String[] array = {"...转载 2019-11-22 11:32:17 · 289 阅读 · 0 评论 -
ArrayList报错:UnsupportedOperationException
往list里add元素的时候,报了一个异常UnsupportedOperationException:List<Integer> list = Arrays.asList(1,2,3,4,5);如上图,因事先知道要向集合中初始化5个元素,为了方便使用array.asList(T...a),因为这个函数可以直接传入需要添加的元素,相比 new Array List()然后add...转载 2019-10-02 11:18:39 · 381 阅读 · 0 评论 -
mysql 错误:Column ‘id’ in field list is ambiguous
释义: 列 ’id’ 在字段列表中重复,其实就是两张表有相同的字段,但是使用时表字段的名称前没有加表名,导致指代不明,前面加上前缀student就没问题了。原代码:SELECT id FROM A a inner join B b on a.id = b.id新代码:SELECT a.id FROM A a inner join B b on a.id = b.id...原创 2019-09-11 17:14:33 · 1524 阅读 · 0 评论 -
【报错 时间戳转化日期】结果总是1970年
原因:调用时,传入时间戳的格式不对。我本身的原因是偷懒,将Long类型的timeStamp传成了integer类型。 /* * 将时间戳转换为时间yyyy-MM-dd */ public static String stampToDate(Long timeStamp){ String result = null; Dat...原创 2019-05-29 13:18:22 · 2979 阅读 · 0 评论 -
【mysql 报错】“ You can't specify target table '表名' for update in FROM clause”
翻译:在同一语句中,不能先select出同一表中的某些值,再update这个表,即不能依据某字段值做判断再来更新某字段的值。例如: <!--班级内最后一个学生转出,则此班级在此课时之后的clazzPlan都是已结束--> <update id="changeStatus" parameterType="com.fable.edu.entity.EduClazz...原创 2019-09-02 17:46:58 · 378 阅读 · 0 评论 -
Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'userinfo.
原因:mysql版本bug。解决:参考以下:参考1:https://blog.csdn.net/fansili/article/details/78664267参考2:https://blog.csdn.net/weixin_41991232/article/details/82803170参考3:http://www.zhimengzhe.com/shujuku/other/25...转载 2019-06-18 11:12:53 · 697 阅读 · 0 评论 -
【异常】IOException parsing XML document from class path resource [xxx.xml]
1、IDEA导入项目运行出现异常:org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [ApplicationContext.xml]; nested exception is java.io.File...转载 2019-01-07 18:56:16 · 17225 阅读 · 1 评论 -
JS异常处理:Uncaught TypeError: xxx is not a function at HTMLAnchorElement.onclick
JS异常处理:Uncaught TypeError: xxx is not a function at HTMLAnchorElement.onclick ---- 关于<a>标签调用onclick中的方法无效的原因今天在优化别人写的代码时,出了个错误。原代码如下,我想把href属性函数改为onclick事件<a href="javascript:search();"...转载 2019-01-16 16:50:55 · 1698 阅读 · 0 评论 -
Servlet报错:java.lang.IllegalStateException: Cannot forward after response has been committe
之前在使用Servlet的时候,总是在 doGet()/doPost() 的最后一行才使用请求转发或者重定向。如果需要根据条件来判断进行不同的请求转发或者重定向,代码如下:@Overrideprotected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws Ser...转载 2019-01-16 11:46:26 · 850 阅读 · 0 评论 -
ServletActionContext.getRequest空指针异常:struts2+Spring服务器启动时,Bean实例化失败
在服务器启动的时候进行初始化的时候Bean实例化失败,报ServletActionContext.getRequest空指针异常将Action中的代码HttpServletRequest request=ServletActionContext.getRequest();HttpSession session=request.getSession();改成public sta...转载 2019-01-16 11:44:59 · 1744 阅读 · 0 评论 -
启动报错:java.sql.SQLException: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or
从错误看应该是系统时间错误Exception in thread "main" java.sql.SQLException: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone. You must configure either the server ...转载 2019-01-08 17:27:36 · 335 阅读 · 0 评论 -
启动报错:Field xxxMapper in com.xxx.service.impl.xxxServiceImpl required a bean of type
springboot启动报错:报错原因:缺少注解原创 2019-01-08 17:21:16 · 67626 阅读 · 13 评论 -
angularJs报错: [ng:areq]
1、结果: 代码分离时,运行浏览器控制台报错:[ng:areq]2、原因: 在.html页面定义了app,但是却没有引用3、解决: 删除.html中的没有用到的 var app = angular.module('brand',[]);...原创 2018-08-06 21:09:57 · 1795 阅读 · 0 评论 -
tomcat启动:Exception loading sessions from persistent storage
以下内容整理自网络1.问题描述Tomcat在启动时出现如下异常问题:严重: IOException while loading persisted sessions: java.io.EOFException严重: Exception loading sessions from persistent storage2.解决方案删除Tomcat里面的...转载 2018-12-04 09:41:33 · 426 阅读 · 0 评论 -
IDEA Junit测试报错:java.lang.NoClassDefFoundError: org/hamcrest/SelfDescribing
1. 找到junit 2. 右键编辑 3. 最左边+号 4. 找到hamcrest-core-1.3.jar 5.点击OK 搞定转自:https://blog.csdn.net/tenaguan4461/article/details/83505186转载 2018-12-28 18:29:45 · 940 阅读 · 1 评论 -
tomcat启动报错:Error configuring application listener of class listener.ContainerListener
clean 下tomcat,重新编译项目。问题解决原创 2018-11-01 09:12:44 · 1187 阅读 · 0 评论 -
Error:Could not create the java Virtual Machine. Erroe:A fatal exception has occurred.Program will e
Error:Could not create the java Virtual Machine.Erroe:A fatal exception has occurred.Program will exit.原因:eclipose内存不足,需要修改eclipose。ini文件解决办法1:这个问题我们需要修改ini文件中的-Xms40...原创 2018-06-09 17:12:02 · 1945 阅读 · 0 评论 -
【mysql 报错】 You can't specify target table 'table name' for update in FROM clause
翻译:在同一语句中,不能先select出同一表中的某些值,再update这个表,即不能依据某字段值做判断再来更新某字段的值。即:不能先将select出表中的某些值,再update/delete这个表(在同一语句中)。替换方案:方案一:多嵌套一层子查询(将select出的结果再通过中间表select一遍),再进行删除,如下:delete from blur_article whe...转载 2019-06-05 18:08:35 · 311 阅读 · 0 评论