2010年12月11日 星期六

VMware command

vmware路徑下的VMware Workstation中,找到vmware-vdiskmanager.exe。
然後執行vmware-vdiskmanager.exe -x 40Gb ".vmdk檔案路徑",即可增加硬碟空間。

2010年12月7日 星期二

Exception:ERROR 14:21:16,796 StandardWrapperValve.java:253 - Servlet.service() for servlet action threw exception

org.apache.jasper.JasperException: /xxx/xxxQ.jsp(207,89) equal symbol expected

Exception:登入成功後,變成空白頁。

Console顯示以下Exception:
org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: JZ00L: 登錄失敗。檢查與此異常現象有關的 SQL 警告以獲得失敗原因。
Caused by: 
java.sql.SQLException: JZ00L: 登錄失敗。檢查與此異常現象有關的 SQL 警告以獲得失敗原因。


原因:連接資料庫的ip設定錯誤導致。

Exception:java.sql.SQLException: JZ0SA: 已準備好的語句:沒有設置輸入參數,索引:1。

原因:執行sql時,沒有給予對應的 ?帶入參數。

Exception:參數索引超出範圍: 4。

原因:塞入的參數多過 ?的總數

Exception:已準備好的語句:沒有設置輸入參數,索引:3。

原因:?的總數多於塞入的參數。

2010年12月6日 星期一

Exception:Select expression results in more than one column having same name. Column name 'rply_time' is specified more than once

原因:Column name在 select敘述裡重複。

Exception:org.springframework.dao.IncorrectResultSizeDataAccessException: Incorrect result size: expected 1, actual 4

在spring下,db使用queryForMap時,出現的錯誤。


原因:select salary from user where 1 = 2 的結果是 salary (返回第0行),會抛出IncorrectResultSizeDataAccessException。


所以最好還是用queryForList, 返回的list的size為0,表示找不到資料。除非確定資料select出來一定至少有一筆,才使用queryForMap。

<%-- = = = = = = = = = = = = = = = = = 以上 = = = = = = = = = = = = = = = = = --%>

高雄聚會餐館

ボードゲーム予定

ボードゲーム持っている

<%-- = = = = = = = = = = = = = = = = 以下空白 = = = = = = = = = = = = = = = = --%>