异常
加木Go
技术教会我生活
展开
-
throw &throws
在编写java程序时,如果在方法中使用throw语句抛出异常,需要同时使用throws关键字声明方法抛出的异常 或使用try。。。catch 对throws语句进行异常捕获和处理。否则程序将无法通过编译。原创 2012-07-23 20:11:01 · 443 阅读 · 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 · 1803 阅读 · 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 · 2425 阅读 · 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 · 3965 阅读 · 0 评论 -
<welcome-file-list>404
情况:访问web应用http://www.goolg1.com/总是返回404很是郁闷,访问http://www.goolg1.com/index.html却可以。 原因:由于自己太马虎,文件index.html确实建立好了,但是配置却写成了xml index.xml 解决: index.html原创 2013-01-20 11:08:58 · 1030 阅读 · 0 评论 -
java.net.SocketException: Can't assign requested address
解决: 虚拟机参数:-Djava.net.preferIPv4Stack=true 2016-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 · 5195 阅读 · 0 评论