title: Spring UncategorizedSQLException: ORA-01012
body: <p>I am trying to retrieve data form an Oracle database using jdbc (ojdbc14.jar). I have a limited number of concurrent connections when connecting to the database and these connections are managed by Websphere connection pool.</p>
  
  <p>Sometimes when I make the call I see an <code>UncategorizedSQLException</code> exception thrown in my logs with one of the following oracle codes: </p>
  
  <ul>
  <li>ORA-01012 (not logged in) exception</li>
  <li>ORA-17410 (connection timed out, socket empty), </li>
  <li>ORA-02396 exceeded maximum idle time, please connect again</li>
  </ul>
  
  <p>Other times I get no exceptions and it works fine.</p>
  
  <p>Anyone understand what might be happening here? </p>
  
  <p>In Websphere I have my cache statement size set to 10. Not sure if it is relevant in this situation, when it looks like the connection is being dropped.</p>