I created this program that from Java calls perl methods on a webserver. Everything works fine until it execute this one method that makes a call to a database. I've test the other perl subroutines and this is the only one that is causing problems.

If I run the method on the web server using 'perl module_name.pm', everything works fine, But whenever I call it in Java, I always get a 'org.apache.xmlrpc.XmlRpcException: Invalid fault response'.