I am connecting to a Java Servlet using jquerys' ajax method. Within the get method of the servlet I am calling two methods one on each of two beans but when I add the second I get this error:

GET http://localhost:8080/mazeWeb/maze/View/maze/1001 500 (Internal Server Error) jquery.js:4
l.cors.a.crossDomain.send jquery.js:4
o.extend.ajax jquery.js:4
(anonymous function)
Both of the methods generate xml and both of the beans are on the same server. Can any one tell me why this error is occurring?