<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=mohan@hp.com" rel="nofollow">Mohan</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4105?redirect=false" rel="nofollow">SPR-4105</a></strong> and commented</p>
<p dir="auto">De serializing  org.springframework.webflow.execution.FlowSessionStatus throws following error.</p>
<p dir="auto">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?<br>
at org.springframework.core.enums.AbstractCachingLabeledEnumResolver$1.create(AbstractCachingLabeledEnumResolver.java:53)<br>
at org.springframework.util.CachingMapDecorator.get(CachingMapDecorator.java:152)<br>
at org.springframework.core.enums.AbstractCachingLabeledEnumResolver.getLabeledEnumMap(AbstractCachingLabeledEnumResolver.java:74)<br>
at org.springframework.core.enums.AbstractCachingLabeledEnumResolver.getLabeledEnumByCode(AbstractCachingLabeledEnumResolver.java:79)<br>
at org.springframework.core.enums.StaticLabeledEnum.readResolve(StaticLabeledEnum.java:97)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
at java.lang.reflect.Method.invoke(Method.java:585)<br>
at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:1033)<br>
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1727)<br>
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1304)<br>
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:349)</p>
<p dir="auto">I think is issue is in getType method org.springframework.core.enums.AbstractLabeledEnum , it should be<br>
public Class getType() {<br>
final Class declaringClass = getClass().getDeclaringClass();<br>
return (declaringClass == null) ? getClass() : getClass().getSuperclass(); // instead of return (declaringClass != null) ? getClass() : getClass().getSuperclass();<br>
}</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.5 RC2</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398082641" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8784" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8784/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8784">#8784</a> Web Flow deserialization problem on Spring 2.5 RC2 - was working on Spring 2.0.7 (<em><strong>"is duplicated by"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398082352" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8745" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8745/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8745">#8745</a> enum comparsion fails</li>
</ul>
<p dir="auto">1 votes, 2 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=costin" rel="nofollow">Costin Leau</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-3238?redirect=false" rel="nofollow">SPR-3238</a></strong> and commented</p>
<p dir="auto">For some reason, when using AbstractJapTests and maven, one gets a StackOverFlow:</p>
<p dir="auto">org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entity<br>
ManagerFactory' defined in class path resource [jpa-beans.xml]: Invocation of init method fail<br>
ed; nested exception is java.lang.StackOverflowError<br>
Caused by: java.lang.StackOverflowError<br>
at java.lang.Character.toLowerCase(Character.java:4204)<br>
at java.lang.Character.toLowerCase(Character.java:4171)<br>
at java.lang.String.toLowerCase(String.java:2219)<br>
at java.lang.String.toLowerCase(String.java:2296)<br>
at org.apache.xerces.util.URI.setScheme(URI.java:908)<br>
at org.apache.xerces.util.URI.initializeScheme(URI.java:576)<br>
at org.apache.xerces.util.URI.initialize(URI.java:400)<br>
at org.apache.xerces.util.URI.&lt;init&gt;(URI.java:211)<br>
at org.apache.xerces.util.URI.&lt;init&gt;(URI.java:195)<br>
at org.apache.xerces.impl.XMLEntityManager.expandSystemId(XMLEntityManager.java:1140)<br>
at org.apache.xerces.impl.XMLEntityManager.resolveEntity(XMLEntityManager.java:581)<br>
at org.apache.xerces.impl.xs.XMLSchemaLoader.xsdToXMLInputSource(XMLSchemaLoader.java:<br>
625)<br>
at org.apache.xerces.impl.xs.XMLSchemaLoader.processJAXPSchemaSource(XMLSchemaLoader.j<br>
ava:580)<br>
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:489)<br>
at org.apache.xerces.impl.xs.XMLSchemaLoader.processJAXPSchemaSource(XMLSchemaLoader.j<br>
ava:588)<br>
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:489)<br>
at org.apache.xerces.impl.xs.XMLSchemaLoader.processJAXPSchemaSource(XMLSchemaLoader.j<br>
ava:588)<br>
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:489)<br>
at org.apache.xerces.impl.xs.XMLSchemaLoader.processJAXPSchemaSource(XMLSchemaLoader.j<br>
ava:588)</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.0 final</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398076124" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7930" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7930/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7930">#7930</a> Maven leads to StackOverflowError for AbstractJpaTests (<em><strong>"duplicates"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398076124" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7930" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7930/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7930">#7930</a> Maven leads to StackOverflowError for AbstractJpaTests (<em><strong>"is duplicated by"</strong></em>)</li>
</ul>