错误日志
打字错误
Redis 的连接 ip 输错 浪费四五个小时
org.apache.catalina.LifecycleException: 无法启动组件[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/javaweb_cookie]]
Springmvc
value 不匹配 method 匹配时 也会有405错误
如何利用网络排错
找caused by
找 nested expection
Srpingboot
nested exception is java.lang.NoClassDefFoundError: com/example/jsptest/interceptor/LoginInterceptor
出错原因 clean 后complie 出错
真正解决方案:java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter - 姜飞祥 - 博客园 (cnblogs.com)
故障原因:JAXB API是java EE 的API,因此在java SE 9.0 中不再包含这个 Jar 包。java 9 中引入了模块的概念,默认情况下,Java SE中将不再包含java EE 的Jar包而在 java 6/7 / 8 时关于这个API 都是捆绑在一起的
解决方法
-
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
改代码不如自己写代码 ,特别是整合两个人的代码时 特别容易出错 表面上看起来一样的jar包其实也有很多种 如mongodb的jar包
Redis
redis.clients.jedis.exceptions.JedisDataException: WRONGTYPE Operation against a key holding the wrong kind of value edis.sadd("name","lucy"); name以使用
分布式
dubbo
创建消费者rg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'helloServiceImpl' defined in file [D:\dubbo\dubbo_server\target\classes\service\impl\HelloServiceImpl.class]: Initialization of bean failed; nested exception is java.lang.IllegalStateException: No such extension com.alibaba.dubbo.registry.RegistryFactory by name zookepper
springboot
eurake
Caused by: java.nio.charset.MalformedInputException: Input length = 1
yml文件 编码问题 去掉注释可解决
p30 Load balancer does not have available server for client: userservice
解决: 注释掉orederservice里yml文件的namespace
以上内容整理于 幕布文档