org.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of com.my.MainCategories.id

coderanch.com | 5 months ago
  1. 0

    Getting object is not an instance of declaring class exception. Please help. (Object Relational Mapping forum at Coderanch)

    coderanch.com | 7 months ago
    org.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of com.my.MainCategories.id
  2. 0

    Getting object is not an instance of declaring class exception. Please help. (Object Relational Mapping forum at Coderanch)

    coderanch.com | 5 months ago
    org.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of com.my.MainCategories.id
  3. 0

    Getting "object is not an instance of declaring class" exception. Please help.

    Coderanch | 7 years ago | Harpreet Singh janda
    org.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of com.my.MainCategories.id
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Illegal argument exception:occurred calling getter of id

    Stack Overflow | 1 year ago | Poorna Murali
    com.abc.dac.exception.DataAccessException: org.springframework.orm.hibernate3.HibernateSystemException: IllegalArgumentException occurred calling getter of com.abc.dac.domain.ActivityLog.id; nested exception is org.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of com.abc.dac.domain.ActivityLog.id
  6. 0

    Error with <many-to-one> mapping

    Coderanch | 6 years ago | Nav een
    org.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of org.nav.tracker.hdto.TemplateDTO.tempID

  1. Aria Pahlavan 16 times, last 2 months ago
  2. kjhdofjosvs 2 times, last 3 months ago
  3. tyson925 2 times, last 3 months ago
  4. kuldeep 2 times, last 4 months ago
  5. aldrinleal 1 times, last 6 months ago
6 more registered users
72 unregistered visitors
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.IllegalArgumentException

    object is not an instance of declaring class

    at sun.reflect.NativeMethodAccessorImpl.invoke0()
  2. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    4. java.lang.reflect.Method.invoke(Unknown Source)
    4 frames
  3. Hibernate
    ForeignKeys$Nullifier.nullifyTransientReferences
    1. org.hibernate.property.BasicPropertyAccessor$BasicGetter.get(BasicPropertyAccessor.java:172)
    2. org.hibernate.tuple.entity.AbstractEntityTuplizer.getIdentifier(AbstractEntityTuplizer.java:230)
    3. org.hibernate.persister.entity.AbstractEntityPersister.getIdentifier(AbstractEntityPersister.java:3852)
    4. org.hibernate.persister.entity.AbstractEntityPersister.isTransient(AbstractEntityPersister.java:3560)
    5. org.hibernate.engine.ForeignKeys.isTransient(ForeignKeys.java:204)
    6. org.hibernate.engine.ForeignKeys$Nullifier.isNullifiable(ForeignKeys.java:160)
    7. org.hibernate.engine.ForeignKeys$Nullifier.nullifyTransientReferences(ForeignKeys.java:92)
    8. org.hibernate.engine.ForeignKeys$Nullifier.nullifyTransientReferences(ForeignKeys.java:70)
    8 frames
  4. Hibernate
    SessionImpl.save
    1. org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:311)
    2. org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:204)
    3. org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:144)
    4. org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:210)
    5. org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:56)
    6. org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:195)
    7. org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:50)
    8. org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:93)
    9. org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:705)
    10. org.hibernate.impl.SessionImpl.save(SessionImpl.java:693)
    11. org.hibernate.impl.SessionImpl.save(SessionImpl.java:689)
    11 frames
  5. Unknown
    main.main
    1. main.main(main.java:32)
    1 frame