存储库和DAO同时存在

时间:2013-04-15 17:04:30

标签: spring jpa stack-overflow

我在我的春季项目中使用DAO并且一切都很好然后我插入需要spring-data-jpa(存储库)的jqgrid,现在当我尝试使用我的DAO时,我有一个java.lang.StackOverflowError;它可能是一个依赖问题?

java.lang.StackOverflowError的     org.eclipse.persistence.logging.DefaultSessionLog.getLevel(DefaultSessionLog.java:88)     org.eclipse.persistence.logging.DefaultSessionLog.shouldLog(DefaultSessionLog.java:108)     org.eclipse.persistence.internal.sessions.AbstractSession.shouldLog(AbstractSession.java:4040)     org.eclipse.persistence.internal.sessions.AbstractSession.log(AbstractSession.java:4085)     org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.logDebugMessage(UnitOfWorkImpl.java:5527)     org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.registerExistingObject(UnitOfWorkImpl.java:3884)     org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.registerExistingObject(UnitOfWorkImpl.java:3854)     org.eclipse.persistence.mappings.ObjectReferenceMapping.buildUnitofWorkCloneForPartObject(ObjectReferenceMapping.java:95)     org.eclipse.persistence.mappings.ObjectReferenceMapping.buildCloneForPartObject(ObjectReferenceMapping.java:69)     org.eclipse.persistence.internal.indirection.NoIndirectionPolicy.cloneAttribute(NoIndirectionPolicy.java:76)     org.eclipse.persistence.mappings.ForeignReferenceMapping.buildClone(ForeignReferenceMapping.java:251)     org.eclipse.persistence.internal.descriptors.ObjectBuilder.populateAttributesForClone(ObjectBuilder.java:3497)     org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.populateAndRegisterObject(UnitOfWorkImpl.java:3650) ....

0 个答案:

没有答案