java.lang.reflect.InvocationTargetException

GitHub | YogenRaii | 1 month ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to poroszd . Or join the community to write better ones.
  1. 0
    samebug tip
    You need to use the spring-boot-maven-plugin in the build section of your pom.xml.
  2. 0
    samebug tip
    To create an executable jar we need to add the spring-boot-maven-plugin to our pom.xml
    via spring.io
  3. 0
    samebug tip
    All look like I had something else running on my machine that was interfering with it. Once I rebooted it runs without issue.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    The solution is to run as root using sudo or to set different port in "application.properties" file, e.g. server.port=${port:8181}
  6. 0
    samebug tip
    Use 'application.sources' instead of returning a new Application in the SpringBootServletInitializer.configure function.
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. org.apache.catalina.LifecycleException

    A child container failed during start

    at org.apache.catalina.core.ContainerBase.startInternal()
  2. Glassfish Core
    Tomcat.start
    1. org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919)
    2. org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
    3. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    4. org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)
    5. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    6. org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:791)
    7. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    8. org.apache.catalina.startup.Tomcat.start(Tomcat.java:356)
    8 frames
  3. Spring Boot
    EmbeddedWebApplicationContext.onRefresh
    1. org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.initialize(TomcatEmbeddedServletContainer.java:96)
    2. org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.<init>(TomcatEmbeddedServletContainer.java:82)
    3. org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getTomcatEmbeddedServletContainer(TomcatEmbeddedServletContainerFactory.java:535)
    4. org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getEmbeddedServletContainer(TomcatEmbeddedServletContainerFactory.java:177)
    5. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:164)
    6. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:134)
    6 frames
  4. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:535)
    1 frame
  5. Spring Boot
    SpringApplication.run
    1. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
    2. org.springframework.boot.SpringApplication.refresh(SpringApplication.java:761)
    3. org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:371)
    4. org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
    5. org.springframework.boot.SpringApplication.run(SpringApplication.java:1186)
    6. org.springframework.boot.SpringApplication.run(SpringApplication.java:1175)
    6 frames
  6. com.abixen.platform
    PlatformConfigurationApplication.main
    1. com.abixen.platform.configuration.PlatformConfigurationApplication.main(PlatformConfigurationApplication.java:29)
    1 frame
  7. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  8. Spring Boot Maven Plugin
    AbstractRunMojo$LaunchRunner.run
    1. org.springframework.boot.maven.AbstractRunMojo$LaunchRunner.run(AbstractRunMojo.java:506)
    1 frame
  9. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)
    1 frame