cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CAY-1375) EJBQL with ROP: Fails to convert scalar results
Date Wed, 27 Jan 2010 09:23:34 GMT

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

Andrus Adamchik updated CAY-1375:
---------------------------------

    Fix Version/s: Short term future

> EJBQL with ROP: Fails to convert scalar results
> -----------------------------------------------
>
>                 Key: CAY-1375
>                 URL: https://issues.apache.org/jira/browse/CAY-1375
>             Project: Cayenne
>          Issue Type: Bug
>          Components: ROP
>    Affects Versions: 3.0RC2
>            Reporter: Ksenia Khailenko
>             Fix For: Short term future
>
>
> EJBQLQuery query = new EJBQLQuery("SELECT COUNT(a) FROM MtTable1 a");
> clientContext.performQuery(query);
> produces the stacktrace:
> java.lang.ClassCastException: java.lang.Long
> 	at org.apache.cayenne.access.ClientServerChannelQueryAction.toClientObjects(ClientServerChannelQueryAction.java:187)
> 	at org.apache.cayenne.access.ClientServerChannelQueryAction.interceptObjectConversion(ClientServerChannelQueryAction.java:162)
> 	at org.apache.cayenne.access.ClientServerChannelQueryAction.execute(ClientServerChannelQueryAction.java:69)
> 	at org.apache.cayenne.access.ClientServerChannel.onQuery(ClientServerChannel.java:55)
> 	at org.apache.cayenne.remote.service.DispatchHelper.dispatch(DispatchHelper.java:39)
> 	at org.apache.cayenne.remote.service.LocalConnection.doSendMessage(LocalConnection.java:125)
> 	at org.apache.cayenne.remote.BaseConnection.sendMessage(BaseConnection.java:72)
> 	at org.apache.cayenne.unit.UnitLocalConnection.sendMessage(UnitLocalConnection.java:49)
> 	at org.apache.cayenne.remote.ClientChannel.send(ClientChannel.java:290)
> 	at org.apache.cayenne.remote.ClientChannel.onQuery(ClientChannel.java:113)
> 	at org.apache.cayenne.util.ObjectContextQueryAction.runQuery(ObjectContextQueryAction.java:335)
> 	at org.apache.cayenne.util.ObjectContextQueryAction.execute(ObjectContextQueryAction.java:96)
> 	at org.apache.cayenne.CayenneContext.onQuery(CayenneContext.java:323)
> 	at org.apache.cayenne.CayenneContext.performQuery(CayenneContext.java:313)
> ...............

-- 
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