-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: bugA general bugA general bug
Milestone
Description
Russ Tennant opened SPR-11219 and commented
We're getting a StackOverflowError during dependency injection.
Caused by: java.lang.StackOverflowError
at java.lang.reflect.InvocationTargetException.<init>(InvocationTargetException.java:72)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.core.SerializableTypeWrapper$TypeProxyInvocationHandler.invoke(SerializableTypeWrapper.java:220)
at com.sun.proxy.$Proxy4.hashCode(Unknown Source)
at org.springframework.util.ObjectUtils.nullSafeHashCode(ObjectUtils.java:336)
at org.springframework.core.ResolvableType.hashCode(ResolvableType.java:692)
at org.springframework.util.ObjectUtils.nullSafeHashCode(ObjectUtils.java:336)
at org.springframework.core.ResolvableType.hashCode(ResolvableType.java:693)
The class that is triggering the issue is ITableColumnScriptableType which has this hierarchy.
public class ITableColumnScriptableType extends JSR223LibraryType<ITableColumnScriptableType>
public abstract class JSR223LibraryType<LT extends JSR223LibraryType<LT>> extends AbstractLibraryType<LT>
public abstract class AbstractLibraryType<LT extends AbstractLibraryType<LT>> implements ILibraryType<LT>
public interface ILibraryType<LT extends ILibraryType<LT>>
This did not occur in version 3.2.5.
Attached is the error log from the StackOverflowError and a thread dump taken before the stack overflow.
Affects: 4.0 GA
Attachments:
- error-log.txt (174.96 kB)
- spr11219-test-case.zip (5.16 kB)
- spr11219-test-case-2.zip (5.17 kB)
- threads_report.txt (58.15 kB)
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: bugA general bugA general bug