java 项目中遇到的错误
sql錯(cuò)誤
找不到列
Unknown column 'fillMen' in 'field list'
2.列名在sql語(yǔ)句中寫(xiě)了2次
Column 'fillMan' specified twice
3.下面2條 數(shù)據(jù)庫(kù)插入對(duì)應(yīng)的列都是int類(lèi)型的? 所插入的數(shù)據(jù)類(lèi)型不符合要求時(shí)報(bào)錯(cuò)
Data truncated for column 'gatheringMoney' at row 1
Data truncation: Out of range value adjusted for column 'amount' at row 1
4.
Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
5.修改一個(gè)表時(shí)無(wú)法取得同一個(gè)表的數(shù)據(jù)
ERROR 1093 (HY000): You can't specify target table 'context' for update in FROM
clause
6.主鍵 未自動(dòng)增長(zhǎng)
ERROR 1062 :
7.int 類(lèi)型字符過(guò)長(zhǎng)
com.mysql.jdbc.exceptions.MySQLDataException: '2.5026744582E10' in column '1' is outside valid range for the datatype INTEGER.
8.沒(méi)找到錯(cuò)誤 沒(méi)影響數(shù)據(jù)讀取
java.sql.SQLException: Operation not allowed after ResultSet closed
9.類(lèi)型錯(cuò)誤 最常見(jiàn)的是數(shù)字類(lèi)型錯(cuò)誤
Data truncated for column 'gatheringMoney' at row 1
10.換另一個(gè)項(xiàng)目時(shí) 數(shù)據(jù)庫(kù)連接池沒(méi)換 (未解)
Name java: is not bound in this Context
換了之后 似乎還是不行
=====
java:/comp/env/jdbc/ConnSqlSer
前面多了一個(gè)'/'
應(yīng)為java:comp/env/jdbc/ConnSqlSer
=======
11.\(未解)
java.sql.SQLException: QueryRunner requires a DataSource to be invoked in this way, or a Connection should be passed in
12.executeQuery()方法改成execute()(未解)
Can not issue data manipulation statements with executeQuery().
Can not issue data manipulation statements with executeQuery().
struts錯(cuò)誤
?Failed to obtain specified collection? 下拉框沒(méi)值
警告: No FormBeanConfig found under 'yuanLiaoRuKuForm'? 配置文件Form出錯(cuò)
?
Cannot find bean: "org.apache.struts.taglib.html.BEAN" in any scope
<html:text >標(biāo)簽外面沒(méi)有嵌套<html:form >標(biāo)簽
No getter method for property: "outDate" of bean: "com.System.storage.form.YuanliaoPandianForm"
在form里面沒(méi)有定義 此字段的get方法
?
Cannot get a connection, pool error Timeout waiting for idle object?? 數(shù)據(jù)庫(kù)錯(cuò)誤
?Operation not allowed after ResultSet closed??可能是結(jié)果集關(guān)閉了
?
//在Action里面調(diào)用的DAO類(lèi) 沒(méi)有進(jìn)行重新實(shí)例化
2008-5-12 20:02:09 org.apache.struts.action.RequestProcessor processException
警告: Unhandled Exception thrown: class java.lang.NullPointerException
2008-5-12 20:02:09 org.apache.catalina.core.StandardWrapperValve invoke
嚴(yán)重: Servlet.service() for servlet action threw exception
java.lang.NullPointerException
?at com.System.storage.action.FinishedAction.finishedCheckAdd(FinishedAction.java:151)
?at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
//在C標(biāo)簽里從一個(gè)對(duì)象里取值時(shí) , 所請(qǐng)求的是對(duì)象里沒(méi)有的屬性
An error occurred while evaluating custom action attribute "value" with value "${rows.storageAmount}": Unable to find a value for "storageAmount" in object of class "com.System.storage.domain.Finished" using operator "." (null)
forward 轉(zhuǎn)向 連接到了一個(gè)還沒(méi)開(kāi)始寫(xiě)的action里面 而那個(gè)action所對(duì)應(yīng)的jsp頁(yè)面還沒(méi)改
Resources cannot be null.
找不到下面這個(gè)action
Cannot retrieve mapping for action /finished/finishedChuKuSearch
?Cannot retrieve mapping for action /purveyAdd? 如果把jsp頁(yè)面的action寫(xiě)錯(cuò)了 就這樣報(bào)
/jspfinance/client/ShouKuanJiLu_Sel.jsp(172,0) The end tag "</html:form" is unbalanced
類(lèi)型轉(zhuǎn)換錯(cuò)誤 一般是參數(shù)類(lèi)型寫(xiě)錯(cuò) 在公共方法或者配置文件里面找
com.System.finance.client.form.GatheringForm cannot be cast to com.System.finance.client.form.InvoiceForm
??
struts標(biāo)簽里面 寫(xiě)進(jìn)了html標(biāo)簽內(nèi)的屬性
/jspclient/KeHuDangAn_Ins.jsp(44,88) equal symbol expected
/jspfinance/client/TuiHuanHuo_Ins.jsp(70,42) quote symbol expected
/jspstorage/material/YuanLiaoChuKu_Ins.jsp(84,31) equal symbol expected
org.apache.jasper.JasperException: /scDept/dingDanXinZeng.jsp(333,167) equal symbol expected
jsp頁(yè)面上action寫(xiě)錯(cuò)了
Cannot retrieve mapping for action /finished/finishedCheckAdd
配置文件出錯(cuò)
The content of element type "action-mappings" must match "(action)*".
轉(zhuǎn)載于:https://www.cnblogs.com/jiandanfy/archive/2008/06/11/1217568.html
總結(jié)
以上是生活随笔為你收集整理的java 项目中遇到的错误的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 一个弹窗口的流氓软件
- 下一篇: 也谈员工管理