Can't start Couchbase service and Websphere commerce server at same time


#1

I am integrating Couchbase with Websphere commerce version 7 FEP8. We are going to use couchbase to cache price. I have installed couchbase locally in my machine. I also have Websphere commerce installed locally in my machine. Now both are going to share localhost i.e. 127.0.0.1 ip address.
Now if i start couch base service , I am not able to start my commerce server. I am getting below exception:
org.omg.CORBA.INTERNAL: CREATE_LISTENER_FAILED_4 vmcid: 0x49421000 minor code: 56 completed: No
at com.ibm.ws.orbimpl.transport.WSTransport.createListener(WSTransport.java:866)
at com.ibm.ws.orbimpl.transport.WSTransport.initTransports(WSTransport.java:604)
at com.ibm.rmi.iiop.TransportManager.initTransports(TransportManager.java:147)
at com.ibm.rmi.corba.ORB.set_parameters(ORB.java:1300)
at com.ibm.CORBA.iiop.ORB.set_parameters(ORB.java:1687)
at org.omg.CORBA.ORB.init(ORB.java:364)
at com.ibm.ws.orb.GlobalORBFactory.init(GlobalORBFactory.java:92)
at com.ibm.ejs.oa.EJSORBImpl.initializeORB(EJSORBImpl.java:179)
at com.ibm.ejs.oa.EJSServerORBImpl.(EJSServerORBImpl.java:102)
at com.ibm.ejs.oa.EJSORB.init(EJSORB.java:55)
at com.ibm.ws.runtime.component.ORBImpl.start(ORBImpl.java:431)
And if I start commerce server first and then start Couchbase service then I am getting below error:
[12/2/15 12:39:32:177 EST] 00000031 Endpoint W com.couchbase.client.core.logging.Slf4JLogger warn [null][KeyValueEndpoint]: Could not connect to endpoint, retrying with delay 4096 MILLISECONDS:
java.net.ConnectException: Connection refused: no further information: /127.0.0.1:11210
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:610)
at com.couchbase.client.deps.io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:208)
at com.couchbase.client.deps.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:281)
at com.couchbase.client.deps.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:528)
at com.couchbase.client.deps.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
at com.couchbase.client.deps.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
at com.couchbase.client.deps.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
at com.couchbase.client.deps.io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)
at com.couchbase.client.deps.io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
at java.lang.Thread.run(Thread.java:738)

I am not able to telnet also.
This works if my Commerce server is stopped. I have tried to give user defined ports as well. But no help.

I am trying to connect to couchbase using below code:
// Connect to localhost
Cluster cluster = CouchbaseCluster.fromConnectionString(“http://127.0.0.1:12001”);

  // Open the default bucket and the "beer-sample" one
  Bucket bucket = cluster.openBucket("default");
  
  JsonObject user = JsonObject.empty()
  .put("firstname", "Walter")
  .put("lastname", "White")
  .put("job", "chemistry teacher")
  .put("age", 50);
  
JsonDocument stored = bucket.upsert(JsonDocument.create("walter", user));
  

JsonDocument walter = bucket.get("walter");
System.out.println("Found: " + walter.content().getString("firstname"));
  // Disconnect and clear all allocated resources
  cluster.disconnect();

I am sure there should be some way to resolve this. I should be able to start Commerce server and access couchbase server at same time.

Please let me know if you need any more information.

Please help me to find this issue.

Thanks in advance.