Java 映射时hibernate中的异常构造服务

Java 映射时hibernate中的异常构造服务,java,hibernate,tapestry,Java,Hibernate,Tapestry,当我运行映射了两个实体的应用程序时,我遇到了这个异常 Exception constructing service 'ValueEncoderSource': Error invoking service contribution method org.apache.tapestry5.hibernate.HibernateModule.contributeValueEncoderSource(MappedConfiguration, boolean, HibernateSessionS

当我运行映射了两个实体的应用程序时,我遇到了这个异常

Exception constructing service 'ValueEncoderSource': Error invoking service contribution    method
 org.apache.tapestry5.hibernate.HibernateModule.contributeValueEncoderSource(MappedConfiguration, boolean, HibernateSessionSource, Session, TypeCoercer, PropertyAccess, LoggerSource):
Exception constructing service 'HibernateSessionSource': Error invoking constructor public org.apache.tapestry5.internal.hibernate.HibernateSessionSourceImpl
我几乎没有看到关于hibernate/tapestry版本互不支持的建议, 但让我困惑的是,当我删除实体之间的映射时,它工作得很好。以防万一,我将从这些依赖项获得tapestry和hibernate的发布版本

<dependency>
        <groupId>org.apache.tapestry</groupId>
        <artifactId>tapestry-core</artifactId>
        <version>${tapestry-release-version}</version>
    </dependency>
<dependency>
        <groupId>org.apache.tapestry</groupId>
        <artifactId>tapestry-hibernate</artifactId>
        <version>${tapestry-release-version}</version>
    </dependency>

org.apache.tapestry

您尚未附加完整的stacktrace,因此我只能猜测。如果您将Hibernate4+与Tapestry一起使用,它将无法工作,因为Tapestry仍然使用Hibernate3.6+。您可以使用Hibernate 3.6+,也可以仅通过对build.gradle/pom.xml文件的更改从源代码构建tapestry Hibernate和tapestry Hibernate core。

我添加了stacktrace。我的hibernate版本似乎是3.6.0,Tapestry版本是5.3.6。你建议我做哪些改变?只有pom.xml中的版本?没关系。我只是一个瞎子,精疲力竭,试图编码,所以这一切都归结为一个打字错误。。。一直以来都有一张错误的地图。我刚刚注意到它,因为我再次通过stacktrace。