java.lang.ClassCastException: java.lang.reflect.Method

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

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Hibernate JIRA by Sergey Vladimirov, 1 year ago
java.lang.reflect.Method
via Hibernate JIRA by Sergey Vladimirov, 1 year ago
java.lang.reflect.Method
java.lang.ClassCastException: java.lang.reflect.Method
at org.hibernate.cfg.PropertyInferredData.extractType(PropertyInferredData.java:182)
at org.hibernate.cfg.PropertyInferredData.execute(PropertyInferredData.java:108)
at org.hibernate.cfg.PropertyInferredData.skip(PropertyInferredData.java:57)
at org.hibernate.cfg.AnnotationBinder.addAnnotatedElement(AnnotationBinder.java:831)
at org.hibernate.cfg.AnnotationBinder.addElementsOfAClass(AnnotationBinder.java:808)
at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:641)
at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:266)
at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:199)
at ru.arptek.arpsite.data.composedKey.transientMethod.TransientMethodTest.setUp(TransientMethodTest.java:129)
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:478)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 9 months 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
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.