org.apache.hyracks.api.exceptions.HyracksDataException: com.couchbase.client.core.config.DefaultMemcachedBucketConfig cannot be cast to com.couchbase.client.core.config.CouchbaseBucketConfig

Couchbase JIRA | Mihir Kamdar | 3 months ago
  1. 0

    1. Create a memcached type of bucket 'test' on couchbase 2. On CBAS, create a bucket and dataset using the memcached bucket 'test'. That will work. create bucket test with {"bucket":"test","nodes":"10.111.151.101","password":""}; create shadow dataset test_dataset on test; 3. Now connect to bucket 'test'. connect bucket test; It fails with the following error: OnError while emitting onNext value: com.couchbase.client.core.message.cluster.GetClusterConfigResponse.class [OnErrorThrowable$OnNextValue] In the cc.log, the following error is seen - {code:java} Sep 14, 2016 9:51:06 PM org.apache.asterix.api.http.servlet.APIServlet doPost SEVERE: com.couchbase.client.core.config.DefaultMemcachedBucketConfig cannot be cast to com.couchbase.client.core.config.CouchbaseBucketConfig org.apache.hyracks.api.exceptions.HyracksDataException: com.couchbase.client.core.config.DefaultMemcachedBucketConfig cannot be cast to com.couchbase.client.core.config.CouchbaseBucketConfig at com.couchbase.analytics.lang.ConnectBucketStatement.handle(ConnectBucketStatement.java:235) at org.apache.asterix.app.translator.QueryTranslator.compileAndExecute(QueryTranslator.java:393) at org.apache.asterix.app.translator.QueryTranslator.compileAndExecute(QueryTranslator.java:265) at org.apache.asterix.api.http.servlet.APIServlet.doPost(APIServlet.java:132) at javax.servlet.http.HttpServlet.service(HttpServlet.java:755) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:845) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:583) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:224) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134) at org.eclipse.jetty.server.Server.handle(Server.java:524) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:319) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:253) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95) at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93) at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303) at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148) at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.ClassCastException: com.couchbase.client.core.config.DefaultMemcachedBucketConfig cannot be cast to com.couchbase.client.core.config.CouchbaseBucketConfig at com.couchbase.analytics.adapter.CouchbaseConnectorFactory$1.call(CouchbaseConnectorFactory.java:199) at com.couchbase.analytics.adapter.CouchbaseConnectorFactory$1.call(CouchbaseConnectorFactory.java:195) at rx.internal.operators.OnSubscribeMap$MapSubscriber.onNext(OnSubscribeMap.java:69) at rx.internal.operators.OperatorObserveOn$ObserveOnSubscriber.call(OperatorObserveOn.java:227) at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:55) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ... 1 more Caused by: rx.exceptions.OnErrorThrowable$OnNextValue: OnError while emitting onNext value: com.couchbase.client.core.message.cluster.GetClusterConfigResponse.class at rx.exceptions.OnErrorThrowable.addValueAsLastCause(OnErrorThrowable.java:109) at rx.internal.operators.OnSubscribeMap$MapSubscriber.onNext(OnSubscribeMap.java:73) ... 9 more Sep 14, 2016 9:51:17 PM org.apache.hyracks.control.common.dataset.ResultStateSweeper sweep INFO: Result state cleanup instance successfully completed. {code}

    Couchbase JIRA | 3 months ago | Mihir Kamdar
    org.apache.hyracks.api.exceptions.HyracksDataException: com.couchbase.client.core.config.DefaultMemcachedBucketConfig cannot be cast to com.couchbase.client.core.config.CouchbaseBucketConfig
  2. 0

    ParallelTest.testBackpressureViaSynchronousTake

    GitHub | 2 years ago | benjchristensen
    java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer
  3. 0

    Grammar: "No results was found."

    GitHub | 7 months ago | chadsimtap
    java.lang.IndexOutOfBoundsException: No results was found.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    NPE in getCachedMissingFromSearch

    GitHub | 3 years ago | samueltardieu
    java.lang.NullPointerException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. rx.exceptions.OnErrorThrowable$OnNextValue

      OnError while emitting onNext value: com.couchbase.client.core.message.cluster.GetClusterConfigResponse.class

      at rx.exceptions.OnErrorThrowable.addValueAsLastCause()
    2. rxjava
      ScheduledAction.run
      1. rx.exceptions.OnErrorThrowable.addValueAsLastCause(OnErrorThrowable.java:109)
      2. rx.internal.operators.OnSubscribeMap$MapSubscriber.onNext(OnSubscribeMap.java:73)
      3. rx.internal.operators.OperatorObserveOn$ObserveOnSubscriber.call(OperatorObserveOn.java:227)
      4. rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:55)
      4 frames
    3. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
      5. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      7. java.lang.Thread.run(Thread.java:745)
      7 frames