openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Catalina Wei (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (OPENJPA-596) ClassCastException during in-memory update with Informix IDS 10.0
Date Thu, 22 May 2008 16:03:55 GMT

     [ https://issues.apache.org/jira/browse/OPENJPA-596?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Catalina Wei resolved OPENJPA-596.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.2.0

fixed under svn r658541.

> ClassCastException during in-memory update with Informix IDS 10.0 
> ------------------------------------------------------------------
>
>                 Key: OPENJPA-596
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-596
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: query
>            Reporter: Dinkar Rao
>             Fix For: 1.2.0
>
>         Attachments: patch-596.txt
>
>
> With Informix IDS 10.0, running this update statement:
> update Customer as c set c.creditRating=:newRating  where c.creditRating=:oldRating
> gives the CCE pasted below, when records matching the predicate are found. 
> Exception: <openjpa-0.0.0-rnull nonfatal user error> org.apache.openjpa.persistence.ArgumentException:
org.apache.openjpa.jdbc.kernel.exps.PCPath
> <openjpa-0.0.0-rnull nonfatal user error> org.apache.openjpa.persistence.ArgumentException:
org.apache.openjpa.jdbc.kernel.exps.PCPath
> 	at org.apache.openjpa.kernel.QueryImpl.updateInMemory(QueryImpl.java:1055)
> 	at org.apache.openjpa.kernel.ExpressionStoreQuery$DataStoreExecutor.executeUpdate(ExpressionStoreQuery.java:697)
> 	at org.apache.openjpa.kernel.QueryImpl.update(QueryImpl.java:1038)
> 	at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:851)
> 	at org.apache.openjpa.kernel.QueryImpl.updateAll(QueryImpl.java:887)
> 	at org.apache.openjpa.kernel.DelegatingQuery.updateAll(DelegatingQuery.java:581)
> 	at org.apache.openjpa.persistence.QueryImpl.executeUpdate(QueryImpl.java:336)
> 	at demo.TestPDQSample.findGetSetCustomer(TestPDQSample.java:303)
> 	at demo.TestPDQSample.findGetSetObjects(TestPDQSample.java:206)
> 	at demo.TestPDQSample.testPersistenceUnit(TestPDQSample.java:65)
> 	at demo.TestPDQSample.main(TestPDQSample.java:41)
> Caused by: java.lang.ClassCastException: org.apache.openjpa.jdbc.kernel.exps.PCPath
> 	at org.apache.openjpa.kernel.QueryImpl.updateInMemory(QueryImpl.java:1069)
> 	at org.apache.openjpa.kernel.QueryImpl.updateInMemory(QueryImpl.java:1050)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message