title: Does anyone have a fix for the Glassfish RAR5031 System Exception?
body: <p>I have posted this question over on Java.net twice in the past year and never recieved a solution.</p>
  
  <p><a href="http://www.java.net/forum/topic/glassfish/glassfish/managed-connection-not-valid-phyiscal-connection-not-usabl" rel="nofollow">http://www.java.net/forum/topic/glassfish/glassfish/managed-connection-not-valid-phyiscal-connection-not-usabl</a></p>
  
  <p>If you google for RAR5031 you will find a page that basically says "Call Sun".</p>
  
  <p>This error occurs after doing a JNDI lookup to get a JDBC DataSource, the exception is thrown on:</p>
  
  <p>conn = dataSource.getConnection();</p>
  
  <p>I have tried implementing a retry one time algorithm and this works sometimes.</p>
  
  <p>This is on Glassfish 2.1.1 / Oracle 10g with the ojdbc6.jar file. Does anyone have any suggestions?</p>