0

I'm having some errors at runtime, from DWR methods with no parameters. The error looks like:

[exec] 12:21:56,372 ERROR [SignatureParser] Parameter mismatch parsing signatures section in dwr.xml on line: public String MyOwnClassName.myOwnDWRMethod()

How can I avoid this error? I mean, is there anything erroneous in the signature?


Edit

dwr.xml has something like:

The signature is:

<signatures> <![CDATA[
  import MyControlClass;
  public String MyControlClass.selectItem();
]]>
</signatures>

The call is like:

function validateReport() {
MyControl.selectItem({callback:function(error) {alert('ok');}});
}
Jason Plank
  • 2,336
  • 5
  • 31
  • 40
Esteve Camps
  • 1,113
  • 1
  • 10
  • 20

1 Answers1

0

I believe the problem is in the function(error)

function validateReport() 
{
    MyControl.selectItem({callback:function(error) {alert('ok');}});
}

The new callback function is expecting a value for the parameter error.

Try (without error as the functions parameter):

function validateReport() 
{
    MyControl.selectItem({callback:function() {alert('ok');}});
}

Thanks

mlevit
  • 2,676
  • 10
  • 42
  • 50