HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTup

时间:2022-11-06 20:17:44

Caused by: org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]

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

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

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

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

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

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

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

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

    at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1840)

    at util.HibernateSessionFactory.<clinit>(HibernateSessionFactory.java:15)

    ... 1 more

Caused by: java.lang.reflect.InvocationTargetException

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

    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

    at java.lang.reflect.Constructor.newInstance(Constructor.java:408)

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

    ... 10 more

Caused by: org.hibernate.PropertyNotFoundException: Could not find a getter for wineClass in class model.WineClass

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

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

    at org.hibernate.mapping.Property.getGetter(Property.java:304)

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

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

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

... 15 more

第一种情况:查阅资料说是缺少javassist.jar,而我的这个包是绝对没错的,重新加载了一还是不行。

第二种情况:查看映射文件,突然发现Could not find a getter for wineClass in class model.WineClass所以明白了,属性没有对应,说明映射文件和模型类中的属性对应有错,于是解决。

HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTup的更多相关文章

  1. org&period;hibernate&period;HibernateException&colon; Unable to instantiate default tuplizer &lbrack;org&period;hibernate&period;tuple&period;entity&period;PojoEntityTuplizer&rsqb;

    使用Hibernate 插入List数据时出现了以下异常: SLF4J: The requested version 1.6 by your slf4j binding is not compatib ...

  2. Hibernate 异常 —— Unable to instantiate default tuplize

    出现这个异常 —— Unable to instantiate default tuplizer ,是 Hibernate 的映射文件(*.hbm.xml)导致的.仔细检查一下工程里的映射文件吧. 笔 ...

  3. 使用hibernate时出现 org&period;hibernate&period;HibernateException&colon; Unable to get the default Bean Validation factory

    hibernate 在使用junit测试报错: org.hibernate.HibernateException: Unable to get the default Bean Validation ...

  4. juit测试中报错:org&period;hibernate&period;HibernateException&colon; Unable to get the default Bean Validation factory

    org.hibernate.HibernateException: Unable to get the default Bean Validation factory 解决方法: 解决方案: 在hib ...

  5. Spring JUnit org&period;hibernate&period;HibernateException&colon; Unable to get the default Bean Validation factory

    org.hibernate.HibernateException: Unable to get the default Bean Validation factory <property nam ...

  6. Caused by&colon; org&period;hibernate&period;HibernateException&colon; Unable to build the default ValidatorFactory

    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'testAction': ...

  7. org&period;hibernate&period;HibernateException&colon; Unable to get the default Bean Validation factor

    org.hibernate.HibernateException: Unable to get the default Bean Validation factor这个异常需要在hibernate.c ...

  8. Error creating bean with name &&num;39&semi;sessionFactory&&num;39&semi; defined in class path resource &lbrack;applicationContext&period;xml&rsqb;&colon; Invocation of init method failed&semi; nested exception is org&period;hibernate&period;HibernateException&colon; Unable t

    spring与hibernate整合然后出现如下错误: org.springframework.beans.factory.BeanCreationException: Error creating ...

  9. org&period;hibernate&period;HibernateException&colon; could not instantiate RegionFactory &lbrack;org&period;hibernate&period;cache&period;impl&period;bridge&period;RegionFactoryCacheProviderBridge&rsqb;

    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFacto ...

随机推荐

  1. &period;Net调用R语言

    ///加载自己写的R语言算法库 public List<double> GetZTFB(double[] data) { List<double> par = new List ...

  2. &lbrack;HIHO1079&rsqb;离散化(线段树、染色)

    题目链接:http://hihocoder.com/problemset/problem/1079 MD坑爹,线段查询的时候左闭右开.插完挨个点找一遍扔set里,注意没染色的情况. #include ...

  3. Ubuntu安装文泉驿-微米黑字体

    sudo apt-get install ttf-wqy-microhei #文泉驿-微米黑

  4. easyui toolbar 可以放在datagrid底下

    html: <div class="easyui-tabs" style="height: 250px;" tools="#t_rank&quo ...

  5. 横向浅谈移动技术------( 原生,混合,web --- 谁能问鼎移动开发的明天)

    目前移动互联网基本采用了NativeApp.WebApp.HybridApp三种开发模式,很难说这三种模式那种更优越,目前的情况可以说是三分天下吧,不同的开发者可以根据自己的实际情况选择不同的开发模式 ...

  6. MySQL存储过程的基本函数&lpar;三&rpar;

    (1).字符串类 首先定义一个字符串变量:set @str="lxl"; CHARSET(str) //返回字串字符集 select charset(@str);+-------- ...

  7. &lbrack;Linux&rsqb;history 显示命令的运行时间

    显示线时间历史命令 这里的环境是centos5.8 vim ~/.bashrc 或者 ~/.bash_profile 添加 export HISTTIMEFORMAT="%F %T &quo ...

  8. Mybatis Dynamic Query 1&period;0&period;2版本

    项目地址:https://github.com/wz2cool/mybatis-dynamic-query 文档地址:https://wz2cool.gitbooks.io/mybatis-dynam ...

  9. dede织梦怎么修改description的字数

    织梦在调用描述的时候都会使用description来调用描述,想要更改字数也可以控制调用的字数,但是就算是这样更改也是有字数限制的,描述的字数是不能没有限制. 在模板中调用描述的标签一般有四种: 1: ...

  10. PHP实现微信商户支付企业付款到零钱功能代码实例

    本文为大家分享了PHP实现微信商户支付企业付款到零钱的具体代码,供大家参考,具体内容如下 微信支付开发文档 一.开通条件 企业付款为企业提供付款至用户零钱的能力,支持通过API接口付款,或通过微信支付 ...