java.lang.IllegalArgumentException: no HostnameVerifier specified

Google Groups | Luc Van Hoeylandt | 1 year ago
  1. 0

    SSL Proxy using http 1.0 ?

    Google Groups | 1 year ago | Luc Van Hoeylandt
    java.lang.IllegalArgumentException: no HostnameVerifier specified
  2. 0

    Creating AmazonDynamoDBClient with AWSCredentials

    Stack Overflow | 1 year ago | Michael Anderson
    java.lang.IllegalArgumentException: no HostnameVerifier specified at at com.amazonaws.http.UrlHttpClient.configureConnection(
  3. 0

    at android.os.AsyncTask$3.done(

    Stack Overflow | 5 months ago | Max
    java.lang.RuntimeException: An error occured while executing doInBackground()
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Yet another filter, and unit test failed with exception {noformat} java.lang.IllegalArgumentException: No InputStream specified at org.springframework.util.Assert.notNull( at org.springframework.util.StreamUtils.copy( at org.springframework.util.StreamUtils.copyToByteArray( at com.pb.ivrcgate.util.filter.HttpRequestWrapper.<init>( at com.pb.ivrcgate.util.filter.HttpDumperFilter.doFilterInternal( at org.springframework.web.filter.OncePerRequestFilter.doFilter( at org.springframework.mock.web.MockFilterChain.doFilter( at org.springframework.test.web.servlet.MockMvc.perform( at com.pb.ivrcgate.controller.GateControllerTest.badUri( {noformat} Filter code fragment: {code} public class HttpDumperFilter extends OncePerRequestFilter { @Override protected void doFilterInternal(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, FilterChain filterChain) throws ServletException, IOException { try { HttpRequestWrapper request = new HttpRequestWrapper(httpServletRequest); HttpResponseWrapper response = new HttpResponseWrapper(httpServletResponse); filterChain.doFilter(request, response); // ... } catch (Exception ex) { logger.error("", ex); throw ex; } } // ... } {code} {{HttpRequestWrapper}} code fragment: {code} public class HttpRequestWrapper extends HttpServletRequestWrapper { private final byte[] content; public HttpRequestWrapper(HttpServletRequest request) throws IOException { super(request); this.content = StreamUtils.copyToByteArray(request.getInputStream()); // line #27 } // ... } {code} In compliance with Servlet API and documentation - {{MockMvc}} must return object of class ServletInputStream, and can't return null. For example, tomcat return ServletInputStream object even for GET requests, and never return null from getInputStream() method. Looks like this is bug in {{MockMvc}}.

    Spring JIRA | 2 years ago | Gena Makhomed
    java.lang.IllegalArgumentException: No InputStream specified
  6. 0

    Java reading text file in eclipse

    Stack Overflow | 2 years ago | Vivek Singh
    java.lang.IllegalArgumentException: No InputStream specified

    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.lang.IllegalArgumentException

      no HostnameVerifier specified

    2. Java RT
      1 frame
    3. Asynchronous Http Client
      1. com.ning.http.client.providers.jdk.JDKAsyncHttpProvider.createUrlConnection(
      2. com.ning.http.client.providers.jdk.JDKAsyncHttpProvider.execute(
      3. com.ning.http.client.providers.jdk.JDKAsyncHttpProvider.execute(
      4. com.ning.http.client.AsyncHttpClient.executeRequest(
      4 frames