rpc exception

2 views
Skip to first unread message

hitesh

unread,
Aug 12, 2006, 5:13:51 PM8/12/06
to Google Web Toolkit
After I upgraded to 1.1, I haven't been able to get my already running
application "up"
after an effort of several hours.
The change in API was the smallest/easiest thing to fix. After that, at
a few places the runtime behaviour has changed, functions working
correctly have started throwing exception. After fixing those, as
suggested in the release notes, I got stuck with the following RPC
exception (this was also working fine earlier)

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

Scott Blum

unread,
Aug 12, 2006, 7:13:51 PM8/12/06
to Google Web Toolkit
Hi 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

sharad sinha

unread,
Aug 13, 2006, 1:40:06 AM8/13/06
to Google Web Toolkit
First time when i upgraded to 1.1.0, i also got the same trace in web
mode. This was because i had old jars in tomcat, but i compiled the
code in eclipse with new jars.

hitesh

unread,
Aug 13, 2006, 1:54:19 AM8/13/06
to Google Web Toolkit
Scott,
I did read this thread before posting my issue. I think this is not the
case with me.
I did recompile my server side RemoteServiceServlet with the new
version.
And also emptied the cache of my browser to make sure it loads new .js
. And I am sure it is running the new version on the client side too.

Vivian

unread,
Aug 13, 2006, 2:45:32 AM8/13/06
to Google Web Toolkit

hitesh,
Did you try to make a change to some visible text in the server side
version so that you can verify that the version deployed is running the
new code? I have personally run into a situation where I had to blow
away the war file, and tomcat deployment/work directories because for
some reason, my rebuilds weren't overwriting the old libraries. And on
the Mac, I have found that sometimes "Empty Cache" on Camino doesn't
suffice and "Reset Camino" must be used instead to stop using the
cached copy.

Just a suggestion,
-Vivian
GWT Team

hitesh

unread,
Aug 13, 2006, 2:46:49 AM8/13/06
to Google Web Toolkit
hmm,
I do not have any gwt jars in my server lib and have compiled the
source with new jars ...

hitesh

unread,
Aug 13, 2006, 3:57:34 AM8/13/06
to Google Web Toolkit
The change I made to the constructors of my RemoteServiceServlet
implementations are visible in the logs but the actual service methods
are not being called because of as this exception

hitesh

unread,
Aug 13, 2006, 4:11:14 AM8/13/06
to Google Web Toolkit
ok, one of my projects (which no more use gwt classes) deploy dir had
old gwt jars. After removing those I am now getting meaning full
exceptions which I hope I would be able to figure.
I would get back If I am not.

Thanks guys for so patiently bearing with me.

Reply all
Reply to author
Forward
0 new messages