Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I'm just trying to figure out a way to retrieve data from Couchbase. My connection seems to be ok but when i try to retrieve data it throws below error. Any guidance will be much appreciated.
Above shows connection ok.My Couchbase is a local server windows.
This is the error i get
Starting job jb_a at 09:13 29/10/2019. [statistics] connecting to socket on port 3497 [statistics] connected 2019-10-29 09:14:01|yl7hvL|yl7hvL|yl7hvL|1236|LOCAL_PROJECT|jb_a|_7_tgUPiiEemaUfmC2N9-Eg|0.1|Default||begin|| [statistics] disconnected Exception in thread "main" java.lang.NoClassDefFoundError: com/couchbase/client/java/env/CouchbaseEnvironment at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Unknown Source) at java.lang.Class.privateGetPublicMethods(Unknown Source) at java.lang.Class.getMethods(Unknown Source) at org.talend.sdk.component.runtime.manager.asm.ProxyGenerator.hasInterceptors(ProxyGenerator.java:503) at org.talend.sdk.component.runtime.manager.ComponentManager.handleProxy(ComponentManager.java:1080) at org.talend.sdk.component.runtime.manager.ComponentManager.access$1700(ComponentManager.java:186) at org.talend.sdk.component.runtime.manager.ComponentManager$Updater.lambda$onCreate$13(ComponentManager.java:1304) at java.util.stream.Collectors.lambda$toMap$58(Unknown Source) at java.util.stream.ReduceOps$3ReducingSink.accept(Unknown Source) at java.util.stream.ReferencePipeline$2$1.accept(Unknown Source) at java.util.LinkedList$LLSpliterator.forEachRemaining(Unknown Source) at java.util.stream.AbstractPipeline.copyInto(Unknown Source) at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source) at java.util.stream.AbstractPipeline.evaluate(Unknown Source) at java.util.stream.ReferencePipeline.collect(Unknown Source) at org.talend.sdk.component.runtime.manager.ComponentManager$Updater.onCreate(ComponentManager.java:1297) at org.talend.sdk.component.container.ContainerManager$ContainerBuilder.lambda$null$2(ContainerManager.java:411) at org.talend.sdk.component.container.ContainerManager.safeInvoke(ContainerManager.java:157) at org.talend.sdk.component.container.ContainerManager.access$1000(ContainerManager.java:63) at org.talend.sdk.component.container.ContainerManager$ContainerBuilder.lambda$create$3(ContainerManager.java:411) at java.util.stream.ReferencePipeline$2$1.accept(Unknown Source) at java.util.Spliterators$ArraySpliterator.forEachRemaining(Unknown Source) at java.util.stream.AbstractPipeline.copyInto(Unknown Source) at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source) at java.util.stream.AbstractPipeline.evaluate(Unknown Source) at java.util.stream.ReferencePipeline.collect(Unknown Source) at org.talend.sdk.component.container.ContainerManager$ContainerBuilder.create(ContainerManager.java:412) at org.talend.sdk.component.runtime.manager.ComponentManager.addPlugin(ComponentManager.java:812) at org.talend.sdk.component.runtime.manager.ComponentManager.autoDiscoverPlugins(ComponentManager.java:740) at local_project.jb_a_0_1.jb_a.CouchbaseInput_1Process(jb_a.java:672) at local_project.jb_a_0_1.jb_a.runJobInTOS(jb_a.java:3370) at local_project.jb_a_0_1.jb_a.main(jb_a.java:3208) Caused by: java.lang.ClassNotFoundException: com.couchbase.client.java.env.CouchbaseEnvironment at org.talend.sdk.component.classloader.ConfigurableClassLoader.loadClass(ConfigurableClassLoader.java:295) at java.lang.ClassLoader.loadClass(Unknown Source) ... 35 more Job jb_a ended at 09:14 29/10/2019. [exit code=1]
these are couchbase modules which are installed for couchbase
Regards,
G.Sujay.
Hi Sujay,
It appears this problem has already been fixed with a patch. However the patches are only available to subscription users. The fix will be in the next release (7.3.1). It will also be in the Milestone 3 release of 7.3.1 which should be here very soon
Regards
Richard
@fdenis i'm looking for Couchbase not CouchDB both are different
You may be missing a dependency. I am not a user of Couchbase, but have found this....
The supported and tested dependencies for this release are:
com.couchbase.client:java-client:2.7.4
com.couchbase.client:core-io:1.7.4
io.reactivex:rxjava:1.3.8
io.opentracing:opentracing-api:0.31.0
https://docs.couchbase.com/java-sdk/2.7/sdk-release-notes.html
@rhall thanks for info. I downloaded and added those jars but i still see same error. Can you try it out in your local and let me know. Even i'm not couchbase user but have a need now
I cannot reproduce this as I do not have access to a CouchBase database. However, I have raised this Jira (https://jira.talendforge.org/browse/TUP-25026). You should be able to follow it there.
Thanks @rhall much appreciated. I will follow that jira ticket. Just out of curiosity how long do you thing someone will close out Jira(on an average)
The more people vote for it, the quicker it will be looked at. R&D are pretty busy at the moment, so voting is important. You can sign up and vote for it
Cool @rhall makes sense. But i only see login button no sign-in if you would be kind enough to send sign-in link here.