Issue 1:
Reiner Kühl opened SPR-4106 and commented

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.

With Spring-2.5RC1 and spring-webmvc-2.5RC1 we get a complaint about an invalid property (name of property is empty?!)

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?

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?

at org.springframework.beans.BeanWrapperImpl.getPropertyValue(BeanWrapperImpl.java:544)

at org.springframework.beans.BeanWrapperImpl.getPropertyValue(BeanWrapperImpl.java:536)

at org.springframework.validation.AbstractPropertyBindingResult.getActualFieldValue(AbstractPropertyBindingResult.java:78)

at org.springframework.validation.AbstractBindingResult.getFieldValue(AbstractBindingResult.java:337)

at org.springframework.web.servlet.support.BindStatus.<init>(BindStatus.java:118)

at org.springframework.web.servlet.tags.form.AbstractDataBoundFormElementTag.getBindStatus(AbstractDataBoundFormElementTag.java:171)

at org.springframework.web.servlet.tags.form.ErrorsTag.shouldRender(ErrorsTag.java:131)

at org.springframework.web.servlet.tags.form.AbstractHtmlElementBodyTag.writeTagContent(AbstractHtmlElementBodyTag.java:46)

at org.springframework.web.servlet.tags.form.AbstractFormTag.doStartTagInternal(AbstractFormTag.java:90)

at org.springframework.web.servlet.tags.RequestContextAwareTag.doStartTag(RequestContextAwareTag.java:77)

at org.apache.jsp.WEB_002dINF.jsp.vendorManagement_jsp._jspService(vendorManagement_jsp.java:161)

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

With Spring-2.5RC2 and spring-webmvc-2.5RC2 we get a complaint about a NPE while deserializing some webflow:

2007-11-15 14:13:12,831 [vendorMgt] ERROR: Servlet.service() for servlet vendorMgt threw exception

java.lang.NullPointerException

at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1839)

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

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

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

at org.springframework.webflow.engine.impl.FlowExecutionImpl.readExternal(FlowExecutionImpl.java:486)

at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1774)

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

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

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

at org.springframework.webflow.execution.repository.continuation.SerializedFlowExecutionContinuation.deserialize(SerializedFlowExecutionContinuation.java:186)

at org.springframework.webflow.execution.repository.continuation.SerializedFlowExecutionContinuation.unmarshal(SerializedFlowExecutionContinuation.java:93)

at org.springframework.webflow.execution.repository.continuation.ContinuationFlowExecutionRepository.getFlowExecution(ContinuationFlowExecutionRepository.java:149)

at org.springframework.webflow.executor.FlowExecutorImpl.refresh(FlowExecutorImpl.java:253)

at org.springframework.webflow.executor.support.FlowRequestHandler.handleFlowRequest(FlowRequestHandler.java:117)

at org.springframework.webflow.executor.mvc.FlowController.handleRequestInternal(FlowController.java:165)

at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)

at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)

at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:861)

at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:795)

at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476)

at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:431)

What`s happening? Why is the behavior so different?

Affects: 2.5 RC1, 2.5 RC2

Issue Links:

#8783 Spring-webflow fails when runs on Spring2.5 RC2 ("duplicates")

Issue 2:
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