Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-1452

EJBQL query scalar result is not supported on ROP client

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0
    • 3.0, 3.1M1
    • ROP
    • None

    Description

      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)

      Attachments

        Activity

          People

            andrus Andrus Adamchik
            ksenia Ksenia Khailenko
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: