Issue 1:
Mohan opened SPR-4105 and commented

De serializing org.springframework.webflow.execution.FlowSessionStatus throws following error.

Exception in thread "main" java.lang.IllegalArgumentException: Unsupported labeled enumeration type 'class org.springframework.core.enums.StaticLabeledEnum': make sure you've properly defined this enumeration: if it's static, are the class and its fields public/static/final?

at org.springframework.core.enums.AbstractCachingLabeledEnumResolver$1.create(AbstractCachingLabeledEnumResolver.java:53)

at org.springframework.util.CachingMapDecorator.get(CachingMapDecorator.java:152)

at org.springframework.core.enums.AbstractCachingLabeledEnumResolver.getLabeledEnumMap(AbstractCachingLabeledEnumResolver.java:74)

at org.springframework.core.enums.AbstractCachingLabeledEnumResolver.getLabeledEnumByCode(AbstractCachingLabeledEnumResolver.java:79)

at org.springframework.core.enums.StaticLabeledEnum.readResolve(StaticLabeledEnum.java:97)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:1033)

at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1727)

at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1304)

at java.io.ObjectInputStream.readObject(ObjectInputStream.java:349)

I think is issue is in getType method org.springframework.core.enums.AbstractLabeledEnum , it should be

public Class getType() {

final Class declaringClass = getClass().getDeclaringClass();

return (declaringClass == null) ? getClass() : getClass().getSuperclass(); // instead of return (declaringClass != null) ? getClass() : getClass().getSuperclass();

}

Affects: 2.5 RC2

Issue Links:

#8784 Web Flow deserialization problem on Spring 2.5 RC2 - was working on Spring 2.0.7 ("is duplicated by")

#8745 enum comparsion fails

1 votes, 2 watchers

Issue 2:
Costin Leau opened SPR-3238 and commented

For some reason, when using AbstractJapTests and maven, one gets a StackOverFlow:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entity

ManagerFactory' defined in class path resource [jpa-beans.xml]: Invocation of init method fail

ed; nested exception is java.lang.StackOverflowError

Caused by: java.lang.StackOverflowError

at java.lang.Character.toLowerCase(Character.java:4204)

at java.lang.Character.toLowerCase(Character.java:4171)

at java.lang.String.toLowerCase(String.java:2219)

at java.lang.String.toLowerCase(String.java:2296)

at org.apache.xerces.util.URI.setScheme(URI.java:908)

at org.apache.xerces.util.URI.initializeScheme(URI.java:576)

at org.apache.xerces.util.URI.initialize(URI.java:400)

at org.apache.xerces.util.URI.<init>(URI.java:211)

at org.apache.xerces.util.URI.<init>(URI.java:195)

at org.apache.xerces.impl.XMLEntityManager.expandSystemId(XMLEntityManager.java:1140)

at org.apache.xerces.impl.XMLEntityManager.resolveEntity(XMLEntityManager.java:581)

at org.apache.xerces.impl.xs.XMLSchemaLoader.xsdToXMLInputSource(XMLSchemaLoader.java:

625)

at org.apache.xerces.impl.xs.XMLSchemaLoader.processJAXPSchemaSource(XMLSchemaLoader.j

ava:580)

at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:489)

at org.apache.xerces.impl.xs.XMLSchemaLoader.processJAXPSchemaSource(XMLSchemaLoader.j

ava:588)

at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:489)

at org.apache.xerces.impl.xs.XMLSchemaLoader.processJAXPSchemaSource(XMLSchemaLoader.j

ava:588)

at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:489)

at org.apache.xerces.impl.xs.XMLSchemaLoader.processJAXPSchemaSource(XMLSchemaLoader.j

ava:588)

Affects: 2.0 final

Issue Links:

#7930 Maven leads to StackOverflowError for AbstractJpaTests ("duplicates")

#7930 Maven leads to StackOverflowError for AbstractJpaTests ("is duplicated by")