« Return to Thread: Reverse Ajax, Problem with blocking by antiviruses,(Avast, Kerio, NOD..)

Are Converters for Method Return Types Really Necessary?

by Bugzilla from ole.ersoy@gmail.com :: Rate this Message:

Reply to Author | View in Thread

Hi,

I'm playing around with DWR, and noticed that if I don't declare a converter for the return type of a remoted method, exceptions like this happen:

2009-02-20 19:35:53,051 [http-80-1] WARN  org.directwebremoting.dwrp.BaseCallMarshaller - --Erroring: batchId[1] message[java.lang.IllegalArgumentException: Missing method or missing parameter converters]

However for a method like:

public ITypedObject readTypedObject()
{
return instanceOfITypedObject;
}

If I run readTypedObject() without declaring a converter for ITypedObject, the instanceOfITypedObject is still returned to the callback handler of readTypedObject(),
it's just that the exception is also propagated to the browser, so I get an error alert.

So DWR wants me to declare a converter for ITypedObject, although it still gets the job done without it.

It seems like DWR would be simpler to work with if I did not have to declare the ITypedObject converter.  So I'm just wondering whether it's something that has been considered?

Cheers,
- Ole

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...

 « Return to Thread: Reverse Ajax, Problem with blocking by antiviruses,(Avast, Kerio, NOD..)