1WARN No appenders could be found for logger (org.hibernate.cfg.Environment). 2 3log4j:WARN Please initialize the log4j system properly. 4 5Hibernate: insert into HAIING.dbo.DORMROOM (desc, dorm, room) values (?, ?, ?) 6 7org.hibernate.exception.GenericJDBCException: could not insert: [com.haiing.hibernate.fuhezhujian.DormRoom] 8 9 at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:82) 10 11 at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:70) 12 13 at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) 14 15 at org.hibernate.persister.entity.BasicEntityPersister.insert(BasicEntityPersister.java:1869) 16 17 at org.hibernate.persister.entity.BasicEntityPersister.insert(BasicEntityPersister.java:2200) 18 19 at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:46) 20 21 at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:239) 22 23 at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:223) 24 25 at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:136) 26 27 at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:274) 28 29 at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27) 30 31 at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:730) 32 33 at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:324) 34 35 at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:86) 36 37 at com.haiing.hibernate.fuhezhujian.DormRoomOperate.insert(DormRoomOperate.java:26) 38 39 at com.haiing.hibernate.fuhezhujian.Test2PK.main(Test2PK.java:19) 40 41Caused by: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]鍦ㄥ叧閿瓧 'desc' 闄勮繎鏈夎娉曢敊璇?br />
42 43 at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source) 44 45 at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source) 46 47 at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processErrorToken(Unknown Source) 48 49 at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown Source) 50 51 at com.microsoft.jdbc.sqlserver.tds.TDSRPCRequest.processReplyToken(Unknown Source) 52 53 at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Source) 54 55 at com.microsoft.jdbc.sqlserver.SQLServerImplStatement.getNextResultType(Unknown Source) 56 57 at com.microsoft.jdbc.base.BaseStatement.commonTransitionToState(Unknown Source) 58 59 at com.microsoft.jdbc.base.BaseStatement.postImplExecute(Unknown Source) 60 61 at com.microsoft.jdbc.base.BasePreparedStatement.postImplExecute(Unknown Source) 62 63 at com.microsoft.jdbc.base.BaseStatement.commonExecute(Unknown Source) 64 65 at com.microsoft.jdbc.base.BaseStatement.executeUpdateInternal(Unknown Source) 66 67 at com.microsoft.jdbc.base.BasePreparedStatement.executeUpdate(Unknown Source) 68 69 at org.hibernate.jdbc.NonBatchingBatcher.addToBatch(NonBatchingBatcher.java:22) 70 71 at org.hibernate.persister.entity.BasicEntityPersister.insert(BasicEntityPersister.java:1853) 72 7312 more 74