java - Couchbase - getting "view_undefined" after accessing a newly created Production View -



java - Couchbase - getting "view_undefined" after accessing a newly created Production View -

i'm creating production view in couchbase using

httpfuture<boolean> asyncresult = client.asynccreatedesigndoc(designdocprod); boolean success = asyncresult.get();

(omitting "dev_" prefix design doc's name creates production view instead of dev view)

after checking success indeed equals true, seek access view using couchbaseclient.query(view, query) , next error:

server: unknown_error reason: view_undefined

(below total stack trace if neeeded)

if add together sleep of 5 seconds, works well...

anyone encountered issue? missing something?

thanks

eyal

full stack trace:

caused by: java.lang.runtimeexception: failed access view @ com.couchbase.client.couchbaseclient.query(couchbaseclient.java:871) . . caused by: java.util.concurrent.executionexception: operationexception: server: unknown_error reason: view_undefined @ com.couchbase.client.internal.httpfuture.waitforandcheckoperation(httpfuture.java:90) @ com.couchbase.client.internal.httpfuture.get(httpfuture.java:74) @ com.couchbase.client.internal.httpfuture.get(httpfuture.java:64) @ com.couchbase.client.couchbaseclient.query(couchbaseclient.java:864) ... 54 more caused by: operationexception: server: unknown_error reason: view_undefined @ com.couchbase.client.protocol.views.nodocsoperationimpl.parseerror(nodocsoperationimpl.java:106) @ com.couchbase.client.protocol.views.viewoperationimpl.handleresponse(viewoperationimpl.java:68) @ com.couchbase.client.viewnode$myhttprequestexecutionhandler.handleresponse(viewnode.java:204) @ org.apache.http.nio.protocol.asyncnhttpclienthandler.processresponse(asyncnhttpclienthandler.java:417) @ org.apache.http.nio.protocol.asyncnhttpclienthandler.inputready(asyncnhttpclienthandler.java:242) @ com.couchbase.client.http.asyncconnectionmanager$managedclienthandler.inputready(asyncconnectionmanager.java:249) @ org.apache.http.impl.nio.defaultnhttpclientconnection.consumeinput(defaultnhttpclientconnection.java:172) @ org.apache.http.impl.nio.defaultclientioeventdispatch.inputready(defaultclientioeventdispatch.java:155) @ org.apache.http.impl.nio.reactor.baseioreactor.readable(baseioreactor.java:161) @ org.apache.http.impl.nio.reactor.abstractioreactor.processevent(abstractioreactor.java:335) @ org.apache.http.impl.nio.reactor.abstractioreactor.processevents(abstractioreactor.java:315) @ org.apache.http.impl.nio.reactor.abstractioreactor.execute(abstractioreactor.java:275) @ org.apache.http.impl.nio.reactor.baseioreactor.execute(baseioreactor.java:104) @ org.apache.http.impl.nio.reactor.abstractmultiworkerioreactor$worker.run(abstractmultiworkerioreactor.java:542) @ java.lang.thread.run(thread.java:662)

java view couchbase

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -