title: Spring BadSqlGrammarException
body: <p>I run my program and get the following exception: </p>
  
  <pre><code>Class: oracle.retail.stores.foundation.manager.data.DataException
  (Revision $Revision: /main/18 $) @896499272: org.springframework.jdbc.BadSqlGrammarException: 
  StatementCallback; bad SQL grammar [SELECT myschema.MY_SEQ.NEXTVAL FROM DUAL]; 
  nested exception is java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
  
  Transaction Name:                   [TransactionWriteDataTransaction]
  Error code:                         [0] [An unknown exception occurred.]
  Error code (extended):              [0]
  Description:                        [org.springframework.jdbc.BadSqlGrammarException: 
  StatementCallback; bad SQL grammar [SELECT myschema.MY_SEQ.NEXTVAL FROM DUAL]; 
  nested exception is java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist]
  </code></pre>
  
  <p>Running <code>SELECT myschema.MY_SEQ.NEXTVAL FROM DUAL</code> in SQL developer returns a record so I don't understand why exception is  <code>ORA-00942: table or view does not exist</code></p>