org.hibernate.MappingException: could not find PropertyAccessor class: net.sf.hibernate.property.DirectPropertyAccessor

Hibernate JIRA | Renat Zubairov | 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. 1

    Old class name is hardcoded as an accessor for the field access type : org.hibernate.MappingException: could not find PropertyAccessor class: net.sf.hibernate.property.DirectPropertyAccessor at org.hibernate.property.PropertyAccessorFactory.resolveCustomAccessor(PropertyAccessorFactory.java:103) at org.hibernate.property.PropertyAccessorFactory.getPropertyAccessor(PropertyAccessorFactory.java:128) at org.hibernate.property.PropertyAccessorFactory.getPropertyAccessor(PropertyAccessorFactory.java:118) at org.hibernate.mapping.Property.getPropertyAccessor(Property.java:250) at org.hibernate.mapping.Property.getGetter(Property.java:240) at org.hibernate.tuple.PojoTuplizer.buildPropertyGetter(PojoTuplizer.java:231) at org.hibernate.tuple.AbstractTuplizer.<init>(AbstractTuplizer.java:73) at org.hibernate.tuple.PojoTuplizer.<init>(PojoTuplizer.java:53) at org.hibernate.tuple.TuplizerLookup.create(TuplizerLookup.java:45) at org.hibernate.tuple.EntityMetamodel.<init>(EntityMetamodel.java:208) at org.hibernate.persister.entity.BasicEntityPersister.<init>(BasicEntityPersister.java:398) at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:104) at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55) at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:199) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1043) at org.jtopic.model.test.DBLessTestCase.setUp(DBLessTestCase.java:25) at junit.framework.TestCase.runBare(TestCase.java:125) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:421) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:305) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:186) Caused by: java.lang.ClassNotFoundException: net.sf.hibernate.property.DirectPropertyAccessor at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:103) at org.hibernate.property.PropertyAccessorFactory.resolveCustomAccessor(PropertyAccessorFactory.java:100) ... 25 more

    Hibernate JIRA | 1 decade ago | Renat Zubairov
    org.hibernate.MappingException: could not find PropertyAccessor class: net.sf.hibernate.property.DirectPropertyAccessor
  2. 0

    Old class name is hardcoded as an accessor for the field access type : org.hibernate.MappingException: could not find PropertyAccessor class: net.sf.hibernate.property.DirectPropertyAccessor at org.hibernate.property.PropertyAccessorFactory.resolveCustomAccessor(PropertyAccessorFactory.java:103) at org.hibernate.property.PropertyAccessorFactory.getPropertyAccessor(PropertyAccessorFactory.java:128) at org.hibernate.property.PropertyAccessorFactory.getPropertyAccessor(PropertyAccessorFactory.java:118) at org.hibernate.mapping.Property.getPropertyAccessor(Property.java:250) at org.hibernate.mapping.Property.getGetter(Property.java:240) at org.hibernate.tuple.PojoTuplizer.buildPropertyGetter(PojoTuplizer.java:231) at org.hibernate.tuple.AbstractTuplizer.<init>(AbstractTuplizer.java:73) at org.hibernate.tuple.PojoTuplizer.<init>(PojoTuplizer.java:53) at org.hibernate.tuple.TuplizerLookup.create(TuplizerLookup.java:45) at org.hibernate.tuple.EntityMetamodel.<init>(EntityMetamodel.java:208) at org.hibernate.persister.entity.BasicEntityPersister.<init>(BasicEntityPersister.java:398) at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:104) at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55) at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:199) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1043) at org.jtopic.model.test.DBLessTestCase.setUp(DBLessTestCase.java:25) at junit.framework.TestCase.runBare(TestCase.java:125) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:421) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:305) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:186) Caused by: java.lang.ClassNotFoundException: net.sf.hibernate.property.DirectPropertyAccessor at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:103) at org.hibernate.property.PropertyAccessorFactory.resolveCustomAccessor(PropertyAccessorFactory.java:100) ... 25 more

    Hibernate JIRA | 1 decade ago | Renat Zubairov
    org.hibernate.MappingException: could not find PropertyAccessor class: net.sf.hibernate.property.DirectPropertyAccessor
  3. 0

    Problema classnotfound en Hibernate

    Google Groups | 8 years ago | Jesus Calzado :)
    java.lang.ExceptionInInitializerError
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hibernate / Mailing Lists

    sourceforge.net | 1 year ago
    javax.persistence.PersistenceException: org.hibernate.MappingException: could not find PropertyAccessor class: PROPERTY
  6. 0

    [EJB-203] exception when using top-level <access>PROPERTY</access> in orm.xml - Hibernate JIRA

    atlassian.net | 1 year ago
    javax.persistence.PersistenceException: org.hibernate.MappingException: could not find PropertyAccessor class: PROPERTY

  1. andyglick 8 times, last 1 week ago
  2. tyson925 3 times, last 1 week ago
  3. Adrien 8 times, last 2 weeks ago
  4. SteVio1989 4 times, last 2 weeks ago
  5. jstrayer 1 times, last 3 weeks ago
58 more registered users
37 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.ClassNotFoundException

    net.sf.hibernate.property.DirectPropertyAccessor

    at java.net.URLClassLoader$1.run()
  2. Java RT
    Class.forName
    1. java.net.URLClassLoader$1.run(Unknown Source)
    2. java.security.AccessController.doPrivileged(Native Method)
    3. java.net.URLClassLoader.findClass(Unknown Source)
    4. java.lang.ClassLoader.loadClass(Unknown Source)
    5. sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    6. java.lang.ClassLoader.loadClass(Unknown Source)
    7. java.lang.ClassLoader.loadClassInternal(Unknown Source)
    8. java.lang.Class.forName0(Native Method)
    9. java.lang.Class.forName(Unknown Source)
    9 frames
  3. Hibernate
    ReflectHelper.classForName
    1. org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:103)
    1 frame
  4. Hibernate
    SingleTableEntityPersister.<init>
    1. org.hibernate.property.PropertyAccessorFactory.resolveCustomAccessor(PropertyAccessorFactory.java:100)
    2. org.hibernate.property.PropertyAccessorFactory.getPropertyAccessor(PropertyAccessorFactory.java:128)
    3. org.hibernate.property.PropertyAccessorFactory.getPropertyAccessor(PropertyAccessorFactory.java:118)
    4. org.hibernate.mapping.Property.getPropertyAccessor(Property.java:250)
    5. org.hibernate.mapping.Property.getGetter(Property.java:240)
    6. org.hibernate.tuple.PojoTuplizer.buildPropertyGetter(PojoTuplizer.java:231)
    7. org.hibernate.tuple.AbstractTuplizer.<init>(AbstractTuplizer.java:73)
    8. org.hibernate.tuple.PojoTuplizer.<init>(PojoTuplizer.java:53)
    9. org.hibernate.tuple.TuplizerLookup.create(TuplizerLookup.java:45)
    10. org.hibernate.tuple.EntityMetamodel.<init>(EntityMetamodel.java:208)
    11. org.hibernate.persister.entity.BasicEntityPersister.<init>(BasicEntityPersister.java:398)
    12. org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:104)
    12 frames
  5. Hibernate
    SessionFactoryImpl.<init>
    1. org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
    2. org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:199)
    2 frames
  6. Hibernate
    Configuration.buildSessionFactory
    1. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1043)
    1 frame
  7. org.jtopic.model
    DBLessTestCase.setUp
    1. org.jtopic.model.test.DBLessTestCase.setUp(DBLessTestCase.java:25)
    1 frame
  8. JUnit
    TestSuite.run
    1. junit.framework.TestCase.runBare(TestCase.java:125)
    2. junit.framework.TestResult$1.protect(TestResult.java:106)
    3. junit.framework.TestResult.runProtected(TestResult.java:124)
    4. junit.framework.TestResult.run(TestResult.java:109)
    5. junit.framework.TestCase.run(TestCase.java:118)
    6. junit.framework.TestSuite.runTest(TestSuite.java:208)
    7. junit.framework.TestSuite.run(TestSuite.java:203)
    7 frames
  9. JUnit3 Runner
    RemoteTestRunner.main
    1. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:421)
    2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:305)
    3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:186)
    3 frames