java.lang.ClassCastException: org.hibernate.type.BigDecimalType

Hibernate JIRA | Gabor Kincses | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Hibernate / Mailing Lists

    sourceforge.net | 1 year ago
    java.lang.ClassCastException: org.hibernate.type.BigDecimalType
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    java.lang.ClassCastException: org.hibernate.type.StringType cannot be cast to org.hibernate.type.VersionType

    Stack Overflow | 4 years ago | Jose Hdez
    java.lang.ClassCastException: org.hibernate.type.StringType cannot be cast to org.hibernate.type.VersionType
  4. 0

    Error creating bean with name

    openclassrooms.com | 1 year ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'articleService': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/config/application.xml]: Invocation of init method failed; nested exception is java.lang.ClassCastException: org.hibernate.type.StringType cannot be cast to org.hibernate.type.VersionType

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.hibernate.type.BigDecimalType

      at org.hibernate.tuple.PropertyFactory.buildVersionProperty()
    2. Hibernate
      SingleTableEntityPersister.<init>
      1. org.hibernate.tuple.PropertyFactory.buildVersionProperty(PropertyFactory.java:83)
      2. org.hibernate.tuple.EntityMetamodel.<init>(EntityMetamodel.java:157)
      3. org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:412)
      4. org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:108)
      4 frames
    3. Hibernate
      SessionFactoryImpl.<init>
      1. org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
      2. org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:216)
      2 frames
    4. Hibernate
      Configuration.buildSessionFactory
      1. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1176)
      1 frame
    5. com.paypal.bdo
      Hibernate101.main
      1. com.paypal.bdo.test.Hibernate101.main(Hibernate101.java:37)
      1 frame