Issue 895 in google-api-java-client: UrlFetchTransport not found

16 views
Skip to first unread message

google-api-...@googlecode.com

unread,
Jul 28, 2014, 3:28:11 AM7/28/14
to google-api-jav...@googlegroups.com
Status: New
Owner: wonder...@google.com
Labels: Type-Defect Priority-Medium

New issue 895 by dlaze...@gmail.com: UrlFetchTransport not found
http://code.google.com/p/google-api-java-client/issues/detail?id=895

Version of google-api-java-client (e.g. 1.15.0-rc)?
1.19

Java environment (e.g. Java 6, Android 2.3, App Engine)?
App Engine, Java 7

Describe the problem.
UrlFetchTransport class not found.
I pulled all the sources and did "grep UrlFetch -r -l" and found just
references, but no declaration. Examples hence don't work
either "ClassNotFound". Looks like it was removed somewhere around 1.3.0
and noone noticed :(

How would you expect it to be fixed?
Probably it's been moved to another library. Tell us what it is please,
Googel doesn't know either (besides this library at version 1.3.0).


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

google-api-...@googlecode.com

unread,
Dec 29, 2014, 5:34:01 PM12/29/14
to google-api-jav...@googlegroups.com
Updates:
Status: Invalid

Comment #1 on issue 895 by wonder...@google.com: UrlFetchTransport not found
https://code.google.com/p/google-api-java-client/issues/detail?id=895

This library depends on the Google HTTP Java Client library [1], and
UrlFetchTransport is defined there. You should be able to get all the
dependent libraries if you use Maven, or download the zip bundle from our
Downloads page [2].

For more instructions on dealing with dependencies, read up on
https://code.google.com/p/google-api-java-client/wiki/Setup

[1]
https://code.google.com/p/google-http-java-client/source/browse/google-http-client-appengine/src/main/java/com/google/api/client/extensions/appengine/http/UrlFetchTransport.java
[2] https://code.google.com/p/google-api-java-client/wiki/Downloads?tm=2

google-api-...@googlecode.com

unread,
Dec 29, 2014, 5:47:56 PM12/29/14
to google-api-jav...@googlegroups.com

Comment #2 on issue 895 by dlaze...@gmail.com: UrlFetchTransport not found
https://code.google.com/p/google-api-java-client/issues/detail?id=895

Long time passed, but I believe I tried what you're suggesting, and it
didn't work. Because this library does not depend on
com.google.http-client:google-http-client-appengine:
http://repo1.maven.org/maven2/com/google/api-client/google-api-client/1.19.1/google-api-client-1.19.1.pom

Manually adding the dependency may be a workaround.

google-api-...@googlecode.com

unread,
Dec 29, 2014, 6:00:39 PM12/29/14
to google-api-jav...@googlegroups.com

Comment #3 on issue 895 by wonder...@google.com: UrlFetchTransport not found
https://code.google.com/p/google-api-java-client/issues/detail?id=895

This library has 9 modules (separately packaged on Mavan), and one of them
(com.google.api-client:google-api-client-appengine) DOES depend on
com.google.http-client:google-http-client-appengine [1], as explained in
[2].

As you are working on an AppEngine project, you should have
com.google.api-client:google-api-client-appengine,
com.google.oauth-client:google-oauth-client-appengine, and
com.google.http-client:google-http-client-appengine on your classpath. I
don't know how you are managing your dependencies, but if you are using
Maven, it will pull the required dependencies for you.

If you are building from source, make sure you check out the dependent
repositories first:
https://code.google.com/p/google-http-java-client/source/checkout and
https://code.google.com/p/google-oauth-java-client/source/checkout

[1]
https://repo1.maven.org/maven2/com/google/api-client/google-api-client-appengine/1.19.1/google-api-client-appengine-1.19.1.pom
[2]
https://code.google.com/p/google-api-java-client/wiki/Setup#google-api-client-appengine

google-api-...@googlecode.com

unread,
Dec 29, 2014, 6:02:30 PM12/29/14
to google-api-jav...@googlegroups.com

Comment #4 on issue 895 by dlaze...@gmail.com: UrlFetchTransport not found
https://code.google.com/p/google-api-java-client/issues/detail?id=895

Ah, awesome, thanks!
Reply all
Reply to author
Forward
0 new messages