日期:2014-05-18  浏览次数:20645 次

spring+struts+hibernate问题 在线急等
log4j:WARN   No   appenders   could   be   found   for   logger  

(org.springframework.core.CollectionFactory).
log4j:WARN   Please   initialize   the   log4j   system   properly.
Hibernate:   select   orderdetai0_.id   as   id2_,   orderdetai0_.bid   as   bid2_,   orderdetai0_.oid   as  

oid2_,   orderdetai0_.orderprice   as   orderprice2_,   orderdetai0_.number   as   number2_   from  

bookStoreBusiness.dbo.orderdetail   orderdetai0_
org.springframework.jdbc.UncategorizedSQLException:   Hibernate   operation:   could   not   execute  

query;   uncategorized   SQLException   for   SQL   [select   orderdetai0_.id   as   id2_,   orderdetai0_.bid  

as   bid2_,   orderdetai0_.oid   as   oid2_,   orderdetai0_.orderprice   as   orderprice2_,  

orderdetai0_.number   as   number2_   from   bookStoreBusiness.dbo.orderdetail   orderdetai0_];   SQL  

state   [HY000];   error   code   [0];   [Microsoft][SQLServer   2000   Driver   for   JDBC]Value   can   not   be  

converted   to   requested   type.;   nested   exception   is   java.sql.SQLException:   [Microsoft]

[SQLServer   2000   Driver   for   JDBC]Value   can   not   be   converted   to   requested   type.
java.sql.SQLException:   [Microsoft][SQLServer   2000   Driver   for   JDBC]Value   can   not   be   converted  

to   requested   type.
at   com.microsoft.jdbc.base.BaseExceptions.createException(Unknown   Source)
at   com.microsoft.jdbc.base.BaseExceptions.getException(Unknown   Source)
at   com.microsoft.jdbc.base.BaseData.getFloat(Unknown   Source)
at   com.microsoft.jdbc.base.BaseResultSet.getFloat(Unknown   Source)
at   com.microsoft.jdbc.base.BaseResultSet.getFloat(Unknown   Source)
at   org.hibernate.type.FloatType.get(FloatType.java:23)
at   org.hibernate.type.NullableType.nullSafeGet(NullableType.java:113)
at   org.hibernate.type.NullableType.nullSafeGet(NullableType.java:102)
at   org.hibernate.type.AbstractType.hydrate(AbstractType.java:81)
at   org.hibernate.persister.entity.AbstractEntityPersister.hydrate

(AbstractEntityPersister.java:1899)
at   org.hibernate.loader.Loader.loadFromResultSet(Loader.java:1372)
at   org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:1300)
at   org.hibernate.loader.Loader.getRow(Loader.java:1197)
at   org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:569)
at   org.hibernate.loader.Loader.doQuery(Loader.java:689)
at   org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections

(Loader.java:224)
at   org.hibernate.loader.Loader.doList(Loader.java:2145)
at   org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2029)
at   org.hibernate.loader.Loader.list(Loader.java:2024)