Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | SDKs | SDKs

Client connection using HTTP Proxy

No replies
  • Login or register to post comments
Thu, 01/03/2013 - 15:20
amr
Offline
Joined: 12/30/2012
Groups: None

Hi..
I'm connecting to am Amazon EC2 instance and running the sample code, I'm getting this exception when I try to instantiate a Client from a JVM behind firewall/ proxy. When I run the same code from an open internet connection then I have no issues!
Is there some configuration/ setting/ code I need to implement to make sure my connection is okay through an HTTP Proxy. Is there an option to disable the callback ( from server to client ) and maybe use polling instead.
Thanks
Amr

2013-01-03 10:13:41.557 INFO com.couchbase.client.CouchbaseConnection: Added {QA sa=ec2-54-235-201-201.compute-1.amazonaws.com/54.235.201.201:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0} to connect queue
2013-01-03 10:13:41.565 INFO com.couchbase.client.CouchbaseConnection: Added {QA sa=/10.100.237.58:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0} to connect queue
2013-01-03 10:13:41.573 INFO com.couchbase.client.CouchbaseConnection: Added {QA sa=/10.85.91.121:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0} to connect queue
2013-01-03 10:13:55.214 INFO com.couchbase.client.ViewConnection: Added 10.100.237.58 to connect queue
2013-01-03 10:13:59.722 INFO com.couchbase.client.ViewConnection: Added 10.85.91.121 to connect queue
2013-01-03 10:13:59.729 INFO com.couchbase.client.ViewConnection: Added ec2-54-235-201-201.compute-1.amazonaws.com to connect queue
2013-01-03 10:13:59.730 INFO com.couchbase.client.CouchbaseClient: viewmode property isn't defined. Setting viewmode to production mode
2013-01-03 10:14:02.533 INFO com.couchbase.client.CouchbaseConnection: Connection state changed for sun.nio.ch.SelectionKeyImpl@4ddc4ddc
2013-01-03 10:14:02.535 INFO com.couchbase.client.CouchbaseConnection: Reconnecting due to failure to connect to {QA sa=ec2-54-235-201-201.compute-1.amazonaws.com/54.235.201.201:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}
java.net.ConnectException: Connection timed out: no further information
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:573)
at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:370)
at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:243)
at com.couchbase.client.CouchbaseConnection.run(CouchbaseConnection.java:229)
2013-01-03 10:14:02.553 WARN com.couchbase.client.CouchbaseConnection: Closing, and reopening {QA sa=ec2-54-235-201-201.compute-1.amazonaws.com/54.235.201.201:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}, attempt 1.
2013-01-03 10:14:02.572 INFO com.couchbase.client.CouchbaseConnection: Connection state changed for sun.nio.ch.SelectionKeyImpl@5b485b48
2013-01-03 10:14:02.576 INFO com.couchbase.client.CouchbaseConnection: Reconnecting due to failure to connect to {QA sa=10.100.237.58/10.100.237.58:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}

---------------

2013-01-03 10:14:02.596 WARN com.couchbase.client.CouchbaseConnection: Closing, and reopening {QA sa=10.85.91.121/10.85.91.121:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}, attempt 1.
2013-01-03 10:14:06.555 INFO com.couchbase.client.CouchbaseConnection: Reconnecting {QA sa=ec2-54-235-201-201.compute-1.amazonaws.com/54.235.201.201:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}
2013-01-03 10:14:06.582 INFO com.couchbase.client.CouchbaseConnection: Reconnecting {QA sa=10.100.237.58/10.100.237.58:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}
2013-01-03 10:14:06.597 INFO com.couchbase.client.CouchbaseConnection: Reconnecting {QA sa=10.85.91.121/10.85.91.121:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}
Jan 3, 2013 10:14:09 AM org.jboss.netty.channel.DefaultChannelPipeline null
WARNING: An exception was thrown by an exception handler.
Throwable occurred: org.jboss.netty.channel.ChannelException: Failed to create a selector.
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.start(AbstractNioWorker.java:178)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.executeInIoThread(AbstractNioWorker.java:330)
at org.jboss.netty.channel.socket.nio.NioWorker.executeInIoThread(NioWorker.java:35)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.executeInIoThread(AbstractNioWorker.java:313)
at org.jboss.netty.channel.socket.nio.NioWorker.executeInIoThread(NioWorker.java:35)
at org.jboss.netty.channel.socket.nio.AbstractNioChannelSink.execute(AbstractNioChannelSink.java:34)
at org.jboss.netty.channel.Channels.fireExceptionCaughtLater(Channels.java:504)
at org.jboss.netty.channel.AbstractChannelSink.exceptionCaught(AbstractChannelSink.java:47)
at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:55)
at org.jboss.netty.channel.Channels.close(Channels.java:820)
at org.jboss.netty.channel.AbstractChannel.close(AbstractChannel.java:195)
at org.jboss.netty.channel.ChannelFutureListener$2.operationComplete(ChannelFutureListener.java:52)
at org.jboss.netty.channel.DefaultChannelFuture.notifyListener(DefaultChannelFuture.java:428)
at org.jboss.netty.channel.DefaultChannelFuture.notifyListeners(DefaultChannelFuture.java:414)
at org.jboss.netty.channel.DefaultChannelFuture.setFailure(DefaultChannelFuture.java:381)
at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.processConnectTimeout(NioClientSocketPipelineSink.java:394)
at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.run(NioClientSocketPipelineSink.java:289)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:735)
Caused by: java.io.IOException: Unable to establish loopback connection
at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:118)
at java.security.AccessController.doPrivileged(AccessController.java:251)
at sun.nio.ch.PipeImpl.(PipeImpl.java:134)
at sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:39)
at java.nio.channels.Pipe.open(Pipe.java:144)
at sun.nio.ch.WindowsSelectorImpl.(WindowsSelectorImpl.java:142)
at sun.nio.ch.WindowsSelectorProvider.openSelector(WindowsSelectorProvider.java:38)
at java.nio.channels.Selector.open(Selector.java:220)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.start(AbstractNioWorker.java:176)
... 19 more
Caused by: java.nio.channels.ClosedByInterruptException
at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:191)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:518)
at java.nio.channels.SocketChannel.open(SocketChannel.java:157)
at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:90)
... 27 more
Error connecting to Couchbase: Could not connect to any cluster pool member.
2013-01-03 10:14:27.561 INFO com.couchbase.client.CouchbaseConnection: Connection state changed for sun.nio.ch.SelectionKeyImpl@1d171d17
2013-01-03 10:14:27.562 INFO com.couchbase.client.CouchbaseConnection: Reconnecting due to failure to connect to {QA sa=ec2-54-235-201-201.compute-1.amazonaws.com/54.235.201.201:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}
java.net.ConnectException: Connection timed out: no further information
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:573)
at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:370)
at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:243)
at com.couchbase.client.CouchbaseConnection.run(CouchbaseConnection.java:229)
2013-01-03 10:14:27.563 WARN com.couchbase.client.CouchbaseConnection: Closing, and reopening {QA sa=ec2-54-235-201-201.compute-1.amazonaws.com/54.235.201.201:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}, attempt 2.
2013-01-03 10:14:27.590 INFO com.couchbase.client.CouchbaseConnection: Connection state changed for sun.nio.ch.SelectionKeyImpl@4df24df2
2013-01-03 10:14:27.590 INFO com.couchbase.client.CouchbaseConnection: Reconnecting due to failure to connect to {QA sa=10.100.237.58/10.100.237.58:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}

Top
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker