ninada / full-hibernate-plugin-for-struts2

Automatically exported from code.google.com/p/full-hibernate-plugin-for-struts2
1 stars 0 forks source link

close session method not found when using Custom Hibernate Session Factory #39

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Configured property closeSessionMethod as "closeSession" struts.properties 
and customSessionFactoryClass as "org.something.MySessionFactory"
2. Then creating the method closeSession with argument type 
org.hibernate.Session
3. Then it throws NoSuchMethodException for closeSession

What is the expected output? What do you see instead?
It should work and the method should be called. But instead it throws 
NoSuchMethodException, closeSession method is not found.

What version of the product are you using? On what operating system?
As per the plugin requirements and Windows XP

Please provide any additional information below.
When changing the signature of closeSession method to 
org.hibernate.internal.SessionImpl rather than org.hibernate.Session, it starts 
working. But the should not be dependent on the Concrete implementation.

Original issue reported on code.google.com by narendra...@gmail.com on 28 Nov 2012 at 10:59