java.lang.NoSuchMethodError: javax.persistence.Table.indexes()[Ljavax/persistence/Index;

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

,
via Stack Overflow by Mnemonics

I was using the library hibernate-entitymanager:4.3.5.Final with java persistence API 2.0 instead of using it with hibernate-entitymanager:4.2.8.Final.

Solutions on the web

via Stack Overflow by saria
, 1 year ago
javax.persistence.Table.indexes()[Ljavax/persistence/Index;
via Stack Overflow by saria
, 1 year ago
javax.persistence.Table.indexes()[Ljavax/persistence/Index;
via csdn.net by Unknown author, 1 year ago
via 68idc.cn by Unknown author, 1 year ago
java.lang.NoSuchMethodError: javax.persistence.Table.indexes()[Ljavax/persistence/Index;
at org.hibernate.cfg.annotations.EntityBinder.processComplementaryTableDefinitions(EntityBinder.java:936)
at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:824)
at org.hibernate.cfg.Configuration$MetadataSourceQueue.processAnnotatedClassesQueue(Configuration.java:3788)
at org.hibernate.cfg.Configuration$MetadataSourceQueue.processMetadata(Configuration.java:3742)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1410)
at com.esprit.dao.EntityDao.getSessionFactory(EntityDao.java:48)
at com.esprit.dao.EntityDao.openCurrentSession(EntityDao.java:25)
at com.esprit.dao.EntityService.findAllPersons(EntityService.java:86)
at com.esprit.crud.dynamic.DataModelBeanD.init(DataModelBeanD.java:37)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

Users with the same issue

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
Samebug visitor profile picture
Unknown user
Once, 1 year ago
36 more bugmates

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