随笔 - 6  文章 - 129  trackbacks - 0
<2024年4月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

常用链接

留言簿(14)

随笔档案(6)

文章分类(467)

文章档案(423)

相册

收藏夹(18)

JAVA

搜索

  •  

积分与排名

  • 积分 - 815437
  • 排名 - 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 阅读(1236) | 评论 (0)  编辑
[Microsoft][ODBC 驱动程序管理器] 驱动程序的 SQLAllocHandle on SQL_HANDLE_ENV 失败      摘要: [Microsoft][ODBC 驱动程序管理器] 驱动程序的 SQLAllocHandle on SQL_HANDLE_ENV 失败  阅读全文
posted @ 2009-08-04 10:28 Ke 阅读(15283) | 评论 (3)  编辑
解決在eclipse项目中使用utf-8字符時导出错误      摘要: 在eclipse项目中使用utf-8字符可能会造成导出时产生错误,程序不能正常运行
我以前网上找到的办法都不好,解决的办法其实十分简单
在build.properties文件中加入

javacDefaultEncoding.. = UTF-8   阅读全文
posted @ 2009-07-28 09:17 Ke 阅读(494) | 评论 (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 阅读(2735) | 评论 (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 阅读(8872) | 评论 (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 阅读(5245) | 评论 (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 阅读(10669) | 评论 (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 阅读(1931) | 评论 (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 阅读(989) | 评论 (0)  编辑