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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

You are not deploying the oracle driver with the application. Place the driver jars in a shared or library extension folder of your application server. (You should go with option one or two though

,
Expert tip

This might be an issue with the file location in the Spark submit command. Try it with

spark-submit --master spark://master:7077 \
     hello_world_from_pyspark.py {file location}

Solutions on the web

via Hibernate JIRA by Renat Zubairov, 1 year ago
could not find PropertyAccessor class: net.sf.hibernate.property.DirectPropertyAccessor
via Hibernate JIRA by Renat Zubairov, 1 year ago
could not find PropertyAccessor class: net.sf.hibernate.property.DirectPropertyAccessor
via Hibernate JIRA by Levi Purvis, 1 year ago
could not find PropertyAccessor class: PROPERTY
via sourceforge.net by Unknown author, 1 year ago
could not find PropertyAccessor class: PROPERTY
via atlassian.net by Unknown author, 1 year ago
via Hibernate JIRA by Levi Purvis, 1 year ago
could not find PropertyAccessor class: PROPERTY
org.hibernate.MappingException: could not find PropertyAccessor class: 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.property.PropertyAccessorFactory.resolveCustomAccessor(PropertyAccessorFactory.java:100)
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.(AbstractTuplizer.java:73)
at org.hibernate.tuple.PojoTuplizer.(PojoTuplizer.java:53)
at org.hibernate.tuple.TuplizerLookup.create(TuplizerLookup.java:45)
at org.hibernate.tuple.EntityMetamodel.(EntityMetamodel.java:208)
at org.hibernate.persister.entity.BasicEntityPersister.(BasicEntityPersister.java:398)
at org.hibernate.persister.entity.SingleTableEntityPersister.(SingleTableEntityPersister.java:104)
at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:199)
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)

Users with the same issue

Samebug visitor profile picture
Unknown user
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.