Unable to connect Couchbase Cloud Test Drive

java
connections
n1ql

#1

I am using Cloud Test drive Couchbase Enterprise Edition today. Signing up now for your free session on Google Cloud Platform. They are providing username, password and host but when I use those credentilas getting the following error…

Credentials:

username:
couchbase

password:
i5WWLXu-

serverAdminUrl:
http://35.185.206.88:8091/

syncGatewayAdminUrl:
http://35.233.214.35:4985/_admin/

Error:

Caused by: com.couchbase.client.deps.com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of com.couchbase.client.core.config.DefaultNodeInfo, problem: Could not analyze hostname from config.
at [Source: (String)"{“rev”:64,“name”:“app_metadata”,“uri”:"/pools/default/buckets/app_metadata?bucket_uuid=33cee42e0a7d203cf7b43eda4c934a50",“streamingUri”:"/pools/default/bucketsStreaming/app_metadata?bucket_uuid=33cee42e0a7d203cf7b43eda4c934a50",“nodes”:[{“couchApiBase”:"http://cb-1062-77732-td-server-vm-kt9c.c.couchbase-test-drive.internal:8092/app_metadata%2B33cee42e0a7d203cf7b43eda4c934a50",“hostname”:“cb-1062-77732-td-server-vm-kt9c.c.couchbase-test-drive.internal:8091”,“ports”:{“proxy”:11211,“direct”:11210}}"[truncated 8468 chars]; line: 1, column: 2277] (through reference chain: com.couchbase.client.core.config.DefaultCouchbaseBucketConfig[“nodes”]->java.util.ArrayList[0])
at com.couchbase.client.deps.com.fasterxml.jackson.databind.exc.InvalidDefinitionException.from(InvalidDefinitionException.java:67)
at com.couchbase.client.deps.com.fasterxml.jackson.databind.DeserializationContext.instantiationException(DeserializationContext.java:1608)
at com.couchbase.client.deps.com.fasterxml.jackson.databind.deser.std.StdValueInstantiator.wrapAsJsonMappingException(StdValueInstantiator.java:484)
at com.couchbase.client.deps.com.fasterxml.jackson.databind.deser.std.StdValueInstantiator.rewrapCtorProblem(StdValueInstantiator.java:503)
at com.couchbase.client.deps.com.fasterxml.jackson.databind.deser.std.StdValueInstantiator.createFromObjectWith(StdValueInstantiator.java:285)
at com.couchbase.client.deps.com.fasterxml.jackson.databind.deser.ValueInstantiator.createFromObjectWith(ValueInstantiator.java:229)
at com.couchbase.client.deps.com.fasterxml.jackson.databind.deser.impl.PropertyBasedCreator.build(PropertyBasedCreator.java:195)
at com.couchbase.client.deps.com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeUsingPropertyBased(BeanDeserializer.java:488)
at com.couchbase.client.deps.com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromObjectUsingNonDefault(BeanDeserializerBase.java:1287)
at com.couchbase.client.deps.com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:326)
at com.couchbase.client.deps.com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:159)
at com.couchbase.client.deps.com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:286)
at com.couchbase.client.deps.com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:245)
at com.couchbase.client.deps.com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:27)
at com.couchbase.client.deps.com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:530)
at com.couchbase.client.deps.com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeWithErrorWrapping(BeanDeserializer.java:528)
at com.couchbase.client.deps.com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeUsingPropertyBased(BeanDeserializer.java:417)
at com.couchbase.client.deps.com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromObjectUsingNonDefault(BeanDeserializerBase.java:1287)
at com.couchbase.client.deps.com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:326)
at com.couchbase.client.deps.com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeOther(BeanDeserializer.java:194)
at com.couchbase.client.deps.com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:161)
at com.couchbase.client.deps.com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer._deserializeTypedForId(AsPropertyTypeDeserializer.java:130)
at com.couchbase.client.deps.com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer.deserializeTypedFromObject(AsPropertyTypeDeserializer.java:97)
at com.couchbase.client.deps.com.fasterxml.jackson.databind.deser.AbstractDeserializer.deserializeWithType(AbstractDeserializer.java:254)
at com.couchbase.client.deps.com.fasterxml.jackson.databind.deser.impl.TypeWrappedDeserializer.deserialize(TypeWrappedDeserializer.java:68)
at com.couchbase.client.deps.com.fasterxml.jackson.databind.ObjectReader._bindAndClose(ObjectReader.java:1611)
at com.couchbase.client.deps.com.fasterxml.jackson.databind.ObjectReader.readValue(ObjectReader.java:1219)
at com.couchbase.client.core.config.parser.BucketConfigParser.parse(BucketConfigParser.java:53)
… 27 more
Caused by: com.couchbase.client.core.CouchbaseException: Could not analyze hostname from config.
at com.couchbase.client.core.config.DefaultNodeInfo.(DefaultNodeInfo.java:70)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.couchbase.client.deps.com.fasterxml.jackson.databind.introspect.AnnotatedConstructor.call(AnnotatedConstructor.java:124)
at com.couchbase.client.deps.com.fasterxml.jackson.databind.deser.std.StdValueInstantiator.createFromObjectWith(StdValueInstantiator.java:283)
… 50 more
Caused by: java.lang.IllegalArgumentException: Could not create NetworkAddress.
at com.couchbase.client.core.utils.NetworkAddress.(NetworkAddress.java:88)
at com.couchbase.client.core.utils.NetworkAddress.(NetworkAddress.java:93)
at com.couchbase.client.core.utils.NetworkAddress.create(NetworkAddress.java:100)
at com.couchbase.client.core.config.DefaultNodeInfo.(DefaultNodeInfo.java:68)
… 56 more
Caused by: java.net.UnknownHostException: cb-1062-77732-td-server-vm-kt9c.c.couchbase-test-drive.internal: Name or service not known
at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)
at java.net.InetAddress.getAllByName0(InetAddress.java:1276)
at java.net.InetAddress.getAllByName(InetAddress.java:1192)
at java.net.InetAddress.getAllByName(InetAddress.java:1126)
at com.couchbase.client.core.utils.NetworkAddress.(NetworkAddress.java:70)
… 59 more


#2

I can’t speak to the Cloud Test Drive side of things, but perhaps @anil can.

As to the Java error you’re seeing, it indicates the hostname is not accessible from where you’re running your Java application:
Caused by: java.net.UnknownHostException: cb-1062-77732-td-server-vm-kt9c.c.couchbase-test-drive.internal: Name or service not known

Can you run your Java application inside that environment?


#3

Thanks for your reply @ingenthr!, How can I run my application in that environment?

I used the couchbase credentials in my application but it didn’t get data from this bucket.


#4

I am not directly familiar with it. @anil can you help?