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

SelectById query doesn't work from ROP client with protostuff

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.M3
    • Fix Version/s: 4.0.B1
    • Component/s: ROP
    • Labels:
      None
    • Environment:
      protostuff serialization module

      Description

      I tried to execute this one on the client side:
      SelectById.query(Contact.class, 1).selectOne(context)

      and have got an exception on server side:
      Caused by: java.lang.NullPointerException
      at org.apache.cayenne.query.SelectById.resolveId(SelectById.java:324)
      at org.apache.cayenne.query.SelectById.createReplacementQuery(SelectById.java:297)
      at org.apache.cayenne.query.IndirectQuery.getReplacementQuery(IndirectQuery.java:98)
      at org.apache.cayenne.query.IndirectQuery.getMetaData(IndirectQuery.java:66)
      at org.apache.cayenne.access.ClientServerChannelQueryAction.<init>(ClientServerChannelQueryAction.java:59)

      Notice, SelectById.query(Contact.class, contact.objectId).selectOne(context) works well.

        Attachments

          Activity

            People

            • Assignee:
              ntimofeev Nikita Timofeev
              Reporter:
              Andrey Narut Andrey
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: