You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrey (JIRA)" <ji...@apache.org> on 2016/06/21 13:46:57 UTC
[jira] [Created] (CAY-2094) SelectById query doesn't work
Andrey created CAY-2094:
---------------------------
Summary: SelectById query doesn't work
Key: CAY-2094
URL: https://issues.apache.org/jira/browse/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(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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)