cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey (JIRA)" <>
Subject [jira] [Created] (CAY-2094) SelectById query doesn't work
Date Tue, 21 Jun 2016 13:46:57 GMT
Andrey created CAY-2094:

             Summary: SelectById query doesn't work
                 Key: CAY-2094
             Project: Cayenne
          Issue Type: Bug
          Components: ROP
    Affects Versions: 4.0.M3
         Environment: protostuff serialization module
            Reporter: Andrey

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(
	at org.apache.cayenne.query.SelectById.createReplacementQuery(
	at org.apache.cayenne.query.IndirectQuery.getReplacementQuery(
	at org.apache.cayenne.query.IndirectQuery.getMetaData(
	at org.apache.cayenne.access.ClientServerChannelQueryAction.<init>(

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

This message was sent by Atlassian JIRA

View raw message