java.lang.IllegalStateException: serviceUrl must be set when deployed to servlet-container

GitHub | jiangyuhe123 | 4 months ago
  1. 0

    Error when startup by giving message "serviceUrl must be set when deployed to servlet-container"

    GitHub | 4 months ago | jiangyuhe123
    java.lang.IllegalStateException: serviceUrl must be set when deployed to servlet-container
  2. 1
    You should define the TestContext class in your classpath
  3. 0
    You can solve this by using an actual Service instead of an IntentService
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    In all ActiveAndroid tables there should be a primary key field with the name "Id" (with a capital "I").
  6. 0
    Update to Grails 3.0.x

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      serviceUrl must be set when deployed to servlet-container

      at de.codecentric.boot.admin.config.AdminClientProperties.getServiceUrl()
    2. de.codecentric.boot
      RegistrationApplicationListener$1.run
      1. de.codecentric.boot.admin.config.AdminClientProperties.getServiceUrl(AdminClientProperties.java:132)
      2. de.codecentric.boot.admin.config.AdminClientProperties.getManagementUrl(AdminClientProperties.java:87)
      3. de.codecentric.boot.admin.config.AdminClientProperties.getHealthUrl(AdminClientProperties.java:119)
      4. de.codecentric.boot.admin.services.ApplicationRegistrator.createApplication(ApplicationRegistrator.java:124)
      5. de.codecentric.boot.admin.services.ApplicationRegistrator.register(ApplicationRegistrator.java:73)
      6. de.codecentric.boot.admin.services.RegistrationApplicationListener$1.run(RegistrationApplicationListener.java:89)
      6 frames
    3. Spring Context
      DelegatingErrorHandlingRunnable.run
      1. org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
      1 frame
    4. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      2. java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
      5. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      7. java.lang.Thread.run(Thread.java:745)
      7 frames