异常相关
所遇到的异常及其解决方案
Akanemiku
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
index [XXX] blocked by: [FORBIDDEN/12/index read-only / allow delete (api)]
kibana中涉及到数据操作时报错index [XXX] blocked by: [FORBIDDEN/12/index read-only / allow delete (api)]原因为磁盘空间空间不足,当Elasticsearch运行时检测到磁盘空间超过了95%,为了防止节点耗尽磁盘空间,自动将索引设置为只读模式解决方案:打开Elasticsearch目录下的\config\elasticsearch.yml,添加cluster.routing.allocation.disk.watermar原创 2021-02-19 20:48:28 · 750 阅读 · 0 评论 -
java.lang.Integer cannot be cast to java.lang.Long
long ip= (long) obj.get("ip");对于Integer类型转换成Long类型,可能会导致java.lang.Integer cannot be cast to java.lang.Long异常的抛出建议改用 long ipInt = ((Number) obj.get("ip")).longValue();原创 2020-07-12 20:28:47 · 841 阅读 · 0 评论 -
Intellij Debugger slow: Method breakpoints may dramatically slow down debugging
在debug模式下可能遇到运行缓慢或者直接中止的情况,抛出提示Intellij Debugger slow: Method breakpoints may dramatically slow down debugging建议查看断点(Ctrl-Shift -F8)后,删除部分或所有断点,再次运行debug即可...原创 2020-07-12 20:24:11 · 294 阅读 · 0 评论 -
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near xxx错误原因为使用了mysql关键字在sql语句中使用``将表名列名引起来如:select `desc` from `key` t1 where t1.`id` = 1当使用了mybatis-原创 2020-07-01 17:32:16 · 1257 阅读 · 0 评论 -
Docker搭建Elasticsearch方法及启动后服务自动关闭的问题
Docker搭建Elasticsearch方法前往dockerhub官网:dockerhub 可查看elasticsearch相应版本拉取镜像选取一个版本拉取镜像,如docker pull elasticsearch:6.8.8不输入版本默认拉取最新版启动容器映射端口为9200和9300docker run -d -p 9200:9200 -p 9300:9300 --name e...原创 2020-04-18 14:10:57 · 5296 阅读 · 0 评论 -
Zuul Filter遇到的HttpHostConnectException cannot be cast to ZuulException问题解决方法
HttpHostConnectException cannot be cast to ZuulException问题解决方法SpringBoot 2.0.3 / Cloud 版本 Finchley.RELEASE当Zuul对应服务宕机后,加载相应网关地址可能会报以下错误org.apache.http.conn.HttpHostConnectException cannot be cast t...原创 2020-01-28 17:33:51 · 1403 阅读 · 0 评论
分享