扳手不能在appengine上运行

时间:2017-04-03 23:32:20

标签: java google-app-engine transactions google-cloud-spanner

嗨,也许这是一个愚蠢的问题,但目前我正在测试使用带有appengine的扳手。但是我甚至在本地或远程环境中都运行空事务时遇到问题。我试过mvm和flex。

我基本上做的只是运行一个简单的交易

Exception in thread "grpc-default-executor-0" java.lang.NullPointerException
    at com.google.appengine.tools.development.RequestEndListenerHelper.getListeners(RequestEndListenerHelper.java:52)
    at com.google.appengine.tools.development.RequestEndListenerHelper.register(RequestEndListenerHelper.java:39)
    at com.google.appengine.tools.development.RequestThreadFactory$1$1.start(RequestThreadFactory.java:65)
    at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:950)
    at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1368)
    at io.grpc.auth.GoogleAuthLibraryCallCredentials.applyRequestMetadata(GoogleAuthLibraryCallCredentials.java:100)
    at io.grpc.internal.CallCredentialsApplyingTransportFactory$CallCredentialsApplyingTransport.newStream(CallCredentialsApplyingTransportFactory.java:98)
    at io.grpc.internal.DelayedClientTransport$PendingStream.createRealStream(DelayedClientTransport.java:392)
    at io.grpc.internal.DelayedClientTransport$PendingStream.access$100(DelayedClientTransport.java:379)
    at io.grpc.internal.DelayedClientTransport$2.run(DelayedClientTransport.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at com.google.appengine.tools.development.RequestThreadFactory$1$1$2.run(RequestThreadFactory.java:110)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.google.appengine.tools.development.RequestThreadFactory$1$1.run(RequestThreadFactory.java:107)

但是这段代码似乎在最后一行阻塞,并且需要永远返回。我在appengine之外尝试了相同的代码(以及更复杂的事务逻辑),它只是按预期工作。

这又是一个非常简单的例子,我试图遵循,但是我无法得到它。所以我想知道可能出现什么问题。

编辑:

对不起我的不好,我不认为这是关于交易的问题。我试过做一个singeUse阅读它也是永远阻止。所以我怀疑有一些权限问题我需要在appengine上设置扳手吗?但是我真的无法在doc中找到它...

编辑:

等了一会儿,得到像这样的堆栈跟踪

@InheritedComponent

0 个答案:

没有答案