#google-apis-explorer 中的 Umbrella 异常

Umbrella Exception in #google-apis-explorer

Google Cloud Endpoints Java 框架升级到 v2,以及从 Java 7 升级到 Java 8 使用 Google API Explorer #google-apis-explorer,Explorer 打开 APIs 列表但是当打开 API 方法执行什么都不调用 returns 并且似乎找不到 API 方法 并抛出此 Umbrella 异常,即使调用 API 工作正常。

Uncaught Error: com.google.gwt.event.shared.UmbrellaException: Exception caught: Exception caught: undefined
    at UmbrellaException_0.createError (com.google.api.explorer.Explorer-0.js:12743)
    at UmbrellaException_0.initializeBackingError (com.google.api.explorer.Explorer-0.js:12793)
    at UmbrellaException_0.Throwable_2 (com.google.api.explorer.Explorer-0.js:12689)
    at UmbrellaException_0.Exception_2 (com.google.api.explorer.Explorer-0.js:12873)
    at UmbrellaException_0.RuntimeException_2 (com.google.api.explorer.Explorer-0.js:36112)
    at UmbrellaException_0.UmbrellaException (com.google.api.explorer.Explorer-0.js:56492)
    at new UmbrellaException_0 (com.google.api.explorer.Explorer-0.js:56547)
    at HandlerManager.fireEvent_1 [as fireEvent] (com.google.api.explorer.Explorer-0.js:56196)
    at FlexTable.fireEvent (com.google.api.explorer.Explorer-0.js:3323)
    at fireNativeEvent (com.google.api.explorer.Explorer-0.js:23173)
    at FlexTable.onBrowserEvent (com.google.api.explorer.Explorer-0.js:3372)
    at dispatchEventImpl (com.google.api.explorer.Explorer-0.js:63206)
    at dispatchEvent_3 (com.google.api.explorer.Explorer-0.js:63196)
    at HTMLTableElement.dispatchEvent_5 (com.google.api.explorer.Explorer-0.js:64267)
    at apply_57 (com.google.api.explorer.Explorer-0.js:50314)
    at entry0 (com.google.api.explorer.Explorer-0.js:50378)
    at HTMLTableElement.<anonymous> 

I used to get this before migration But after Migration Nothing return

您如何注释您的 API?迁移后我遇到了同样的问题,问题是小写的 httpMethod,在迁移之前我的 API 看起来像这样:

@ApiMethod(name = "getSomething", httpMethod = "get")

但是在迁移之后你必须使用大写的 httpMethods:

@ApiMethod(name = "getSomething", httpMethod = "GET")

@ApiMethod(name = "getSomething", httpMethod = HttpMethod.GET)