Shawn.in.Tokyo
4 Jan 2011, 6:32 PM
Why do I see this NPE which causes my RPC call to fail? :((:((
Caused by: java.lang.NullPointerException
at com.extjs.gxt.ui.client.data.RpcMap.size(RpcMap.java:198)
at com.extjs.gxt.ui.client.data.RpcMap_CustomFieldSerializer.serialize(RpcMap_CustomFieldSerializer.java:30)
... 60 moreWhat makes this inexplicable is that RpcMap initializes the map with:
private transient FastMap<Object> map = new FastMap<Object>();and the so shouldn't it return zero for the size if it's empty?:-/
public int size() {
return map.size(); -->this is where the error is thrown ... RpcMap.size(RpcMap.java:198)
}I have a class that implements Serializable. That class contains a HashMap <Long, BaseModel>
If the Hashmap is the underlying cause as not being serialiazable, shouldn't I be seeing a different message?
GXT 2.2
GWT 2.1.1 or 2.1.0
Running via AppEngine DevMode
Help!!! Shawn
Caused by: java.lang.NullPointerException
at com.extjs.gxt.ui.client.data.RpcMap.size(RpcMap.java:198)
at com.extjs.gxt.ui.client.data.RpcMap_CustomFieldSerializer.serialize(RpcMap_CustomFieldSerializer.java:30)
... 60 moreWhat makes this inexplicable is that RpcMap initializes the map with:
private transient FastMap<Object> map = new FastMap<Object>();and the so shouldn't it return zero for the size if it's empty?:-/
public int size() {
return map.size(); -->this is where the error is thrown ... RpcMap.size(RpcMap.java:198)
}I have a class that implements Serializable. That class contains a HashMap <Long, BaseModel>
If the Hashmap is the underlying cause as not being serialiazable, shouldn't I be seeing a different message?
GXT 2.2
GWT 2.1.1 or 2.1.0
Running via AppEngine DevMode
Help!!! Shawn