大神们,求解,关于插入数据库出现的问题
Struts Problem Report
Struts has detected an unhandled exception:
Messages: 1.Incorrect string value: '\xC2\xA0\xC2\xA0' for column 'source' at row 1
2.Hibernate operation: could not insert: [com.zsyz.bean.news]; uncategorized
SQLException for SQL [insert into wangtao.news (ProvinceID, TradeID, UserID, CityID, NewTypeID, CountyID, NewTitle, NewContent, ProjecTareas, ProjectMoney, NewTime, StartTime, endTime, source, Editor) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)]; SQL state [HY000]; error code [1366]; Incorrect string value: '\xC2\xA0\xC2\xA0' for column 'source' at row 1; nested exception is
java.sql.SQLException: Incorrect string value: '\xC2\xA0\xC2\xA0' for column 'source' at row 1
File: com/mysql/jdbc/SQLError.java
Line number: 1,073
org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: could not insert: [com.zsyz.bean.news]; uncategorized SQLException for SQL [insert into wangtao.news (ProvinceID, TradeID, UserID, CityID, NewTypeID, CountyID, NewTitle, NewContent, ProjecTareas, ProjectMoney, NewTime, StartTime, endTime, source, Editor) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)]; SQL state [HY000]; error code [1366]; Incorrect string value: '\xC2\xA0\xC2\xA0' for column 'source' at row 1; nested exception is java.sql.SQLException: Incorrect string value: '\xC2\xA0\xC2\xA0' for column 'source' at row 1
org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.translate(SQLStateSQLExceptionTranslator.java:124)
org.springframework.orm.hibernate3.HibernateAccessor.convertJdbcAccessException(HibernateAccessor.java:424)
org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:410)
org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:424)
org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)
org.springframework.orm.hibernate3.HibernateTemplate.save(HibernateTemplate.java:690)
com.zsyz.dao.impl.newsDaoimpl.save(newsDaoimpl.java:111)
com.zsyz.service.impl.newsServiceimpl.saveNews(newsServiceimpl.java:198)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Meth