Closed GoogleCodeExporter closed 8 years ago
Are your classes BasicCrudAction and HomeAction at the default package?
Original comment by jyoshiriro
on 17 Sep 2009 at 2:06
No, only config files in the default package.
Original comment by adutr...@gmail.com
on 21 Sep 2009 at 3:46
How is your folders three?
Original comment by jyoshiriro
on 21 Sep 2009 at 5:08
"tree", sorry ^^'
Original comment by jyoshiriro
on 21 Sep 2009 at 5:09
/hibernate.cfg.xml
/struts.xml
/br/gov/trems/util/BasicCrudAction.class
/br/gov/trems/sistema/controller/action/IndexAction.class
IndexAction extends BasicCrudAction wich extends AcctionSupport
The annotation is being used in the BasicCrudAction wich is not an abstract
class
Original comment by adutr...@gmail.com
on 22 Sep 2009 at 4:51
Sorry, BasicCrudAction is an abstract class :-)
Original comment by adutr...@gmail.com
on 22 Sep 2009 at 4:52
What package is the *LoginAware* interface in?
Original comment by jyoshiriro
on 22 Sep 2009 at 8:19
The package for LoginAware interface is /br/gov/trems/util/
Original comment by adutr...@gmail.com
on 23 Sep 2009 at 5:08
Please, replace temporarily your struts2-fullhibernatecore-plugin-1.5-GA.jar
by the
file attached and test it. So, feedback me about the result, ok?
Original comment by jyoshiriro
on 23 Sep 2009 at 7:25
Attachments:
Hi jyoshiriro,
The problem persists :/
Error message:
java.lang.StackOverflowError
java.util.HashMap.get(HashMap.java:300)
java.lang.ClassLoader.getPackage(ClassLoader.java:1442)
java.lang.Package.getPackage(Package.java:311)
java.lang.Class.getPackage(Class.java:698)
com.googlecode.s2hibernate.struts2.plugin.interceptors.SessionTransactionInje
ctorInterceptor.isCandidadeClass(SessionTransactionInjectorInterceptor.java:347)
Original comment by adutr...@gmail.com
on 29 Sep 2009 at 5:40
Could you attach here your source code (all classes) here? You can delete the
business methods of the attached version, if you prefer.
Original comment by jyoshiriro
on 29 Sep 2009 at 11:44
If you prefer, you can only attach or type here your full project tree. The
last one
was incomplete.
Original comment by jyoshiriro
on 30 Sep 2009 at 11:03
Original comment by jyoshiriro
on 29 Oct 2009 at 11:21
Hello,
Firstly, thanks for your work, the plugin is a helpful piece of code.
I have the same problem as described here, and after some debugging, i found it
seems
the bug comes with enumerations.
The recursion inside the 2 methods
SessionTransactionInjectorInterceptor.detectAndCloseHibernateCoreSessionByAnnota
tion(Object)
and
SessionTransactionInjectorInterceptor.detectAndCloseHibernateTransactionByAnnota
tion(Object)
never ends as, when campo is an enum constant, the line 'Object subField =
campo.get(targetObject);' sets subField as the constant. Never ending...
So if i replace the 'else' by 'else if(!campo.isEnumConstant())', no more stack
overflow. But i think there may be a more elegant solution.
Best regards,
exovii
Original comment by iiv...@gmail.com
on 6 Nov 2009 at 9:43
Hello, Exovvi.
Thank you by this tip! Bux fixed in FHP 2.1.
In the version 2.1 the Session/Transaction injection will use a "injection
cache" for
best performance.
Original comment by jyoshiriro
on 6 Nov 2009 at 11:42
Original comment by jyoshiriro
on 6 Nov 2009 at 11:42
Thanks for the quick fix !
When will you release FHP 2.1 ?
Regards
Original comment by iiv...@gmail.com
on 6 Nov 2009 at 12:53
I hope... Still this month
Original comment by jyoshiriro
on 6 Nov 2009 at 3:22
2.1 GA Released!
Original comment by jyoshiriro
on 20 Nov 2009 at 9:53
Original issue reported on code.google.com by
adutr...@gmail.com
on 15 Sep 2009 at 7:06