java.lang.IllegalStateException: No parent defined yet (please use the other overloaded parent methods to set one)

Stack Overflow | Mamatha V Rao | 6 months ago
  1. 0

    Run multiple spring boot applications with different context paths under one port

    Stack Overflow | 6 months ago | Mamatha V Rao
    java.lang.IllegalStateException: No parent defined yet (please use the other overloaded parent methods to set one)
  2. 0
    Execute mvn dependency:tree from your project's root directory.
  3. 0
    Check if there is no nexus running. If not, delete sonatype-work/nexus/nexus.lock .
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    In cause your problem comes because of mediastore, you have to try changing Albums.ALBUM_ID, to Albums._ID
  6. 0
    You should define the TestContext class in your classpath

    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

      No parent defined yet (please use the other overloaded parent methods to set one)

      at org.springframework.boot.builder.SpringApplicationBuilder.runAndExtractParent()
    2. Spring Boot
      SpringApplicationBuilder.sibling
      1. org.springframework.boot.builder.SpringApplicationBuilder.runAndExtractParent(SpringApplicationBuilder.java:224)
      2. org.springframework.boot.builder.SpringApplicationBuilder.sibling(SpringApplicationBuilder.java:247)
      2 frames
    3. com.example
      MainBootAppApplication.main
      1. com.example.MainBootAppApplication.main(MainBootAppApplication.java:16)
      1 frame