隨筆 - 6  文章 - 129  trackbacks - 0
          <2025年6月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

          常用鏈接

          留言簿(14)

          隨筆檔案(6)

          文章分類(467)

          文章檔案(423)

          相冊

          收藏夾(18)

          JAVA

          搜索

          •  

          積分與排名

          • 積分 - 827168
          • 排名 - 49

          最新評論

          閱讀排行榜

          評論排行榜

          exception
          java.io.CharConversionException: Not an ISO 8859-1 character: xx      摘要: 這個問題是因為outputstream輸出中文字造成的.換成Writer就好了。outputstream是以字節為單位輸出字符串的,需要符合那個ISO 8859-1編碼
          response.setContentType("text/html;charset=UTF-8");
          //response.getOutputStream().print("中文字"); //這行會出錯
          response.getWriter().print("中文字"); //換成這個就好了
          response.getWriter().close();
            閱讀全文
          posted @ 2011-12-21 15:26 Ke 閱讀(1302) | 評論 (0)  編輯
          [Microsoft][ODBC 驅動程序管理器] 驅動程序的 SQLAllocHandle on SQL_HANDLE_ENV 失敗      摘要: [Microsoft][ODBC 驅動程序管理器] 驅動程序的 SQLAllocHandle on SQL_HANDLE_ENV 失敗  閱讀全文
          posted @ 2009-08-04 10:28 Ke 閱讀(15471) | 評論 (3)  編輯
          解決在eclipse項目中使用utf-8字符時導出錯誤      摘要: 在eclipse項目中使用utf-8字符可能會造成導出時產生錯誤,程序不能正常運行
          我以前網上找到的辦法都不好,解決的辦法其實十分簡單
          在build.properties文件中加入

          javacDefaultEncoding.. = UTF-8   閱讀全文
          posted @ 2009-07-28 09:17 Ke 閱讀(518) | 評論 (0)  編輯
          exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of XXX      摘要: 今天給數據庫中的一個表添加了幾個字段,其值都為NULL
          沒想到添加后,在查詢該表的時候竟然出錯了,在網上查了一下....  閱讀全文
          posted @ 2008-03-16 12:41 Ke 閱讀(2761) | 評論 (3)  編輯
          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
          此類錯誤錯誤信息,上網上查了一下.大概了解了下,原來是JAR文件版本問題,
            閱讀全文
          posted @ 2008-01-16 10:36 Ke 閱讀(8913) | 評論 (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 中的以下兩個熟悉改成true

          以上就是使用jboss服務器可能出現的問題
            閱讀全文
          posted @ 2008-01-16 10:30 Ke 閱讀(5274) | 評論 (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 閱讀(10728) | 評論 (12)  編輯
          申明式事務和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 閱讀(1951) | 評論 (0)  編輯
          表字段使用了關鍵字導致數據插入發生異常      摘要: 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 閱讀(1016) | 評論 (0)  編輯

          主站蜘蛛池模板: 商洛市| 怀柔区| 泸定县| 孟州市| 民和| 札达县| 临邑县| 宿松县| 论坛| 玉林市| 新建县| 长垣县| 册亨县| 七台河市| 澄江县| 龙州县| 巫山县| 云阳县| 上林县| 隆安县| 江孜县| 赫章县| 自治县| 张家界市| 重庆市| 绥滨县| 旬阳县| 黄龙县| 黄冈市| 光泽县| 彝良县| 广西| 安化县| 平山县| 云安县| 甘洛县| 墨江| 漠河县| 湖口县| 东明县| 阳江市|