猿问

利用Junit进行hibernate的测试时报错如下,请问是什么原因?

五月 08, 2017 2:11:31 下午 org.hibernate.annotations.common.Version <clinit>

INFO: HCANN000001: Hibernate Commons Annotations {4.0.1.Final}

五月 08, 2017 2:11:31 下午 org.hibernate.Version logVersion

INFO: HHH000412: Hibernate Core {4.1.4.Final}

五月 08, 2017 2:11:31 下午 org.hibernate.cfg.Environment <clinit>

INFO: HHH000206: hibernate.properties not found

五月 08, 2017 2:11:31 下午 org.hibernate.cfg.Environment buildBytecodeProvider

INFO: HHH000021: Bytecode provider name : javassist

五月 08, 2017 2:11:31 下午 org.hibernate.cfg.Configuration configure

INFO: HHH000043: Configuring from resource: /hibernate.cfg.xml

五月 08, 2017 2:11:31 下午 org.hibernate.cfg.Configuration getConfigurationInputStream

INFO: HHH000040: Configuration resource: /hibernate.cfg.xml

五月 08, 2017 2:11:31 下午 org.hibernate.cfg.Configuration addResource

INFO: HHH000221: Reading mappings from resource: com/xjtuse/exam/entity/Administrator.hbm.xml

五月 08, 2017 2:11:31 下午 org.hibernate.cfg.Configuration addResource

INFO: HHH000221: Reading mappings from resource: com/xjtuse/exam/entity/Answer.hbm.xml

五月 08, 2017 2:11:31 下午 org.hibernate.cfg.Configuration addResource

INFO: HHH000221: Reading mappings from resource: com/xjtuse/exam/entity/Application_map.hbm.xml

五月 08, 2017 2:11:31 下午 org.hibernate.cfg.Configuration addResource

INFO: HHH000221: Reading mappings from resource: com/xjtuse/exam/entity/Checking.hbm.xml

五月 08, 2017 2:11:31 下午 org.hibernate.cfg.Configuration addResource

INFO: HHH000221: Reading mappings from resource: com/xjtuse/exam/entity/Checking_map.hbm.xml

五月 08, 2017 2:11:31 下午 org.hibernate.cfg.Configuration addResource

INFO: HHH000221: Reading mappings from resource: com/xjtuse/exam/entity/Completion.hbm.xml

五月 08, 2017 2:11:31 下午 org.hibernate.cfg.Configuration addResource

INFO: HHH000221: Reading mappings from resource: com/xjtuse/exam/entity/Completion_map.hbm.xml

五月 08, 2017 2:11:31 下午 org.hibernate.cfg.Configuration addResource

INFO: HHH000221: Reading mappings from resource: com/xjtuse/exam/entity/Course.hbm.xml

五月 08, 2017 2:11:31 下午 org.hibernate.cfg.Configuration addResource

INFO: HHH000221: Reading mappings from resource: com/xjtuse/exam/entity/Course_selection.hbm.xml

五月 08, 2017 2:11:31 下午 org.hibernate.cfg.Configuration addResource

INFO: HHH000221: Reading mappings from resource: com/xjtuse/exam/entity/Message.hbm.xml

五月 08, 2017 2:11:31 下午 org.hibernate.cfg.Configuration addResource

INFO: HHH000221: Reading mappings from resource: com/xjtuse/exam/entity/Multiplechoice_map.hbm.xml

五月 08, 2017 2:11:31 下午 org.hibernate.cfg.Configuration addResource

INFO: HHH000221: Reading mappings from resource: com/xjtuse/exam/entity/Multiplechoice.hbm.xml

五月 08, 2017 2:11:31 下午 org.hibernate.cfg.Configuration addResource

INFO: HHH000221: Reading mappings from resource: com/xjtuse/exam/entity/Paper.hbm.xml

五月 08, 2017 2:11:31 下午 org.hibernate.cfg.Configuration addResource

INFO: HHH000221: Reading mappings from resource: com/xjtuse/exam/entity/Question.hbm.xml

五月 08, 2017 2:11:31 下午 org.hibernate.cfg.Configuration addResource

INFO: HHH000221: Reading mappings from resource: com/xjtuse/exam/entity/Question_map.hbm.xml

五月 08, 2017 2:11:31 下午 org.hibernate.cfg.Configuration addResource

INFO: HHH000221: Reading mappings from resource: com/xjtuse/exam/entity/Singlechoice.hbm.xml

五月 08, 2017 2:11:31 下午 org.hibernate.cfg.Configuration addResource

INFO: HHH000221: Reading mappings from resource: com/xjtuse/exam/entity/Singlechoice_map.hbm.xml

五月 08, 2017 2:11:31 下午 org.hibernate.cfg.Configuration addResource

INFO: HHH000221: Reading mappings from resource: com/xjtuse/exam/entity/Teacher.hbm.xml

五月 08, 2017 2:11:31 下午 org.hibernate.cfg.Configuration addResource

INFO: HHH000221: Reading mappings from resource: com/xjtuse/exam/entity/Student.hbm.xml

五月 08, 2017 2:11:31 下午 org.hibernate.cfg.Configuration addResource

INFO: HHH000221: Reading mappings from resource: com/xjtuse/exam/entity/Application.hbm.xml

五月 08, 2017 2:11:31 下午 org.hibernate.cfg.Configuration doConfigure

INFO: HHH000041: Configured SessionFactory: null

五月 08, 2017 2:11:32 下午 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure

INFO: HHH000402: Using Hibernate built-in connection pool (not for production use!)

五月 08, 2017 2:11:32 下午 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure

INFO: HHH000115: Hibernate connection pool size: 20

五月 08, 2017 2:11:32 下午 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure

INFO: HHH000006: Autocommit mode: false

五月 08, 2017 2:11:32 下午 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure

INFO: HHH000401: using driver [com.mysql.jdbc.Driver] at URL [jdbc:mysql://localhost:3306/exam]

五月 08, 2017 2:11:32 下午 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure

INFO: HHH000046: Connection properties: {user=root, password=****}

五月 08, 2017 2:11:32 下午 org.hibernate.dialect.Dialect <init>

INFO: HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect

五月 08, 2017 2:11:32 下午 org.hibernate.engine.transaction.internal.TransactionFactoryInitiator initiateService

INFO: HHH000399: Using default transaction strategy (direct JDBC transactions)

五月 08, 2017 2:11:32 下午 org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory <init>

INFO: HHH000397: Using ASTQueryTranslatorFactory

五月 08, 2017 2:11:32 下午 org.hibernate.validator.util.Version <clinit>

信息: Hibernate Validator bean-validator-3.0-JBoss-4.0.2

五月 08, 2017 2:11:32 下午 org.hibernate.validator.engine.resolver.DefaultTraversableResolver detectJPA

信息: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.

五月 08, 2017 2:11:32 下午 org.hibernate.AssertionFailure <init>

ERROR: HHH000099: an assertion failure occured (this may indicate a bug in Hibernate, but is more likely due to unsafe use of the session): java.lang.ClassNotFoundException: Singlechoice_map


慕粉1935374231
浏览 1913回答 1
1回答

tom的猫

重点在最后两行ERROR: HHH000099: an assertion failure occured (this may indicate a bug in Hibernate, but is more likely due to unsafe use of the session): java.lang.ClassNotFoundException: Singlechoice_map
随时随地看视频慕课网APP

相关分类

MySQL
测试
我要回答