org.hibernate.PropertyAccessException: Exception occurred inside setter of com.simpleprogrammer.User.proteinData

Stack Overflow | Eddy Freeman | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Hibernate One-TO-One Mapping Issues

    Stack Overflow | 7 months ago | Eddy Freeman
    org.hibernate.PropertyAccessException: Exception occurred inside setter of com.simpleprogrammer.User.proteinData

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.simpleprogrammer.User.setProteinData()
    2. com.simpleprogrammer
      User.setProteinData
      1. com.simpleprogrammer.User.setProteinData(User.java:44)
      1 frame
    3. 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
    4. Hibernate
      JavassistLazyInitializer.invoke
      1. org.hibernate.property.BasicPropertyAccessor$BasicSetter.set(BasicPropertyAccessor.java:65)
      2. org.hibernate.tuple.entity.AbstractEntityTuplizer.setPropertyValues(AbstractEntityTuplizer.java:710)
      3. org.hibernate.tuple.entity.PojoEntityTuplizer.setPropertyValues(PojoEntityTuplizer.java:371)
      4. org.hibernate.persister.entity.AbstractEntityPersister.setPropertyValues(AbstractEntityPersister.java:4509)
      5. org.hibernate.engine.internal.TwoPhaseLoad.doInitializeEntity(TwoPhaseLoad.java:186)
      6. org.hibernate.engine.internal.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:137)
      7. org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:1108)
      8. org.hibernate.loader.Loader.processResultSet(Loader.java:964)
      9. org.hibernate.loader.Loader.doQuery(Loader.java:911)
      10. org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:342)
      11. org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:312)
      12. org.hibernate.loader.Loader.loadEntity(Loader.java:2121)
      13. org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:82)
      14. org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:72)
      15. org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:3927)
      16. org.hibernate.event.internal.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:460)
      17. org.hibernate.event.internal.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:429)
      18. org.hibernate.event.internal.DefaultLoadEventListener.load(DefaultLoadEventListener.java:206)
      19. org.hibernate.event.internal.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:145)
      20. org.hibernate.internal.SessionImpl.fireLoad(SessionImpl.java:1092)
      21. org.hibernate.internal.SessionImpl.immediateLoad(SessionImpl.java:1007)
      22. org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:173)
      23. org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:285)
      24. org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:185)
      24 frames
    5. com.simpleprogrammer
      User_$$_javassist_0.getName
      1. com.simpleprogrammer.User_$$_javassist_0.getName(User_$$_javassist_0.java)
      1 frame
    6. com.pluralsight.Introduction_To_Hibernate_Pluralsight
      Program.main
      1. com.pluralsight.Introduction_To_Hibernate_Pluralsight.Program.main(Program.java:45)
      1 frame