java.lang.NoSuchMethodError: com.google.api.client.http.javanet.NetHttpTransport .<init>(Ljava/net/Proxy;Ljavax/net/ssl/SSLSocketFactory;Ljavax/net/ssl/HostnameV erifier;)V

Google Groups | Prasenjit Dhar | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Google Cloud Storage using both XML as well as JSON API Error

    Google Groups | 3 years ago | Prasenjit Dhar
    java.lang.NoSuchMethodError: com.google.api.client.http.javanet.NetHttpTransport .<init>(Ljava/net/Proxy;Ljavax/net/ssl/SSLSocketFactory;Ljavax/net/ssl/HostnameV erifier;)V

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      com.google.api.client.http.javanet.NetHttpTransport .<init>(Ljava/net/Proxy;Ljavax/net/ssl/SSLSocketFactory;Ljavax/net/ssl/HostnameV erifier;)V

      at com.google.api.client.http.javanet.NetHttpTransport$Builder.build()
    2. Google HTTP Client Library for Java
      NetHttpTransport$Builder.build
      1. com.google.api.client.http.javanet.NetHttpTransport$Builder.build(NetHttpTransport.java:288)
      1 frame
    3. Google APIs Client Library for Java
      GoogleNetHttpTransport.newTrustedTransport
      1. com.google.api.client.googleapis.javanet.GoogleNetHttpTransport.newTrustedTransport(GoogleNetHttpTransport.java:55)
      1 frame
    4. com.google.api
      StorageServiceAccountSample.main
      1. com.google.api.services.samples.storage.serviceaccount.cmdline.StorageServiceAccountSample.main(StorageServiceAccountSample.java:66)
      1 frame
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:601)
      4 frames
    6. org.codehaus.mojo
      ExecJavaMojo$1.run
      1. org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:290)
      1 frame
    7. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:722)
      1 frame