![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
异常
文章平均质量分 77
xiaomin_____
努力~~
展开
-
线程池超时异常
public void execute2(){ for (int j = 0; j >= 10; j--) { forkJoinPool.addTask(new Callable<Integer>() { @Override ...原创 2016-05-29 19:58:08 · 348 阅读 · 0 评论 -
Mybatis的批量更新 bug
Mybatis的批量更新 Mybatis的批量插入这里有http://ljhzzyx.blog.163.com/blog/static/38380312201353536375/。目前想批量更新,如果update的值是相同的话,很简单,组织update table set column='...' where id in (1,2,3)l这样的sql就可以了。Mybati...原创 2015-11-24 02:12:58 · 123 阅读 · 0 评论 -
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in
异常: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: 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 ...原创 2015-11-25 17:19:57 · 91 阅读 · 0 评论 -
lucene版本升级到4.6.0以上之后使用mmseg4j分词器遇到的问题
使用 mmseg4j 1.9.1 使用的是 lucene 4.3 没问题。 package com.artbulb.search.utils;import java.io.StringReader;import org.apache.lucene.analysis.Analyzer;import org.apache.lucene.analysis.TokenStr...原创 2015-11-27 21:11:22 · 106 阅读 · 0 评论 -
BroadcastShardOperationFailedException TooManyClauses[maxClauseCount is set to
luncen 查询条件不能大于1024package org.apache.lucene.search;/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distribut...原创 2015-12-01 17:42:49 · 164 阅读 · 0 评论 -
BroadcastShardOperationFailedException[[vnvoos1.html][4] ]; nested: RemoteTransp
BroadcastShardOperationFailedException[[vnvoos1.html][4] ]; nested: RemoteTransportException[[test-lightbulb][inet[/192.168.1.87:9300]][count/s]]; nested: QueryParsingException[[vnvoos1.html] request...原创 2015-12-01 21:26:38 · 137 阅读 · 0 评论 -
JSON There is a cycle in the hierarchy异常
在使用 pg数据库时,对象转换成json字符串报这个异常。原因是org.postgresql.jdbc4.Jdbc4Array 对象中有这个属性,json 不好处理。原创 2014-11-03 14:44:12 · 81 阅读 · 0 评论 -
java date 日期 date
public class Date extends Date 一个包装了毫秒值的瘦包装器 (thin wrapper),它允许 JDBC 将毫秒值标识为 SQL DATE 值。毫秒值表示自 1970 年 1 月 1 日 00:00:00 GMT 以来经过的毫秒数。为了与 SQL DATE 的定义一致,由 java.sql.Date 实例包装...原创 2014-11-04 11:06:33 · 114 阅读 · 0 评论 -
java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
项目使用maven 构建,并且使用集成测试(integration-test)。在命令行中运行mvn clean deploy tomcat:undeploy时,报错:Xml代码 ------------------------------------------------------- T E S T S ---------------------...原创 2014-11-10 18:16:54 · 299 阅读 · 0 评论 -
mybatis 批量增加 Parameter '__frch_item_0' not found. Available parameters are [lis
当在mybatis用到foreach的时候,会报这个错误Parameter '__frch_item_0' not found. Available parameters are [list]会出现的几种解决方案例子 [sql] view plaincopy <insert id="insertBatchPicAttachment" p...原创 2015-11-24 02:11:22 · 136 阅读 · 0 评论 -
jppf javax.management.remote.message.HandshakeBeginMessage
I'm developing collection of monitoring script and templates for zabbix. It's called ZTC and all script are on python.Now I want to add support for some java monitoring. I've not found th...原创 2015-11-20 22:53:04 · 133 阅读 · 0 评论 -
Communications link failure的解决办法
使用Connector/J连接MySQL数据库,程序运行较长时间后就会报以下错误:Communications link failure,The last packet successfully received from the server was *** millisecond ago.The last packet successfully sent to the server...原创 2016-06-01 10:15:34 · 1182 阅读 · 0 评论 -
15:39:52.027 [ActiveMQ InactivityMonitor WriteCheckTimer] DEBUG o.a.a.t.Abstract
15:39:52.027 [ActiveMQ InactivityMonitor WriteCheckTimer] DEBUG o.a.a.t.AbstractInactivityMonitor - WriteChecker: 10000ms elapsed since last write check.15:39:52.028 [ActiveMQ InactivityMonitor Wo...原创 2015-07-30 16:22:40 · 890 阅读 · 0 评论 -
mvn 运行 jetty
[ERROR] Failed to execute goal org.mortbay.jetty:maven-jetty-plugin:6.1.26:run (default-cli) on project simple-webapp: Failure: Address already in use -> [Help 1] [ERROR] [ERROR] To see the full s...原创 2016-06-30 15:53:07 · 210 阅读 · 0 评论 -
mybatis 启动死循环 扫包
<bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean"> <property name="dataSource" ref="dataSource" /> <property name="configLocation" value=&q原创 2015-08-14 09:41:10 · 357 阅读 · 0 评论 -
java.lang.OutOfMemoryError:GC overhead limit exceeded
我遇到这样的问题,本地部署时抛出异常java.lang.OutOfMemoryError:GC overhead limit exceeded导致服务起不来,查看日志发现加载了太多资源到内存,本地的性能也不好,gc时间消耗的较多。解决这种问题两种方法是,增加参数,-XX:-UseGCOverheadLimit,关闭这个特性,同时增加heap大小,-Xmx1024m。坑填了,but why?O...原创 2015-08-18 00:13:46 · 168 阅读 · 0 评论 -
com.alibaba.fastjson.JSONException: unclosed string
com.alibaba.fastjson.JSONException: unclosed string fastjson 1.1.36 将对象转换为字符串,然后字符串转换成对象报这个异常。 原因:这个版本有些特殊字符fastjson没编码好,没转义好。所以导致字符串转对象报异常。 解决办法,将版本升级。...原创 2015-08-25 15:30:17 · 1209 阅读 · 0 评论 -
异常解决 org.apache.catalina.deploy.WebXml addFilter
tomcat 7 下 在web.xml中添加页面编码filter遇到:java.lang.NoSuchMethodException: org.apache.catalina.deploy.WebXml addFilter 解决方案:1.在tomacat 7的context.xml里加上<Loader delegate="true" />2.把tomcat 7 ...原创 2015-09-09 00:07:37 · 170 阅读 · 0 评论 -
Detected both log4j-over-slf4j.jar AND slf4j-log4j12.jar
Caused by: java.lang.IllegalStateException: Detected both log4j-over-slf4j.jar AND slf4j-log4j12.jar on the class path, preempting StackOverflowError SLF4J: Detected both log4j-over-slf4j.jar A...原创 2015-10-15 18:03:09 · 88 阅读 · 0 评论 -
windows 下 shared zone xxx has no equal addresses
在windows下启动nginx出现错误 shared zone "xxx" has no equal addresses: 02B40000 vs 02B60000 是因为 Nginx 缓存模块或其他使用共享缓存的模块不能在Windows Vista及以上的window上运行 此问题是在这里找到的:https://www.ruby-forum.com/topic/209886 官方的解释:ht...原创 2016-11-27 00:23:30 · 647 阅读 · 0 评论 -
mysql Communications link failure Last packet sent to the server was X ms ago
想必大家在用MySQL时都会遇到连接超时的问题,如下图所示: 就是这个异常(com.mysql.jdbc.exceptions.jdbc4.Communication***ception:Communications link failure Last packet sent to the server was X ms ago),是由于MySQL服务在长时间不连接之后断开了,断...原创 2015-12-11 16:34:56 · 246 阅读 · 0 评论 -
jdk bug
## If you would like to submit a bug report, please visit:# http://java.sun.com/webapps/bugreport/crash.jsp# The crash happened outside the Java Virtual Machine in native code.# See problem...原创 2015-12-12 15:53:40 · 171 阅读 · 0 评论 -
dubbo 接口 序列化问题
java.lang.ClassNotFoundException: com.tude.goods.po.TudeGoodshset>>>>>>>>>>>>>calss=====class java.util.HashMapdubbo 接口 public <T> T hget(原创 2017-06-16 15:29:32 · 526 阅读 · 0 评论 -
maven 打包执行异常
解决:<filters> <filter> <artifact>*:*</artifact> <excludes> <exclude>org/datanucleus/**</exclude> <exclude>META-INF/*原创 2016-04-04 13:36:59 · 211 阅读 · 0 评论 -
com.dyuproject.protostuff.ProtobufException: Protocol message contained an inval
log4j:WARN No appenders could be found for logger (org.springframework.core.env.StandardEnvironment).log4j:WARN Please initialize the log4j system properly.Exception in thread "main" java.lang.I...原创 2017-08-05 22:38:55 · 2745 阅读 · 0 评论 -
Errors occurred during the build. Errors running builder 'Maven Project Builder'
前几天项目还好好的,今天重装系统导入maven项目,报错,原来是有一个jar包,再远程仓里里面没有了,所以报这个错误原创 2017-08-06 15:28:25 · 811 阅读 · 0 评论 -
用 nginx 反代一个域名,域名 dns 变更后 nginx 返回 504
用域名 www.abc.com 反代 www.abcd.comserver {listen 80;server_name www.abc.com;location / {proxy_pass http://www.abcd.com/;}}当 www.abcd.com 的dns解析更换了新IP之后,访问 www.abc.com 会返回504错误。查看nginx log看到 www.abcd.com...原创 2017-08-23 19:08:24 · 473 阅读 · 0 评论 -
protocol 实体变动修改报错
java.lang.IllegalStateException: Truncated. at com.cmall.redis.utils.RedisSeriUtils.deserialize(RedisSeriUtils.java:50) at com.cmall.redis.dao.JedisClusterDao.jhget(JedisClusterDao.java:78) at ...原创 2017-09-20 17:10:24 · 1410 阅读 · 0 评论 -
docker
1、Error running DeviceCreate (createPool) dm_task_run failed rm -rf /var/lib/docker/* #(记得备份重要数据)https://my.oschina.net/u/1188877/blog/422405?p=1 2、Error starting daemon: error initializ...原创 2017-02-20 13:36:01 · 91 阅读 · 0 评论 -
kafka运行过程中localhost.localdomain: 未知的名称或服务
kafka运行过程中出现了java.net.UnknownHostException: localhost.localdomain: localhost.localdomain: 未知的名称或服务[2016-01-17 23:17:52,291] ERROR Unknown error when running consumer: (kafka.tools.ConsoleConsumer$...原创 2017-11-22 19:37:44 · 1806 阅读 · 0 评论 -
深入JDK源代码之Arrays类中的排序查找算法
java.util.Arrays类。这个类是个数组工具类。主要提供方法sort(),fill(),binarySearch(),还有数组复制等方法。打开源文件,刚超过4千行,不过包括很多注释,那么我在这里主要讲讲这里面涉及的排序算法和查找算法。 一、binarySearch()方法,二分法查找算法, 算法思想:当数据量很大适宜采用该方法。采用二分法查找时,数据需是排好序的。 基本思想:假设...原创 2016-03-28 10:55:29 · 119 阅读 · 0 评论 -
Error starting daemon: layer does not exist
#systemctl status docker.service● docker.service - Docker Application Container Engine Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled) Active: fail...原创 2017-06-02 14:52:49 · 1685 阅读 · 0 评论 -
spring 事物多线程问题
Dec 12, 2015 4:46:04 PM com.alibaba.druid.pool.DruidDataSource errorSEVERE: discard connectioncom.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Communications link failure du...原创 2015-12-12 18:03:41 · 401 阅读 · 0 评论 -
No Suitable Driver Found For Jdbc_解决方法
今天出现编码出现了No suitable driver found for jdbc,又是找遍了网上的资料,基本上都说是三个问题: 一是:连接URL格式出现了问题(Connection conn=DriverManager.getConnection("jdbc:mysql://localhost:3306/XX","root","XXXX") 二是:驱动字符串出错(com.mysq...原创 2014-11-14 21:02:47 · 282 阅读 · 0 评论 -
Software caused connection abort: recv failed
Software caused connection abort: recv failed java.net.SocketException: Software caused connection abort: recv failed at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputSt...原创 2014-11-18 11:37:41 · 529 阅读 · 0 评论 -
org.hibernate.HibernateException: connnection proxy not usable after transaction
org.hibernate.HibernateException: connnection proxy not usable after transaction completion at org.hibernate.jdbc.BorrowedConnectionProxy.invoke(BorrowedConnectionProxy.java:42) at $Proxy10.prepareSt...原创 2014-11-22 23:50:30 · 1906 阅读 · 0 评论 -
webdriver报不可见元素异常方法总结
最近一直在学Selenium相关东西,学到webdriver这块,出现报不可见元素异常方法异常,后来网上找了好多相关资料都没搞定,也没看明白,最后发现是xpath中写了calss属性有问题。现在把学习到的方法和实际解决的方法总结一下,留个记号。 1. 关于存在不可见属性的元素,对元素操作时,出现报如下异常的情况及处理办法: Exception in thread "...原创 2014-11-23 11:08:45 · 122 阅读 · 0 评论 -
如何解决java.lang.SecurityException: Invalid signature file digest for Manifest main
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>1.4</ve...原创 2017-05-11 16:14:27 · 257 阅读 · 0 评论 -
HttpClient4.X Invalid use of SingleClientConnManager: connection still allocated
HttpClient4.X Invalid use of SingleClientConnManager: connection still allocated问题 项目用到了httpclient4.1开发。在多线程的情况下,异常报 Invalid use of SingleClientConnManager: connection still allocated 从国外...原创 2014-11-24 23:23:06 · 162 阅读 · 0 评论 -
Spark执行样例报警告:WARN scheduler.TaskSchedulerImpl: Initial job has not accepted any
搭建Spark环境后,调测Spark样例时,出现下面的错误:WARN scheduler.TaskSchedulerImpl: Initial job has not accepted any resources; check your cluster UI to ensure that workers are registered and have sufficient resources[h...原创 2017-05-25 10:26:44 · 295 阅读 · 0 评论