Could be the problem of extracting the parameters from the request. what printStackTrace() is printed? Try to print "e" as it is when e.getMessage() is null. Debug would be the best option to find the exact problem you encountered.
No pain, No gain.
OCJP 1.6, Liferay Certified Developer 6.1