You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Dinkar Rao (JIRA)" <ji...@apache.org> on 2008/05/08 23:21:36 UTC
[jira] Created: (OPENJPA-596) ClassCastException during in-memory
update with Informix IDS 10.0
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
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.
[jira] Updated: (OPENJPA-596) ClassCastException during in-memory
update with Informix IDS 10.0
Posted by "Dinkar Rao (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENJPA-596?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dinkar Rao updated OPENJPA-596:
-------------------------------
Attachment: patch-596.txt
Patch gets the correct reference to FieldMetadata from the key, which is always of type PCPath.
> 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
> 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.
[jira] Commented: (OPENJPA-596) ClassCastException during in-memory
update with Informix IDS 10.0
Posted by "Patrick Linskey (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENJPA-596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12596160#action_12596160 ]
Patrick Linskey commented on OPENJPA-596:
-----------------------------------------
The attached patch adds a dependency from openjpa-kernel to openjpa-jdbc, which is not allowed.
> 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
> 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.
[jira] Resolved: (OPENJPA-596) ClassCastException during in-memory
update with Informix IDS 10.0
Posted by "Catalina Wei (JIRA)" <ji...@apache.org>.
[ 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.