51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1447|回复: 4
打印 上一主题 下一主题

[原创] hibernate异常

[复制链接]
  • TA的每日心情
    擦汗
    6 小时前
  • 签到天数: 527 天

    连续签到: 4 天

    [LV.9]测试副司令

    跳转到指定楼层
    1#
    发表于 2018-11-27 11:14:45 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
    1测试积点
    请问这个是什么异常,该怎么解决?
    1. org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]

    2. at org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTuplizerFactory.java:108)

    3. at org.hibernate.tuple.entity.EntityTuplizerFactory.constructDefaultTuplizer(EntityTuplizerFactory.java:133)

    4. at org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.<init>(EntityEntityModeToTuplizerMapping.java:80)

    5. at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:322)

    6. at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:485)

    7. at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:133)

    8. at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:84)

    9. at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:286)

    10. at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1872)

    11. at com.itheima.onetomany.onetomanytest.test1(onetomanytest.java:12)

    12. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    13. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

    14. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

    15. at java.lang.reflect.Method.invoke(Unknown Source)

    16. at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)

    17. at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)

    18. at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)

    19. at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)

    20. at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)

    21. at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)

    22. at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)

    23. at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)

    24. at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)

    25. at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)

    26. at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)

    27. at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)

    28. at org.junit.runners.ParentRunner.run(ParentRunner.java:363)

    29. at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:89)

    30. at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:41)

    31. at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:541)

    32. at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:763)

    33. at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:463)

    34. at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:209)

    35. Caused by: java.lang.reflect.InvocationTargetException

    36. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

    37. at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

    38. at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

    39. at java.lang.reflect.Constructor.newInstance(Unknown Source)

    40. at org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTuplizerFactory.java:105)

    41. ... 32 more

    42. Caused by: org.hibernate.PropertyNotFoundException: Could not find a getter for Students in class com.itheima.onetomany.Grade

    43. at org.hibernate.property.BasicPropertyAccessor.createGetter(BasicPropertyAccessor.java:326)

    44. at org.hibernate.property.BasicPropertyAccessor.getGetter(BasicPropertyAccessor.java:320)

    45. at org.hibernate.mapping.Property.getGetter(Property.java:330)

    46. at org.hibernate.tuple.entity.PojoEntityTuplizer.buildPropertyGetter(PojoEntityTuplizer.java:297)

    47. at org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:155)

    48. at org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:77)

    49. ... 37 more
    复制代码


    分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
    收藏收藏
    回复

    使用道具 举报

  • TA的每日心情
    开心
    7 天前
  • 签到天数: 473 天

    连续签到: 2 天

    [LV.9]测试副司令

    2#
    发表于 2018-11-28 10:01:26 | 只看该作者
    组件获取失败了
    回复

    使用道具 举报

  • TA的每日心情
    奋斗
    7 小时前
  • 签到天数: 2812 天

    连续签到: 5 天

    [LV.Master]测试大本营

    3#
    发表于 2018-11-28 11:07:05 | 只看该作者
    缺少方法
    回复

    使用道具 举报

  • TA的每日心情
    奋斗
    4 小时前
  • 签到天数: 1516 天

    连续签到: 5 天

    [LV.Master]测试大本营

    4#
    发表于 2018-11-28 11:21:52 | 只看该作者
    重装下
    回复

    使用道具 举报

  • TA的每日心情
    奋斗
    6 小时前
  • 签到天数: 1801 天

    连续签到: 5 天

    [LV.Master]测试大本营

    5#
    发表于 2018-11-28 13:22:56 | 只看该作者
    回复

    使用道具 举报

    本版积分规则

    关闭

    站长推荐上一条 /1 下一条

    小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

    GMT+8, 2024-11-15 15:08 , Processed in 0.063739 second(s), 21 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

    快速回复 返回顶部 返回列表