PDA

View Full Version : Strange ListLoadException only in Eclipse



chalu
6 Jan 2011, 3:27 AM
I've been using NetBeans for my GXT development for some time now, but it's not been very smooth. I always have to 'run' the app to see changes even if its a little change, and this can be boring if the change is in my UI code, as the GWT tools have to compile every thing again, usually taking 3 or more minutes. So I decided to switch to Eclipse, which runs the GXT app in dev mode by default and only compiles when / if I want to, this way, my development is faster because I get better feedback.

The problem now (after surmounting the others) is that all my calls (which are supposed to load and populate Grids) end in a ListLoadException :


ListLoader<ListLoadResult<ModelData>> storeLoader;
storeLoader = new BaseListLoader<ListLoadResult<ModelData>>(rpcProxy, new BeanModelReader());

storeLoader.addLoadListener(new LoadListener() {
//....

@Override
public void loaderLoadException(LoadEvent evt) {
getActionsManager().disableAll();

if (logger != null) {
logger.debug(evt.exception.getMessage());
}

Events.getBus().fireEvent(Events.Info,
new InfoEvent("List Load Exceptionr", evt.exception.getMessage()));

Events.getBus().fireEvent(Events.ProgressEnd,
new ProgressEndEvent(getLoadTask()));
}
});
}


The code shows how I handle the exceptions. My NetBeans version of this app works well, just that the dev mode never works. I just copied the same codebase to Eclipse, so it's the same stuff. My server side reports no errors (it usually does when there is a "real" ListLoadException issue, I'm also logging on the client, but nothing shows) and firebug shows the RPC response (is there a way to better format it for reading ??), so I'm thinking it's a client side thing.

The RPC gets to the server, the response (list of records) gets back to the client, but I get a ListLoadException only in Eclipse, making my Grids to display nothing. Any hints please. Thanks.

Here is the "POST" request from firebug :


5|0|4|http://127.0.0.1:8888/sgpa/|D86D002A6B59CBE9301653AE5F09CB79|com.bitrunk.apps.sgpa.client.rpc.RemoteGateway|getQueuedPayment|1|2|3|4|0|


And here is the response from firebug (its usually not very readable) :


//OK[0,0,-135,0,-158,6,1.292785156096E12,7.92043904E8,11,46,27,31,27,66,27,33,27,33,30,29,28,27,3,22,26,-206,1,22,-11,65,23,1,22,0,0,0,1,87,-156,-137,1.2884901888E12,3.9638112E9,11,1,48,86,-152,0,0,85,84,5,4,7,4,62,47,27,33,27,7,30,29,28,27,46,27,31,27,3,22,26,-191,1,22,-11,45,23,1,22,2,83,60,27,33,27,2,30,29,28,27,46,27,31,27,0,1617862777,30,59,58,0,1617864183,30,59,58,2,2,57,56,27,4,22,26,55,23,1,22,0,82,81,-154,46,27,31,27,47,27,33,27,6,30,29,28,27,3,22,26,-161,1,22,-11,45,23,1,22,1,80,-156,39,1,79,6,1,25000,0,36,4,37,2,42,2,0,78,4,40,39,1,77,7,12,75000,0,36,4,37,33,0,36,4,35,34,27,33,27,48,30,29,28,27,32,27,31,27,3,22,26,-141,1,22,-11,24,23,1,22,76,0,75,74,0,73,48,-8,72,71,1.76093659136E11,3.960340864E9,11,0,4,0,0,10,-5,70,4,5,25000,4,3,0,0,0,0,69,68,1,0,4,67,0,-56,5,1.292785156096E12,7.92043904E8,11,66,27,33,27,46,27,31,27,35,30,29,28,27,3,22,26,-123,1,22,-11,65,23,1,22,0,0,0,1,64,-26,-4,1.2884901888E12,3.9638112E9,11,1,46,63,-22,-5,4,62,47,27,33,27,46,27,31,27,2,30,29,28,27,3,22,26,-109,1,22,-11,45,23,1,22,2,61,46,27,31,27,60,27,33,27,1,30,29,28,27,0,-1146234142,30,59,58,0,-774897842,30,59,58,0,-774893624,30,59,58,0,-774895030,30,59,58,0,-774896436,30,59,58,5,2,57,56,27,4,22,26,55,23,1,22,0,54,54,47,27,33,27,46,27,31,27,3,30,29,28,27,3,22,26,-73,1,22,-11,45,23,1,22,3,53,-26,39,1,52,3,355,50000,0,36,4,37,47,27,33,27,46,27,31,27,1,30,29,28,27,3,22,26,-59,1,22,-11,45,23,1,22,1,51,-26,39,1,50,1,1,18000,0,36,4,37,-24,47,27,33,27,5,30,29,28,27,46,27,31,27,3,22,26,-45,1,22,-11,45,23,1,22,5,49,-26,39,0,48,5,555,50000,0,36,4,37,47,27,33,27,46,27,31,27,4,30,29,28,27,3,22,26,-31,1,22,-11,45,23,1,22,4,44,-26,39,1,43,4,355,50000,0,36,4,37,5,42,1,18,41,4,40,39,1,38,2,15,50000,0,36,4,37,35,0,36,4,35,34,27,33,27,32,27,31,27,46,30,29,28,27,3,22,26,-10,1,22,0,25,24,23,1,22,21,0,20,19,18,17,46,0,0,16,15,1,4,14,13,12,1.03079215104E11,8.56384896E8,11,0,4,0,0,10,0,0,9,8,3,4,7,6,4,5,18000,4,3,2,2,1,["com.extjs.gxt.ui.client.data.BaseListLoadResult/756223242","java.util.ArrayList/3821976829","com.bitrunk.apps.sgpa.server.model.Payment/2558986174","rO0ABXcEAAAAAA==","com.bitrunk.apps.sgpa.server.model.Member/1228028655","569435943579","com.bitrunk.apps.sgpa.server.model.Bank/2059757383","firstbank","First Bank Plc","java.util.LinkedList/1060625595","java.sql.Date/3996530531","banyi@gmail.com","Blessing","com.bitrunk.apps.sgpa.server.model.Gender/2460919261","male","Male","Anyi","","577d6cb4-ebe","567457690579","4288df74-","java.util.HashMap/962170901","java.lang.String/2004016611","registrations","java.lang.Boolean/476441737","net.sf.gilead.pojo.gwt.collection.MapParameter/1940144086","net.sf.gilead.pojo.gwt.basic.StringParameter/2783524083","key","net.sf.gilead.pojo.gwt.basic.IntegerParameter/3421404974","java.lang.Integer/3438268394","class","org.hibernate.collection.PersistentBag","role","com.bitrunk.apps.sgpa.server.model.Member.registrations","com.bitrunk.apps.sgpa.server.model.ChartNode/2090702721","java.util.LinkedHashSet/3628722029","com.bitrunk.apps.sgpa.server.model.PkgLevel/1103763787","SAH-leve2","Chart Bound","com.bitrunk.apps.sgpa.server.model.SGPackage/3722195309","SAH","java.util.HashSet/1594477813","SAH-leve4","Saphire Level 4","chartHistory","org.hibernate.collection.PersistentSet","com.bitrunk.apps.sgpa.server.model.PkgLevel.chartHistory","SAH-leve5","Saphire Level 5","SAH-level1","Saphire Level 1","SAH-leve3","Saphire Level 3","Saphire","levels","idList","net.sf.gilead.pojo.gwt.collection.ListParameter/3890945144","net.sf.gilead.pojo.gwt.GwtSerializableId/4079459173","com.bitrunk.apps.sgpa.server.model.PkgLevel","com.bitrunk.apps.sgpa.server.model.SGPackage.levels","Saphire Level 2","com.bitrunk.apps.sgpa.server.model.Registration/325623446","SAH-4ac3db7b-1","576947","history","com.bitrunk.apps.sgpa.server.model.ChartNode.history","com.bitrunk.apps.sgpa.server.model.PaymentStatus/3706099108","payment-due","Due","6548943935944","omorodion@gmail.com","Hensly","Omorodion","ec487e65-e7d","64359347593","d1e7823f-","RBY-Level2","RBY","RBY-Level1","Ruby Level 1","Ruby","Ruby Executive","Ruby Level 2","zenithbank","Zenith Bank Plc","RBY-eb1a999f-6","5649837"],0,5]

sven
6 Jan 2011, 1:21 PM
The LoadEvent holds the real exception. Which one do you get there?

chalu
17 Jan 2011, 7:35 AM
Thanks sven, I was eventually able to resolve the issue, it was caused by a null pointer within a listener attached to the store. I guess it never showed up in Netbeans because it never allowed me to debug.