<?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 Exception DocumentNotFoundException when use elasticsearch in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/exception-documentnotfoundexception-when-use-elasticsearch/m-p/327846#M14847</link>
    <description>&lt;P&gt;I get this exception on my Nuxeo LTS2015 (it used to work on my Nuxeo 5.8) .&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;2017-01-19 18:40:31,920 WARN [ajp-bio-0.0.0.0-9550-exec-14] [org.nuxeo.ecm.webengine.app.WebEngineExceptionMapper] Exception in JAX-RS processing org.nuxeo.ecm.core.api.DocumentNotFoundException: default at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession.getDocumentByUUID(SQLSession.java:171) at org.nuxeo.ecm.core.api.AbstractSession.resolveReference(AbstractSession.java:329) at org.nuxeo.ecm.core.api.AbstractSession.getLastDocumentVersion(AbstractSession.java:1585) at org.esupportail.ecm.versions.Main.resolve
  
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;my java code :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;    protected void resolve(String versionUid) {
        DocumentRef docRef = new IdRef(versionUid);
        CoreSession session = ctx.getCoreSession();
        DocumentModel doc = session.getLastDocumentVersion(docRef);
        ....
    
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;my  nuxeo.conf :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;elasticsearch.enabled=true
elasticsearch.indexName=xxxxxx
elasticsearch.addressList=host,host2,host3
elasticsearch.clusterName=UR1-ged
elasticsearch.indexNumberOfShards=5
elasticsearch.indexNumberOfReplicas=1
elasticsearch.override.pageproviders=default_search,document_content,section_content,document_content,tree_children,default_document_suggestion,simple_search,advanced_search,nxql_search,DEFAULT_DOCUMENT_SUGGESTION
elasticsearch.indexing.maxThreads=10
elasticsearch.reindex.bucketReadSize=1000
elasticsearch.reindex.bucketWriteSize=100
elasticsearch.adminCenter.displayClusterInfo=true
audit.elasticsearch.enabled=true
audit.elasticsearch.indexName=${elasticsearch.indexName}-audit
org.nuxeo.cmis.elasticsearch=true
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 08 Feb 2017 10:01:20 GMT</pubDate>
    <dc:creator>Henri_Jacob</dc:creator>
    <dc:date>2017-02-08T10:01:20Z</dc:date>
    <item>
      <title>Exception DocumentNotFoundException when use elasticsearch</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/exception-documentnotfoundexception-when-use-elasticsearch/m-p/327846#M14847</link>
      <description>&lt;P&gt;I get this exception on my Nuxeo LTS2015 (it used to work on my Nuxeo 5.8) .&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;2017-01-19 18:40:31,920 WARN [ajp-bio-0.0.0.0-9550-exec-14] [org.nuxeo.ecm.webengine.app.WebEngineExceptionMapper] Exception in JAX-RS processing org.nuxeo.ecm.core.api.DocumentNotFoundException: default at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession.getDocumentByUUID(SQLSession.java:171) at org.nuxeo.ecm.core.api.AbstractSession.resolveReference(AbstractSession.java:329) at org.nuxeo.ecm.core.api.AbstractSession.getLastDocumentVersion(AbstractSession.java:1585) at org.esupportail.ecm.versions.Main.resolve
  
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;my java code :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;    protected void resolve(String versionUid) {
        DocumentRef docRef = new IdRef(versionUid);
        CoreSession session = ctx.getCoreSession();
        DocumentModel doc = session.getLastDocumentVersion(docRef);
        ....
    
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;my  nuxeo.conf :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;elasticsearch.enabled=true
elasticsearch.indexName=xxxxxx
elasticsearch.addressList=host,host2,host3
elasticsearch.clusterName=UR1-ged
elasticsearch.indexNumberOfShards=5
elasticsearch.indexNumberOfReplicas=1
elasticsearch.override.pageproviders=default_search,document_content,section_content,document_content,tree_children,default_document_suggestion,simple_search,advanced_search,nxql_search,DEFAULT_DOCUMENT_SUGGESTION
elasticsearch.indexing.maxThreads=10
elasticsearch.reindex.bucketReadSize=1000
elasticsearch.reindex.bucketWriteSize=100
elasticsearch.adminCenter.displayClusterInfo=true
audit.elasticsearch.enabled=true
audit.elasticsearch.indexName=${elasticsearch.indexName}-audit
org.nuxeo.cmis.elasticsearch=true
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Feb 2017 10:01:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/exception-documentnotfoundexception-when-use-elasticsearch/m-p/327846#M14847</guid>
      <dc:creator>Henri_Jacob</dc:creator>
      <dc:date>2017-02-08T10:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Exception DocumentNotFoundException when use elasticsearch</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/exception-documentnotfoundexception-when-use-elasticsearch/m-p/327847#M14848</link>
      <description>&lt;P&gt;Could you code-format the log and conf as well, makes it easier to read. Since such posts are kept for a long time in the forum, future readers would benefit from it as well. Many thanks&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 14:00:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/exception-documentnotfoundexception-when-use-elasticsearch/m-p/327847#M14848</guid>
      <dc:creator>mathias_lin</dc:creator>
      <dc:date>2017-02-08T14:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Exception DocumentNotFoundException when use elasticsearch</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/exception-documentnotfoundexception-when-use-elasticsearch/m-p/327848#M14849</link>
      <description>&lt;P&gt;hello,
has someone an idea about this issue ?&lt;/P&gt;
&lt;P&gt;Regards,
Henri Jacob&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 13:34:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/exception-documentnotfoundexception-when-use-elasticsearch/m-p/327848#M14849</guid>
      <dc:creator>Henri_Jacob</dc:creator>
      <dc:date>2017-02-13T13:34:41Z</dc:date>
    </item>
  </channel>
</rss>

