You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Srinivasa (JIRA)" <ji...@apache.org> on 2008/02/14 22:05:09 UTC
[jira] Updated: (OPENJPA-516) Exceptions when persisting Entities
with fields map to NVARCHAR columns
[ https://issues.apache.org/jira/browse/OPENJPA-516?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Srinivasa updated OPENJPA-516:
------------------------------
Attachment: testcase.zip
> Exceptions when persisting Entities with fields map to NVARCHAR columns
> -----------------------------------------------------------------------
>
> Key: OPENJPA-516
> URL: https://issues.apache.org/jira/browse/OPENJPA-516
> Project: OpenJPA
> Issue Type: Bug
> Components: jdbc
> Affects Versions: 1.0.0, 1.0.1, 1.0.2
> Environment: Test run on windows against Oracle
> Reporter: Srinivasa
> Attachments: testcase.zip
>
>
> 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)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.