<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=reiner.kuehl" rel="nofollow">Reiner Kühl</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4106?redirect=false" rel="nofollow">SPR-4106</a></strong> and commented</p>
<p dir="auto">We have va working web flow for Spring 2.0.7. When trying the new 2.5 RCs we find it works only with Spring-2.5RC1 and spring-webmvc-2.0.7.</p>
<p dir="auto">With Spring-2.5RC1 and spring-webmvc-2.5RC1 we get a complaint about an invalid property (name of property is empty?!)</p>
<p dir="auto">2007-11-15 14:03:51,616                 ErrorsTag ERROR: Invalid property '' of bean class [de.qvc.vendormgt.web.VendorCommand]: Bean property '' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?<br>
org.springframework.beans.NotReadablePropertyException: Invalid property '' of bean class [de.qvc.vendormgt.web.VendorCommand]: Bean property '' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?<br>
at org.springframework.beans.BeanWrapperImpl.getPropertyValue(BeanWrapperImpl.java:544)<br>
at org.springframework.beans.BeanWrapperImpl.getPropertyValue(BeanWrapperImpl.java:536)<br>
at org.springframework.validation.AbstractPropertyBindingResult.getActualFieldValue(AbstractPropertyBindingResult.java:78)<br>
at org.springframework.validation.AbstractBindingResult.getFieldValue(AbstractBindingResult.java:337)<br>
at org.springframework.web.servlet.support.BindStatus.&lt;init&gt;(BindStatus.java:118)<br>
at org.springframework.web.servlet.tags.form.AbstractDataBoundFormElementTag.getBindStatus(AbstractDataBoundFormElementTag.java:171)<br>
at org.springframework.web.servlet.tags.form.ErrorsTag.shouldRender(ErrorsTag.java:131)<br>
at org.springframework.web.servlet.tags.form.AbstractHtmlElementBodyTag.writeTagContent(AbstractHtmlElementBodyTag.java:46)<br>
at org.springframework.web.servlet.tags.form.AbstractFormTag.doStartTagInternal(AbstractFormTag.java:90)<br>
at org.springframework.web.servlet.tags.RequestContextAwareTag.doStartTag(RequestContextAwareTag.java:77)<br>
at org.apache.jsp.WEB_002dINF.jsp.vendorManagement_jsp._jspService(vendorManagement_jsp.java:161)<br>
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)<br>
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)</p>
<p dir="auto">With Spring-2.5RC2 and spring-webmvc-2.5RC2 we get a complaint about a NPE while deserializing some webflow:</p>
<p dir="auto">2007-11-15 14:13:12,831               [vendorMgt] ERROR: Servlet.service() for servlet vendorMgt threw exception<br>
java.lang.NullPointerException<br>
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1839)<br>
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1738)<br>
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1324)<br>
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:362)<br>
at org.springframework.webflow.engine.impl.FlowExecutionImpl.readExternal(FlowExecutionImpl.java:486)<br>
at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1774)<br>
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1736)<br>
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1324)<br>
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:362)<br>
at org.springframework.webflow.execution.repository.continuation.SerializedFlowExecutionContinuation.deserialize(SerializedFlowExecutionContinuation.java:186)<br>
at org.springframework.webflow.execution.repository.continuation.SerializedFlowExecutionContinuation.unmarshal(SerializedFlowExecutionContinuation.java:93)<br>
at org.springframework.webflow.execution.repository.continuation.ContinuationFlowExecutionRepository.getFlowExecution(ContinuationFlowExecutionRepository.java:149)<br>
at org.springframework.webflow.executor.FlowExecutorImpl.refresh(FlowExecutorImpl.java:253)<br>
at org.springframework.webflow.executor.support.FlowRequestHandler.handleFlowRequest(FlowRequestHandler.java:117)<br>
at org.springframework.webflow.executor.mvc.FlowController.handleRequestInternal(FlowController.java:165)<br>
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)<br>
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)<br>
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:861)<br>
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:795)<br>
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476)<br>
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:431)</p>
<p dir="auto">What`s happening? Why is the behavior so different?</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.5 RC1, 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="398082626" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8783" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8783/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8783">#8783</a> Spring-webflow  fails when runs on Spring2.5 RC2 (<em><strong>"duplicates"</strong></em>)</li>
</ul>
<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>