Skip to content

MoreExecutors.java (w/ & w/o Android) calls the AppEngine currentRequestThreadFactory in JDK8 #3598

Closed
@lesv

Description

@lesv

AppEngine no longer requires CurrentRequestFactory to be called for Java 8. It causes some apps to fail during local development as those API's aren't injected when running locally.

java.lang.RuntimeException: Couldn't invoke ThreadManager.currentRequestThreadFactory
        at com.google.common.util.concurrent.MoreExecutors.platformThreadFactory(MoreExecutors.java:759)
        at com.google.common.util.concurrent.MoreExecutors.newThread(MoreExecutors.java:799)
        at com.google.common.util.concurrent.MoreExecutors$Application.addDelayedShutdownHook(MoreExecutors.java:203)
        at com.google.common.util.concurrent.MoreExecutors$Application.getExitingScheduledExecutorService(MoreExecutors.java:189)
        at com.google.common.util.concurrent.MoreExecutors$Application.getExitingScheduledExecutorService(MoreExecutors.java:195)
        at com.google.common.util.concurrent.MoreExecutors.getExitingScheduledExecutorService(MoreExecutors.java:146)
        at com.google.cloud.sql.core.CoreSocketFactory.getDefaultExecutor(CoreSocketFactory.java:149)

@ludoch or @eamonnmcmanus will have more context. This relates to GoogleCloudPlatform/cloud-sql-jdbc-socket-factory#159

The API isn't available in GAE Java 11.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions