java.lang.IllegalArgumentException: Environment variable 'ENDPOINTS_SERVICE_NAME' is not set

Stack Overflow | Bhargav Mehta | 5 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Google App Engine Endpoint using multi module maven application

    Stack Overflow | 5 months ago | Bhargav Mehta
    java.lang.IllegalArgumentException: Environment variable 'ENDPOINTS_SERVICE_NAME' is not set

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Environment variable 'ENDPOINTS_SERVICE_NAME' is not set

      at com.google.api.config.ServiceConfigSupplier.get()
    2. com.google.api
      ServiceConfigSupplier.get
      1. com.google.api.config.ServiceConfigSupplier.get(ServiceConfigSupplier.java:99)
      2. com.google.api.config.ServiceConfigSupplier.get(ServiceConfigSupplier.java:47)
      2 frames
    3. Guava
      Suppliers$ExpiringMemoizingSupplier.get
      1. com.google.common.base.Suppliers$ExpiringMemoizingSupplier.get(Suppliers.java:199)
      1 frame
    4. com.google.api
      ConfigFilter.init
      1. com.google.api.config.ServiceConfigFetcher.fetch(ServiceConfigFetcher.java:40)
      2. com.google.api.control.ServiceManagementConfigFilter$1.load(ServiceManagementConfigFilter.java:33)
      3. com.google.api.control.ConfigFilter.init(ConfigFilter.java:87)
      3 frames
    5. Jetty Server
      FilterHolder.doStart
      1. org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
      1 frame
    6. Jetty Util
      AbstractLifeCycle.start
      1. org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      1 frame
    7. Jetty Server
      WebAppContext.doStart
      1. org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:662)
      2. org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
      3. org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
      4. org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
      5. org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
      5 frames
    8. Jetty Util
      AbstractLifeCycle.start
      1. org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      1 frame
    9. com.google.apphosting
      JettyServletEngineAdapter.serviceRequest
      1. com.google.apphosting.runtime.jetty.AppVersionHandlerMap.createHandler(AppVersionHandlerMap.java:206)
      2. com.google.apphosting.runtime.jetty.AppVersionHandlerMap.getHandler(AppVersionHandlerMap.java:179)
      3. com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:136)
      3 frames
    10. appengine-managed-runtime
      JavaRuntime$RequestRunnable.run
      1. com.google.apphosting.runtime.JavaRuntime$RequestRunnable.run(JavaRuntime.java:504)
      1 frame
    11. Google tracing
      TraceContext$TraceContextRunnable.run
      1. com.google.tracing.TraceContext$TraceContextRunnable.runInContext(TraceContext.java:446)
      2. com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:453)
      3. com.google.tracing.CurrentContext.runInContext(CurrentContext.java:276)
      4. com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:312)
      5. com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:304)
      6. com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java:450)
      6 frames
    12. appengine-managed-runtime
      ThreadGroupPool$PoolEntry.run
      1. com.google.apphosting.runtime.ThreadGroupPool$PoolEntry.run(ThreadGroupPool.java:235)
      1 frame
    13. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame