[
https://issues.apache.org/jira/browse/TAP5-2582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16974249#comment-16974249
]
Jens Potschadtke commented on TAP5-2582:
----------------------------------------
Hello Thiago,
thanks for the update.
Today I finally had the opportunity to try the latest snapshot.
I rebuilt my war file with the newest snapshot
Infortunately the error regarding the duplicate method name still persists.
Those are the tapestry jars used in my war file:
{{tapestry-core-5.5.0-20191110.014408-7.jar}}
{{tapestry-func-5.5.0-20191110.014436-7.jar}}
{{tapestry-hibernate-5.5.0-20191110.014500-7.jar}}
{{tapestry-hibernate-core-5.5.0-20191110.014525-7.jar}}
{{tapestry-ioc-5.5.0-20191110.014611-7.jar}}
{{tapestry-json-5.5.0-20191110.014834-7.jar}}
{{tapestry-security-0.7.1.jar}}
{{tapestry-upload-5.5.0-20191110.015142-7.jar}}
{{tapestry-webresources-5.5.0-20191110.015206-7.jar}}
{{tapestry5-annotations-5.5.0-20191110.015231-7.jar}}
This is the error log in journalctl:
{quote}Nov 14 13:13:36 debian10-build-01 tomcat9[12033]: [DEBUG]
AppModule.CreateAdminService Creating proxy for service CreateAdminService
Nov 14 13:13:36 debian10-build-01 tomcat9[12033]: [DEBUG]
AppModule.CreateAdminService Loading class
de.acme.services.CreateAdminServiceImpl.
Nov 14 13:13:36 debian10-build-01 tomcat9[12033]: [DEBUG]
AppModule.CreateAdminService Marking class
de.acme.services.CreateAdminServiceImpl to be (re-)loaded
Nov 14 13:13:36 debian10-build-01 tomcat9[12033]: [DEBUG]
AppModule.CreateAdminService BEGIN Analyzing
de.acme.services.CreateAdminServiceImpl
Nov 14 13:13:36 debian10-build-01 tomcat9[12033]: [DEBUG]
AppModule.CreateAdminService END Analyzing
de.acme.services.CreateAdminServiceImpl
Nov 14 13:13:36 debian10-build-01 tomcat9[12033]: [DEBUG]
AppModule.CreateAdminService Invoking constructor public
de.acme.services.CreateAdminServiceImpl(org.hibernate.Session) (for service
'CreateAdminService')
Nov 14 13:13:36 debian10-build-01 tomcat9[12033]: [ERROR] ioc.Registry Error
invoking method public static org.hibernate.Session
org.apache.tapestry5.hibernate.modules.HibernateCoreModule.buildSession(org.apache.tapestry5.hibernate.HibernateSessionManager,org.apache.tapestry5.ioc.services.PropertyShadowBuilder):
Duplicate method name "close" with signature "()V" in class file
$Session_535eae02789d3
Nov 14 13:13:36 debian10-build-01 tomcat9[12033]: [ERROR] ioc.Registry
Operations trace:
Nov 14 13:13:36 debian10-build-01 tomcat9[12033]: [ERROR] ioc.Registry [ 1]
Realizing service CreateAdminService
Nov 14 13:13:36 debian10-build-01 tomcat9[12033]: [ERROR] ioc.Registry [ 2]
Instantiating service CreateAdminService implementation via
de.acme.services.AppModule.bind(ServiceBinder) (at AppModule.java:97)
Nov 14 13:13:36 debian10-build-01 tomcat9[12033]: [ERROR] ioc.Registry [ 3]
Reloading class de.acme.services.CreateAdminServiceImpl.
Nov 14 13:13:36 debian10-build-01 tomcat9[12033]: [ERROR] ioc.Registry [ 4]
Invoking constructor public
de.acme.services.CreateAdminServiceImpl(org.hibernate.Session) (for service
'CreateAdminService')
Nov 14 13:13:36 debian10-build-01 tomcat9[12033]: [ERROR] ioc.Registry [ 5]
Realizing service Session
Nov 14 13:13:36 debian10-build-01 tomcat9[12033]: [ERROR] ioc.Registry [ 6]
Instantiating service Session implementation via
org.apache.tapestry5.hibernate.modules.HibernateCoreModule.buildSession(HibernateSessionManager,
PropertyShadowBuilder) (at HibernateCoreModule.java:118)
Nov 14 13:13:36 debian10-build-01 tomcat9[12033]: [ERROR] ioc.Registry [ 7]
Constructing service implementation via
org.apache.tapestry5.hibernate.modules.HibernateCoreModule.buildSession(HibernateSessionManager,
PropertyShadowBuilder) (at HibernateCoreModule.java:118)
Nov 14 13:13:36 debian10-build-01 tomcat9[12033]: [ERROR]
HibernateCoreModule.Session Construction of service Session failed: Error
invoking method public static org.hibernate.Session
org.apache.tapestry5.hibernate.modules.HibernateCoreModule.buildSession(org.apache.tapestry5.hibernate.HibernateSessionManager,org.apache.tapestry5.ioc.services.PropertyShadowBuilder):
Duplicate method name "close" with signature "()V" in class file
$Session_535eae02789d3
Nov 14 13:13:36 debian10-build-01 tomcat9[12033]:
org.apache.tapestry5.ioc.internal.OperationException: Error invoking method
public static org.hibernate.Session
org.apache.tapestry5.hibernate.modules.HibernateCoreModule.buildSession(org.apache.tapestry5.hibernate.HibernateSessionManager,org.apache.tapestry5.ioc.services.PropertyShadowBuilder):
Duplicate method name "close" with signature "()V" in class file
$Session_535eae02789d3
Nov 14 13:13:36 debian10-build-01 tomcat9[12033]: at
org.apache.tapestry5.ioc.internal.OperationTrackerImpl.logAndRethrow(OperationTrackerImpl.java:186)
Nov 14 13:13:36 debian10-build-01 tomcat9[12033]: at
org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:90)
{quote}
> Service creation for Hibernate Session results in ClassFormatError: Duplicate
> method name&signature
> ---------------------------------------------------------------------------------------------------
>
> Key: TAP5-2582
> URL: https://issues.apache.org/jira/browse/TAP5-2582
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-ioc
> Affects Versions: 5.4.3
> Reporter: Thomas Mayer
> Assignee: Thiago Henrique De Paula Figueiredo
> Priority: Major
> Labels: duplicate,method, hibernate, interface, ioc
> Fix For: 5.4.5
>
> Attachments: pom.xml
>
>
> Hi, this report is for
> tapestry-ioc 5.4.3
> hibernate-core 5.2.10.Final
> openjdk version "1.8.0_121"
> OpenJDK Runtime Environment (build 1.8.0_121-8u121-b13-0ubuntu1.16.04.2-b13)
> OpenJDK 64-Bit Server VM (build 25.121-b13, mixed mode)
> I'm trying to have a Service for a hibernate Session:
> {code:java}
> public static Session buildHibernateSession(
> ObjectLocator objectLocator
> ) {
> return new Configuration()
> .configure("hibernate.cfg.xml")
> .buildSessionFactory()
> .openSession();
> }
> {code}
> As soon as the Hibernate Session is invoked by Tapestry-IOC, I get an
> error: java.lang.ClassFormatError: Duplicate method name&signature in
> class file $Session_350f95bde0b5
--
This message was sent by Atlassian Jira
(v8.3.4#803005)