Flexible Environment: Calendar APIv3 NoSuchMethodError

84 views
Skip to first unread message

Kevin Diaz

unread,
Apr 29, 2016, 11:13:51 AM4/29/16
to Google App Engine
There seems to be an issue with the Calendar constructor on the Flexible Environment. Anytime new Calendar(transport, JsonFactory, HttpRequestInitializer) is called, the following 500 Internal Server Error occurs:

java.lang.NoSuchMethodError: com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.<init>(Lcom/google/api/client/http/HttpTransport;Lcom/google/api/client/json/JsonFactory;Ljava/lang/String;Ljava/lang/String;Lcom/google/api/client/http/HttpRequestInitializer;Z)


We've tested this on both the Standard Environment and the Flexible Environment. The Standard Environment works as intended with no issues and appears to only happen on the Flexible Environment. We even tried updating to v3-rev179-1.21.0 and the same issue persists.

We're unsure if this is just a temporary bug with Flexible Environment being in beta, or if there are some extra steps required in order for the Calendar API to function properly on the VM. Either way, we thought that it would be a good idea to report the issue so that it may be looked into.

Nick (Cloud Platform Support)

unread,
May 2, 2016, 11:27:35 AM5/2/16
to Google App Engine
Hey Kevin,

This seems like a great beginning to an issue report in the App Engine Public Issue Tracker. This forum is meant for more high level discussion of the platform and services, however the Public Issue Tracker is designed for threads like these. Nonetheless, let's continue to discuss it here and we can create a thread once all the information has been gathered. Could you share enough example code to show how you're calling new Calendar()? Usually Calendar.Builder is used.

Cheers!

Nick
Cloud Platform Community Support

Kevin Diaz

unread,
May 2, 2016, 12:33:02 PM5/2/16
to Google App Engine
Sure thing. We have a method to get the calendar service that is nothing more than: 

return new com.google.api.services.calendar.Calendar.Builder(TRANSPORT, JSON_FACTORY, getStoredCredentials(GAPPS_ADMIN_EMAIL))

            .setApplicationName(APPLICATION_NAME)

            .build();


We also have situations when sharing calendars with users with:


Calendar client = new Calendar(TRANSPORT, JSON_FACTORY, getStoredCredentials(GAPPS_ADMIN_EMAIL));


Again, both versions work perfectly fine with no difference on the Standard Environment, but both situations fail on the Flexible Environment.

Nick (Cloud Platform Support)

unread,
May 6, 2016, 4:27:38 PM5/6/16
to Google App Engine
Hey Kevin,

It appears that there's nothing quite specific enough about the situation to warrant further investigation here. The best route from this point is to post an issue to the Public Issue Tracker - I'll continue to work on reproducing the issue given the simple triggering code and will post here once an issue is created which you can follow for updates.

Regards,


Nick
Cloud Platform Community Support

Nick (Cloud Platform Support)

unread,
May 9, 2016, 4:52:24 PM5/9/16
to Google App Engine
Hey Kevin,

Just an update that I'm unable to observe the issue you mentioned using the same code pattern, so you should definitely post your code to the Public Issue Tracker for us to analyze.

Cheers,


Nick
Cloud Platform Community Support 

On Monday, May 2, 2016 at 12:33:02 PM UTC-4, Kevin Diaz wrote:
Reply all
Reply to author
Forward
0 new messages