Can someone explain why I can call a MYSQL stored Procedure in iReport and it works fine, but when I call the function in my web app I get a SQL error stating can't return ResultSet in given context. I am using the same calls as the iReport fillReport is using. Is there some kind of flag I need to set?