« Return to Thread: Java.lang.String ClassCastException
- public static void removeError(Map<String, Boolean> errorMap) {
- if(errorMap == null)
- return;
- Iterator<Entry<String, Boolean>> it = errorMap.entrySet().iterator();
- while(it.hasNext()) {
- Entry<String, Boolean> entry = it.next();
- if(entry.getValue()) { //error here
- // do something
- }
- }
- }
On Thu, Jun 25, 2009 at 1:31 AM, Jose Noheda <jose.noheda@...> wrote:What's the Java counterpart?On Wed, Jun 24, 2009 at 7:29 PM, Rio Liu <rioliu@...> wrote:
It is very simple js object {2009625010703182:true}On Thu, Jun 25, 2009 at 1:14 AM, David Marginian <david@...> wrote:
I meant send us the JavaScript object you are building, not the request.
On Wed, Jun 24, 2009 at 11:11 AM, Rio Liu <rioliu@...> wrote:
callCount=1This is the content of the request, I have checked my dwr.xml , I think it's OK, for this case, I don't need to add a converter for it. java.lang.* are imported by default.
windowName=
c0-scriptName=TestClass
c0-methodName=removeError
c0-id=0
c0-e1=boolean:true
c0-param0=Object_Object:{20090625010703185:reference:c0-e1}
batchId=11
Thanks
Rio
On Thu, Jun 25, 2009 at 12:20 AM, David Marginian <david@...> wrote:
Have you checked the server log? Are you sure that your dwr configuration is correct (you only posted a snippet)? What does the JavaScript object you are passing the remote method look like?
On Wed, Jun 24, 2009 at 10:12 AM, Rio Liu <rioliu@...> wrote:
Hi guys
I hava a problem. I have a signature config like
<![CDATA[
import java.util.List;
import java.util.Map;
import com.test.TestClass;
TestClass.removeError(Map<String, Boolean>);
]]>
but I always got a Java.lang.String classcastexception cannot be conveted to Java.lang.Boolean
Who can help me ?
Thanks very much
Rio
« Return to Thread: Java.lang.String ClassCastException
| Free embeddable forum powered by Nabble | Forum Help |