Spring Boot Application immediately shuts down after starting

EnvyIT

I am working currently on a project which includes the Spring Framework. Everything is working as aspect but there is one problem. When I try to start my application onto my laptop it immediately shuts down after startup. It is working on every other machine, so this problem occurs only on my laptop.

Maybe you got an idea what could force this problem ? I am working with IntelliJ and I haven´t found any solutions for this problem. PC Specs

  • Laptop is a AsusN550JK( modified RAM and SSD)
  • Intel Core i7-4700HQ [email protected] GHz
  • 16 GB Ram
  • 500 GB SSD Samsung EVO 840
  • 1 TB HDD
  • 64 Bit OS - Windows 10

ConsoleOutput

Exclusions:
-----------

    None


Unconditional classes:
----------------------

    org.springframework.boot.autoconfigure.web.WebClientAutoConfiguration

    org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration

    org.springframework.boot.autoconfigure.context.ConfigurationPropertiesAutoConfiguration

    org.springframework.boot.autoconfigure.info.ProjectInfoAutoConfiguration



2017-04-22 21:24:15.756  INFO 6300 --- [           main] com.objectbay.test.me.Application        : Started Application in 8.012 seconds (JVM running for 9.251)
2017-04-22 21:24:15.758  INFO 6300 --- [       Thread-3] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@6fb0d3ed: startup date [Sat Apr 22 21:24:08 CEST 2017]; root of context hierarchy
2017-04-22 21:24:15.763  INFO 6300 --- [       Thread-3] o.s.j.e.a.AnnotationMBeanExporter        : Unregistering JMX-exposed beans on shutdown
2017-04-22 21:24:15.764  INFO 6300 --- [       Thread-3] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
2017-04-22 21:24:15.765  INFO 6300 --- [       Thread-3] org.hibernate.tool.hbm2ddl.SchemaExport  : HHH000227: Running hbm2ddl schema export
2017-04-22 21:24:15.771 DEBUG 6300 --- [       Thread-3] org.hibernate.SQL                        : drop table person if exists
2017-04-22 21:24:15.782  INFO 6300 --- [       Thread-3] org.hibernate.tool.hbm2ddl.SchemaExport  : HHH000230: Schema export complete

Process finished with exit code 0

pom.xml

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>org.springframework</groupId>
    <artifactId>gs-accessing-data-rest</artifactId>
    <version>0.1.0</version>

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>1.5.2.RELEASE</version>
    </parent>

    <properties>
        <java.version>1.8</java.version>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-rest</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-jpa</artifactId>
        </dependency>
        <dependency>
            <groupId>com.h2database</groupId>
            <artifactId>h2</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.hibernate.javax.persistence</groupId>
            <artifactId>hibernate-jpa-2.1-api</artifactId>
            <version>1.0.0.Final</version>
        </dependency>
        <dependency>
            <groupId>org.hibernate.javax.persistence</groupId>
            <artifactId>hibernate-jpa-2.1-api</artifactId>
            <version>1.0.0.Final</version>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>

    <repositories>
        <repository>
            <id>spring-releases</id>
            <url>https://repo.spring.io/libs-release</url>
        </repository>
    </repositories>
    <pluginRepositories>
        <pluginRepository>
            <id>spring-releases</id>
            <url>https://repo.spring.io/libs-release</url>
        </pluginRepository>
    </pluginRepositories>
</project>

Full example which is not working on my machine Spring Guide Rest example

Console - LOG after Updating Dependencies LOG after Updating Dependencies

EnvyIT

Problem is solved - thanks for your help crazycoder. The issue was caused by an older version of tomcat. After upating the embedded tomcat of Spring to 1.5.3_RELEASE and updating mysql-jdbc-driver as well , it finally worked for me. I adjusted the pom.xml like this:

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.0.0.RELEASE</version>
</parent>

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Cronjob immediately shuts down mac after boot

spring-boot application shutdown immediately after starting (schedular)

Deployed application shuts itself down immediately

Program immediately shuts down after entering value

Spring boot Syslog UDP receiver shuts down

Computer shuts down immediately after posting on second start

Spring boot app with Apache Camel shuts down right after it has started

Windows 8 randomly shuts down after installing Ubuntu dual boot

Table not created in MySql DB after starting Spring Boot application

Shutdown of Executor service in Spring Boot when Tomcat shuts down

ExpressJS - Port is not released after node application shuts down

Why does my Spring Boot App always shutdown immediately after starting?

How to prevent Spring Boot daemon/server application from closing/shutting down immediately?

Spring boot is shutting down VM after APPLICATION FAILED TO START

Spring boot application not starting on Tomcat

JMS not starting in Spring Boot application

Batch file appears not to run and shuts down immediately

Python docker container shuts down immediately after finishing running the app, even if specified to stay in -d -t

Spring boot stops after starting

Dynamically linked DLL is loaded immediately after starting the application

Error starting Spring boot application with ElasticSearch

How to stop a starting spring boot application?

Issues Starting my Simple Spring Boot Application

Spring boot application not starting embedded tomcat

Delphi: code after Application.Run does not execute if user reboots/shuts down

Freshly clean computer shuts down immediately due to "overheating"

Postgres shuts down immediately when started with docker-compose

Custom Built PC gets momentary power and immediately shuts down

Programmatically shut down Spring Boot application