Exception DocumentNotFoundException when use elasticsearch

I get this exception on my Nuxeo LTS2015 (it used to work on my Nuxeo 5.8) .

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

my java code :

    protected void resolve(String versionUid) {
        DocumentRef docRef = new IdRef(versionUid);
        CoreSession session = ctx.getCoreSession();
        DocumentModel doc = session.getLastDocumentVersion(docRef);
        ....

my nuxeo.conf :

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
0 votes

1 answers

57 views

ANSWER

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 :)
02/08/2017



hello, has someone an idea about this issue ?

Regards, Henri Jacob

0 votes