java.io.IOException: Received authentication challenge is null

Stack Overflow | nilkash | 3 years ago
  1. 0

    HttpUrlConnection with post request and parameter as Json object android

    Stack Overflow | 3 years ago | nilkash
    java.io.IOException: Received authentication challenge is null
  2. 0

    Adding Certificate for android 2.2

    Stack Overflow | 4 years ago | anshul
    java.io.IOException: SSL handshake failure: I/O error during system call, Connection reset by peer 09-14 11:44:48.774: W/System.err(24802): at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.nativeconnect(Native Method) 09-14 11:44:48.774: W/System.err(24802): at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:316) 09-14 11:44:48.774: W/System.err(24802): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection.getSecureSocket(HttpConnection.java:168)
  3. 0

    SSL Error on attempting facebook authentication with LWUIT android port

    Stack Overflow | 5 years ago | bcombes
    java.io.IOException: SSL handshake failure: Failure in SSL library, usually a protocol error 01-21 21:55:17.234: W/System.err(26776): error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol (external/openssl/ssl/s23_clnt.c:604 0xaf086860:0x00000000)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to Use Foursquare API on Android Application

    londatiga.net | 2 weeks ago
    java.io.IOException: Received authentication challenge is null
  6. 0

    This was identified while investigating ANDROID-80. The Commons Http Client and HttpComponents Client both correctly set a 401 status code, while HttpURLConnection throws an IOException: java.io.IOException: Received authentication challenge is null The logs from unit testing illustrate this very clearly. Commons Http Client: I/TestRunner(10439): started: testGetEntityNotAuthorized(org.springframework.web.client.RestTemplateIntegrationCommonsClientTests) W/System.err(10439): 2012-05-02 16:04:46.842::INFO: jetty-0.0 W/System.err(10439): 2012-05-02 16:04:46.855::INFO: Started SocketConnector@0.0.0.0:8080 I/TestRunner(10439): failed: testGetEntityNotAuthorized(org.springframework.web.client.RestTemplateIntegrationCommonsClientTests) I/TestRunner(10439): ----- begin exception ----- I/TestRunner(10439): I/TestRunner(10439): org.springframework.web.client.HttpClientErrorException: 401 Unauthorized I/TestRunner(10439): at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:76) I/TestRunner(10439): at org.springframework.web.client.RestTemplate.handleResponseError(RestTemplate.java:504) I/TestRunner(10439): at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:461) I/TestRunner(10439): at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:419) I/TestRunner(10439): at org.springframework.web.client.RestTemplate.getForEntity(RestTemplate.java:239) I/TestRunner(10439): at org.springframework.web.client.AbstractRestTemplateIntegrationTests.testGetEntityNotAuthorized(AbstractRestTemplateIntegrationTests.java:128) I/TestRunner(10439): at java.lang.reflect.Method.invokeNative(Native Method) I/TestRunner(10439): at java.lang.reflect.Method.invoke(Method.java:507) I/TestRunner(10439): at junit.framework.TestCase.runTest(TestCase.java:154) I/TestRunner(10439): at junit.framework.TestCase.runBare(TestCase.java:127) I/TestRunner(10439): at junit.framework.TestResult$1.protect(TestResult.java:106) I/TestRunner(10439): at junit.framework.TestResult.runProtected(TestResult.java:124) I/TestRunner(10439): at junit.framework.TestResult.run(TestResult.java:109) I/TestRunner(10439): at junit.framework.TestCase.run(TestCase.java:118) I/TestRunner(10439): at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169) I/TestRunner(10439): at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154) I/TestRunner(10439): at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:529) I/TestRunner(10439): at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1448) I/TestRunner(10439): ----- end exception ----- I/TestRunner(10439): finished: testGetEntityNotAuthorized(org.springframework.web.client.RestTemplateIntegrationCommonsClientTests) HttpComponents Http Client: I/TestRunner(10439): started: testGetEntityNotAuthorized(org.springframework.web.client.RestTemplateIntegrationHttpComponentsClientTests) W/System.err(10439): 2012-05-02 16:04:51.069::INFO: jetty-0.0 W/System.err(10439): 2012-05-02 16:04:51.081::INFO: Started SocketConnector@0.0.0.0:8080 D/dalvikvm(10439): GC_FOR_MALLOC freed 553K, 46% free 4493K/8263K, external 1625K/2137K, paused 53ms W/DefaultRequestDirector(10439): Authentication error: Unable to respond to any of these challenges: {} I/TestRunner(10439): failed: testGetEntityNotAuthorized(org.springframework.web.client.RestTemplateIntegrationHttpComponentsClientTests) I/TestRunner(10439): ----- begin exception ----- I/TestRunner(10439): I/TestRunner(10439): org.springframework.web.client.HttpClientErrorException: 401 Unauthorized I/TestRunner(10439): at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:76) I/TestRunner(10439): at org.springframework.web.client.RestTemplate.handleResponseError(RestTemplate.java:504) I/TestRunner(10439): at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:461) I/TestRunner(10439): at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:419) I/TestRunner(10439): at org.springframework.web.client.RestTemplate.getForEntity(RestTemplate.java:239) I/TestRunner(10439): at org.springframework.web.client.AbstractRestTemplateIntegrationTests.testGetEntityNotAuthorized(AbstractRestTemplateIntegrationTests.java:128) I/TestRunner(10439): at java.lang.reflect.Method.invokeNative(Native Method) I/TestRunner(10439): at java.lang.reflect.Method.invoke(Method.java:507) I/TestRunner(10439): at junit.framework.TestCase.runTest(TestCase.java:154) I/TestRunner(10439): at junit.framework.TestCase.runBare(TestCase.java:127) I/TestRunner(10439): at junit.framework.TestResult$1.protect(TestResult.java:106) I/TestRunner(10439): at junit.framework.TestResult.runProtected(TestResult.java:124) I/TestRunner(10439): at junit.framework.TestResult.run(TestResult.java:109) I/TestRunner(10439): at junit.framework.TestCase.run(TestCase.java:118) I/TestRunner(10439): at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169) I/TestRunner(10439): at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154) I/TestRunner(10439): at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:529) I/TestRunner(10439): at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1448) I/TestRunner(10439): ----- end exception ----- I/TestRunner(10439): finished: testGetEntityNotAuthorized(org.springframework.web.client.RestTemplateIntegrationHttpComponentsClientTests) Standard J2SE facilities (HttpURLConnection): I/TestRunner(10439): started: testGetEntityNotAuthorized(org.springframework.web.client.RestTemplateIntegrationSimpleClientTests) W/System.err(10439): 2012-05-02 16:04:56.329::INFO: jetty-0.0 W/System.err(10439): 2012-05-02 16:04:56.343::INFO: Started SocketConnector@0.0.0.0:8080 I/TestRunner(10439): failed: testGetEntityNotAuthorized(org.springframework.web.client.RestTemplateIntegrationSimpleClientTests) I/TestRunner(10439): ----- begin exception ----- I/TestRunner(10439): I/TestRunner(10439): org.springframework.web.client.ResourceAccessException: I/O error: Received authentication challenge is null; nested exception is java.io.IOException: Received authentication challenge is null I/TestRunner(10439): at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:471) I/TestRunner(10439): at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:419) I/TestRunner(10439): at org.springframework.web.client.RestTemplate.getForEntity(RestTemplate.java:239) I/TestRunner(10439): at org.springframework.web.client.AbstractRestTemplateIntegrationTests.testGetEntityNotAuthorized(AbstractRestTemplateIntegrationTests.java:128) I/TestRunner(10439): at java.lang.reflect.Method.invokeNative(Native Method) I/TestRunner(10439): at java.lang.reflect.Method.invoke(Method.java:507) I/TestRunner(10439): at junit.framework.TestCase.runTest(TestCase.java:154) I/TestRunner(10439): at junit.framework.TestCase.runBare(TestCase.java:127) I/TestRunner(10439): at junit.framework.TestResult$1.protect(TestResult.java:106) I/TestRunner(10439): at junit.framework.TestResult.runProtected(TestResult.java:124) I/TestRunner(10439): at junit.framework.TestResult.run(TestResult.java:109) I/TestRunner(10439): at junit.framework.TestCase.run(TestCase.java:118) I/TestRunner(10439): at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169) I/TestRunner(10439): at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154) I/TestRunner(10439): at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:529) I/TestRunner(10439): at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1448) I/TestRunner(10439): Caused by: java.io.IOException: Received authentication challenge is null I/TestRunner(10439): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.processAuthHeader(HttpURLConnectionImpl.java:1153) I/TestRunner(10439): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.processResponseHeaders(HttpURLConnectionImpl.java:1095) I/TestRunner(10439): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.retrieveResponse(HttpURLConnectionImpl.java:1048) I/TestRunner(10439): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:726) I/TestRunner(10439): at org.springframework.http.client.SimpleClientHttpResponse.getStatusCode(SimpleClientHttpResponse.java:49) I/TestRunner(10439): at org.springframework.web.client.DefaultResponseErrorHandler.hasError(DefaultResponseErrorHandler.java:46) I/TestRunner(10439): at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:457) I/TestRunner(10439): ... 15 more I/TestRunner(10439): ----- end exception ----- I/TestRunner(10439): finished: testGetEntityNotAuthorized(org.springframework.web.client.RestTemplateIntegrationSimpleClientTests)

    Spring JIRA | 5 years ago | Roy Clarkson
    org.springframework.web.client.ResourceAccessException: I/O error: Received authentication challenge is null; nested exception is java.io.IOException: Received authentication challenge is null

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      Received authentication challenge is null

      at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.processAuthHeader()
    2. org.apache.harmony
      HttpsURLConnectionImpl.getResponseCode
      1. org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.processAuthHeader(HttpURLConnectionImpl.java:1153)
      2. org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.processResponseHeaders(HttpURLConnectionImpl.java:1095)
      3. org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.retrieveResponse(HttpURLConnectionImpl.java:1048)
      4. org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:726)
      5. org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:121)
      5 frames
    3. com.mobiotics.qcampaigns
      ProximityOperation.execute
      1. com.mobiotics.qcampaigns.data.operation.ProximityOperation.execute(ProximityOperation.java:187)
      1 frame
    4. com.foxykeep.datadroid
      MultiThreadedIntentService$IntentRunnable.run
      1. com.foxykeep.datadroid.service.RequestService.onHandleIntent(RequestService.java:145)
      2. com.foxykeep.datadroid.service.MultiThreadedIntentService$IntentRunnable.run(MultiThreadedIntentService.java:170)
      2 frames