Export to GitHub

full-hibernate-plugin-for-struts2 - issue #12

Stack overflow in injectHibernateCoreSessionByAnnotation method


Posted on Jan 17, 2010 by Quick Monkey

What steps will reproduce the problem? 1. creating singleton class ('RegistryContext') with static instance field ('private static RegistryContext instance;').

What is the expected output? What do you see instead? injectHibernateCoreSessionByAnnotation recursion with stack overflow.

What version of the product are you using? On what operating system? 2.1.2 GA

Please provide any additional information below. Overflow occurs because of the first field in my 'RegistryContext' singleton object is a singleton instance reference i.e. reference to itself. You mentioned in 'issue 4'-reply that you would use an 'injection cash' in version 2.1 and in sources of 'SessionTransactionInjectorInterceptor' class I've found an 'injectionCacheMap' field, but it is never used in forward code.

Comment #1

Posted on Jan 18, 2010 by Grumpy Rabbit

Fixed with 2.1.3

Status: Fixed

Labels:
Type-Defect Priority-Medium