title: Getting not valid cursor error on jpa oracle sql developer
body: <p>I'm trying to update a field on a table using this JAVA method:</p>
  <pre><code>    @Query(value=&quot;UPDATE tableExample &quot;
          + &quot;SET tableExample.DTFINE = sysdate &quot; 
          + &quot;WHERE tableExample.prv = :idPrv AND tableExample.DTFINE IS NULL&quot;, nativeQuery=true)
          public void updateDtFine( Long idPrv);
  </code></pre>
  <p>But for some reason, I'm getting this error:</p>
  <pre><code>     ORA-01002: cursore non valido
       at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:494)
       at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:446)
       at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:1054)
       at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:623)
       at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:252)
       at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:612)
       at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:226)
       at oracle.jdbc.driver.T4CPreparedStatement.fetch(T4CPreparedStatement.java:1023)
       at oracle.jdbc.driver.OracleStatement.fetchMoreRows(OracleStatement.java:3353)
       at oracle.jdbc.driver.InsensitiveScrollableResultSet.fetchMoreRows(InsensitiveScrollableResultSet.java:736)
       at oracle.jdbc.driver.InsensitiveScrollableResultSet.absoluteInternal(InsensitiveScrollableResultSet.java:692)
       at oracle.jdbc.driver.InsensitiveScrollableResultSet.next(InsensitiveScrollableResultSet.java:406)
       at weblogic.jdbc.wrapper.ResultSet_oracle_jdbc_driver_ForwardOnlyResultSet.next(Unknown Source)
       at org.hibernate.loader.Loader.processResultSet(Loader.java:1004)
       at org.hibernate.loader.Loader.doQuery(Loader.java:964)
       at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:354)
       at org.hibernate.loader.Loader.doList(Loader.java:2815)
       ... 88 more
       Caused by: Error : 1002, Position : 0, Sql = UPDATE tableExample SET 
       tableExample.DTFINE = sysdate WHERE tableExample.prv = :1  AND tableExample.DTFINE 
       IS NULL, OriginalSql = UPDATE tableExample SET tableExample.DTFINE = sysdate WHERE 
       tableExample.prv = ? AND tableExample.DTFINE IS NULL, Error Msg = ORA-01002: 
       cursore non valido
  </code></pre>
  <p>I really don't understand why it's not working. I even tried the same update query directly on oracle sql developer</p>
  <pre><code>   UPDATE tableExample SET tableExample.DTFINE = sysdate WHERE tableExample.prv = 18 
     AND tableExample.DTFINE IS NULL
  </code></pre>
  <p>and it works with no errors.
  Is there something i'm missing? And what exactly means &quot;not valid cursor&quot;?</p>