"...missing : in conversion..."

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

"...missing : in conversion..."

Fordemo Only
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: "...missing : in conversion..."

david@butterdev.com
I have the following Java method:

public String sayHelloArray(String[] names)
{
    return "Hello, " + names[0] + ", " + names[1];
}

Calling from the browser with the following parameters:
Demo.sayHelloArray(["Dav+id", "Mike"])

Everything works fine the + is escaped as %2b and the correct string is returned to the browser. 

You will need to provide more information and a simple test case.

-David

On 01/01/2014 11:52 AM, Fordemo Only wrote:
Hello
The fuller message is :
 "...ERROR org.directwebremoting.dwrp.ParseUtil  error - Missing : in conversion data..."
I believe it is marshalling a one-dimensional array of length 2 with an element that contains "+" and it is escaping it as %2.  On the server it only delivers a one-dimensional array of length 1(the first element has the "+") and fails the callback, as expected.  Other than base64 the value is there a way to avoid this error and succeed the completion of the dwr call.
dwr 2.08 jar