首页 > 其他 > 详细

最近碰见的异常

时间:2015-10-29 16:02:03      阅读:324      评论:0      收藏:0      [点我收藏+]

1.Unknown initial character set index ‘192‘ received from server. Initial client character set can be forced via the ‘characterEncoding‘ property.

Exception in thread "main" 姓名如下:
java.lang.NullPointerException
at com.ctgusec.zhupan.ExampleMain.main(ExampleMain.java:77)
这个异常解决方法为:在jdbc路径上加上?autoReconnect=true&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true。
2.org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘transactionInterceptor‘ defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property ‘hibernateProperties‘ of bean class [org.springframework.transaction.interceptor.TransactionInterceptor]: Bean property ‘hibernateProperties‘ is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
 
这个异常说的很明白就是hibernateProperties引起的,原因是在applicationcontext.xml的事务拦截器中定义了这段代码 
 
 
注释之后就好用。

最近碰见的异常

原文:http://www.cnblogs.com/lvjian3/p/4920674.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!