users@glassfish.java.net

Re: Custom Realm function call problem

From: <glassfish_at_javadesktop.org>
Date: Wed, 05 Nov 2008 04:47:40 PST

Shame, shame on me. A simple Java error cost me one day (and night:-)

try{
   ....
   return result;
   }
catch(...){
   ....
   }
finally{
   ....
   return null;
   }

will always return null, regardless if the first return is reached correctly - didn't know that one.
[Message sent by forum member 'tipunch' (tipunch)]

http://forums.java.net/jive/thread.jspa?messageID=314987