
java异常
limon758
这个作者很懒,什么都没留下…
展开
-
Name dzjc is not bound in this Context,是连接池问题
Name dzjc is not bound in this Context,是连接池问题问题解决办法为在D:\Tomcat 5.5\conf\Catalina\localhost下新建一个名字为和自己项目名字一样的xml文件,里边添上如下内容[code="xml"] [/code]黑色头发 http://heisetoufa.itey...2008-08-12 20:12:33 · 390 阅读 · 0 评论 -
ORA-12541: TNS:no listener,oracle在登陆sqlplus时报错
我在控制面版--管理工具--服务里看OracleOraDb10g_home1TNSListener是启动的状态可是还报ORA-12541: TNS:no listener错我后来把ORA-12541: TNS:no listener停止,又启动了一次结果sqlplus就可以登陆了不知道什么原因``` 黑色头发 http://heisetoufa.iteye.com...2008-08-13 21:04:28 · 391 阅读 · 0 评论 -
cannot be converted to an integer,jsp,c标签,el表达式,取值
严重: Servlet.service() for servlet EmpSer threw exceptionjavax.servlet.jsp.el.ELException: The "." operator was supplied with an index value of type "java.lang.String" to be applied to a List or array,...2008-08-13 20:42:00 · 445 阅读 · 0 评论 -
java.sql.SQLException: ORA-00942: 表或视图不存在
我的这个错误不是像提示的那么简单,是联合查询报的错sql语句是没毛病的,在sql plus里执行语句是正常的但是当我在程序里执行完了sql之后SELECT hmd.xh ,yh.id from kk.kkhmd hmd,kk.kkyh yh where hmd.id=yh.id and yh.id = 1 再把值添加进VO的时候就报异常了,可能是因为rs.get..里不让用表名.字段名的形...2008-08-12 22:29:04 · 1558 阅读 · 0 评论 -
java.sql.SQLException: ORA-00904:
java.sql.SQLException: ORA-00904: "LRDW": 无效的标识符这个问题是由于我设置了可滚动结果集开始的sql语句报了异常,开始的语句是sql = "SELECT BM FROM kk.kkbmqx WHERE ID='"+LoginForm.getKk_UserLogin()+"' and lrdw='"+sessionLRDW+"' " ;后来我把lrd...2008-08-12 22:27:40 · 536 阅读 · 0 评论 -
java.lang.ClassCastException: java.lang.String
java.lang.ClassCastException: java.lang.String 我报了这个异常,原因是我开始存的list是string类型的,而后来我想把string类型的传给类类型的,所以类型不匹配,出异常了感谢老紫竹群里火龙果的帮助,写了下面的从string转为类类型的listfor(int i=pageStartRow;i<pageEndRow;i++) { ...2008-08-12 22:25:06 · 317 阅读 · 0 评论 -
You must specify the value attribute or nested tag
2008-4-7 16:41:19 org.apache.catalina.core.ApplicationDispatcher invoke严重: Servlet.service() for servlet jsp threw exceptionjavax.servlet.jsp.JspException: You must specify the value attribute or nest...2008-08-12 22:24:19 · 404 阅读 · 0 评论 -
sql.SQLException: 对只转发结果集的无效操作: absolute,可滚动结果集
获得ResultSet的长度可以使用getRow,但是首先要设置ResultSet为可滚动结果集,否则会报java.sql.SQLException: 对只转发结果集的无效操作: absolute设置方法为Statement 的设置方法:Statement stmt=con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet...2008-08-12 22:21:38 · 671 阅读 · 0 评论 -
org.apache.taglibs.standard.tlv.JstlCoreTLV
org.apache.jasper.JasperException: Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV原因是缺少.jar文件至于是缺少standard.jar还是servlet-api.jar还是两个都缺那就看你引了哪个了 ...2008-08-12 21:31:28 · 740 阅读 · 0 评论 -
ORA-01858: a non-numeric character was,to_date問題
ORA-01858: a non-numeric character was found where a numeric was expected 这个问题是由于Date dateCreated = startBookForm.getDateCreated();//录入日期String dateCreatedStr = "to_date('"+dateCreated+"','yyyy-m...2008-08-17 12:15:38 · 2386 阅读 · 0 评论 -
java.lang.NumberFormatException: For input string:
java.lang.NumberFormatException: For input string: 我忘记引c标签了<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 所以报这个错误提示 黑色头发:http://heisetoufa.iteye.com...2008-08-20 22:05:03 · 1583 阅读 · 0 评论 -
java.lang.NoClassDefFoundError: org/apache/xbean/spring/context/SpringApplicatio
[code="java"]java.lang.NoClassDefFoundError: org/apache/xbean/spring/context/SpringApplicationContext[/code]缺少包:xbean-spring-2.4.jar引入项目即可黑色头发:http://heisetoufa.iteye.com/...原创 2010-09-04 11:17:40 · 422 阅读 · 0 评论 -
mysql 错误 Duplicate entry '1' for key 1,自增
mysql数据库是因为给数据库里的自增字段赋值了``所以报Duplicate entry '1' for key 1去掉auto_increment,或者不要给有auto_increment的字段赋值黑色头发:http://heisetoufa.iteye.com/...2008-12-21 00:38:31 · 773 阅读 · 0 评论 -
java 从别人那导入的项目不自动编译的问题,解决办法
project -> Build Automatically 勾选着,可是还是不自动编译打开 problems 后发现了两个错误,其中一个比较重要The project cannot be built until build path errors are resolved 项目下的.classpath文件中最后一行是解决办法:删除.classpath文件中最后...2009-06-01 16:21:15 · 297 阅读 · 0 评论 -
java 连接池错误 严重:Initializing application data source
严重: Initializing application data source mysqlDBorg.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Access denied for user 'root'@'localhost' (using password: YES)) ...2009-06-01 10:00:52 · 349 阅读 · 0 评论 -
ORA-01841: (full) year must be between -4713 and +
ORA-01841: (full) year must be between -4713 and +9999, and not be 0造成这个错误是因为把=号和'号之间加了个空格,如下[code="java"]String SQL = "SELECT consumption FROM dzjc.bookUse WHERE consumptionclass = '"+consump...2009-03-15 21:51:31 · 1427 阅读 · 0 评论 -
java 索引中丢失 IN 或 OUT 参数:: 1
原因:问号个数和PreparedStatement预处理传的参数个数不一样如不写最后的执行命令pstm.executeQuery(),这种情况不会报任何错黑色头发:http://heisetoufa.iteye.com/...2009-03-15 16:26:25 · 267 阅读 · 0 评论 -
Exception creating bean of class struts.form.: {1}
这个是因为Form类没有找到检查下struts-config.xml里form和form类名是否一致黑色头发:http://heisetoufa.iteye.com/2009-03-13 00:44:42 · 277 阅读 · 0 评论 -
equal symbol expected
这样嵌套会异常[code="html"][/code]像下边这样写就不会[code="html"][/code]黑色头发:http://heisetoufa.iteye.com/2009-03-12 00:56:45 · 100 阅读 · 0 评论 -
No getter method for property X of bean ...ml.BEAN
No getter method for property XXXX of bean org.apache.struts.taglib.html.BEAN这次遇到的这个问题的引起的原因跟property的命名有关,我JSP的property命名为kK_BlankList,bean里变量也为kK_BlankList,当用自动生成getter/setter时,getter方法内的变量赋值未自动加上t...2008-08-12 21:27:22 · 613 阅读 · 0 评论 -
java.io.IOException: reading encoded JPEG Stream
java.io.IOException: reading encoded JPEG Stream我出现的这个错误不是每次都出,而是隔一次一出就是我第一次提交显示图片时出这个异常,然后再次提交显示图片就不出了,第三次提交又出,反复反复个人解决办法:try { image = ImageIO.read(inputimage); ServletOutputStream sos = ...2008-08-12 21:25:47 · 597 阅读 · 0 评论 -
Error creating form bean of class ChargeStatForm
struts-config.xml配置文件中的没有定义正确,本次我是写成了这样 [code="html"][/code]正确的是[code="html"] [/code]黑色头发 http://heisetoufa.iteye.com...2008-08-12 20:50:49 · 116 阅读 · 0 评论 -
Cannot forward after response has been committed转发
java.lang.IllegalStateException:Cannot forward after response has been committed异常出现的原因是因为[code="java"]servlet.getServletContext().getRequestDispatcher("/DateUpdatePage.do").forward(request, respons...2008-08-12 20:50:22 · 149 阅读 · 0 评论 -
No bean found under attribute key XXX
这个错误还真头一次碰见。记下来记下来!!这个问题我一开始还以为是映射没映射对,使劲的找路径,映射,可怎么改都不行,憋屈死了,可是当我按照程序流程走向一点点看的时候,看到了setAttribute,错误信息上也有attribute,这时,我才恍然大悟,原来是setAttribute跟jsp里的[code="html"][/code]中的name的属性值没对应上,把[code="java"]r...2008-08-12 20:43:16 · 572 阅读 · 0 评论 -
java.lang.NullPointerException
这个问题竟然是[code="java"]if(!chargeStatCheckBox1.equals("")){}[/code]这条语句错误,如果改成下面的就正常通过[code="java"]if(!"".equals(chargeStatCheckBox1)){}[/code]黑色头发 http://heisetoufa.iteye.com...2008-08-12 20:32:38 · 107 阅读 · 0 评论 -
java.util.Date.parse(Date.java:582) 异常
这个异常的原因是日期格式错误,这样是不行的 [code="java"]Date chargeStatPunishmentStopDate = new Date("2007-07-13");[/code]要改成这样 [code="java"]Date chargeStatPunishmentStopDate = new Date("2007/07/13");[/c...2008-08-12 20:32:18 · 855 阅读 · 0 评论 -
java.sql.SQLException: ORA-01006: 赋值变量不存在
SQL语句写的有毛病, 这样写就好使[code="java"]sql = "SELECT username FROM dzjc_yhmc WHERE username=? and pwd=?" ;[/code]这样写就不好使[code="java"]sql = "SELECT username FROM dzjc_yhmc WHERE username = ? and pwd = ?...2008-08-12 20:23:57 · 173 阅读 · 0 评论 -
creating bean of class InvoiceBlankOutForm: {1}
这是说前台的property跟后台的对应不上,就会出现javax.servlet.ServletException: Exception creating bean of class InvoiceBlankOutForm: {1} 这种错误拉,对应上就可以了我之所以对应不上,是因为在前台的property的值首字母给大写了,所以后台就对应不上了,前台的属性名字首字母千万不能大写啊!...2008-08-12 20:17:12 · 102 阅读 · 0 评论 -
Cannot retrieve mapping for action /*
这种错误还害我找了半天,这就是没记熟悉struts标签用法的后果解决办法很简单,查找哪里没有对应上action和mapping的映射,因为设置了mapping的返回,而返回又没映射到正确的路径,所以就报错了,Cannot retrieve mapping for action /*,我找到struts-config.xml,检查到path="SystemParameterMimeograp...2008-08-12 20:14:21 · 195 阅读 · 0 评论 -
java.lang.OutOfMemoryError
jvm是有存储空间的,如果数据量的大小超过了jvm的大小,就会出现这个错误我是因为一条sql语句没写好,导致了java.lang.OutOfMemoryError错误,特此批评改正[code="java"]select p.xm,d.sfzmhm,p.djzsxxdz,d.dabh,d.zjcx,d.yxqs,d.yxqz,d.ljjf,d.glbm from drv_admin....2008-08-12 20:51:42 · 129 阅读 · 0 评论 -
Severity and Description Path Resource Location Cr
Severity and Description Path Resource Location Creation Time IdProject dzjc is missing required library: 'C:\Documents and Settings\Administrator\桌面\jwr_rackery_1[1].00beta.jar\jwr.jar' dzjc Build p...2008-08-12 20:59:06 · 2368 阅读 · 0 评论 -
getOutputStream() has already been called for this
getOutputStream() has already been called for this response但是我还不明白out是什么意思,年后回来再补上吧,明天早上7点的火车,得回去准备一下了在tomcat5下jsp中出现此错误一般都是在jsp中使用了输出流(如输出图片验证码,文件下载等),释放在jsp中使用的对象,会调用response.getWriter(),因为这个方法是和r...2008-08-12 21:24:43 · 101 阅读 · 0 评论 -
You must specify exactly one of src, srcKey, page,
You must specify exactly one of src, srcKey, page, or pageKey这个问题居然在百度上搜索不到在Google里也基本全是英文的我就说一下我解决的方法吧我碰到这问题后检查jsp页面发现了问题,是眼神不好使,也是那个标签藏的太深我在前边写了一个<html:img/>的标签没指定内容后面又写了个<img src="X...2008-08-12 21:24:24 · 320 阅读 · 0 评论 -
ORA-22920: 未锁定含有 LOB 值的行
这个错误是因为在插入lob型数据的时候没有加上for update在你的插入语句后面加上for update就可以了如insert into student(image) values('"+image+"') for update" ; 黑色头发 http://heisetoufa.iteye.com...2008-08-12 21:23:28 · 1703 阅读 · 0 评论 -
Cannot find bean under name *.taglib.html.BEAN
标题控制的太严格,发了不太长的标题,整个错误信息是下边这个Cannot find bean under name org.apache.struts.taglib.html.BEAN 在我检查了几遍之后,我发现不是没引taglib,也不是formaction和property的值没对应上,也不是struts-config.xml配置错误,总之错误是在页面上,因为form表单加了断点而没走,...2008-08-12 21:20:09 · 178 阅读 · 0 评论 -
Cannot find bean under name,bean under name list
javax.servlet.jsp.JspException: Cannot find bean under name list这个异常,已经提示的很清楚了,因为找不到bean里名字为list的对象,既然找不到list,那就加上list呗,就这简单点事,但是要加在哪,那就要看你的程序了,不是说 Cannot find bean under name list就是在bean里,我的错误就是在acti...2008-08-12 21:16:48 · 1034 阅读 · 0 评论 -
Cannot find bean under name org.apache.struts.tagl
Cannot find bean under name org.apache.struts.taglib.html.BEAN有一些struts标签必须放在<form>里,不然就会报这个错,报了这个错就说明有标签没放<form>里比如<html:select property="111"><html:option value="1">1<2008-08-12 21:15:30 · 168 阅读 · 0 评论 -
Resources cannot be null
java.lang.illegalargumentexception: resources cannot be null. org.apache.commons.validator.validator.(validator.java:188) org.apache.struts.validator.resources.initvalidator(resources.java:475) org.ap...2008-08-12 21:14:19 · 105 阅读 · 0 评论 -
java.lang.NumberFormatException: For input string:
java.lang.NumberFormatException: For input string: "" 这个错误是因为用到了类型转换 的包装类,有时转换会出现这种异常的,所以最好要用try/catch包起来。jdk1.5下 [code="java"] java.text.DecimalFormat df = new DecimalForma...2008-08-12 20:59:26 · 4568 阅读 · 0 评论 -
【转】严重: IOException while loading persisted sessions: java.io.EOFException
严重: IOException while loading persisted sessions: java.io.EOFExceptionEOFException表示输入过程中意外地到达文件尾或流尾的信号,导致从session中获取数据失败。异常是tomcat本身的问题,由于tomcat上次非正常关闭时有一些活动session被持久化(表现为一些临时文件),在重启时,tomcat尝试去恢...原创 2014-12-17 15:20:26 · 166 阅读 · 0 评论