
error
万年精魄
死bug!臭bug!打死你!打死你!打死你!打累了,休息一下,继续打!!!
展开
-
java.lang.reflect.InvocationTargetException
在stackoverflow中有这样一句话: The reflection layer wraps any exception in an InvocationTargetException, which lets you tell the difference between an exception actually caused by a failure in the reflection ...原创 2018-05-29 19:34:31 · 3214 阅读 · 0 评论 -
java.lang.StringIndexOutOfBoundsException: String index out of range: 32
字符串下标越界,我的字符串1没有beginIndex<0,2没有lastIndex >length,3 结果值也没有<0,你干啥给我报这个错???System.out.println(identity);System.out.println(identity.length());String identityss = identity.substring(0, 32);Sy...原创 2018-05-29 19:30:40 · 6526 阅读 · 0 评论 -
com.netflix.client.ClientException: Load balancer does not have available server for client: account
com.netflix.client.ClientException: Load balancer does not have available server for client: account-service客户端:负载均衡器没有为客户端提供的服务器:account-service。原创 2018-05-29 19:28:19 · 4810 阅读 · 0 评论 -
org.springframework.beans.factory.BeanCreationNotAllowedException
org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'org.springframework.cloud.netflix.eureka.EurekaDiscoveryClientConfiguration': Singleton bean creation ...原创 2018-06-12 17:51:17 · 1712 阅读 · 0 评论 -
org.springframework.dao.InvalidDataAccessApiUsageException: Cluster is not configured!
org.springframework.dao.InvalidDataAccessApiUsageException: Cluster is not configured!org.springframework.dao。InvalidDataAccessApiUsageException:集群没有配置!原创 2018-06-12 17:49:17 · 2842 阅读 · 0 评论 -
java.lang.reflect.InvocationTargetException:500 null
情景再现:是调用接口方法是对的,参数格式是对的,调用地址都是对的,但是。。。commentId 在数据库中根本就不存在这么一个为1的评论,人为要程序对应记录插入数据,但是找不到数据就没法插入呀!!!所以报500 null 的错。...原创 2018-05-13 08:44:24 · 3247 阅读 · 1 评论 -
微服务启动报org.influxdb.InfluxDBIOException: java.net.SocketTimeoutException: connect timed out
数据库连接超时,连接不到配置文件中的数据库主机服务器导致的。原创 2018-05-12 20:42:55 · 6213 阅读 · 2 评论 -
ResponseEntity<List>结果为linkedHashMap?报类型转换异常
ResponseEntity<List> exchange = restTemplate().exchange("http://127.0.0.1:8080", HttpMethod.GET, entity,List.class) ;结果始终为linkedHashMap???启迪:https://blog.youkuaiyun.com/amosryan/article/details/54...原创 2018-05-10 13:42:51 · 4395 阅读 · 0 评论 -
AccountAdminClient#get(Integer) timed-out and no fallback available
com.netflix.hystrix.exception.HystrixRuntimeException: AccountAdminClient#get(Integer) timed-out and no fallback availablehystrixruntimeexception: AccountAdminClient#get(Integer)超时,并且没有可用的回退...原创 2018-05-29 19:35:48 · 3137 阅读 · 0 评论 -
Read timed out
Caused by: java.net.SocketTimeoutException: connect timed out:由:java.net.SocketTimeoutException引起:连接超时。org.influxdb.InfluxDBIOException: java.net.SocketTimeoutException: Read timed out:org.influxdb。影响...原创 2018-05-29 19:37:03 · 20359 阅读 · 0 评论 -
This application has no explicit mapping for /error, so you are seeing this as a fallback.
异常信息如上,原因是,,,访问地址错了。。。实际访问的路径与控制器的URL路径@RequestMapping(“xxxxxxxxxxxxxx”) 不符合.原创 2018-08-02 11:40:54 · 423 阅读 · 0 评论 -
HttpMediaTypeNotSupportedException: Content type 'application/json' not supported 问题原因之一
HttpMediaTypeNotSupportedException: Content type 'application/json' not supported出这个问题的原因有很多,再次只能记录我解决的方法。在postman中访问接口的时候报的这个错:原因是没有在header中添加ContentType参数如上图添加后没有报错了。...原创 2018-07-12 14:47:20 · 34166 阅读 · 1 评论 -
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
多个疑问1:我是select 具体内容信息,他为什么会去count(0)???要计算多少条数据嘛2:LIMIT ? OFFSET ? 是什么意思?limit 2 offset 1 :两条数据从1开始读取数据limit 1,10 :10条数据,从1 开始读取3. IndexOutOfBoundsException ???...原创 2018-07-04 11:58:34 · 1390 阅读 · 1 评论 -
Caused by: org.xml.sax.SAXParseException: 元素内容必须由格式正确的字符数据或标记组成。
额,这个问题爆出来是因为解析xml文件出错,在开发时通常使我们的mapper.xml文件中写的sql语句出现小错误了,要认真检查:比如多了空格,少了必要语句,格式不对等等...原创 2018-07-03 14:24:56 · 9309 阅读 · 0 评论 -
java.lang.NullPointerException: target is null for method size
<if test="productId.size() > 0"> and b.specification_id IN <foreach collection="productId" item="specId"> #{specId} </foreach></if><if t原创 2018-07-09 10:27:07 · 12636 阅读 · 1 评论 -
网关获取到了服务端返回的数据但是没有返回给客户端???
RequestContext ctx = RequestContext.getCurrentContext();try { InputStream responseDataStream = ctx.getResponseDataStream(); System.out.println(responseDataStream);...原创 2018-05-30 16:59:43 · 3117 阅读 · 0 评论 -
Push rejected: Push master to origin/master was rejected by remote
参考学习:https://blog.youkuaiyun.com/f1370335844/article/details/60958553转载 2018-06-06 10:17:08 · 10709 阅读 · 0 评论 -
Could not read document: Can not deserialize instance of java.util.HashMap out of START_ARRAY
Could not read document: Can not deserialize instance of java.util.HashMap out of START_ARRAY token\n at [Source: java.io.PushbackInputStream@5f4b3415; line: 1, column: 1]; nested exception is com.fas...原创 2018-05-30 11:57:16 · 15036 阅读 · 3 评论 -
使用 RestTemplate 报java.lang.IllegalStateException:No instances available for localhost
错误原因:https://www.jianshu.com/p/0db3570e4674转载 2018-05-10 11:42:08 · 17219 阅读 · 1 评论 -
web页面跳转设置了sessionStorage,打开跳转的页面获取值却始终为null
坑自己系列:用的vivo手机,vivo自带世界之窗浏览器,每次跳转一个新的页面都是重新打开了一个webpage,导致sessionStorage设置的值都没啦!!!所以开发移动端网页的话,慎用sessionStorage属性。。。...原创 2018-04-25 16:29:21 · 12051 阅读 · 0 评论 -
@Autowired 注解用在方法与属性上
private ValueOperations<String, String> redisOperations;@Autowiredpublic void setValueOperations(StringRedisTemplate stringRedisTemplate) { this.redisOperations = stringRedisTemplate.opsFor...原创 2018-05-03 10:50:29 · 18971 阅读 · 1 评论 -
idea springBoot 运行项目报某个文件夹未找到not exist
两种可能:1:配置文件中没有针对Spring项目进行配置:2:在配置文件中配置了,但是文件本身的路径错误;原创 2018-03-13 17:42:19 · 1467 阅读 · 1 评论 -
针对form表单method=“post”,request.getParameter(“username”)取值为空的问题
<form action="${pageContext.request.contextPath}/fileUpload" enctype="multipart/form-data" method="post"> 用户名:<input type="text" name = "username"> 用户头像:<i原创 2018-03-17 11:32:23 · 3248 阅读 · 1 评论 -
idea创建javaweb项目,报找不到apache 的servlet包
idea中即使配置了tomcat但是没有引入对应的包,可以运行web,但是创建servlet报错;需要在setting中加入Apache的jar包再次创建servlet不报错;原创 2018-03-16 08:58:12 · 3439 阅读 · 1 评论 -
Factory method 'dataSource' threw exception
使用idea 编写springBoot项目,出现以上错误。。。报错原因:未给项目配置active profiles。配置操作:====打开edit configuration 设置 active profiles !!!---通常为dev...原创 2018-02-22 16:24:53 · 22335 阅读 · 2 评论 -
springBoot项目调用AbstractService<T>提供的默认方法报错
springBoot项目调用AbstractService<T>提供的默认方法报错,显示数据库语句错误,在已经确认代码没有错误的前提下,将错误的提示sql语句带入数据库中查询,依然报错;即表明是数据库表字段设计有bug;可能是与关键字冲突了;...原创 2018-03-15 16:19:52 · 1164 阅读 · 0 评论 -
微信公众号内容与微信后台开发程序不一致
微信公众号开发完成以后,直接运行不报错,但是部署运行公众号会发现微信公众号内容与微信后台开发程序不一致:解决:通过debug模式运行程序,会发现debug报错,即程序并没有运行成功,所以导致微信公众号内容与微信后台开发程序不一致;...原创 2018-03-09 08:57:39 · 746 阅读 · 0 评论 -
[errcode=40155, errmsg=please don't contain other home page url hint: [7pnK40476vr21]]
[errcode=40155, errmsg=请不要包含其他主页url提示:[7pnK40476vr21]]使用微信测试号,添加已有公众号主页信息报错,测试号不可以添加已经运营的链接;原创 2018-03-09 08:54:33 · 4516 阅读 · 0 评论 -
IOException parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml];
将spring项目转换为springMVC 项目时只配置了MVC<!-- The front controller of this Spring Web application, responsible for handling all application requests --><servlet> <servlet-name>spring</...原创 2018-03-01 09:32:21 · 3439 阅读 · 0 评论 -
Required request body is missing
@PostMapping("/listBy")public Result listBy(@RequestBody QcReportbillNcVo qcReportbillNcVo){@GetMapping("/list")public Result list(@RequestParam(defaultValue = "null") Map<String, Object> par...原创 2018-03-13 17:47:24 · 5243 阅读 · 0 评论 -
springMVC项目自动生成代码-创建数据库注意事项
创建的数据库:1.每个表必须设置主键2.主键id必须自动递增没有主键无法完成自动生成实体;没有自动递增会导致插入数据主键id报错原创 2018-03-14 15:37:14 · 983 阅读 · 0 评论 -
spring报错
遇到过的:400 null :接口方法正确但是传递的参数错了,传参方式错了或者没有传参;401 null:返回值类型与要求的不符,其次接口未开放;原创 2018-04-18 14:46:50 · 801 阅读 · 0 评论 -
io.jsonwebtoken.MalformedJwtException: JWT strings must contain exactly 2 period characters. Found:
微信公众号开发解析token报错:io.jsonwebtoken.MalformedJwtException: JWT strings must contain exactly 2 period characters. Found: 0:0io.jsonwebtoken。MalformedJwtException: JWT字符串必须包含2个周期字符。发现:0token的确传错了,token格式不对...原创 2018-04-17 15:42:39 · 53898 阅读 · 5 评论 -
Unable to start embedded Tomcat
org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to ...原创 2018-05-29 19:34:56 · 16285 阅读 · 0 评论 -
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.dakun.ji
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.dakun.jianzhong.client.AppPictureService]: Constructor threw exception; nested exception is java.lang.NullPo...原创 2018-04-16 18:57:30 · 23695 阅读 · 2 评论 -
idea 中terminal 关联cmd 报不是内部命令
配置如上,错在哪里?cmd可以正常运行windows 10 下,cmd添加了新功能,需要进入控制台,右击标题,选择属性,勾选使用旧版,并重启电脑,方可关联上原创 2018-04-03 17:53:42 · 12008 阅读 · 1 评论 -
com.netflix.zuul.exception.ZuulException
第一步分析:https://blog.youkuaiyun.com/sxwehren/article/details/79126609得出为:ClientException :客户端报错。原创 2018-04-03 17:50:45 · 1761 阅读 · 1 评论 -
tomact运行web项目,编译运行时有的文件不实时编译,导致代码与运行代码不符???
多次运行,能做的都做了,得出这锅是浏览器的!!!!勾选disable cache 后,成功了!!!原创 2018-04-14 17:14:27 · 840 阅读 · 0 评论 -
Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Lock wait timeout exceeded
Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Lock wait timeout exceeded; try restarting transaction原因:com.mysql.jdbc.exceptions.jdbc4。MySQLTransactionRollbackException:超过了...原创 2018-04-09 10:58:49 · 13964 阅读 · 0 评论 -
java.lang.IllegalArgumentException: Source must not be null
报错的地方所需参数为空或者不存在:比如说获得的id已经被删除了。。。。for (ProductSpecPromotion promotion : list) { if(specificationService.get(promotion.getRelateSpecId())==null){ continue; }}...原创 2018-02-26 16:22:36 · 13772 阅读 · 0 评论