Ok, so I'm writing a JSP front-end that opens up a Java class (well, multiple classes with inheritance), and gets a value from an Access database (just for test). anyway, I can print the value to the screen as many times as I want when copied to a variable, and I can pass it around inside the program, but the minute I attempt to return the String, it pukes out. Here's my code:
try
{
// Creates an entirely new object to avoid pointer errors
String result = new String( results.getString( "FIELD_NAME" ) );
// Works with just any number of sys-outs, just proving it's not
// an issue with accessing it multiple times
System.out.println( result );
System.out.println( result );
return result;
} // error catching stuff next...
So what's going on here, why am I getting this error? Thanks for your help!