本月博客排行
-
第1名
龙儿筝 -
第2名
lerf -
第3名
fantaxy025025 - johnsmith9th
- zysnba
- xiangjie88
年度博客排行
-
第1名
青否云后端云 -
第2名
宏天软件 -
第3名
gashero - wy_19921005
- vipbooks
- benladeng5225
- e_e
- wallimn
- javashop
- ranbuijj
- fantaxy025025
- jickcai
- zw7534313
- qepwqnp
- 解宜然
- ssydxa219
- zysnba
- sichunli_030
- sam123456gz
- 龙儿筝
- arpenker
- tanling8334
- kaizi1992
- gaojingsong
- xpenxpen
- jh108020
- wiseboyloves
- ganxueyun
- xyuma
- xiangjie88
- wangchen.ily
- Jameslyy
- lemonhandsome
- luxurioust
- mengjichen
- jbosscn
- zxq_2017
- lzyfn123
- nychen2000
- forestqqqq
- wjianwei666
- ajinn
- zhanjia
- Xeden
- hanbaohong
- java-007
- 喧嚣求静
- kingwell.leng
- mwhgJava
- lich0079
最新文章列表
mysql 'Too many connections'
server端运行一段时间以后,数据库异常
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Data source rejected establishment of connection, message from server: "Too many connections ...
Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnly' marker from tr
Write operations are not allowed in read-only mode (FlushMode.NEVER/MANUAL): Turn your Session into FlushMode.COMMIT/AU
org.springframework.dao.InvalidDataAccessApiUsageException: Write
operations ...
解决 Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnly' marker
org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.NEVER/MANUAL): Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnly ...
java.lang.NumberFormatException: For input string: ""
这种异常基本上碰到的都是因为后台没有传输数据到前台,
而前台有jstl要解析的对象。
检查一下前台网页即可。
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:504)
at java.lang ...
centOS 6.4关闭防火墙步骤
关闭虚拟机防火墙: 关闭命令: service iptables stop 永久关闭防火墙:chkconfig iptables off
两个命令同时运行,运行完成后查看防火墙关闭状态 service iptables status
CentOS Linux解决Device eth0 does not seem to be present
在使用vmware迁移linux系统过程中,发现部署后的linux系统无法启动网卡
报错为
Bringing up interface eth0: Device eth0 does not seem to be present,delaying initialization
错误原因,是因为linux网卡绑定了原mac地址导致
解决方法为
1.使用ifcnfig -a 查看当前主机mac ...
No operations allowed after connection closed异常的解决方案
异常详细:ERROR: No operations allowed after connection closed.
异常原因:Caused by: org.hibernate.TransactionException: unable to rollback against JDBC connection
.................
...
org.hibernate.TransactionException: nested transactions not supported错误的解决方案
异常名称: org.hibernate.TransactionException: nested transactions not supported异常分析:You probably have begun a transaction, and trying to begin another one without having committed or rollbacked the previ ...
java的static、内部类及异常
一、静态字段
1、静态字段与类相关联,属于类而非实例,所有实例之间共享。
2、静态字段的内存分配只会发生一次,在类加载的时候分配内存。
二、静态方法
1、静态方法不能被子类重写
2、静态方法中不能有this和super关键字
3、静态方法不能访问非静态字段和方法
三、静态块
1、无名、无参、无返回值
2、JVM限制了静态块的大小为64k
3、在静态块中不能抛出被检查的异常
...
运行时异常(RuntimeException)和受检查异常(Checked Exception)的本质区别
最本质的区别是RuntimeException是运行时才会发生的异常, 而受检查异常是编译时异常,编译器会分析哪些异常会在执行一个方法或者构造函数的时候抛出。
异常(Exception):你可以使用运行时异常或者编译时异常。
运行时异常(RuntimeException)也称作未检测的异常(unchecked exception),这表示这种异常不需要编译器来检测。RuntimeExceptio ...
java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at org.springframework.context.support.AbstractApplicationContext.<init>(AbstractApp ...
Item 63: Include failure-capture information in detail messages
1. When a program fails due to an uncaught exception, the system automatically prints out the exception’s stack trace. The stack trace contains the exception’s string representation, the result of in ...