Error Unable to instantiate default tuplizer org hibernate tuple entity PojoEntityTuplizer

0 votes

I am developing an application with Hibernate and I get an Exception when I connect with database. The exception is:

Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]

My mapping file is:

<class name="com.cartif.database.SetPoint" table="SetPoint">
    <id name="iSetPointId" column="setpointid" type="java.lang.Integer">
        <generator class="sequence">
            <param name="sequence">s_setpoint</param>
    <property column="sensorType" generated="never" lazy="false" name="sSensortype" type="java.lang.String"/>
    <property column="value" generated="never" lazy="false" name="dValue" type="java.lang.Double"/>
    <property column="relationship" generated="never" lazy="false" name="sRelation" type="java.lang.String"/>
    <property column="deviceid" generated="never" lazy="false" name="iDeviceId" type="java.lang.Integer"/>

And the class with getters/setters which are not included:

public class SetPoint {
    private int iSetPointId;
    private String sSensorType;
    private double dValue;
    private String sRelationship;
    private int iDeviceId;

I have javassist.jar included into classpath. I do not know what is the problem. Someone would help me please!!


May 13, 2020 in Database by kartik
• 37,530 points

1 answer to this question.

0 votes

Hii @kartik,

I was also facing the same issue.

Added the same dependency and it worked (like this):


Hope this works!!

Thank You!!

answered May 13, 2020 by Niroj
• 82,820 points

Related Questions In Database

0 votes
3 answers

MySQL "Could not create connection to database serve" error

Pls check that you have MySQL server ...READ MORE

answered Jul 3, 2020 in Database by anonymous
0 votes
1 answer

Unable to uninstall MongoDB

Try apt-get --reinstall install mongodb This will pretend that ...READ MORE

answered Mar 15, 2019 in Database by Jobin
0 votes
1 answer
0 votes
1 answer

Error: Cannot connect to the server using SA account - MSSQL Linux

The option is to reset the system ...READ MORE

answered Mar 17, 2019 in Database by Fatima
0 votes
1 answer

How to detect a SQL table's existence in Java?

Hello, Depending on the DB, you can do ...READ MORE

answered May 13, 2020 in Database by Niroj
• 82,820 points
0 votes
1 answer
0 votes
0 answers

Anyone can help me out to understand the semantic of (document.getElementBYId("demo").innerHTML="Hello") ?

Hello guys, Can Someone helps me to find ...READ MORE

Jan 17, 2020 in Web Development by anonymous
• 37,530 points
+1 vote
1 answer

What is the relationship between angularjs Scope with controller/view?

Let us consider the below block: <div ng-controller="emp"> ...READ MORE

answered Jan 20, 2020 in Web Development by Niroj
• 82,820 points

edited Jan 21, 2020 by Niroj 284 views
0 votes
1 answer

Error Code: 2020. Lost connection to MySQL server during query

Hello @kartik, I got the same issue when ...READ MORE

answered May 4, 2020 in Database by Niroj
• 82,820 points
0 votes
1 answer