|
From: Serge B. <ser...@gm...> - 2006-04-13 07:58:36
|
Hi,
I am writing again about this problem. I am suspecting that I did not
explain the problem adequately.
Now I have just downloaded RC1, but the problem is alive. When I am enterin=
g
the flow, I get the following exception:
11:44:14 [ERROR] BoundedThreadPool0-1:
org.springframework.web.servlet.DispatcherServlet - Could not complete
request
java.lang.IllegalArgumentException: Map key '_flowExecutionKey' has value [=
[
Ljava.lang.String;@6f4652] that is not of expected type [class
java.lang.String], instead it is of type [class [Ljava.lang.String;]
at
org.springframework.binding.util.MapAccessor.assertKeyValueInstanceOf(
MapAccessor.java:455)
at org.springframework.binding.util.MapAccessor.assertKeyValueOfTyp=
e
(MapAccessor.java:442)
at org.springframework.binding.util.MapAccessor.getString(
MapAccessor.java:146)
at org.springframework.binding.util.MapAccessor.getString(
MapAccessor.java:130)
at org.springframework.webflow.ParameterMap.get(ParameterMap.java
:128)
at
org.springframework.webflow.executor.support.FlowExecutorArgumentExtractor.=
extractFlowExecutionKey
(FlowExecutorArgumentExtractor.java:227)
at
org.springframework.webflow.executor.support.FlowRequestHandler.handleFlowR=
equest
(FlowRequestHandler.java:98)
at
org.springframework.webflow.executor.mvc.FlowController.handleRequestIntern=
al
(FlowController.java:198)
at
org.springframework.web.servlet.mvc.AbstractController.handleRequest(
AbstractController.java:153)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
This problem is caused (from my point of view) by the fact, that emty strin=
g
array is not parsed in webflow request parameters parsing code. All this
time I am working with my patched webflow version, where I have fixed this
bug. Now I will again fix this bug in my local webflow version.
Best regards,
Serge Bogatyrjov.
2006/3/29, Serge Bogatyrjov <ser...@gm...>:
>
> Thanks,
>
> I will try 1.0 RC1.
>
> I have created the issue.
>
> 2006/3/29, Keith Donald <ke...@in...>:
>
> > Serge,
> >
> > The first issue (array request params) has been fixed for 1.0 RC1
> > nightly.
> >
> > The second issue (samples) is still outstanding. Can you create a JIRA=
?
> >
> > Thanks,
> >
> > Keith
> >
> > -----Original Message-----
> > From: spr...@li...
> > [mailto: spr...@li...] On
> > Behalf Of
> > Serge Bogatyrjov
> > Sent: Wednesday, March 29, 2006 7:17 AM
> > To: spr...@li...
> > Subject: [Springframework-developer] webflow, jetty request parameters
> >
> > Hi,
> >
> >
> > I am using jetty6. Jetty particular request parameters processing make
> > it
> > impossible to use webflow with jetty. I do not sure this container to d=
o
> >
> > things in right way. But I have found we can make the webflow to run
> > with
> > jetty.
> >
> > The weak spot in webflow is
> > 'HttpServletRequestParameterMap.getAttribute(String
> > key)' method. It makes the following call:
> >
> >
> > request.getParameterValues(key);
> >
> >
> > Jetty returns String[0] for a unknown parameter. But this case is not
> > provided.
> > This is original code:
> >
> >
> > if (parameters =3D=3D null) {
> >
> > return null;
> >
> > } else if (parameters.length =3D=3D 1) {
> >
> > return parameters[0];
> >
> > } else {
> >
> > return parameters;
> >
> > }
> >
> >
> > Here is my variant:
> >
> >
> >
> > if (parameters =3D=3D null) {
> >
> > return null;
> >
> > } else if (parameters.length =3D=3D 0) {
> >
> > return null;
> >
> > } else if (parameters.length =3D=3D 1) {
> >
> > return parameters[0];
> >
> > } else {
> >
> > return parameters;
> >
> > }
> >
> >
> >
> > I have found another small problem with webflow samples. All samples
> > contains invalid value for a 'webAppRootKey' context parameter in
> > web.xml.
> > For example, in the sample phonebook the parameter value is
> > "phonebook.root", but the valid value is "swf-phonebook.root", because
> > assebly artifact is "swf-phonebook.war".
> >
> >
> > Serge Bogatyrjov.
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by xPML, a groundbreaking scripting
> > language
> > that extends applications into web and mobile media. Attend the live
> > webcast
> > and join the prime developer group breaking into this new coding
> > territory!
> > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat=
=3D121642
> > _______________________________________________
> > Springframework-developer mailing list
> > Spr...@li...
> > https://lists.sourceforge.net/lists/listinfo/springframework-developer
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by xPML, a groundbreaking scripting
> > language
> > that extends applications into web and mobile media. Attend the live
> > webcast
> > and join the prime developer group breaking into this new coding
> > territory!
> > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat=
=3D121642
> >
> > _______________________________________________
> > Springframework-developer mailing list
> > Spr...@li...
> > https://lists.sourceforge.net/lists/listinfo/springframework-developer
> >
>
>
|