隨筆 - 6  文章 - 129  trackbacks - 0
          <2025年5月>
          27282930123
          45678910
          11121314151617
          18192021222324
          25262728293031
          1234567

          常用鏈接

          留言簿(14)

          隨筆檔案(6)

          文章分類(467)

          文章檔案(423)

          相冊

          收藏夾(18)

          JAVA

          搜索

          •  

          積分與排名

          • 積分 - 825091
          • 排名 - 49

          最新評論

          閱讀排行榜

          評論排行榜

          exception
          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)  編輯
          exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of XXX      摘要: 今天給數(shù)據(jù)庫中的一個(gè)表添加了幾個(gè)字段,其值都為NULL
          沒想到添加后,在查詢該表的時(shí)候竟然出錯(cuò)了,在網(wǎng)上查了一下....  閱讀全文
          posted @ 2008-03-16 12:41 Ke 閱讀(2755) | 評論 (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
          此類錯(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)  編輯

          主站蜘蛛池模板: 东莞市| 吉安市| 白沙| 南陵县| 临西县| 闸北区| 宁陕县| 太仓市| 饶平县| 微博| 桂东县| 崇信县| 英山县| 南澳县| 陕西省| 麻阳| 肥乡县| 闸北区| 泰州市| 牙克石市| 湖北省| 永胜县| 德庆县| 大埔县| 衡南县| 上栗县| 凤城市| 永靖县| 平塘县| 常山县| 禄劝| 临颍县| 和政县| 永修县| 安顺市| 密山市| 高安市| 保山市| 临洮县| 稷山县| 彭泽县|