java.io.CharConversionException: Not an ISO 8859-1 character: xx
摘要: 這個(gè)問題是因?yàn)閛utputstream輸出中文字造成的.換成Writer就好了。outputstream是以字節(jié)為單位輸出字符串的,需要符合那個(gè)ISO 8859-1編碼
response.setContentType("text/html;charset=UTF-8");
//response.getOutputStream().print("中文字"); //這行會出錯(cuò)
response.getWriter().print("中文字"); //換成這個(gè)就好了
response.getWriter().close();
閱讀全文
posted @
2011-12-21 15:26 Ke 閱讀(1293) |
評論 (0) 編輯
[Microsoft][ODBC 驅(qū)動(dòng)程序管理器] 驅(qū)動(dòng)程序的 SQLAllocHandle on SQL_HANDLE_ENV 失敗
摘要: [Microsoft][ODBC 驅(qū)動(dòng)程序管理器] 驅(qū)動(dòng)程序的 SQLAllocHandle on SQL_HANDLE_ENV 失敗
閱讀全文
posted @
2009-08-04 10:28 Ke 閱讀(15443) |
評論 (3) 編輯
解決在eclipse項(xiàng)目中使用utf-8字符時(shí)導(dǎo)出錯(cuò)誤
摘要: 在eclipse項(xiàng)目中使用utf-8字符可能會造成導(dǎo)出時(shí)產(chǎn)生錯(cuò)誤,程序不能正常運(yùn)行
我以前網(wǎng)上找到的辦法都不好,解決的辦法其實(shí)十分簡單
在build.properties文件中加入
javacDefaultEncoding.. = UTF-8
閱讀全文
posted @
2009-07-28 09:17 Ke 閱讀(513) |
評論 (0) 編輯
java.lang.IllegalAccessError: tried to access method net.sf.ehcache.CacheManager.()V from class org.hibernate.cache.EhCacheProvider
摘要: java.lang.IllegalAccessError: tried to access method net.sf.ehcache.CacheManager.
()V from class org.hibernate.cache.EhCacheProvider
此類錯(cuò)誤錯(cuò)誤信息,上網(wǎng)上查了一下.大概了解了下,原來是JAR文件版本問題,
閱讀全文
posted @
2008-01-16 10:36 Ke 閱讀(8907) |
評論 (4) 編輯
log4j:ERROR A "org.jboss.logging.util.OnlyOnceErrorHandler" object is not assignable to a "org.apache.log4j.spi.ErrorHandler" variable的異常
摘要: 對于jboss4.0.x如果我們要用自己的log4j配置照上述改還是會有問題,會有類似于log4j:ERROR A "org.jboss.logging.util.OnlyOnceErrorHandler" object is not assignable to a "org.apache.log4j.spi.ErrorHandler" variable的異常,解決方法是把/server/default/jbossweb-tomcat55.sar/META-INF/jboss-service.xml 中的以下兩個(gè)熟悉改成true
以上就是使用jboss服務(wù)器可能出現(xiàn)的問題
閱讀全文
posted @
2008-01-16 10:30 Ke 閱讀(5271) |
評論 (1) 編輯
struts2中使用displayTags的問題(ParametersInterceptor - [setParameters]: Unexpected Exception)
摘要: ERROR - ParametersInterceptor - [setParameters]: Unexpected Exception caught setting 'd-49653-p' on 'class dgut.ke.actions.SubjectAction: Error setting expression 'd-49653-p' with value '[Ljava.lang.String;@d73256'
閱讀全文
posted @
2007-11-17 15:21 Ke 閱讀(10716) |
評論 (12) 編輯
申明式事務(wù)和OpenSessionInView
摘要: Write operations are not allowed in read-only mode (FlushMode.NEVER/MANUAL): Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnly' marker from transaction definition.
閱讀全文
posted @
2007-11-16 16:51 Ke 閱讀(1947) |
評論 (0) 編輯
表字段使用了關(guān)鍵字導(dǎo)致數(shù)據(jù)插入發(fā)生異常
摘要: ERROR - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'show, updateTime, id) values ('2c9ab2d51637c2ca0116380396f80009', '2c9ab2d516382' at line 1
ERROR - Could not synchronize database state with session
閱讀全文
posted @
2007-11-13 17:07 Ke 閱讀(1010) |
評論 (0) 編輯