<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CMIS Query with a  &amp;quot;null predicate&amp;quot; containing a &amp;quot;multi-valued-column reference&amp;quot; throws exception in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/cmis-query-with-a-quot-null-predicate-quot-containing-a-quot/m-p/325766#M12767</link>
    <description>&lt;P&gt;See [NXP-12642][1]&lt;/P&gt;</description>
    <pubDate>Mon, 30 Sep 2013 13:09:56 GMT</pubDate>
    <dc:creator>rg1_</dc:creator>
    <dc:date>2013-09-30T13:09:56Z</dc:date>
    <item>
      <title>CMIS Query with a  "null predicate" containing a "multi-valued-column reference" throws exception</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/cmis-query-with-a-quot-null-predicate-quot-containing-a-quot/m-p/325764#M12765</link>
      <description>&lt;P&gt;A CMIS Query with a "null predicate" containing a "multi-valued-column reference" throws an exception. A sample query that demonstrates the problem is listed below as is the exception stack trace. Please confirm this is a bug that I should record in JIRA.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;SELECT cmis:objectId FROM cmis:document WHERE dc:subjects IS NOT NULL
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Stack trace:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;curl -u Administrator:Administrator "http://demo.nuxeo.com/nuxeo/atom/cmis/default/query?q=SELECT+cmis:objectId+FROM+cmis:document+WHERE+dc:subjects+IS+NOT+NULL&amp;amp;searchAllVersions=true&amp;amp;includeRelationships=none"
org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: Failed to execute query: CMISQL: SELECT cmis:objectId FROM cmis:document WHERE dc:subjects IS NOT NULL: ERROR: missing FROM-clause entry for table "dc_subjects"
Position: 331
    at org.nuxeo.ecm.core.opencmis.impl.server.NuxeoCmisService.query(NuxeoCmisService.java:1342)
    ...
Caused by: org.nuxeo.ecm.core.api.ClientException: Failed to execute query: CMISQL: SELECT cmis:objectId FROM cmis:document WHERE dc:subjects IS NOT NULL: ERROR: missing FROM-clause entry for table "dc_subjects"
Position: 331
    at org.nuxeo.ecm.core.api.AbstractSession.queryAndFetch(AbstractSession.java:1672)
    at sun.reflect.GeneratedMethodAccessor286.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.nuxeo.ecm.core.api.TransactionalCoreSessionWrapper.invoke(TransactionalCoreSessionWrapper.java:136)
    at com.sun.proxy.$Proxy177.queryAndFetch(Unknown Source)
    at org.nuxeo.ecm.core.opencmis.impl.server.NuxeoCmisService.query(NuxeoCmisService.java:1295)
    ... 57 more
Caused by: org.nuxeo.ecm.core.query.QueryException: Invalid query: CMISQL: SELECT cmis:objectId FROM cmis:document WHERE dc:subjects IS NOT NULL
    at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession$SQLSessionQuery.executeAndFetch(SQLSession.java:613)
    at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession.queryAndFetch(SQLSession.java:527)
    at org.nuxeo.ecm.core.api.AbstractSession.queryAndFetch(AbstractSession.java:1667)
    ... 63 more
Caused by: org.nuxeo.ecm.core.storage.StorageException: Invalid query: CMISQL: SELECT cmis:objectId FROM cmis:document WHERE dc:subjects IS NOT NULL
    at org.nuxeo.ecm.core.storage.sql.jdbc.JDBCMapper.queryAndFetch(JDBCMapper.java:898)
    at org.nuxeo.ecm.core.storage.sql.SoftRefCachingMapper.queryAndFetch(SoftRefCachingMapper.java:107)
    at org.nuxeo.ecm.core.storage.sql.SessionImpl.queryAndFetch(SessionImpl.java:1209)
    at org.nuxeo.ecm.core.storage.sql.ra.ConnectionImpl.queryAndFetch(ConnectionImpl.java:354)
    at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession$SQLSessionQuery.executeAndFetch(SQLSession.java:610)
    ... 65 more
Caused by: org.postgresql.util.PSQLException: ERROR: missing FROM-clause entry for table "dc_subjects"
Position: 331
    at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2157)
    at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1886)
    at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:255)
    at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:555)
    at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:417)
    at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:302)
    at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
    at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
    at org.nuxeo.ecm.core.storage.sql.jdbc.ResultSetQueryResult.&amp;lt;init&amp;gt;(ResultSetQueryResult.java:74)
    at org.nuxeo.ecm.core.storage.sql.jdbc.JDBCMapper.queryAndFetch(JDBCMapper.java:894)
    ... 69 more
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Sep 2013 22:02:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/cmis-query-with-a-quot-null-predicate-quot-containing-a-quot/m-p/325764#M12765</guid>
      <dc:creator>rg1_</dc:creator>
      <dc:date>2013-09-27T22:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS Query with a  "null predicate" containing a "multi-valued-column reference" throws exception</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/cmis-query-with-a-quot-null-predicate-quot-containing-a-quot/m-p/325765#M12766</link>
      <description>&lt;P&gt;I believe it's a bug but on the other hand the current code is not intended to work with null predicates and multi-valued properties. I'm not sure we can find an efficient way to do that. Please open a JIRA anyway.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2013 11:57:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/cmis-query-with-a-quot-null-predicate-quot-containing-a-quot/m-p/325765#M12766</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2013-09-30T11:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS Query with a  "null predicate" containing a "multi-valued-column reference" throws exception</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/cmis-query-with-a-quot-null-predicate-quot-containing-a-quot/m-p/325766#M12767</link>
      <description>&lt;P&gt;See [NXP-12642][1]&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2013 13:09:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/cmis-query-with-a-quot-null-predicate-quot-containing-a-quot/m-p/325766#M12767</guid>
      <dc:creator>rg1_</dc:creator>
      <dc:date>2013-09-30T13:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS Query with a  "null predicate" containing a "multi-valued-column reference" throws exception</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/cmis-query-with-a-quot-null-predicate-quot-containing-a-quot/m-p/325767#M12768</link>
      <description>&lt;P&gt;Added a comment to NXP-12642.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2013 15:39:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/cmis-query-with-a-quot-null-predicate-quot-containing-a-quot/m-p/325767#M12768</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2013-09-30T15:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS Query with a  "null predicate" containing a "multi-valued-column reference" throws exception</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/cmis-query-with-a-quot-null-predicate-quot-containing-a-quot/m-p/325768#M12769</link>
      <description>&lt;P&gt;Yes, thanks for the clarification.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2013 17:55:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/cmis-query-with-a-quot-null-predicate-quot-containing-a-quot/m-p/325768#M12769</guid>
      <dc:creator>rg1_</dc:creator>
      <dc:date>2013-09-30T17:55:16Z</dc:date>
    </item>
  </channel>
</rss>

