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

SelectById query doesn't work from ROP client with protostuff

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0.M3
    • 4.0.B1
    • ROP
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: