You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Ksenia Khailenko (JIRA)" <ji...@apache.org> on 2010/06/22 16:15:56 UTC
[jira] Created: (CAY-1452) EJBQL query scalar result is not
supported
EJBQL query scalar result is not supported
------------------------------------------
Key: CAY-1452
URL: https://issues.apache.org/jira/browse/CAY-1452
Project: Cayenne
Issue Type: Bug
Components: ROP
Affects Versions: 3.0
Reporter: Ksenia Khailenko
Priority: Minor
Fix For: 3.0
On EJBQL query from the client:"Select count(a) from Artist a", there is failed:
[java] java.lang.ClassCastException: java.lang.Long cannot be cast to org.apache.cayenne.Persistent
[java] at org.apache.cayenne.access.ClientServerChannelQueryAction.toClientObjects(ClientServerChannelQueryAction.java:187)
[java] at org.apache.cayenne.access.ClientServerChannelQueryAction.interceptObjectConversion(ClientServerChannelQueryAction.java:162)
[java] at org.apache.cayenne.access.ClientServerChannelQueryAction.execute(ClientServerChannelQueryAction.java:69)
[java] at org.apache.cayenne.access.ClientServerChannel.onQuery(ClientServerChannel.java:81)
[java] at org.apache.cayenne.remote.service.DispatchHelper.dispatch(DispatchHelper.java:39)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CAY-1452) EJBQL query scalar result is not
supported
Posted by "Ksenia Khailenko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAY-1452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ksenia Khailenko updated CAY-1452:
----------------------------------
Attachment: CAY-1452.Fixed-the-lists-duplication.patch
> EJBQL query scalar result is not supported
> ------------------------------------------
>
> Key: CAY-1452
> URL: https://issues.apache.org/jira/browse/CAY-1452
> Project: Cayenne
> Issue Type: Bug
> Components: ROP
> Affects Versions: 3.0
> Reporter: Ksenia Khailenko
> Priority: Minor
> Fix For: 3.0
>
> Attachments: CAY-1452.-Fixed-the-non-supported-scalar-and-mixed-results.patch, CAY-1452.Fixed-the-lists-duplication.patch, CAY-1452.Fixed-the-non-supported-scalar-result-at-EJBQL-query.patch, CAY-1452.Non-supported-results-fix-with-new-client-conversion.patch
>
>
> On EJBQL query from the client:"Select count(a) from Artist a", there is failed:
> [java] java.lang.ClassCastException: java.lang.Long cannot be cast to org.apache.cayenne.Persistent
> [java] at org.apache.cayenne.access.ClientServerChannelQueryAction.toClientObjects(ClientServerChannelQueryAction.java:187)
> [java] at org.apache.cayenne.access.ClientServerChannelQueryAction.interceptObjectConversion(ClientServerChannelQueryAction.java:162)
> [java] at org.apache.cayenne.access.ClientServerChannelQueryAction.execute(ClientServerChannelQueryAction.java:69)
> [java] at org.apache.cayenne.access.ClientServerChannel.onQuery(ClientServerChannel.java:81)
> [java] at org.apache.cayenne.remote.service.DispatchHelper.dispatch(DispatchHelper.java:39)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (CAY-1452) EJBQL query scalar result is not
supported
Posted by "Andrus Adamchik (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAY-1452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrus Adamchik closed CAY-1452.
--------------------------------
Assignee: Andrus Adamchik
Fix Version/s: 3.1M1
Resolution: Fixed
Xenia, I applied the latest patch. It looks great. The only thing I changed (aside from some formatting and variable renaming) is ClientServerChannelQueryAction.processMixedResult - this one should also clone the list IMO (same logic as "singleObjectConversion" method).
Now porting the patch to 3.1.....
> EJBQL query scalar result is not supported
> ------------------------------------------
>
> Key: CAY-1452
> URL: https://issues.apache.org/jira/browse/CAY-1452
> Project: Cayenne
> Issue Type: Bug
> Components: ROP
> Affects Versions: 3.0
> Reporter: Ksenia Khailenko
> Assignee: Andrus Adamchik
> Priority: Minor
> Fix For: 3.1M1, 3.0
>
> Attachments: CAY-1452.-Fixed-the-non-supported-scalar-and-mixed-results.patch, CAY-1452.Fixed-the-lists-duplication.patch, CAY-1452.Fixed-the-non-supported-scalar-result-at-EJBQL-query.patch, CAY-1452.Non-supported-results-fix-with-new-client-conversion.patch
>
>
> On EJBQL query from the client:"Select count(a) from Artist a", there is failed:
> [java] java.lang.ClassCastException: java.lang.Long cannot be cast to org.apache.cayenne.Persistent
> [java] at org.apache.cayenne.access.ClientServerChannelQueryAction.toClientObjects(ClientServerChannelQueryAction.java:187)
> [java] at org.apache.cayenne.access.ClientServerChannelQueryAction.interceptObjectConversion(ClientServerChannelQueryAction.java:162)
> [java] at org.apache.cayenne.access.ClientServerChannelQueryAction.execute(ClientServerChannelQueryAction.java:69)
> [java] at org.apache.cayenne.access.ClientServerChannel.onQuery(ClientServerChannel.java:81)
> [java] at org.apache.cayenne.remote.service.DispatchHelper.dispatch(DispatchHelper.java:39)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CAY-1452) EJBQL query scalar result is not
supported
Posted by "Ksenia Khailenko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAY-1452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ksenia Khailenko updated CAY-1452:
----------------------------------
Attachment: CAY-1452.-Fixed-the-non-supported-scalar-and-mixed-results.patch
> EJBQL query scalar result is not supported
> ------------------------------------------
>
> Key: CAY-1452
> URL: https://issues.apache.org/jira/browse/CAY-1452
> Project: Cayenne
> Issue Type: Bug
> Components: ROP
> Affects Versions: 3.0
> Reporter: Ksenia Khailenko
> Priority: Minor
> Fix For: 3.0
>
> Attachments: CAY-1452.-Fixed-the-non-supported-scalar-and-mixed-results.patch, CAY-1452.Fixed-the-non-supported-scalar-result-at-EJBQL-query.patch
>
>
> On EJBQL query from the client:"Select count(a) from Artist a", there is failed:
> [java] java.lang.ClassCastException: java.lang.Long cannot be cast to org.apache.cayenne.Persistent
> [java] at org.apache.cayenne.access.ClientServerChannelQueryAction.toClientObjects(ClientServerChannelQueryAction.java:187)
> [java] at org.apache.cayenne.access.ClientServerChannelQueryAction.interceptObjectConversion(ClientServerChannelQueryAction.java:162)
> [java] at org.apache.cayenne.access.ClientServerChannelQueryAction.execute(ClientServerChannelQueryAction.java:69)
> [java] at org.apache.cayenne.access.ClientServerChannel.onQuery(ClientServerChannel.java:81)
> [java] at org.apache.cayenne.remote.service.DispatchHelper.dispatch(DispatchHelper.java:39)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CAY-1452) EJBQL query scalar result is not
supported
Posted by "Ksenia Khailenko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAY-1452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ksenia Khailenko updated CAY-1452:
----------------------------------
Attachment: CAY-1452.Fixed-the-non-supported-scalar-result-at-EJBQL-query.patch
> EJBQL query scalar result is not supported
> ------------------------------------------
>
> Key: CAY-1452
> URL: https://issues.apache.org/jira/browse/CAY-1452
> Project: Cayenne
> Issue Type: Bug
> Components: ROP
> Affects Versions: 3.0
> Reporter: Ksenia Khailenko
> Priority: Minor
> Fix For: 3.0
>
> Attachments: CAY-1452.Fixed-the-non-supported-scalar-result-at-EJBQL-query.patch
>
>
> On EJBQL query from the client:"Select count(a) from Artist a", there is failed:
> [java] java.lang.ClassCastException: java.lang.Long cannot be cast to org.apache.cayenne.Persistent
> [java] at org.apache.cayenne.access.ClientServerChannelQueryAction.toClientObjects(ClientServerChannelQueryAction.java:187)
> [java] at org.apache.cayenne.access.ClientServerChannelQueryAction.interceptObjectConversion(ClientServerChannelQueryAction.java:162)
> [java] at org.apache.cayenne.access.ClientServerChannelQueryAction.execute(ClientServerChannelQueryAction.java:69)
> [java] at org.apache.cayenne.access.ClientServerChannel.onQuery(ClientServerChannel.java:81)
> [java] at org.apache.cayenne.remote.service.DispatchHelper.dispatch(DispatchHelper.java:39)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CAY-1452) EJBQL query scalar result is not
supported
Posted by "Ksenia Khailenko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAY-1452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ksenia Khailenko updated CAY-1452:
----------------------------------
Attachment: CAY-1452.Non-supported-results-fix-with-new-client-conversion.patch
> EJBQL query scalar result is not supported
> ------------------------------------------
>
> Key: CAY-1452
> URL: https://issues.apache.org/jira/browse/CAY-1452
> Project: Cayenne
> Issue Type: Bug
> Components: ROP
> Affects Versions: 3.0
> Reporter: Ksenia Khailenko
> Priority: Minor
> Fix For: 3.0
>
> Attachments: CAY-1452.-Fixed-the-non-supported-scalar-and-mixed-results.patch, CAY-1452.Fixed-the-non-supported-scalar-result-at-EJBQL-query.patch, CAY-1452.Non-supported-results-fix-with-new-client-conversion.patch
>
>
> On EJBQL query from the client:"Select count(a) from Artist a", there is failed:
> [java] java.lang.ClassCastException: java.lang.Long cannot be cast to org.apache.cayenne.Persistent
> [java] at org.apache.cayenne.access.ClientServerChannelQueryAction.toClientObjects(ClientServerChannelQueryAction.java:187)
> [java] at org.apache.cayenne.access.ClientServerChannelQueryAction.interceptObjectConversion(ClientServerChannelQueryAction.java:162)
> [java] at org.apache.cayenne.access.ClientServerChannelQueryAction.execute(ClientServerChannelQueryAction.java:69)
> [java] at org.apache.cayenne.access.ClientServerChannel.onQuery(ClientServerChannel.java:81)
> [java] at org.apache.cayenne.remote.service.DispatchHelper.dispatch(DispatchHelper.java:39)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CAY-1452) EJBQL query scalar result is not
supported on ROP client
Posted by "Andrus Adamchik (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAY-1452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrus Adamchik updated CAY-1452:
---------------------------------
Summary: EJBQL query scalar result is not supported on ROP client (was: EJBQL query scalar result is not supported)
> EJBQL query scalar result is not supported on ROP client
> --------------------------------------------------------
>
> Key: CAY-1452
> URL: https://issues.apache.org/jira/browse/CAY-1452
> Project: Cayenne
> Issue Type: Bug
> Components: ROP
> Affects Versions: 3.0
> Reporter: Ksenia Khailenko
> Assignee: Andrus Adamchik
> Priority: Minor
> Fix For: 3.0, 3.1M1
>
> Attachments: CAY-1452.-Fixed-the-non-supported-scalar-and-mixed-results.patch, CAY-1452.Fixed-the-lists-duplication.patch, CAY-1452.Fixed-the-non-supported-scalar-result-at-EJBQL-query.patch, CAY-1452.Non-supported-results-fix-with-new-client-conversion.patch
>
>
> On EJBQL query from the client:"Select count(a) from Artist a", there is failed:
> [java] java.lang.ClassCastException: java.lang.Long cannot be cast to org.apache.cayenne.Persistent
> [java] at org.apache.cayenne.access.ClientServerChannelQueryAction.toClientObjects(ClientServerChannelQueryAction.java:187)
> [java] at org.apache.cayenne.access.ClientServerChannelQueryAction.interceptObjectConversion(ClientServerChannelQueryAction.java:162)
> [java] at org.apache.cayenne.access.ClientServerChannelQueryAction.execute(ClientServerChannelQueryAction.java:69)
> [java] at org.apache.cayenne.access.ClientServerChannel.onQuery(ClientServerChannel.java:81)
> [java] at org.apache.cayenne.remote.service.DispatchHelper.dispatch(DispatchHelper.java:39)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.