Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-516

Exceptions when persisting Entities with fields map to NVARCHAR columns

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0, 1.0.1, 1.0.2
    • 1.1.0
    • jdbc
    • None
    • Test run on windows against Oracle

    Description

      Attempting to persist the entity results in a SQLException. Appears that the value for the NVARCHAR column is not being set.

      Caused by: org.apache.openjpa.lib.jdbc.ReportingSQLException: Missing IN or OUT parameter at index:: 2

      {prepstmnt 22481221 INSERT INTO Holder (id, STRING_FIELD) VALUES (?, ?) [params=(long) 51]}

      [code=17041, state=null]
      at org.apache.openjpa.lib.jdbc.LoggingConnectionDecorator.wrap(LoggingConnectionDecorator.java:192)
      at org.apache.openjpa.lib.jdbc.LoggingConnectionDecorator.access$800(LoggingConnectionDecorator.java:57)
      at org.apache.openjpa.lib.jdbc.LoggingConnectionDecorator$LoggingConnection$LoggingPreparedStatement.executeUpdate(LoggingConnectionDecorator.java:858)
      at org.apache.openjpa.lib.jdbc.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:269)
      at org.apache.openjpa.jdbc.kernel.JDBCStoreManager$CancelPreparedStatement.executeUpdate(JDBCStoreManager.java:1363)
      at org.apache.openjpa.jdbc.kernel.PreparedStatementManagerImpl.flushInternal(PreparedStatementManagerImpl.java:97)

      Attachments

        1. testcase.zip
          1 kB
          Srinivasa Segu

        Activity

          People

            ssegu Srinivasa Segu
            ssegu Srinivasa Segu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: