title: Using Java API in Scala to query views in Couchbase throws timeout exception
body: <p>EDIT: Note that this works perfectly in java 1.6 but fails in java 1.7.  </p>
  
  <p>I've been struggling to get the Couchbase 2.0 java API to work with views.  It works perfectly for getting and putting keys into a bucket.  </p>
  
  <p>When I run the scala code below using Java 1.7, I get the following exception:</p>
  
  <pre><code>scala&gt; ERROR com.couchbase.client.ViewNode$EventLogger:  Connection timed out: [localhost/127.0.0.1:8092(closed)]
  </code></pre>
  
  <p>I've also tried setting the timeout in the connection builder to no avail. </p>
  
  <pre><code>    import java.net.URI
      import com.couchbase.client.CouchbaseClient
      import scala.collection.JavaConversions._
      val uris = List(URI.create("http://127.0.0.1:8091/pools"))
      val client = new CouchbaseClient(uris, "test", "")
      val view = client.asyncGetView("date", "dates")
  </code></pre>
  
  <p>However, the python code below works perfectly, connects to the view, and has the right output:</p>
  
  <pre><code>    from couchbase.client import Couchbase
      client = Couchbase("localhost:8091", "username", "password")
      bucket = client["test"]
      view = bucket.view("_design/date/_view/dates")
      count = 0
      for row in view:
          count = count + 1
      print(count)
  </code></pre>
  
  <p>Any ideas how to properly connect?  I've tried to copy their examples exactly in my code. Unfortunately using python is not an option for this project.</p>