Java.lang.String ClassCastException

View: New views
20 Messages — Rating Filter:   Alert me  
< Prev | 1 - 2 - 3 | Next >

Java.lang.String ClassCastException

by Rio Liu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
    

Re: Java.lang.String ClassCastException

by davidmarginian :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
    


Re: Java.lang.String ClassCastException

by Rio Liu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

callCount=1
windowName=
c0-scriptName=TestClass
c0-methodName=removeError
c0-id=0
c0-e1=boolean:true
c0-param0=Object_Object:{20090625010703185:reference:c0-e1}
batchId=11
This 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.

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
    



Re: Java.lang.String ClassCastException

by davidmarginian :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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=1
windowName=
c0-scriptName=TestClass
c0-methodName=removeError
c0-id=0
c0-e1=boolean:true
c0-param0=Object_Object:{20090625010703185:reference:c0-e1}
batchId=11
This 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.

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
    




Re: Java.lang.String ClassCastException

by XMaNIaC :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

That 20090625010703185 is weird there

On Wed, Jun 24, 2009 at 7:11 PM, Rio Liu <rioliu@...> wrote:
callCount=1
windowName=
c0-scriptName=TestClass
c0-methodName=removeError
c0-id=0
c0-e1=boolean:true
c0-param0=Object_Object:{20090625010703185:reference:c0-e1}
batchId=11
This 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.

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
    




Re: Java.lang.String ClassCastException

by Rio Liu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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=1
windowName=
c0-scriptName=TestClass
c0-methodName=removeError
c0-id=0
c0-e1=boolean:true
c0-param0=Object_Object:{20090625010703185:reference:c0-e1}
batchId=11
This 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.

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
    





Re: Java.lang.String ClassCastException

by XMaNIaC :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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=1
windowName=
c0-scriptName=TestClass
c0-methodName=removeError
c0-id=0
c0-e1=boolean:true
c0-param0=Object_Object:{20090625010703185:reference:c0-e1}
batchId=11
This 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.

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
    






Re: Java.lang.String ClassCastException

by Rio Liu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I tried to add a prefix like error_20090625010703185, no effect.

On Thu, Jun 25, 2009 at 1:29 AM, Jose Noheda <jose.noheda@...> wrote:
That 20090625010703185 is weird there


On Wed, Jun 24, 2009 at 7:11 PM, Rio Liu <rioliu@...> wrote:
callCount=1
windowName=
c0-scriptName=TestClass
c0-methodName=removeError
c0-id=0
c0-e1=boolean:true
c0-param0=Object_Object:{20090625010703185:reference:c0-e1}
batchId=11
This 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.

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
    





Re: Java.lang.String ClassCastException

by Rio Liu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

  1. public static void removeError(Map<String, Boolean> errorMap) {  
  2.    if(errorMap == null)  
  3.       return;  
  4.    Iterator<Entry<String, Boolean>> it = errorMap.entrySet().iterator();  
  5.    while(it.hasNext()) {  
  6.       Entry<String, Boolean> entry = it.next();  
  7.       if(entry.getValue()) {  //error here
  8.         // do something  
  9.       }  
  10.    }  



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=1
windowName=
c0-scriptName=TestClass
c0-methodName=removeError
c0-id=0
c0-e1=boolean:true
c0-param0=Object_Object:{20090625010703185:reference:c0-e1}
batchId=11
This 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.

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
    







Re: Java.lang.String ClassCastException

by Rio Liu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Maybe I have to change the parameter format to Map<String,String>. my dwr version is 3.0rc1

On Thu, Jun 25, 2009 at 1:34 AM, Rio Liu <rioliu@...> wrote:
  1. public static void removeError(Map<String, Boolean> errorMap) {  
  2.    if(errorMap == null)  
  3.       return;  
  4.    Iterator<Entry<String, Boolean>> it = errorMap.entrySet().iterator();  
  5.    while(it.hasNext()) {  
  6.       Entry<String, Boolean> entry = it.next();  
  7.       if(entry.getValue()) {  //error here
  8.         // do something  
  9.       }  
  10.    }  



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=1
windowName=
c0-scriptName=TestClass
c0-methodName=removeError
c0-id=0
c0-e1=boolean:true
c0-param0=Object_Object:{20090625010703185:reference:c0-e1}
batchId=11
This 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.

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
    








Re: Java.lang.String ClassCastException

by davidmarginian :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Do you see anything in the server logs?  The reason I am asking is that it appears that DWR is not using the signature you specified.  If not you will see a message that indicated DWR is assuming a Map containing a String key and a String value.  I also noticed your method is static.  What creator are you using?

On Wed, Jun 24, 2009 at 11:34 AM, Rio Liu <rioliu@...> wrote:
  1. public static void removeError(Map<String, Boolean> errorMap) {  
  2.    if(errorMap == null)  
  3.       return;  
  4.    Iterator<Entry<String, Boolean>> it = errorMap.entrySet().iterator();  
  5.    while(it.hasNext()) {  
  6.       Entry<String, Boolean> entry = it.next();  
  7.       if(entry.getValue()) {  //error here
  8.         // do something  
  9.       }  
  10.    }  



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=1
windowName=
c0-scriptName=TestClass
c0-methodName=removeError
c0-id=0
c0-e1=boolean:true
c0-param0=Object_Object:{20090625010703185:reference:c0-e1}
batchId=11
This 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.

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
    








Re: Java.lang.String ClassCastException

by Rio Liu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I try to user <filter class="org.directwebremoting.filter.AuditLogAjaxFilter"/> under allow tag to trace the log, but I got a NPE :(, It doesn't work for me. and my creator="new".

On Thu, Jun 25, 2009 at 1:42 AM, David Marginian <david@...> wrote:
Do you see anything in the server logs?  The reason I am asking is that it appears that DWR is not using the signature you specified.  If not you will see a message that indicated DWR is assuming a Map containing a String key and a String value.  I also noticed your method is static.  What creator are you using?


On Wed, Jun 24, 2009 at 11:34 AM, Rio Liu <rioliu@...> wrote:
  1. public static void removeError(Map<String, Boolean> errorMap) {  
  2.    if(errorMap == null)  
  3.       return;  
  4.    Iterator<Entry<String, Boolean>> it = errorMap.entrySet().iterator();  
  5.    while(it.hasNext()) {  
  6.       Entry<String, Boolean> entry = it.next();  
  7.       if(entry.getValue()) {  //error here
  8.         // do something  
  9.       }  
  10.    }  



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=1
windowName=
c0-scriptName=TestClass
c0-methodName=removeError
c0-id=0
c0-e1=boolean:true
c0-param0=Object_Object:{20090625010703185:reference:c0-e1}
batchId=11
This 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.

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
    









Re: Java.lang.String ClassCastException

by davidmarginian :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

What version of dwr are you using?  Pre 3.x the AuditLogAjaxFilter does not exist. 

 
On Wed, Jun 24, 2009 at 11:59 AM, Rio Liu <rioliu@...> wrote:
I try to user <filter class="org.directwebremoting.filter.AuditLogAjaxFilter"/> under allow tag to trace the log, but I got a NPE :(, It doesn't work for me. and my creator="new".


On Thu, Jun 25, 2009 at 1:42 AM, David Marginian <david@...> wrote:
Do you see anything in the server logs?  The reason I am asking is that it appears that DWR is not using the signature you specified.  If not you will see a message that indicated DWR is assuming a Map containing a String key and a String value.  I also noticed your method is static.  What creator are you using?


On Wed, Jun 24, 2009 at 11:34 AM, Rio Liu <rioliu@...> wrote:
  1. public static void removeError(Map<String, Boolean> errorMap) {  
  2.    if(errorMap == null)  
  3.       return;  
  4.    Iterator<Entry<String, Boolean>> it = errorMap.entrySet().iterator();  
  5.    while(it.hasNext()) {  
  6.       Entry<String, Boolean> entry = it.next();  
  7.       if(entry.getValue()) {  //error here
  8.         // do something  
  9.       }  
  10.    }  



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=1
windowName=
c0-scriptName=TestClass
c0-methodName=removeError
c0-id=0
c0-e1=boolean:true
c0-param0=Object_Object:{20090625010703185:reference:c0-e1}
batchId=11
This 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.

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
    










Re: Java.lang.String ClassCastException

by davidmarginian :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sending us your dwr.xml would help us ensure you have everything set-up correctly. 

On Wed, Jun 24, 2009 at 12:05 PM, David Marginian <david@...> wrote:
What version of dwr are you using?  Pre 3.x the AuditLogAjaxFilter does not exist. 

 
On Wed, Jun 24, 2009 at 11:59 AM, Rio Liu <rioliu@...> wrote:
I try to user <filter class="org.directwebremoting.filter.AuditLogAjaxFilter"/> under allow tag to trace the log, but I got a NPE :(, It doesn't work for me. and my creator="new".


On Thu, Jun 25, 2009 at 1:42 AM, David Marginian <david@...> wrote:
Do you see anything in the server logs?  The reason I am asking is that it appears that DWR is not using the signature you specified.  If not you will see a message that indicated DWR is assuming a Map containing a String key and a String value.  I also noticed your method is static.  What creator are you using?


On Wed, Jun 24, 2009 at 11:34 AM, Rio Liu <rioliu@...> wrote:
  1. public static void removeError(Map<String, Boolean> errorMap) {  
  2.    if(errorMap == null)  
  3.       return;  
  4.    Iterator<Entry<String, Boolean>> it = errorMap.entrySet().iterator();  
  5.    while(it.hasNext()) {  
  6.       Entry<String, Boolean> entry = it.next();  
  7.       if(entry.getValue()) {  //error here
  8.         // do something  
  9.       }  
  10.    }  



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=1
windowName=
c0-scriptName=TestClass
c0-methodName=removeError
c0-id=0
c0-e1=boolean:true
c0-param0=Object_Object:{20090625010703185:reference:c0-e1}
batchId=11
This 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.

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
    











Re: Java.lang.String ClassCastException

by Rio Liu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

3.0RC1

On Thu, Jun 25, 2009 at 2:05 AM, David Marginian <david@...> wrote:
What version of dwr are you using?  Pre 3.x the AuditLogAjaxFilter does not exist. 

 
On Wed, Jun 24, 2009 at 11:59 AM, Rio Liu <rioliu@...> wrote:
I try to user <filter class="org.directwebremoting.filter.AuditLogAjaxFilter"/> under allow tag to trace the log, but I got a NPE :(, It doesn't work for me. and my creator="new".


On Thu, Jun 25, 2009 at 1:42 AM, David Marginian <david@...> wrote:
Do you see anything in the server logs?  The reason I am asking is that it appears that DWR is not using the signature you specified.  If not you will see a message that indicated DWR is assuming a Map containing a String key and a String value.  I also noticed your method is static.  What creator are you using?


On Wed, Jun 24, 2009 at 11:34 AM, Rio Liu <rioliu@...> wrote:
  1. public static void removeError(Map<String, Boolean> errorMap) {  
  2.    if(errorMap == null)  
  3.       return;  
  4.    Iterator<Entry<String, Boolean>> it = errorMap.entrySet().iterator();  
  5.    while(it.hasNext()) {  
  6.       Entry<String, Boolean> entry = it.next();  
  7.       if(entry.getValue()) {  //error here
  8.         // do something  
  9.       }  
  10.    }  



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=1
windowName=
c0-scriptName=TestClass
c0-methodName=removeError
c0-id=0
c0-e1=boolean:true
c0-param0=Object_Object:{20090625010703185:reference:c0-e1}
batchId=11
This 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.

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
    











Re: Java.lang.String ClassCastException

by Rio Liu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

<!DOCTYPE dwr PUBLIC "-//GetAhead Limited//DTD Direct Web Remoting 3.0//EN" "http://getahead.org/dwr//dwr30.dtd">
<dwr>
  <allow>
    <create creator="new" javascript="TestManager">
      <param name="class" value="org.rio.test.TestManager"/>
    </create>
    <create creator="new" javascript="TestClass">
      <param name="class" value="org.rio.test.TestClass"/>
    </create>
     
    <convert converter="exception" match="java.lang.Exception"/>
      <convert converter="bean" match="org.rio.test.bean.Message"/>
      <convert converter="bean" match="org.rio.test.bean.Note"/>
     
 </allow>
 <signatures>
    <![CDATA[
       import java.util.List;
       import java.util.Map;
       import org.rio.test.bean.TestClass;
       TestClass.removeError(Map<String, Boolean>);
     ]]>
 </signatures>
</dwr>

On Thu, Jun 25, 2009 at 2:06 AM, David Marginian <david@...> wrote:
Sending us your dwr.xml would help us ensure you have everything set-up correctly. 

On Wed, Jun 24, 2009 at 12:05 PM, David Marginian <david@...> wrote:
What version of dwr are you using?  Pre 3.x the AuditLogAjaxFilter does not exist. 

 
On Wed, Jun 24, 2009 at 11:59 AM, Rio Liu <rioliu@...> wrote:
I try to user <filter class="org.directwebremoting.filter.AuditLogAjaxFilter"/> under allow tag to trace the log, but I got a NPE :(, It doesn't work for me. and my creator="new".


On Thu, Jun 25, 2009 at 1:42 AM, David Marginian <david@...> wrote:
Do you see anything in the server logs?  The reason I am asking is that it appears that DWR is not using the signature you specified.  If not you will see a message that indicated DWR is assuming a Map containing a String key and a String value.  I also noticed your method is static.  What creator are you using?


On Wed, Jun 24, 2009 at 11:34 AM, Rio Liu <rioliu@...> wrote:
  1. public static void removeError(Map<String, Boolean> errorMap) {  
  2.    if(errorMap == null)  
  3.       return;  
  4.    Iterator<Entry<String, Boolean>> it = errorMap.entrySet().iterator();  
  5.    while(it.hasNext()) {  
  6.       Entry<String, Boolean> entry = it.next();  
  7.       if(entry.getValue()) {  //error here
  8.         // do something  
  9.       }  
  10.    }  



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=1
windowName=
c0-scriptName=TestClass
c0-methodName=removeError
c0-id=0
c0-e1=boolean:true
c0-param0=Object_Object:{20090625010703185:reference:c0-e1}
batchId=11
This 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.

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
    












Re: Java.lang.String ClassCastException

by davidmarginian :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have used the logging filter numerous times and never had a problem, I don't think it matters anyway.  That message should be logged regardless since it is part of the dwr internals. 
 
log.warn("Missing type info for " + debugContext + ". Assuming this is a map with String keys. Please add to <signatures> in dwr.xml");
 
What is your logging threshold set at?
 

 
On Wed, Jun 24, 2009 at 12:15 PM, Rio Liu <rioliu@...> wrote:
3.0RC1


On Thu, Jun 25, 2009 at 2:05 AM, David Marginian <david@...> wrote:
What version of dwr are you using?  Pre 3.x the AuditLogAjaxFilter does not exist. 

 
On Wed, Jun 24, 2009 at 11:59 AM, Rio Liu <rioliu@...> wrote:
I try to user <filter class="org.directwebremoting.filter.AuditLogAjaxFilter"/> under allow tag to trace the log, but I got a NPE :(, It doesn't work for me. and my creator="new".


On Thu, Jun 25, 2009 at 1:42 AM, David Marginian <david@...> wrote:
Do you see anything in the server logs?  The reason I am asking is that it appears that DWR is not using the signature you specified.  If not you will see a message that indicated DWR is assuming a Map containing a String key and a String value.  I also noticed your method is static.  What creator are you using?


On Wed, Jun 24, 2009 at 11:34 AM, Rio Liu <rioliu@...> wrote:
  1. public static void removeError(Map<String, Boolean> errorMap) {  
  2.    if(errorMap == null)  
  3.       return;  
  4.    Iterator<Entry<String, Boolean>> it = errorMap.entrySet().iterator();  
  5.    while(it.hasNext()) {  
  6.       Entry<String, Boolean> entry = it.next();  
  7.       if(entry.getValue()) {  //error here
  8.         // do something  
  9.       }  
  10.    }  



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=1
windowName=
c0-scriptName=TestClass
c0-methodName=removeError
c0-id=0
c0-e1=boolean:true
c0-param0=Object_Object:{20090625010703185:reference:c0-e1}
batchId=11
This 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.

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
    












Re: Java.lang.String ClassCastException

by davidmarginian :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You have the incorrect path to TestClass in your signature (which is why I originally told you to send us your configuration, but you insisted it was correct - this would have saved us a lot of time).
 
In your signature:
import org.rio.test.bean.TestClass;
In your creator:
org.rio.test.TestClass
 
Your signature should read org.rio.test.TestClass
 
-David


On Wed, Jun 24, 2009 at 12:21 PM, Rio Liu <rioliu@...> wrote:
<!DOCTYPE dwr PUBLIC "-//GetAhead Limited//DTD Direct Web Remoting 3.0//EN" "http://getahead.org/dwr//dwr30.dtd">
<dwr>
  <allow>
    <create creator="new" javascript="TestManager">
      <param name="class" value="org.rio.test.TestManager"/>
    </create>
    <create creator="new" javascript="TestClass">
      <param name="class" value="org.rio.test.TestClass"/>
    </create>
     
    <convert converter="exception" match="java.lang.Exception"/>
      <convert converter="bean" match="org.rio.test.bean.Message"/>
      <convert converter="bean" match="org.rio.test.bean.Note"/>
     
 </allow>
 <signatures>

    <![CDATA[
       import java.util.List;
       import java.util.Map;
       import org.rio.test.bean.TestClass;

       TestClass.removeError(Map<String, Boolean>);
     ]]>
 </signatures>
</dwr>


On Thu, Jun 25, 2009 at 2:06 AM, David Marginian <david@...> wrote:
Sending us your dwr.xml would help us ensure you have everything set-up correctly. 

On Wed, Jun 24, 2009 at 12:05 PM, David Marginian <david@...> wrote:
What version of dwr are you using?  Pre 3.x the AuditLogAjaxFilter does not exist. 

 
On Wed, Jun 24, 2009 at 11:59 AM, Rio Liu <rioliu@...> wrote:
I try to user <filter class="org.directwebremoting.filter.AuditLogAjaxFilter"/> under allow tag to trace the log, but I got a NPE :(, It doesn't work for me. and my creator="new".


On Thu, Jun 25, 2009 at 1:42 AM, David Marginian <david@...> wrote:
Do you see anything in the server logs?  The reason I am asking is that it appears that DWR is not using the signature you specified.  If not you will see a message that indicated DWR is assuming a Map containing a String key and a String value.  I also noticed your method is static.  What creator are you using?


On Wed, Jun 24, 2009 at 11:34 AM, Rio Liu <rioliu@...> wrote:
  1. public static void removeError(Map<String, Boolean> errorMap) {  
  2.    if(errorMap == null)  
  3.       return;  
  4.    Iterator<Entry<String, Boolean>> it = errorMap.entrySet().iterator();  
  5.    while(it.hasNext()) {  
  6.       Entry<String, Boolean> entry = it.next();  
  7.       if(entry.getValue()) {  //error here
  8.         // do something  
  9.       }  
  10.    }  



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=1
windowName=
c0-scriptName=TestClass
c0-methodName=removeError
c0-id=0
c0-e1=boolean:true
c0-param0=Object_Object:{20090625010703185:reference:c0-e1}
batchId=11
This 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.

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
    













Re: Java.lang.String ClassCastException

by Rio Liu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Oh, yes, now I corrected it. but got the same result from server.

On Thu, Jun 25, 2009 at 2:34 AM, David Marginian <david@...> wrote:
You have the incorrect path to TestClass in your signature (which is why I originally told you to send us your configuration, but you insisted it was correct - this would have saved us a lot of time).
 
In your signature:
import org.rio.test.bean.TestClass;
In your creator:
org.rio.test.TestClass
 
Your signature should read org.rio.test.TestClass
 
-David


On Wed, Jun 24, 2009 at 12:21 PM, Rio Liu <rioliu@...> wrote:
<!DOCTYPE dwr PUBLIC "-//GetAhead Limited//DTD Direct Web Remoting 3.0//EN" "http://getahead.org/dwr//dwr30.dtd">
<dwr>
  <allow>
    <create creator="new" javascript="TestManager">
      <param name="class" value="org.rio.test.TestManager"/>
    </create>
    <create creator="new" javascript="TestClass">
      <param name="class" value="org.rio.test.TestClass"/>
    </create>
     
    <convert converter="exception" match="java.lang.Exception"/>
      <convert converter="bean" match="org.rio.test.bean.Message"/>
      <convert converter="bean" match="org.rio.test.bean.Note"/>
     
 </allow>
 <signatures>

    <![CDATA[
       import java.util.List;
       import java.util.Map;
       import org.rio.test.bean.TestClass;

       TestClass.removeError(Map<String, Boolean>);
     ]]>
 </signatures>
</dwr>


On Thu, Jun 25, 2009 at 2:06 AM, David Marginian <david@...> wrote:
Sending us your dwr.xml would help us ensure you have everything set-up correctly. 

On Wed, Jun 24, 2009 at 12:05 PM, David Marginian <david@...> wrote:
What version of dwr are you using?  Pre 3.x the AuditLogAjaxFilter does not exist. 

 
On Wed, Jun 24, 2009 at 11:59 AM, Rio Liu <rioliu@...> wrote:
I try to user <filter class="org.directwebremoting.filter.AuditLogAjaxFilter"/> under allow tag to trace the log, but I got a NPE :(, It doesn't work for me. and my creator="new".


On Thu, Jun 25, 2009 at 1:42 AM, David Marginian <david@...> wrote:
Do you see anything in the server logs?  The reason I am asking is that it appears that DWR is not using the signature you specified.  If not you will see a message that indicated DWR is assuming a Map containing a String key and a String value.  I also noticed your method is static.  What creator are you using?


On Wed, Jun 24, 2009 at 11:34 AM, Rio Liu <rioliu@...> wrote:
  1. public static void removeError(Map<String, Boolean> errorMap) {  
  2.    if(errorMap == null)  
  3.       return;  
  4.    Iterator<Entry<String, Boolean>> it = errorMap.entrySet().iterator();  
  5.    while(it.hasNext()) {  
  6.       Entry<String, Boolean> entry = it.next();  
  7.       if(entry.getValue()) {  //error here
  8.         // do something  
  9.       }  
  10.    }  



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=1
windowName=
c0-scriptName=TestClass
c0-methodName=removeError
c0-id=0
c0-e1=boolean:true
c0-param0=Object_Object:{20090625010703185:reference:c0-e1}
batchId=11
This 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.

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
    














Re: Java.lang.String ClassCastException

by davidmarginian :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I would be surprised if this is not working.  If I were you I would ensure that you changed the deployed file and restarted your container. I would double check everything and take a look at the server logs (internal dwr errors shoudl be logged without the filter).

On Wed, Jun 24, 2009 at 12:36 PM, Rio Liu <rioliu@...> wrote:
Oh, yes, now I corrected it. but got the same result from server.


On Thu, Jun 25, 2009 at 2:34 AM, David Marginian <david@...> wrote:
You have the incorrect path to TestClass in your signature (which is why I originally told you to send us your configuration, but you insisted it was correct - this would have saved us a lot of time).
 
In your signature:
import org.rio.test.bean.TestClass;
In your creator:
org.rio.test.TestClass
 
Your signature should read org.rio.test.TestClass
 
-David


On Wed, Jun 24, 2009 at 12:21 PM, Rio Liu <rioliu@...> wrote:
<!DOCTYPE dwr PUBLIC "-//GetAhead Limited//DTD Direct Web Remoting 3.0//EN" "http://getahead.org/dwr//dwr30.dtd">
<dwr>
  <allow>
    <create creator="new" javascript="TestManager">
      <param name="class" value="org.rio.test.TestManager"/>
    </create>
    <create creator="new" javascript="TestClass">
      <param name="class" value="org.rio.test.TestClass"/>
    </create>
     
    <convert converter="exception" match="java.lang.Exception"/>
      <convert converter="bean" match="org.rio.test.bean.Message"/>
      <convert converter="bean" match="org.rio.test.bean.Note"/>
     
 </allow>
 <signatures>

    <![CDATA[
       import java.util.List;
       import java.util.Map;
       import org.rio.test.bean.TestClass;

       TestClass.removeError(Map<String, Boolean>);
     ]]>
 </signatures>
</dwr>


On Thu, Jun 25, 2009 at 2:06 AM, David Marginian <david@...> wrote:
Sending us your dwr.xml would help us ensure you have everything set-up correctly. 

On Wed, Jun 24, 2009 at 12:05 PM, David Marginian <david@...> wrote:
What version of dwr are you using?  Pre 3.x the AuditLogAjaxFilter does not exist. 

 
On Wed, Jun 24, 2009 at 11:59 AM, Rio Liu <rioliu@...> wrote:
I try to user <filter class="org.directwebremoting.filter.AuditLogAjaxFilter"/> under allow tag to trace the log, but I got a NPE :(, It doesn't work for me. and my creator="new".


On Thu, Jun 25, 2009 at 1:42 AM, David Marginian <david@...> wrote:
Do you see anything in the server logs?  The reason I am asking is that it appears that DWR is not using the signature you specified.  If not you will see a message that indicated DWR is assuming a Map containing a String key and a String value.  I also noticed your method is static.  What creator are you using?


On Wed, Jun 24, 2009 at 11:34 AM, Rio Liu <rioliu@...> wrote:
  1. public static void removeError(Map<String, Boolean> errorMap) {  
  2.    if(errorMap == null)  
  3.       return;  
  4.    Iterator<Entry<String, Boolean>> it = errorMap.entrySet().iterator();  
  5.    while(it.hasNext()) {  
  6.       Entry<String, Boolean> entry = it.next();  
  7.       if(entry.getValue()) {  //error here
  8.         // do something  
  9.       }  
  10.    }  



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=1
windowName=
c0-scriptName=TestClass
c0-methodName=removeError
c0-id=0
c0-e1=boolean:true
c0-param0=Object_Object:{20090625010703185:reference:c0-e1}
batchId=11
This 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.

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
    














< Prev | 1 - 2 - 3 | Next >