Exception while dispatching incoming RPC call
java.lang.NumberFormatException: For input string: ""
at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:468)
at java.lang.Integer.parseInt(Integer.java:497)
at
com.google.gwt.user.server.rpc.ServerSerializationStream.getInstanceName(ServerSerializationStream.java:438)
at
com.google.gwt.user.server.rpc.ServerSerializationStream.nextInstance(ServerSerializationStream.java:357)
at
com.google.gwt.user.server.rpc.ServerSerializationStream.deserialize(ServerSerializationStream.java:489)
at
com.google.gwt.user.server.rpc.ServerSerializationStream.readObject(ServerSerializationStream.java:443)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:226)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:186)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
The value object I am using in the RPC is QueryVO as defined below
public class QueryVO
implements IsSerializable {
/**
* @gwt.typeArgs <com.anduril.gwt.client.rules.vo.ParamVO>
*/
private ArrayList params = new ArrayList();
/**
* default constructor
* Constructor QueryVO
*/
public QueryVO(){
}
/**
* @return Returns the params.
*/
public ArrayList getParams() {
return params;
}
/**
* @param params The params to set.
*/
public void setParams(ArrayList params) {
this.params = params;
}
/**
* Adds the given param object to the params list
* @param param
*/
public void addParam(ParamVO param){
params.add(param);
}
}
public class ParamVO
implements IsSerializable {
private int id;
/**
* @gwt.typeArgs <java.lang.String>
*/
private ArrayList values = new ArrayList();
/**
* default constructor
* Constructor ParamVO
*/
public ParamVO(){
}
public void addValue(String value){
values.add(value);
}
/**
* @return Returns the id.
*/
public int getId() {
return id;
}
/**
* @param id The id to set.
*/
public void setId(int id) {
this.id = id;
}
/**
* @return Returns the values.
*/
public ArrayList getValues() {
return values;
}
/**
* @param values The values to set.
*/
public void setValues(ArrayList values) {
this.values = values;
}
}
---------
Also, around 90% links on my webpage have stopped responding. Am not
able to figure it out in the debug mode(hosted mode) as well, as no
exception is thrown and the onClick method is not invoked
thanks
hitesh
You may have the same problem described in this thread:
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/8e4f8d35245c258b/#
Does this fix it?
Scott
Just a suggestion,
-Vivian
GWT Team
Thanks guys for so patiently bearing with me.