GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix google-cloud-java on GAE Std Java8 Issues · Issue #1918 · googleapis/google-cloud-java

Fix google-cloud-java on GAE Std Java8 Issues #1918

New issue
Copy link
New issue
Copy link
Closed
Closed
Fix google-cloud-java on GAE Std Java8 Issues#1918
Copy link
Assignees
neozwu
Labels
api: datastoreIssues related to the Datastore API.api: loggingIssues related to the Cloud Logging API.api: storageIssues related to the Cloud Storage API.priority: p2Moderately-important priority. Fix may not be included in next release.running on app enginetype: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Description

@vam-google
vam-google
opened on Apr 13, 2017
Issue body actions

Fix the issues, found during the testing performed in #1752.

Current List of Issues:

  1. CGLib: https://gist.github.com/vam-google/862b1dc2c1badf0e675ef04a552ac872#file-gae_std_java8_test_failure___cglib-txt
  2. EasyMock verify not allowed: https://gist.github.com/vam-google/862b1dc2c1badf0e675ef04a552ac872#file-gae_std_java8_test_failure___easymock_verify_not_allowed-txt
  3. System Prooperty: https://gist.github.com/vam-google/862b1dc2c1badf0e675ef04a552ac872#file-gae_std_java8_test_failure___env_variable-txt
  4. Wierd NoClassDefFound: https://gist.github.com/vam-google/862b1dc2c1badf0e675ef04a552ac872#file-gae_std_java8_test_failure___noclassdeffounderror_serialization_test-txt
  5. ThreadManager: https://gist.github.com/vam-google/862b1dc2c1badf0e675ef04a552ac872#file-gae_std_java8_test_failure___threadmanager-txt

Activity

Next
  1. vam-google
    added
    api: datastoreIssues related to the Datastore API.
    api: loggingIssues related to the Cloud Logging API.
    api: storageIssues related to the Cloud Storage API.
    running on app engine
    on Apr 13, 2017
  2. vam-google
    changed the title [-]Fix GAE Std Java8 Issues[/-] [+]Fix google-cloud-java on GAE Std Java8 Issues[/+] on Apr 13, 2017
  3. chadbr commented on Apr 25, 2017

    @chadbr
    chadbr
    on Apr 25, 2017
    More actions

    Is there any way to track what's going on with these?

    We're trying to use both the PubSub and Storage clients from Flex in our environment and both suffer from the ThreadManager issue.

    Thanks

  4. vam-google commented on Apr 27, 2017

    @vam-google
    vam-google
    on Apr 27, 2017
    ContributorAuthor
    More actions

    This is weird. The reported ThreadManager issue is for Java8 Standard, not for Java Flex. Can you please post the stacktrace of the exception your receive? Is it similar to https://gist.github.com/vam-google/862b1dc2c1badf0e675ef04a552ac872#file-gae_std_java8_test_failure___threadmanager-txt?

  5. chadbr commented on May 3, 2017

    @chadbr
    chadbr
    on May 3, 2017
    More actions

    yes - very similar:

    From: Chad Brockman [email protected]
    Date: Wednesday, February 15, 2017 at 7:01 PM
    To: "[email protected]" [email protected]
    Subject: PubSub authentication failure?

    One of our cron based services is failing with PubSub authentication failures… It looks like there is a missing native call for memcache?

    Can't make API call memcache.Get in a thread that is neither the original request thread nor a thread created by ThreadManager at com.google.apphosting.api.ApiProxy$CallNotFoundException.foreignThread(ApiProxy.java:836)

    Any ideas welcome – Thanks, Chad

    Callstack from logging…

    18:45:03.323com.slb.rtfrac.ingestion.servlets.InteractDownloadServlet lambda$invoke$0: Stage[InteractDownload]: WellId[5649391675244544] Update failed with an exception io.grpc.StatusRuntimeException: UNAUTHENTICATED com.google.cloud.pubsub.PubSubException: io.grpc.StatusRuntimeException: UNAUTHENTICATED at com.google.cloud.pubsub.spi.DefaultPubSubRpc$1.apply(DefaultPubSubRpc.java:174) at com.google.cloud.pubsub.spi.DefaultPubSubRpc$1.apply(DefaultPubSubRpc.java:168) at com.google.common.util.concurrent.AbstractCatchingFuture$CatchingFuture.doFallback(AbstractCatchingFuture.java:205) at com.google.common.util.concurrent.AbstractCatchingFuture$CatchingFuture.doFallback(AbstractCatchingFuture.java:193) at com.google.common.util.concurrent.AbstractCatchingFuture.run(AbstractCatchingFuture.java:132) at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:435) at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:900) at com.google.common.util.concurrent.AbstractFuture.complete(AbstractFuture.java:811) at com.google.common.util.concurrent.AbstractFuture.setException(AbstractFuture.java:675) at com.google.common.util.concurrent.SettableFuture.setException(SettableFuture.java:53) at com.google.api.gax.grpc.BundlingFuture.setException(BundlingFuture.java:87) at com.google.api.gax.grpc.BundlingContext.sendResult(BundlingContext.java:97) at com.google.api.gax.grpc.BundleExecutor.processBundle(BundleExecutor.java:92) at com.google.api.gax.bundling.ThresholdBundlingForwarder$BundleForwardingRunnable.processBundle(ThresholdBundlingForwarder.java:110) at com.google.api.gax.bundling.ThresholdBundlingForwarder$BundleForwardingRunnable.run(ThresholdBundlingForwarder.java:93) at java.lang.Thread.run(Thread.java:745) Caused by: com.google.api.gax.grpc.ApiException: io.grpc.StatusRuntimeException: UNAUTHENTICATED at com.google.api.gax.grpc.ExceptionTransformingCallable$1.onFailure(ExceptionTransformingCallable.java:91) at com.google.common.util.concurrent.Futures$4.run(Futures.java:1123) at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:435) at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:900) at com.google.common.util.concurrent.AbstractFuture.addListener(AbstractFuture.java:634) at com.google.common.util.concurrent.Futures.addCallback(Futures.java:1135) at com.google.common.util.concurrent.Futures.addCallback(Futures.java:1073) at com.google.api.gax.grpc.ExceptionTransformingCallable.futureCall(ExceptionTransformingCallable.java:66) at com.google.api.gax.grpc.RetryingCallable$Retryer.run(RetryingCallable.java:132) at com.google.api.gax.grpc.RetryingCallable.futureCall(RetryingCallable.java:87) at com.google.api.gax.grpc.ChannelBindingCallable.futureCall(ChannelBindingCallable.java:64) at com.google.api.gax.grpc.ApiCallable.futureCall(ApiCallable.java:239) at com.google.api.gax.grpc.ApiCallable.futureCall(ApiCallable.java:250) at com.google.api.gax.grpc.ApiCallable.call(ApiCallable.java:287) at com.google.api.gax.grpc.BundleExecutor.processBundle(BundleExecutor.java:85) ... 3 more Caused by: io.grpc.StatusRuntimeException: UNAUTHENTICATED at io.grpc.Status.asRuntimeException(Status.java:545) at io.grpc.stub.ClientCalls$UnaryStreamToFuture.onClose(ClientCalls.java:417) at io.grpc.ClientInterceptors$CheckedForwardingClientCall.start(ClientInterceptors.java:203) at io.grpc.ForwardingClientCall.start(ForwardingClientCall.java:47) at com.google.api.gax.grpc.HeaderInterceptor$1.start(HeaderInterceptor.java:35) at io.grpc.stub.ClientCalls.startCall(ClientCalls.java:248) at io.grpc.stub.ClientCalls.asyncUnaryRequestCall(ClientCalls.java:227) at io.grpc.stub.ClientCalls.futureUnaryCall(ClientCalls.java:186) at com.google.api.gax.grpc.DirectCallable.futureCall(DirectCallable.java:58) at com.google.api.gax.grpc.ExceptionTransformingCallable.futureCall(ExceptionTransformingCallable.java:65) ... 10 more Caused by: java.io.IOException: Could not get the access token. at com.google.cloud.AuthCredentials$AppEngineAuthCredentials$AppEngineCredentials.refreshAccessToken(AuthCredentials.java:117) at com.google.auth.oauth2.OAuth2Credentials.refresh(OAuth2Credentials.java:149) at com.google.auth.oauth2.OAuth2Credentials.getRequestMetadata(OAuth2Credentials.java:135) at io.grpc.auth.ClientAuthInterceptor.getRequestMetadata(ClientAuthInterceptor.java:150) at io.grpc.auth.ClientAuthInterceptor.access$100(ClientAuthInterceptor.java:64) at io.grpc.auth.ClientAuthInterceptor$1.checkedStart(ClientAuthInterceptor.java:96) at io.grpc.ClientInterceptors$CheckedForwardingClientCall.start(ClientInterceptors.java:195) ... 17 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.google.cloud.AuthCredentials$AppEngineAuthCredentials$AppEngineCredentials.refreshAccessToken(AuthCredentials.java:112) ... 23 more Caused by: com.google.apphosting.api.ApiProxy$CallNotFoundException: Can't make API call memcache.Get in a thread that is neither the original request thread nor a thread created by ThreadManager at com.google.apphosting.api.ApiProxy$CallNotFoundException.foreignThread(ApiProxy.java:836) at com.google.apphosting.api.ApiProxy$1.get(ApiProxy.java:183) at com.google.apphosting.api.ApiProxy$1.get(ApiProxy.java:180) at com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:93) at com.google.appengine.api.memcache.MemcacheServiceImpl.quietGet(MemcacheServiceImpl.java:28) at com.google.appengine.api.memcache.MemcacheServiceImpl.get(MemcacheServiceImpl.java:51) at com.google.appengine.api.appidentity.AppIdentityServiceImpl.getAccessToken(AppIdentityServiceImpl.java:300) ... 28 more

    Reacted by Łukasz Byjoś and Elmer Garduno
  6. chadbr commented on May 3, 2017

    @chadbr
    chadbr
    on May 3, 2017
    More actions

    @vam-google sorry for the delay - I missed the notification...

  7. garrettjonesgoogle
    assigned
    neozwu
    on May 4, 2017
  8. shinfan
    added
    priority: p2Moderately-important priority. Fix may not be included in next release.
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    on May 8, 2017
  9. ludoch commented on May 10, 2017

    @ludoch
    ludoch
    on May 10, 2017
    Contributor
    More actions

    The google Cloud APIs, when running in Flex (or Java8 Standard) should try to not rely on com.google.appengine.api.appidentity* APIs.
    But they do this here:
    https://github.com/GoogleCloudPlatform/google-cloud-java/blob/1c456ead3455680ef198900712ff481d634ec530/google-cloud-core/src/main/java/com/google/cloud/ServiceOptions.java#L384

    How can we avoid this code path when running in Java8 Standard?

  10. lesv commented on May 11, 2017

    @lesv
    lesv
    on May 11, 2017 via email
    Contributor
    More actions
    We are fixing this stuff - I wrote issues on GH issues last week about. :(
    …
    On Wed, May 10, 2017 at 10:26 AM, Ludovic Champenois < ***@***.***> wrote: The google Cloud APIs, when running in Flex (or Java8 Standard) should try to not rely on com.google.appengine.api.appidentity* APIs. But they do this here: https://github.com/GoogleCloudPlatform/google-cloud-java/blob/ 1c456ea/google-cloud-core/ src/main/java/com/google/cloud/ServiceOptions.java#L384 How can we avoid this code path when running in Java8 Standard? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#1918 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ABFVjkHidykrLuNjXOBb0v_fOtSu2gMXks5r4fNYgaJpZM4M9OI9> .
    -- * • **Les Vogel* * • *Cloud Developer Relations * • *[email protected] * • *+1-4 <%2B1-650-338-7103>08-676-7023
  11. lesv commented on May 11, 2017

    @lesv
    lesv
    on May 11, 2017 via email
    Contributor
    More actions
    Oops - wrong one. I found these in java-docs-samples last week.
    …
    On Thu, May 11, 2017 at 2:53 PM, Les Vogel ***@***.***> wrote: We are fixing this stuff - I wrote issues on GH issues last week about. :( On Wed, May 10, 2017 at 10:26 AM, Ludovic Champenois < ***@***.***> wrote: > The google Cloud APIs, when running in Flex (or Java8 Standard) should > try to not rely on com.google.appengine.api.appidentity* APIs. > But they do this here: > https://github.com/GoogleCloudPlatform/google-cloud-java/ > blob/1c456ead3455680ef198900712ff481d634ec530/google-cloud- > core/src/main/java/com/google/cloud/ServiceOptions.java#L384 > > How can we avoid this code path when running in Java8 Standard? > > — > You are receiving this because you are subscribed to this thread. > Reply to this email directly, view it on GitHub > <#1918 (comment)>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/ABFVjkHidykrLuNjXOBb0v_fOtSu2gMXks5r4fNYgaJpZM4M9OI9> > . > -- * • **Les Vogel* * • *Cloud Developer Relations * • ***@***.*** * • *+1-4 <%2B1-650-338-7103>08-676-7023
    -- * • **Les Vogel* * • *Cloud Developer Relations * • *[email protected] * • *+1-4 <%2B1-650-338-7103>08-676-7023
  12. 21 remaining items

  13. elmer-garduno commented on Jul 21, 2017

    @elmer-garduno
    elmer-garduno
    on Jul 21, 2017
    More actions

    I see the old API is in maintenance mode, are there guidelines on how to use the google-cloud-java APIs to invoke non built-in APIs like CloudML? (Basically to get the authentication and basic REST support in place)?

  14. elmer-garduno
    added a commit that references this issue on Jul 21, 2017

    Clarify that AppEngine SDK is not required for Flex and Standard J8

    7024d84
  15. garrettjonesgoogle
    added a commit that references this issue on Aug 10, 2017

    Clarify that AppEngine SDK is not required for Flex and Standard J8 (#…

    f9f55bb
  16. theacodes
    unassigned
    neozwu
    on Sep 28, 2018
  17. JustinBeckwith
    assigned
    neozwu
    on Feb 1, 2021
  18. chingor13
    added a commit that references this issue on Jan 27, 2026

    deps: update googleapis/sdk-platform-java action to v2.66.0 (#1918)

    d2a0908
  19. chingor13
    added a commit that references this issue on Feb 20, 2026

    chore(deps): update dependency com.google.cloud:google-cloud-bigquery…

    e5fc882
  20. suztomo
    added a commit that references this issue on Mar 11, 2026

    deps: update googleapis/sdk-platform-java action to v2.66.0 (googleap…

    d8f2af1
  21. suztomo
    added a commit that references this issue on Mar 23, 2026

    docs: add sample for PROTO columns (googleapis#1918)

    39416a5
  22. meltsufin
    added 5 commits that reference this issue on Apr 29, 2026

    deps: update dependency com.google.cloud:google-cloud-bigquery to v2.…

    b8846f9

    chore(main): release 1.133.0 (#2206)

    a3b6539

    deps: update dependency com.google.cloud:google-cloud-bigquery to v2.…

    e89dfea

    chore(main): release 1.133.0 (#2206)

    1180af9

    chore: Update generation configuration at Fri Nov 1 02:29:50 UTC 2024 (…

    3af51d8
  23. benjaminp
    added a commit that references this issue on Jul 13, 2026

    chore: update renovate config with gapic-libraries-bom (googleapis#1918)

    4958ee1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @neozwu
    neozwu

Labels

api: datastoreIssues related to the Datastore API.api: loggingIssues related to the Cloud Logging API.api: storageIssues related to the Cloud Storage API.priority: p2Moderately-important priority. Fix may not be included in next release.running on app enginetype: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.