Details

Description

Encountered these errors while running on Jenkins. These need to be handled.

Stack Trace :

[junit] Testcase: testMessageReceived took 0.173 sec[junit] Testsuite: com.couchbase.client.vbucket.ConfigurationProviderHTTPDownNodeTest[junit] 2013-03-15 04:07:54.268 WARN com.couchbase.client.vbucket.ConfigurationProviderHTTP: Connection problems with URI http://bogus:8091/pools ...skipping[junit] java.net.UnknownHostException: bogus[junit] at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:175)[junit] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)[junit] at java.net.Socket.connect(Socket.java:546)[junit] at sun.net.NetworkClient.doConnect(NetworkClient.java:173)[junit] at sun.net.www.http.HttpClient.openServer(HttpClient.java:409)[junit] at sun.net.www.http.HttpClient.openServer(HttpClient.java:530)[junit] at sun.net.www.http.HttpClient.<init>(HttpClient.java:240)[junit] at sun.net.www.http.HttpClient.New(HttpClient.java:321)[junit] at sun.net.www.http.HttpClient.New(HttpClient.java:338)[junit] at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:935)[junit] at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:876)[junit] at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:801)[junit] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1139)[junit] at com.couchbase.client.vbucket.ConfigurationProviderHTTP.readToString(ConfigurationProviderHTTP.java:417)[junit] at com.couchbase.client.vbucket.ConfigurationProviderHTTP.readPools(ConfigurationProviderHTTP.java:210)[junit] at com.couchbase.client.vbucket.ConfigurationProviderHTTP.getBucketConfiguration(ConfigurationProviderHTTP.java:147)[junit] at com.couchbase.client.vbucket.ConfigurationProviderHTTPDownNodeTest.testGetBucketConfiguration(ConfigurationProviderHTTPDownNodeTest.java:67)[junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[junit] at java.lang.reflect.Method.invoke(Method.java:616)[junit] at junit.framework.TestCase.runTest(TestCase.java:168)[junit] at junit.framework.TestCase.runBare(TestCase.java:134)[junit] at junit.framework.TestResult$1.protect(TestResult.java:110)[junit] at junit.framework.TestResult.runProtected(TestResult.java:128)[junit] at junit.framework.TestResult.run(TestResult.java:113)[junit] at junit.framework.TestCase.run(TestCase.java:124)[junit] at junit.framework.TestSuite.runTest(TestSuite.java:232)[junit] at junit.framework.TestSuite.run(TestSuite.java:227)[junit] at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)[junit] at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:39)[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420)[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911)[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768)[junit] 2013-03-15 04:07:54.724 WARN com.couchbase.client.vbucket.ConfigurationProviderHTTP: Connection problems with URI http://bogustoo:8091/pools ...skipping[junit] java.net.UnknownHostException: bogustoo[junit] at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:175)[junit] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)[junit] at java.net.Socket.connect(Socket.java:546)[junit] at sun.net.NetworkClient.doConnect(NetworkClient.java:173)[junit] at sun.net.www.http.HttpClient.openServer(HttpClient.java:409)[junit] at sun.net.www.http.HttpClient.openServer(HttpClient.java:530)[junit] at sun.net.www.http.HttpClient.<init>(HttpClient.java:240)[junit] at sun.net.www.http.HttpClient.New(HttpClient.java:321)[junit] at sun.net.www.http.HttpClient.New(HttpClient.java:338)[junit] at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:935)[junit] at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:876)[junit] at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:801)[junit] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1139)[junit] at com.couchbase.client.vbucket.ConfigurationProviderHTTP.readToString(ConfigurationProviderHTTP.java:417)[junit] at com.couchbase.client.vbucket.ConfigurationProviderHTTP.readPools(ConfigurationProviderHTTP.java:210)[junit] at com.couchbase.client.vbucket.ConfigurationProviderHTTP.getBucketConfiguration(ConfigurationProviderHTTP.java:147)[junit] at com.couchbase.client.vbucket.ConfigurationProviderHTTPDownNodeTest.testGetBucketConfiguration(ConfigurationProviderHTTPDownNodeTest.java:67)[junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[junit] at java.lang.reflect.Method.invoke(Method.java:616)[junit] at junit.framework.TestCase.runTest(TestCase.java:168)[junit] at junit.framework.TestCase.runBare(TestCase.java:134)[junit] at junit.framework.TestResult$1.protect(TestResult.java:110)[junit] at junit.framework.TestResult.runProtected(TestResult.java:128)[junit] at junit.framework.TestResult.run(TestResult.java:113)[junit] at junit.framework.TestCase.run(TestCase.java:124)[junit] at junit.framework.TestSuite.runTest(TestSuite.java:232)[junit] at junit.framework.TestSuite.run(TestSuite.java:227)[junit] at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)[junit] at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:39)[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420)[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911)[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768)[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.991 sec[junit] ------------- Standard Error -----------------[junit] 2013-03-15 04:07:54.268 WARN com.couchbase.client.vbucket.ConfigurationProviderHTTP: Connection problems with URI http://bogus:8091/pools ...skipping[junit] java.net.UnknownHostException: bogus[junit] at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:175)[junit] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)[junit] at java.net.Socket.connect(Socket.java:546)[junit] at sun.net.NetworkClient.doConnect(NetworkClient.java:173)[junit] at sun.net.www.http.HttpClient.openServer(HttpClient.java:409)[junit] at sun.net.www.http.HttpClient.openServer(HttpClient.java:530)[junit] at sun.net.www.http.HttpClient.<init>(HttpClient.java:240)[junit] at sun.net.www.http.HttpClient.New(HttpClient.java:321)[junit] at sun.net.www.http.HttpClient.New(HttpClient.java:338)[junit] at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:935)[junit] at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:876)[junit] at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:801)[junit] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1139)[junit] at com.couchbase.client.vbucket.ConfigurationProviderHTTP.readToString(ConfigurationProviderHTTP.java:417)[junit] at com.couchbase.client.vbucket.ConfigurationProviderHTTP.readPools(ConfigurationProviderHTTP.java:210)[junit] at com.couchbase.client.vbucket.ConfigurationProviderHTTP.getBucketConfiguration(ConfigurationProviderHTTP.java:147)[junit] at com.couchbase.client.vbucket.ConfigurationProviderHTTPDownNodeTest.testGetBucketConfiguration(ConfigurationProviderHTTPDownNodeTest.java:67)[junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[junit] at java.lang.reflect.Method.invoke(Method.java:616)[junit] at junit.framework.TestCase.runTest(TestCase.java:168)[junit] at junit.framework.TestCase.runBare(TestCase.java:134)[junit] at junit.framework.TestResult$1.protect(TestResult.java:110)[junit] at junit.framework.TestResult.runProtected(TestResult.java:128)[junit] at junit.framework.TestResult.run(TestResult.java:113)[junit] at junit.framework.TestCase.run(TestCase.java:124)[junit] at junit.framework.TestSuite.runTest(TestSuite.java:232)[junit] at junit.framework.TestSuite.run(TestSuite.java:227)[junit] at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)[junit] at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:39)[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420)[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911)[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768)[junit] 2013-03-15 04:07:54.724 WARN com.couchbase.client.vbucket.ConfigurationProviderHTTP: Connection problems with URI http://bogustoo:8091/pools ...skipping[junit] java.net.UnknownHostException: bogustoo[junit] at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:175)[junit] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)[junit] at java.net.Socket.connect(Socket.java:546)[junit] at sun.net.NetworkClient.doConnect(NetworkClient.java:173)[junit] at sun.net.www.http.HttpClient.openServer(HttpClient.java:409)[junit] at sun.net.www.http.HttpClient.openServer(HttpClient.java:530)[junit] at sun.net.www.http.HttpClient.<init>(HttpClient.java:240)[junit] at sun.net.www.http.HttpClient.New(HttpClient.java:321)[junit] at sun.net.www.http.HttpClient.New(HttpClient.java:338)[junit] at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:935)[junit] at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:876)[junit] at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:801)[junit] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1139)[junit] at com.couchbase.client.vbucket.ConfigurationProviderHTTP.readToString(ConfigurationProviderHTTP.java:417)[junit] at com.couchbase.client.vbucket.ConfigurationProviderHTTP.readPools(ConfigurationProviderHTTP.java:210)[junit] at com.couchbase.client.vbucket.ConfigurationProviderHTTP.getBucketConfiguration(ConfigurationProviderHTTP.java:147)[junit] at com.couchbase.client.vbucket.ConfigurationProviderHTTPDownNodeTest.testGetBucketConfiguration(ConfigurationProviderHTTPDownNodeTest.java:67)[junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[junit] at java.lang.reflect.Method.invoke(Method.java:616)[junit] at junit.framework.TestCase.runTest(TestCase.java:168)[junit] at junit.framework.TestCase.runBare(TestCase.java:134)[junit] at junit.framework.TestResult$1.protect(TestResult.java:110)[junit] at junit.framework.TestResult.runProtected(TestResult.java:128)[junit] at junit.framework.TestResult.run(TestResult.java:113)[junit] at junit.framework.TestCase.run(TestCase.java:124)[junit] at junit.framework.TestSuite.runTest(TestSuite.java:232)[junit] at junit.framework.TestSuite.run(TestSuite.java:227)[junit] at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)[junit] at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:39)[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420)[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911)[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768)

I have tried to catch the UnknownHostException at very many places, but that does not seem to resolve the problem.
Even tried debugging the same, but seems like there is a logging level issue. Michael, can you please let me know where do we set the logging level and related properties ?

Deepti Dawar
added a comment - 03/Sep/13 5:13 AM I have tried to catch the UnknownHostException at very many places, but that does not seem to resolve the problem.
Even tried debugging the same, but seems like there is a logging level issue. Michael, can you please let me know where do we set the logging level and related properties ?