异常
xxxvshell
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Resources cannot be null
Resources cannot be nullssh 一个配置异常java.lang.illegalargumentexception: resources cannot be null是因为配置了struts的form,但是你没有给她配置validate(验证)方法,加上validate就可以通过了还有一种解决方法就是在struts-config.xml里action配置里...原创 2010-08-30 15:42:04 · 245 阅读 · 0 评论 -
spring
1 - org.springframework.ejb.config.JeeNamespaceHandler问题原因: 工程中缺少spring的spring-remoting.jar包解决方案:在spring的开发包\dist\modules目录下找到spring- remoting.jar加入 到类路径中。重新部署,启动服务,OK。 2 - org.springframew...原创 2010-09-17 09:34:11 · 152 阅读 · 0 评论 -
JUnit相关异常 - AssertionFailedError: Method "方法名" not found
错误方法名:void testCreateDir(String str) { } 正确写法public void testCreateDir() {} 方法名不是public,或者带有参数,都会引起 “Method not found”的异常。 junit.framework.AssertionFailedError: Method ...原创 2012-05-15 11:05:01 · 404 阅读 · 0 评论 -
javax.servlet.ServletException: [HTTP:101249]
weblogic 8.1 自带1.4jdk 而项目在编译的时候应该使用1.4 并打包War 发布 出现此异常,主要是jdk版本不支持 解决方法: 项目 -- preferences -- java compiler -- compiler compliance level。改成你现在用的jdk的level就行了 ...原创 2011-11-13 20:34:09 · 500 阅读 · 0 评论 -
Ant打包 远程 ---- debug unable to install breakpoint in……
unable to install breakpoint in ...(file name) due to missing line number attributes. modify complier options to generate line number attributes. 转载...原创 2011-11-14 14:19:35 · 163 阅读 · 0 评论 -
异常处理 throw throws try_catch
throw 真实的抛出异常,一般和 try_catch ,throws搭配使用。throws 表示该方法可能抛出的异常,由调用该方法的地方捕获异常(try_catch)或者继续throwstry_catch 捕获异常 public class Try_Catch_throws_throw { // Throw and Try_...原创 2012-02-14 15:32:39 · 190 阅读 · 0 评论 -
Debug技巧 eclipse 手动抛出异常
Debug技巧 eclipse 手动抛出异常 1. 打开expressions窗口2. 启动debug代码,执行代码,跑到需要抛出的位置。3. 在expressions窗口,点击Add new expression,输入抛出异常的表达式,回车即可执行 表达式例:throw new Exception(); ...原创 2014-12-15 11:07:08 · 4830 阅读 · 1 评论
分享