中華民國政府行政機關辦公日曆表
2010年12月16日 星期四
Remove Outlook Express on Windows Server 2003
在使用Win 2003 Server時,根本不會用到Outlook Express,想要移除也找不到哪裡可以移除,所以必須照著下面步驟才可以移除。
2010年12月11日 星期六
VMware command
vmware路徑下的VMware Workstation中,找到vmware-vdiskmanager.exe。
然後執行vmware-vdiskmanager.exe -x 40Gb ".vmdk檔案路徑",即可增加硬碟空間。
然後執行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設定錯誤導致。
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設定錯誤導致。
2010年12月6日 星期一
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。
原因:select salary from user where 1 = 2 的結果是 salary (返回第0行),會抛出IncorrectResultSizeDataAccessException。
所以最好還是用queryForList, 返回的list的size為0,表示找不到資料。除非確定資料select出來一定至少有一筆,才使用queryForMap。
訂閱:
文章 (Atom)