博客轉(zhuǎn)移
本博客決定轉(zhuǎn)移,請訪問新地址 http://vincentchan.cn/另外如果有人有blogjava轉(zhuǎn)wordpress的博客搬家工具,可以共享一下~~
posted @ 2010-04-27 19:15 Vincent.Chen 閱讀(248) | 評論 (0) | 編輯 收藏
2006年2月12日 #
posted @ 2010-04-27 19:15 Vincent.Chen 閱讀(248) | 評論 (0) | 編輯 收藏
posted @ 2009-04-30 09:34 Vincent.Chen 閱讀(201) | 評論 (0) | 編輯 收藏
Tomcat+Axis客戶端調(diào)service產(chǎn)生java.lang.reflect.InvocationTargetException錯誤
產(chǎn)生這個文題的原因是
1.server端發(fā)布的webservice程序中調(diào)用了某些jar或class,而服務(wù)器上卻沒有,解決方法是把jar或class拷貝到tomcat\common\lib或虛擬目錄的web-inf\lib目錄下
2.調(diào)用的方法出現(xiàn)了特殊的exception.但是你服務(wù)器上面沒有捕獲到
posted @ 2009-03-23 09:09 Vincent.Chen 閱讀(3488) | 評論 (0) | 編輯 收藏
posted @ 2009-03-14 13:34 Vincent.Chen 閱讀(405) | 評論 (0) | 編輯 收藏
posted @ 2008-07-04 23:42 Vincent.Chen 閱讀(419) | 評論 (0) | 編輯 收藏
posted @ 2008-07-01 00:34 Vincent.Chen 閱讀(256) | 評論 (0) | 編輯 收藏
posted @ 2008-06-24 00:13 Vincent.Chen 閱讀(235) | 評論 (0) | 編輯 收藏
2、設(shè)置Chart默認(rèn)字體:
如果在非windows系統(tǒng)下使用,可以拷貝windows系統(tǒng)下的simsun.ttc到classes路徑下,重啟服務(wù)器即可顯示中文
然后其他的一些字體大小等都要一個個設(shè)置了,因為默認(rèn)英文字體大小顯示中文不好看
這樣就可以很完美顯示中文了。比起JFreeChart來好多了,JFreeChart雖然也可以解決中文顯示問題,但是中文字體發(fā)虛,好像目前無法解決。
posted @ 2008-04-15 20:06 Vincent.Chen 閱讀(5411) | 評論 (5) | 編輯 收藏
posted @ 2008-04-02 21:38 Vincent.Chen 閱讀(4227) | 評論 (0) | 編輯 收藏
posted @ 2008-02-02 20:49 Vincent.Chen 閱讀(3409) | 評論 (0) | 編輯 收藏
posted @ 2008-01-20 22:01 Vincent.Chen 閱讀(36472) | 評論 (17) | 編輯 收藏
Archetype | Command |
---|---|
JSF Basic | mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-basic-jsf -DremoteRepositories=http://static.appfuse.org/repository![]() |
Spring MVC Basic | mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-basic-spring -DremoteRepositories=http://static.appfuse.org/repository![]() |
Struts 2 Basic | mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-basic-struts -DremoteRepositories=http://static.appfuse.org/repository![]() |
Tapestry Basic | mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-basic-tapestry -DremoteRepositories=http://static.appfuse.org/repository![]() |
JSF Modular | mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-modular-jsf -DremoteRepositories=http://static.appfuse.org/repository![]() |
Spring MVC Modular | mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-modular-spring -DremoteRepositories=http://static.appfuse.org/repository![]() |
Struts 2 Modular | mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-modular-struts -DremoteRepositories=http://static.appfuse.org/repository![]() |
Tapestry Modular | mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-modular-tapestry -DremoteRepositories=http://static.appfuse.org/repository![]() |
Core (backend only) | mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-core -DremoteRepositories=http://static.appfuse.org/repository![]() |
posted @ 2007-07-18 22:58 Vincent.Chen 閱讀(1028) | 評論 (0) | 編輯 收藏
posted @ 2007-07-02 23:58 Vincent.Chen 閱讀(783) | 評論 (0) | 編輯 收藏
posted @ 2007-07-02 23:54 Vincent.Chen 閱讀(2121) | 評論 (1) | 編輯 收藏
Eclipse Europa is the annual release of Eclipse projects. Like last
year’s Callisto release, the Europa release is a coordinated release of
different Eclipse project teams. This year, the annual release includes
21 projects.
By releasing these projects at the same time, the goal is to eliminate
uncertainty about version compatibility and make it easier to
incorporate multiple projects into your environment.
While Europa is about the simultaneous release of twenty one projects,
it is not a unification of the projects - each project remains a
separate open source project operating with its own project leadership,
its own committers, and its own project plan.
posted @ 2007-06-29 00:19 Vincent.Chen 閱讀(561) | 評論 (0) | 編輯 收藏
posted @ 2007-06-07 00:01 Vincent.Chen 閱讀(4579) | 評論 (1) | 編輯 收藏
posted @ 2006-06-04 17:02 Vincent.Chen 閱讀(797) | 評論 (0) | 編輯 收藏
在Connection上調(diào)用close方法會關(guān)閉Statement和ResultSet嗎?
級聯(lián)的關(guān)閉這聽起來好像很有道理,而且在很多地方這樣做也是正確的,通常這樣寫
Connection con = getConnection();//getConnection is your method
PreparedStatement ps = con.prepareStatement(sql);
ResultSet rs = ps.executeQuery();
……
///rs.close();
///ps.close();
con.close(); // NO!
這
樣做的問題在于Connection是個接口,它的close實現(xiàn)可能是多種多樣的。在普通情況下,你用
DriverManager.getConnection()得到一個Connection實例,調(diào)用它的close方法會關(guān)閉Statement和
ResultSet。但是在很多時候,你需要使用數(shù)據(jù)庫連接池,在連接池中的得到的Connection上調(diào)用close方法的時候,Connection可能并沒有被釋放,而是回到了連接池中。它以后可能被其它代碼取出來用。如果沒有釋放Statement和ResultSet,那么在Connection上沒有關(guān)閉的Statement和ResultSet可能會越來越多,那么……
相反,我看到過這樣的說法,有人把Connection關(guān)閉了,卻繼續(xù)使用ResultSet,認(rèn)為這樣是可以的,引發(fā)了激烈的討論,到底是怎么回事就不用我多說了吧。
所以我們必須很小心的釋放數(shù)據(jù)庫資源,下面的代碼片斷展示了這個過程
Connection con = null;
PreparedStatement ps = null;
ResultSet rs = null;
try {
con = getConnection();//getConnection is your method
ps = con.prepareStatement(sql);
rs = ps.executeQuery();
///...........
}
catch (SQLException ex) {
///錯誤處理
}
finally{
try {
if(ps!=null)
ps.close();
}
catch (SQLException ex) {
///錯誤處理
}
try{
if(con!=null)
con.close();
}
catch (SQLException ex) {
///錯誤處理
}
}
很麻煩是不是?但為了寫出健壯的程序,這些處理是必須的。
posted @ 2006-03-15 23:15 Vincent.Chen 閱讀(4374) | 評論 (0) | 編輯 收藏
Everybody knows that the basic native widgets in swt lack a lot of flexibility and features. An approach to solve these shortcomings is to build custom swt widgets that do not rely on native widgets but are custom drawn - the same approach that swing took. A good example is KTable. The custom swt widgets - custom drawn and aggergated native ones - I currently know of are:
posted @ 2006-02-21 22:39 Vincent.Chen 閱讀(1092) | 評論 (0) | 編輯 收藏
posted @ 2006-02-14 21:27 Vincent.Chen 閱讀(585) | 評論 (0) | 編輯 收藏
posted @ 2006-02-14 21:24 Vincent.Chen 閱讀(573) | 評論 (0) | 編輯 收藏
posted @ 2006-02-14 21:18 Vincent.Chen 閱讀(598) | 評論 (0) | 編輯 收藏
posted @ 2006-02-14 21:16 Vincent.Chen 閱讀(343) | 評論 (0) | 編輯 收藏
posted @ 2006-02-14 21:12 Vincent.Chen 閱讀(341) | 評論 (0) | 編輯 收藏
posted @ 2006-02-13 18:19 Vincent.Chen 閱讀(344) | 評論 (0) | 編輯 收藏
posted @ 2006-02-12 22:55 Vincent.Chen 閱讀(502) | 評論 (0) | 編輯 收藏
posted @ 2006-02-12 12:59 Vincent.Chen 閱讀(514) | 評論 (0) | 編輯 收藏
posted @ 2006-02-12 11:10 Vincent.Chen 閱讀(1045) | 評論 (1) | 編輯 收藏
posted @ 2006-02-12 11:08 Vincent.Chen 閱讀(443) | 評論 (0) | 編輯 收藏
或許你還沒有用過它, prototype.js 是一個由Sam Stephenson寫的JavaScript包。這個構(gòu)思奇妙編寫良好的一段兼容標(biāo)準(zhǔn)的一段代碼將承擔(dān)創(chuàng)造胖客戶端, 高交互性WEB應(yīng)用程序的重?fù)?dān)。輕松加入Web 2.0特性。
如果你最近體驗了這個程序包,你很可能會發(fā)現(xiàn)文檔并不是它的強項之一。像所有在我之前的開發(fā)者一樣,我只能一頭扎進(jìn)prototype.js的源代碼中并且試驗其中的每一個部分。 我想當(dāng)我學(xué)習(xí)他的時候記寫筆記然后分享給其他人將會很不錯。
posted @ 2006-02-12 11:06 Vincent.Chen 閱讀(417) | 評論 (0) | 編輯 收藏
posted @ 2006-02-12 11:04 Vincent.Chen 閱讀(428) | 評論 (0) | 編輯 收藏
posted @ 2006-02-12 10:53 Vincent.Chen 閱讀(436) | 評論 (0) | 編輯 收藏