- 博客(4)
- 资源 (3)
- 收藏
- 关注
原创 java.net.SocketException: Connection reset by peer: socket write error
java.net.SocketException: Connection reset by peer: socket write error 这个异常我碰到的抛出的位置很奇怪,不是jsp代码,居然是从一个(“静态内容”)标签的位置抛出来的,测了很久也没找出原因,到网上搜索,也有各种各样的说法,列举如下以作参考和备用。 说法1、存在的连接被远程主机强制关
2010-01-31 20:15:00 1963
原创 hibernate 取到空值抛错的问题
环境:weblogic815 + oracle1021开发工具:eclipse + myeclipse(hibernate3.1.9,用的是eclipse插件,没有用myeclipse自带的)框架:struts1.1 + hibernate3.1.9问题:当数据库某个字段为空时,如果在action里面需要对其进行判断或其他操作(如indexof等)的时候,程序就会抛出异常,如下。尝试了
2009-04-22 12:33:00 969
原创 Struts中Cannot find bean XXX in any scope问题之一解
在使用struts的过程中,发现通过request.setAttribute()所传的值怎么都传不进所对应的jsp页面,而且也不报错!对应代码: "> 仔细检查发现,在jsp页面中有unknow tag以及undifined name等的警告,原来缺了配置
2009-04-09 09:23:00 1983
原创 hibernate:newclass.hbm.xml文件错误(the content of element type "class" must match "(meta*,column*,type?generator?...)
环境:weblogic815+oracle10.2 hibernate3.1 错误:在hibernate.cfg.xml 中配置mapping files后运行,weblogic报其中一个mapping file错误,检查后发现在刚建立newclass.hbm.xml文件的时候myeclipse就曾报过错,(newclass.hbm.xml文件中错误提示:the
2009-03-22 16:09:00 5672
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人