"PRK", you need to do step-by-step debugging to see what the last command executed successfully was and which command breaks. I have gotten this extremely clueless message for several things (and it doesn't say why). You will get it if you try to pass a null value to a putString, so you need to code for that:
String name = {get the name here};
if (name == null)
name = ""; // or something to that effect
request.putString("appName", name);
I've also gotten the message when my poral is expecting a certain number of objects based on the number of items supposedly loaded but no one thought to ensure that one of the values was not null before handing the process over to me.
And in case you don't know, step-by-step mode is automatic when you first start debug. Take advantage of it. It may be painstaking, but it's a heck of a lot easier hitting F5 thru everything than sitting and staring at code trying to figure out which line in the thousands is causing the problem. It takes a lot less time, too.
Good luck.