
异常
繁荣开源
每天分享网络、编程、架构、AI等信息技术知识,关注
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
throw &throws
在编写java程序时,如果在方法中使用throw语句抛出异常,需要同时使用throws关键字声明方法抛出的异常或使用try。。。catch 对throws语句进行异常捕获和处理。否则程序将无法通过编译。原创 2012-07-23 20:11:01 · 491 阅读 · 0 评论 -
ssh中The requested resource () is not available.
情况:在webapp |---static(此文件夹中,存放html文件)后来访问static中的文件时显示The requested resource () is not available.response.sendRedirect("staticHtml/index.jsp");解决: 把static文件夹改了名字。分析:文件夹的名字不要用关键字啊,可能有原创 2012-10-22 13:06:45 · 1846 阅读 · 0 评论 -
om.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'xx' field list
描述:数据库的字段和domain和hbm.xml的字段都对应的但是还是不行。原因:数据库名称从xxx改成了yyy但是没有改hbm.xml中的catalog属性 所以导致了错误。原创 2012-12-23 17:37:49 · 2494 阅读 · 0 评论 -
Batch update returned unexpected row count from update [0]; actual row count: 3; expected: 1
Messages:Batch update returned unexpected row count from update [0]; actual row count: 3; expected: 1Batch update returned unexpected row count from update [0]; actual row count: 3; expected: 1;原创 2012-12-22 13:16:45 · 4070 阅读 · 0 评论 -
<welcome-file-list>404
情况:访问web应用http://www.goolg1.com/总是返回404很是郁闷,访问http://www.goolg1.com/index.html却可以。原因:由于自己太马虎,文件index.html确实建立好了,但是配置却写成了xmlindex.xml解决:index.html原创 2013-01-20 11:08:58 · 1078 阅读 · 0 评论 -
java.net.SocketException: Can't assign requested address
解决:虚拟机参数:-Djava.net.preferIPv4Stack=true2016-01-31 16:30:49,531 INFO [com.alibaba.dubbo.registry.multicast.MulticastRegistry] - [DUBBO] Load registry store file /Users/ronrong/.dubbo/dubb原创 2016-01-31 16:36:12 · 5285 阅读 · 0 评论