Dropwizard REST API server exited with code 1 - java

I am facing a weird issue. My REST API server started successfully initially but within a second it shows an error: rest_web_1 exited with code 1
Heroku Logs:
2017-08-02T17:10:17.046289+00:00 heroku[web.1]: State changed from starting to crashed
2017-08-02T17:32:02.558126+00:00 heroku[web.1]: State changed from crashed to starting
2017-08-02T17:32:08.592558+00:00 heroku[web.1]: Starting process with command `java $JAVA_OPTS -jar target/rest-api-0.0.1-SNAPSHOT.jar db migrate config.yml && java $JAVA_OPTS -Ddw.server.connector.port=25407 -jar target/rest-api-0.0.1-SNAPSHOT.jar server config.yml`
2017-08-02T17:32:11.191891+00:00 app[web.1]: Setting JAVA_TOOL_OPTIONS defaults based on dyno size. Custom settings will override them.
2017-08-02T17:32:11.196719+00:00 app[web.1]: Picked up JAVA_TOOL_OPTIONS: -Xmx350m -Xss512k -Dfile.encoding=UTF-8
2017-08-02T17:32:14.934624+00:00 app[web.1]: INFO [2017-08-02 17:32:14,927] com.xxx.restapi.RESTAPIConfiguration: Dropwizard db url: unused-url
2017-08-02T17:32:14.946383+00:00 app[web.1]: INFO [2017-08-02 17:32:14,945] com.xxx.restapi.HerokuDatabaseConfiguration: create db for url postgres://zbmzcwisbahqdv:acbd315fe0cfef2f09f863bd917943ac65c07c91426c250e5be73f1c36c78067#ec2-107-22-173-160.compute-1.amazonaws.com:5432/d501u91mttif5a
2017-08-02T17:32:14.955800+00:00 app[web.1]: INFO [2017-08-02 17:32:14,955] com.xxx.restapi.RESTAPIConfiguration: Heroku database URL = jdbc:postgresql://ec2-107-22-173-160.compute-1.amazonaws.com:5432/d501u91mttif5a?ssl=true&sslfactory=org.postgresql.ssl.NonValidatingFactory
2017-08-02T17:32:17.728489+00:00 app[web.1]: INFO [2017-08-02 17:32:17,727] liquibase: Successfully acquired change log lock
2017-08-02T17:32:22.267138+00:00 app[web.1]: INFO [2017-08-02 17:32:22,266] liquibase: Reading from public.databasechangelog
2017-08-02T17:32:22.519081+00:00 app[web.1]: INFO [2017-08-02 17:32:22,518] liquibase: Successfully released change log lock
2017-08-02T17:32:22.653060+00:00 app[web.1]: Picked up JAVA_TOOL_OPTIONS: -Xmx350m -Xss512k -Dfile.encoding=UTF-8
2017-08-02T17:32:28.741222+00:00 app[web.1]: INFO [2017-08-02 17:32:28,737] org.eclipse.jetty.util.log: Logging initialized #6083ms to org.eclipse.jetty.util.log.Slf4jLog
2017-08-02T17:32:28.870054+00:00 app[web.1]: INFO [2017-08-02 17:32:28,869] io.dropwizard.server.SimpleServerFactory: Registering jersey handler with root path prefix: /
2017-08-02T17:32:28.892861+00:00 app[web.1]: INFO [2017-08-02 17:32:28,892] com.xxx.restapi.RESTAPIConfiguration: Dropwizard db url: unused-url
2017-08-02T17:32:28.891933+00:00 app[web.1]: INFO [2017-08-02 17:32:28,891] io.dropwizard.server.SimpleServerFactory: Registering admin handler with root path prefix: /admin
2017-08-02T17:32:28.894018+00:00 app[web.1]: INFO [2017-08-02 17:32:28,893] com.xxx.restapi.HerokuDatabaseConfiguration: create db for url postgres://zbmzcwisbahqdv:acbd315fe0cfef2f09f863bd917943ac65c07c91426c250e5be73f1c36c78067#ec2-107-22-173-160.compute-1.amazonaws.com:5432/d501u91mttif5a
2017-08-02T17:32:28.894901+00:00 app[web.1]: INFO [2017-08-02 17:32:28,894] com.xxx.restapi.RESTAPIConfiguration: Heroku database URL = jdbc:postgresql://ec2-107-22-173-160.compute-1.amazonaws.com:5432/d501u91mttif5a?ssl=true&sslfactory=org.postgresql.ssl.NonValidatingFactory
2017-08-02T17:32:29.556538+00:00 app[web.1]: INFO [2017-08-02 17:32:29,556] org.hibernate.Version: HHH000412: Hibernate Core {0.0.1-SNAPSHOT}
2017-08-02T17:32:29.580604+00:00 app[web.1]: INFO [2017-08-02 17:32:29,579] io.dropwizard.hibernate.SessionFactoryFactory: Entity classes: [com.xxx.restapi.model.REST, com.xxx.restapi.model.HardwareVersion]
2017-08-02T17:32:29.558231+00:00 app[web.1]: INFO [2017-08-02 17:32:29,557] org.hibernate.cfg.Environment: HHH000206: hibernate.properties not found
2017-08-02T17:32:29.674259+00:00 app[web.1]: INFO [2017-08-02 17:32:29,673] org.hibernate.annotations.common.Version: HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
2017-08-02T17:32:31.480300+00:00 app[web.1]: INFO [2017-08-02 17:32:31,479] org.hibernate.dialect.Dialect: HHH000400: Using dialect: org.hibernate.dialect.PostgreSQL94Dialect
2017-08-02T17:32:32.988141+00:00 app[web.1]: INFO [2017-08-02 17:32:32,987] org.hibernate.engine.jdbc.env.internal.LobCreatorBuilderImpl: HHH000424: Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException
2017-08-02T17:32:32.991166+00:00 app[web.1]: INFO [2017-08-02 17:32:32,990] org.hibernate.type.BasicTypeRegistry: HHH000270: Type registration [java.util.UUID] overrides previous : org.hibernate.type.UUIDBinaryType#b3e86d5
2017-08-02T17:32:34.138436+00:00 app[web.1]: INFO [2017-08-02 17:32:34,134] org.hibernate.type.BasicTypeRegistry: HHH000270: Type registration [java.util.Currency] overrides previous : org.hibernate.type.CurrencyType#9b47400
2017-08-02T17:32:34.139054+00:00 app[web.1]: INFO [2017-08-02 17:32:34,138] org.hibernate.type.BasicTypeRegistry: HHH000270: Type registration [java.time.Duration] overrides previous : org.hibernate.type.DurationType#747835f5
2017-08-02T17:32:34.139441+00:00 app[web.1]: INFO [2017-08-02 17:32:34,139] org.hibernate.type.BasicTypeRegistry: HHH000270: Type registration [java.time.Instant] overrides previous : org.hibernate.type.InstantType#51d0ec6f
2017-08-02T17:32:34.140427+00:00 app[web.1]: INFO [2017-08-02 17:32:34,139] org.hibernate.type.BasicTypeRegistry: HHH000270: Type registration [java.time.LocalDate] overrides previous : org.hibernate.type.LocalDateType#4e0cc334
2017-08-02T17:32:34.140757+00:00 app[web.1]: INFO [2017-08-02 17:32:34,140] org.hibernate.type.BasicTypeRegistry: HHH000270: Type registration [java.time.LocalDateTime] overrides previous : org.hibernate.type.LocalDateTimeType#1e12a5a6
2017-08-02T17:32:34.141057+00:00 app[web.1]: INFO [2017-08-02 17:32:34,140] org.hibernate.type.BasicTypeRegistry: HHH000270: Type registration [java.time.LocalTime] overrides previous : org.hibernate.type.LocalTimeType#47a7c93e
2017-08-02T17:32:34.141482+00:00 app[web.1]: INFO [2017-08-02 17:32:34,141] org.hibernate.type.BasicTypeRegistry: HHH000270: Type registration [java.time.OffsetDateTime] overrides previous : org.hibernate.type.OffsetDateTimeType#6f9ab79d
2017-08-02T17:32:34.142354+00:00 app[web.1]: INFO [2017-08-02 17:32:34,142] org.hibernate.type.BasicTypeRegistry: HHH000270: Type registration [java.time.OffsetTime] overrides previous : org.hibernate.type.OffsetTimeType#64ae105d
2017-08-02T17:32:34.147946+00:00 app[web.1]: INFO [2017-08-02 17:32:34,145] org.hibernate.type.BasicTypeRegistry: HHH000270: Type registration [java.time.ZonedDateTime] overrides previous : org.hibernate.type.ZonedDateTimeType#10a18e3e
2017-08-02T17:32:34.778461+00:00 app[web.1]: INFO [2017-08-02 17:32:34,769] com.xxx.restapi.RESTAPIApplication: Starting REST-API app server
2017-08-02T17:32:34.801376+00:00 app[web.1]: INFO [2017-08-02 17:32:34,801] io.dropwizard.server.SimpleServerFactory: Registering jersey handler with root path prefix: /
2017-08-02T17:32:34.812575+00:00 app[web.1]: INFO [2017-08-02 17:32:34,810] io.dropwizard.server.SimpleServerFactory: Registering admin handler with root path prefix: /admin
2017-08-02T17:32:34.822918+00:00 app[web.1]: INFO [2017-08-02 17:32:34,814] io.dropwizard.server.ServerFactory: Starting rest-api
2017-08-02T17:32:35.950162+00:00 heroku[web.1]: State changed from starting to up
2017-08-02T17:32:35.870712+00:00 app[web.1]: INFO [2017-08-02 17:32:35,867] org.eclipse.jetty.setuid.SetUIDListener: Opened rest-api#69a5c6be{HTTP/1.1,[http/1.1]}{0.0.0.0:25407}
2017-08-02T17:32:35.870854+00:00 app[web.1]: INFO [2017-08-02 17:32:35,869] org.eclipse.jetty.server.Server: jetty-9.4.z-SNAPSHOT
2017-08-02T17:32:36.159048+00:00 app[web.1]: INFO [2017-08-02 17:32:36,158] org.eclipse.jetty.server.AbstractConnector: Started rest-api#69a5c6be{HTTP/1.1,[http/1.1]}{0.0.0.0:25407}
2017-08-02T17:32:36.159396+00:00 app[web.1]: org/glassfish/jersey/spi/ScheduledThreadPoolExecutorProvider
2017-08-02T17:32:36.765005+00:00 heroku[web.1]: Process exited with status 1
2017-08-02T17:32:36.778743+00:00 heroku[web.1]: State changed from up to crashed
Updated:
Dockerfile
FROM heroku/java
docker-compose.yml
web:
build: .
command: 'bash -c ''java $JAVA_OPTS -jar target/rest-api-0.0.1-SNAPSHOT.jar db migrate config.yml && java $JAVA_OPTS -Ddw.server.connector.port=$PORT -jar target/rest-api-0.0.1-SNAPSHOT.jar server config.yml'''
working_dir: /app/user
environment:
PORT: 8080
DATABASE_URL: 'postgres://postgres:#herokuPostgresql:5432/postgres'
ports:
- '8080:8080'
links:
- herokuPostgresql
shell:
build: .
command: bash
working_dir: /app/user
environment:
PORT: 8080
DATABASE_URL: 'postgres://postgres:#herokuPostgresql:5432/postgres'
ports:
- '8080:8080'
links:
- herokuPostgresql
volumes:
- '.:/app/user'
herokuPostgresql:
image: postgres
Can anyone please help me to figure out what's going wrong here?

I got a fix for the issue. I think it was due to jersey-media-multipart dependency, as and when I removed it, it starts working fine. Might be dependency version specific.

Related

Jasypt: Failed to bind properties under 'spring.datasource.password' to java.lang.String

I am using Jasypt in my Spring Boot app and encrypted passwords in app properties and docker-compose using proper annotation:
application.properties.yml:
datasource:
driver-class-name: org.postgresql.Driver
url: jdbc:postgresql://localhost:5432/employee_db
username: postgres
password: ENC(fpEVpMwMbl4hbcoCKuhrpi...)
# jasypt
jasypt:
encryptor:
algorithm: PBEWithMD5AndDES
iv-generator-classname: org.jasypt.iv.NoIvGenerator
docker-compose.yml:
services:
db:
image: postgres:14.6-alpine
environment:
POSTGRES_DB: employee_db
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ENC(fpEVpMwMbl4hbcoCKuhrpi...)
After creating Docker image for database (db container), I add the VM options to IntelliJ and start the app. But I got the following error and cannot find a solution for that:
Description: Failed to bind properties under 'spring.datasource.password' to java.lang.String:
Reason: org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under 'spring.datasource.password' to java.lang.String
Action: Update your application's configuration
Any idea to solve the problem?
Here is the full log:
C:\Users\simpson\.jdks\corretto-17.0.5\bin\java.exe -Djasypt.encryptor.password=abnamro -XX:TieredStopAtLevel=1 -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2022.2.1\lib\idea_rt.jar=53749:
C:\Program Files\JetBrains\IntelliJ IDEA 2022.2.1\bin" -Dfile.encoding=UTF-8 -classpath "D:\employee-api\target\classes;C:\Users\simpson\.m2\repository\org\springframework\boot\spring-boot-starter-data-jpa\2.7.5\spring-boot-starter-data-jpa-2.7.5.jar;C:\Users\simpson\.m2\repository\org\springframework\boot\spring-boot-starter-aop\2.7.5\spring-boot-starter-aop-2.7.5.jar;C:\Users\simpson\.m2\repository\org\springframework\spring-aop\5.3.23\spring-aop-5.3.23.jar;C:\Users\simpson\.m2\repository\org\aspectj\aspectjweaver\1.9.7\aspectjweaver-1.9.7.jar;C:\Users\simpson\.m2\repository\org\springframework\boot\spring-boot-starter-jdbc\2.7.5\spring-boot-starter-jdbc-2.7.5.jar;C:\Users\simpson\.m2\repository\com\zaxxer\HikariCP\4.0.3\HikariCP-4.0.3.jar;C:\Users\simpson\.m2\repository\org\springframework\spring-jdbc\5.3.23\spring-jdbc-5.3.23.jar;C:\Users\simpson\.m2\repository\jakarta\transaction\jakarta.transaction-api\1.3.3\jakarta.transaction-api-1.3.3.jar;C:\Users\simpson\.m2\repository\jakarta\persistence\jakarta.persistence-api\2.2.3\jakarta.persistence-api-2.2.3.jar;C:\Users\simpson\.m2\repository\org\hibernate\hibernate-core\5.6.12.Final\hibernate-core-5.6.12.Final.jar;C:\Users\simpson\.m2\repository\org\jboss\logging\jboss-logging\3.4.3.Final\jboss-logging-3.4.3.Final.jar;C:\Users\simpson\.m2\repository\net\bytebuddy\byte-buddy\1.12.18\byte-buddy-1.12.18.jar;C:\Users\simpson\.m2\repository\antlr\antlr\2.7.7\antlr-2.7.7.jar;C:\Users\simpson\.m2\repository\org\jboss\jandex\2.4.2.Final\jandex-2.4.2.Final.jar;C:\Users\simpson\.m2\repository\org\hibernate\common\hibernate-commons-annotations\5.1.2.Final\hibernate-commons-annotations-5.1.2.Final.jar;C:\Users\simpson\.m2\repository\org\glassfish\jaxb\jaxb-runtime\2.3.7\jaxb-runtime-2.3.7.jar;C:\Users\simpson\.m2\repository\org\glassfish\jaxb\txw2\2.3.7\txw2-2.3.7.jar;C:\Users\simpson\.m2\repository\com\sun\istack\istack-commons-runtime\3.0.12\istack-commons-runtime-3.0.12.jar;C:\Users\simpson\.m2\repository\com\sun\activation\jakarta.activation\1.2.2\jakarta.activation-1.2.2.jar;C:\Users\simpson\.m2\repository\org\springframework\data\spring-data-jpa\2.7.5\spring-data-jpa-2.7.5.jar;C:\Users\simpson\.m2\repository\org\springframework\data\spring-data-commons\2.7.5\spring-data-commons-2.7.5.jar;C:\Users\simpson\.m2\repository\org\springframework\spring-orm\5.3.23\spring-orm-5.3.23.jar;C:\Users\simpson\.m2\repository\org\springframework\spring-context\5.3.23\spring-context-5.3.23.jar;C:\Users\simpson\.m2\repository\org\springframework\spring-tx\5.3.23\spring-tx-5.3.23.jar;C:\Users\simpson\.m2\repository\org\springframework\spring-beans\5.3.23\spring-beans-5.3.23.jar;C:\Users\simpson\.m2\repository\org\springframework\spring-aspects\5.3.23\spring-aspects-5.3.23.jar;C:\Users\simpson\.m2\repository\org\springframework\boot\spring-boot-starter-web\2.7.5\spring-boot-starter-web-2.7.5.jar;C:\Users\simpson\.m2\repository\org\springframework\boot\spring-boot-starter\2.7.5\spring-boot-starter-2.7.5.jar;C:\Users\simpson\.m2\repository\org\springframework\boot\spring-boot-starter-logging\2.7.5\spring-boot-starter-logging-2.7.5.jar;C:\Users\simpson\.m2\repository\ch\qos\logback\logback-classic\1.2.11\logback-classic-1.2.11.jar;C:\Users\simpsson\.m2\repository\ch\qos\logback\logback-core\1.2.11\logback-core-1.2.11.jar;C:\Users\simpson\.m2\repository\org\apache\logging\log4j\log4j-to-slf4j\2.17.2\log4j-to-slf4j-2.17.2.jar;C:\Users\simpson\.m2\repository\org\apache\logging\log4j\log4j-api\2.17.2\log4j-api-2.17.2.jar;C:\Users\simpson\.m2\repository\org\slf4j\jul-to-slf4j\1.7.36\jul-to-slf4j-1.7.36.jar;C:\Users\simpson\.m2\repository\jakarta\annotation\jakarta.annotation-api\1.3.5\jakarta.annotation-api-1.3.5.jar;C:\Users\simpson\.m2\repository\org\yaml\snakeyaml\1.30\snakeyaml-1.30.jar;C:\Users\simpson\.m2\repository\org\springframework\boot\spring-boot-starter-json\2.7.5\spring-boot-starter-json-2.7.5.jar;C:\Users\simpson\.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.13.4.2\jackson-databind-2.13.4.2.jar;C:\Users\simpson\.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.13.4\jackson-annotations-2.13.4.jar;C:\Users\simpson\.m2\repository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.13.4\jackson-datatype-jdk8-2.13.4.jar;C:\Users\simpson\.m2\repository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.13.4\jackson-datatype-jsr310-2.13.4.jar;C:\Users\simpson\.m2\repository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.13.4\jackson-module-parameter-names-2.13.4.jar;C:\Users\simpson\.m2\repository\org\springframework\boot\spring-boot-starter-tomcat\2.7.5\spring-boot-starter-tomcat-2.7.5.jar;C:\Users\simpson\.m2\repository\org\apache\tomcat\embed\tomcat-embed-core\9.0.68\tomcat-embed-core-9.0.68.jar;C:\Users\simpson\.m2\repository\org\apache\tomcat\embed\tomcat-embed-websocket\9.0.68\tomcat-embed-websocket-9.0.68.jar;C:\Users\simpson\.m2\repository\org\springframework\spring-web\5.3.23\spring-web-5.3.23.jar;C:\Users\simpson\.m2\repository\org\springframework\spring-webmvc\5.3.23\spring-webmvc-5.3.23.jar;C:\Users\simpson\.m2\repository\org\springframework\spring-expression\5.3.23\spring-expression-5.3.23.jar;C:\Users\simpson\.m2\repository\org\springframework\boot\spring-boot-starter-validation\3.0.0\spring-boot-starter-validation-3.0.0.jar;C:\Users\simpson\.m2\repository\org\apache\tomcat\embed\tomcat-embed-el\9.0.68\tomcat-embed-el-9.0.68.jar;C:\Users\simpson\.m2\repository\org\hibernate\validator\hibernate-validator\6.2.5.Final\hibernate-validator-6.2.5.Final.jar;C:\Users\simpson\.m2\repository\jakarta\validation\jakarta.validation-api\2.0.2\jakarta.validation-api-2.0.2.jar;C:\Users\simpson\.m2\repository\org\springframework\boot\spring-boot-devtools\2.7.5\spring-boot-devtools-2.7.5.jar;C:\Users\simpson\.m2\repository\org\springframework\boot\spring-boot\2.7.5\spring-boot-2.7.5.jar;C:\Users\simpson\.m2\repository\org\springframework\boot\spring-boot-autoconfigure\2.7.5\spring-boot-autoconfigure-2.7.5.jar;C:\Users\simpson\.m2\repository\org\projectlombok\lombok\1.18.24\lombok-1.18.24.jar;C:\Users\simpson\.m2\repository\io\springfox\springfox-boot-starter\3.0.0\springfox-boot-starter-3.0.0.jar;C:\Users\simpson\.m2\repository\io\springfox\springfox-oas\3.0.0\springfox-oas-3.0.0.jar;C:\Users\simpson\.m2\repository\io\swagger\core\v3\swagger-annotations\2.1.2\swagger-annotations-2.1.2.jar;C:\Users\simpson\.m2\repository\io\swagger\core\v3\swagger-models\2.1.2\swagger-models-2.1.2.jar;C:\Users\simpson\.m2\repository\io\springfox\springfox-spi\3.0.0\springfox-spi-3.0.0.jar;C:\Users\simpson\.m2\repository\io\springfox\springfox-schema\3.0.0\springfox-schema-3.0.0.jar;C:\Users\simpson\.m2\repository\io\springfox\springfox-core\3.0.0\springfox-core-3.0.0.jar;C:\Users\simpson\.m2\repository\io\springfox\springfox-spring-web\3.0.0\springfox-spring-web-3.0.0.jar;C:\Users\simpson\.m2\repository\io\github\classgraph\classgraph\4.8.83\classgraph-4.8.83.jar;C:\Users\simpson\.m2\repository\io\springfox\springfox-spring-webmvc\3.0.0\springfox-spring-webmvc-3.0.0.jar;C:\Users\simpson\.m2\repository\io\springfox\springfox-spring-webflux\3.0.0\springfox-spring-webflux-3.0.0.jar;C:\Users\simpson\.m2\repository\io\springfox\springfox-swagger-common\3.0.0\springfox-swagger-common-3.0.0.jar;C:\Users\simpson\.m2\repository\org\mapstruct\mapstruct\1.3.1.Final\mapstruct-1.3.1.Final.jar;C:\Users\simpson\.m2\repository\io\springfox\springfox-data-rest\3.0.0\springfox-data-rest-3.0.0.jar;C:\Users\simpson\.m2\repository\io\springfox\springfox-bean-validators\3.0.0\springfox-bean-validators-3.0.0.jar;C:\Users\simpson\.m2\repository\io\springfox\springfox-swagger2\3.0.0\springfox-swagger2-3.0.0.jar;C:\Users\simpson\.m2\repository\io\swagger\swagger-annotations\1.5.20\swagger-annotations-1.5.20.jar;C:\Users\simpson\.m2\repository\io\swagger\swagger-models\1.5.20\swagger-models-1.5.20.jar;C:\Users\simpson\.m2\repository\io\springfox\springfox-swagger-ui\3.0.0\springfox-swagger-ui-3.0.0.jar;C:\Users\simpson\.m2\repository\com\fasterxml\classmate\1.5.1\classmate-1.5.1.jar;C:\Users\simpson\.m2\repository\org\slf4j\slf4j-api\1.7.36\slf4j-api-1.7.36.jar;C:\Users\simpson\.m2\repository\org\springframework\plugin\spring-plugin-core\2.0.0.RELEASE\spring-plugin-core-2.0.0.RELEASE.jar;C:\Users\simpson\.m2\repository\org\springframework\plugin\spring-plugin-metadata\2.0.0.RELEASE\spring-plugin-metadata-2.0.0.RELEASE.jar;C:\Users\simpson\.m2\repository\org\apache\commons\commons-text\1.10.0\commons-text-1.10.0.jar;C:\Users\simpson\.m2\repository\org\apache\commons\commons-lang3\3.12.0\commons-lang3-3.12.0.jar;C:\Users\simpson\.m2\repository\com\github\ulisesbocchio\jasypt-spring-boot-starter\3.0.3\jasypt-spring-boot-starter-3.0.3.jar;C:\Users\simpson\.m2\repository\com\github\ulisesbocchio\jasypt-spring-boot\3.0.3\jasypt-spring-boot-3.0.3.jar;C:\Users\simpson\.m2\repository\org\jasypt\jasypt\1.9.3\jasypt-1.9.3.jar;C:\Users\simpson\.m2\repository\org\flywaydb\flyway-core\9.8.3\flyway-core-9.8.3.jar;C:\Users\simpson\.m2\repository\com\fasterxml\jackson\dataformat\jackson-dataformat-toml\2.13.4\jackson-dataformat-toml-2.13.4.jar;C:\Users\simpson\.m2\repository\com\fasterxml\jackson\core\jackson-core\2.13.4\jackson-core-2.13.4.jar;C:\Users\simpson\.m2\repository\org\postgresql\postgresql\42.5.1\postgresql-42.5.1.jar;C:\Users\simpson\.m2\repository\org\checkerframework\checker-qual\3.5.0\checker-qual-3.5.0.jar;C:\Users\simpson\.m2\repository\jakarta\xml\bind\jakarta.xml.bind-api\2.3.3\jakarta.xml.bind-api-2.3.3.jar;C:\Users\simpson\.m2\repository\jakarta\activation\jakarta.activation-api\1.2.2\jakarta.activation-api-1.2.2.jar;C:\Users\simpson\.m2\repository\org\springframework\spring-core\5.3.23\spring-core-5.3.23.jar;C:\Users\simpson\.m2\repository\org\springframework\spring-jcl\5.3.23\spring-jcl-5.3.23.jar" com.demo.EmployeeApiApplication
19:35:35.056 [Thread-0] DEBUG org.springframework.boot.devtools.restart.classloader.RestartClassLoader - Created RestartClassLoader org.springframework.boot.devtools.restart.classloader.RestartClassLoader#4a79e7d6
2022-12-10 19:35:35,468 INFO com.demo.EmployeeApiApplication : Starting EmployeeApiApplication using Java 17.0.5 on DESKTOP-1J43AAP with PID 27224 (D:\Archive\_HR\Applications\Interview\ABN Amro\assignment\solution\employee-api\target\classes started by simpson in D:\Archive\_HR\Applications\Interview\ABN Amro\assignment\solution\employee-api)
2022-12-10 19:35:35,468 DEBUG com.demo.EmployeeApiApplication : Running with Spring Boot v2.7.5, Spring v5.3.23
2022-12-10 19:35:35,469 INFO com.demo.EmployeeApiApplication : The following 1 profile is active: "production"
2022-12-10 19:35:36,533 INFO com.ulisesbocchio.jasyptspringboot.configuration.EnableEncryptablePropertiesBeanFactoryPostProcessor : Post-processing PropertySource instances
2022-12-10 19:35:36,549 INFO com.ulisesbocchio.jasyptspringboot.EncryptablePropertySourceConverter : Converting PropertySource configurationProperties [org.springframework.boot.context.properties.source.ConfigurationPropertySourcesPropertySource] to AOP Proxy
2022-12-10 19:35:36,550 INFO com.ulisesbocchio.jasyptspringboot.EncryptablePropertySourceConverter : Converting PropertySource servletConfigInitParams [org.springframework.core.env.PropertySource$StubPropertySource] to EncryptablePropertySourceWrapper
2022-12-10 19:35:36,550 INFO com.ulisesbocchio.jasyptspringboot.EncryptablePropertySourceConverter : Converting PropertySource servletContextInitParams [org.springframework.core.env.PropertySource$StubPropertySource] to EncryptablePropertySourceWrapper
2022-12-10 19:35:36,551 INFO com.ulisesbocchio.jasyptspringboot.EncryptablePropertySourceConverter : Converting PropertySource systemProperties [org.springframework.core.env.PropertiesPropertySource] to EncryptableMapPropertySourceWrapper
2022-12-10 19:35:36,551 INFO com.ulisesbocchio.jasyptspringboot.EncryptablePropertySourceConverter : Converting PropertySource systemEnvironment [org.springframework.boot.env.SystemEnvironmentPropertySourceEnvironmentPostProcessor$OriginAwareSystemEnvironmentPropertySource] to EncryptableSystemEnvironmentPropertySourceWrapper
2022-12-10 19:35:36,551 INFO com.ulisesbocchio.jasyptspringboot.EncryptablePropertySourceConverter : Converting PropertySource random [org.springframework.boot.env.RandomValuePropertySource] to EncryptablePropertySourceWrapper
2022-12-10 19:35:36,551 INFO com.ulisesbocchio.jasyptspringboot.EncryptablePropertySourceConverter : Converting PropertySource Config resource 'class path resource [application.yml]' via location 'optional:classpath:/' [org.springframework.boot.env.OriginTrackedMapPropertySource] to EncryptableMapPropertySourceWrapper
2022-12-10 19:35:36,551 INFO com.ulisesbocchio.jasyptspringboot.EncryptablePropertySourceConverter : Converting PropertySource devtools [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper
2022-12-10 19:35:36,579 INFO com.ulisesbocchio.jasyptspringboot.filter.DefaultLazyPropertyFilter : Property Filter custom Bean not found with name 'encryptablePropertyFilter'. Initializing Default Property Filter
2022-12-10 19:35:36,703 INFO com.ulisesbocchio.jasyptspringboot.resolver.DefaultLazyPropertyResolver : Property Resolver custom Bean not found with name 'encryptablePropertyResolver'. Initializing Default Property Resolver
2022-12-10 19:35:36,704 INFO com.ulisesbocchio.jasyptspringboot.detector.DefaultLazyPropertyDetector : Property Detector custom Bean not found with name 'encryptablePropertyDetector'. Initializing Default Property Detector
2022-12-10 19:35:36,923 INFO org.apache.catalina.core.StandardService : Starting service [Tomcat]
2022-12-10 19:35:36,923 INFO org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.68]
2022-12-10 19:35:36,979 INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2022-12-10 19:35:37,053 INFO com.ulisesbocchio.jasyptspringboot.encryptor.DefaultLazyEncryptor : Found Custom Encryptor Bean org.jasypt.encryption.pbe.PooledPBEStringEncryptor#220275ac with name: jasyptStringEncryptor
2022-12-10 19:35:37,082 INFO org.apache.catalina.core.StandardService : Stopping service [Tomcat]
2022-12-10 19:35:37,114 ERROR org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Failed to bind properties under 'spring.datasource.password' to java.lang.String:
Reason: org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under 'spring.datasource.password' to java.lang.String
Action:
Update your application's configuration
Process finished with exit code 0
I run the project using IntelliJ IDEA by selecting Run -> Edit Configurations and in the Build and run section, add the following value to the VM options field and run the application: -Djasypt.encryptor.password=my-secret
Try to downgrade to 2.0.0 version of jasypt-spring-boot-starter
<dependency>
<groupId>com.github.ulisesbocchio</groupId>
<artifactId>jasypt-spring-boot-starter</artifactId>
<version>2.0.0</version>
</dependency>

whitelabel error page trying to deploy an hibernate spring web app with mysql database

Im trying to deploy my hibernate spring web app to heroku but i allways get this whitelabel error page after my build was finished succesfully. Ive configurated my mysql with clearDB addon for my app.
My application.properties:
spring.datasource.url=jdbc:mysql://ba502d9d5b06ef:e654f0e3#us-cdbr-east-03.cleardb.com/heroku_ee4acc10d87140e?reconnect=true
spring.datasource.username=ba502d9d5b06ef
spring.datasource.password=e654f0e3
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect
spring.jpa.hibernate.ddl-auto=create
spring.datasource.initialization-mode=always
spring.jpa.show-sql=true
spring.jpa.open-in-view=false
IN the logs I dont see any error:
2021-04-14T16:58:22.657179+00:00 app[web.1]: =========|_|==============|___/=/_/_/_/
2021-04-14T16:58:22.658994+00:00 app[web.1]: :: Spring Boot :: (v2.4.4)
2021-04-14T16:58:22.666285+00:00 app[web.1]:undefined
2021-04-14T16:58:23.589943+00:00 app[web.1]: 2021-04-14 16:58:23.585 INFO 4 --- [ main] com.example.HibernateProjectApplication : Starting HibernateProjectApplication v0.0.1-SNAPSHOT using Java 1.8.0_282-heroku on a770f46c-38ea-4bd1-868b-12c5e5419cb5 with PID 4 (/app/target/hibernate-project-0.0.1-SNAPSHOT.jar started by u9499 in /app)
2021-04-14T16:58:23.603214+00:00 app[web.1]: 2021-04-14 16:58:23.602 INFO 4 --- [ main] com.example.HibernateProjectApplication : No active profile set, falling back to default profiles: default
2021-04-14T16:58:29.216266+00:00 app[web.1]: 2021-04-14 16:58:29.215 INFO 4 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2021-04-14T16:58:29.380911+00:00 app[web.1]: 2021-04-14 16:58:29.377 INFO 4 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 119 ms. Found 0 JPA repository interfaces.
2021-04-14T16:58:32.916029+00:00 app[web.1]: 2021-04-14 16:58:32.915 INFO 4 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8593 (http)
2021-04-14T16:58:32.983567+00:00 app[web.1]: 2021-04-14 16:58:32.983 INFO 4 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2021-04-14T16:58:32.983893+00:00 app[web.1]: 2021-04-14 16:58:32.983 INFO 4 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.44]
2021-04-14T16:58:33.401127+00:00 app[web.1]: 2021-04-14 16:58:33.400 INFO 4 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2021-04-14T16:58:33.401323+00:00 app[web.1]: 2021-04-14 16:58:33.401 INFO 4 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 9341 ms
2021-04-14T16:58:34.665387+00:00 app[web.1]: 2021-04-14 16:58:34.663 INFO 4 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default]
2021-04-14T16:58:34.886885+00:00 app[web.1]: 2021-04-14 16:58:34.886 INFO 4 --- [ main] org.hibernate.Version : HHH000412: Hibernate ORM core version 5.4.25.Final
2021-04-14T16:58:35.442081+00:00 app[web.1]: 2021-04-14 16:58:35.441 INFO 4 --- [ main] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
2021-04-14T16:58:36.456909+00:00 app[web.1]: 2021-04-14 16:58:36.456 INFO 4 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2021-04-14T16:58:38.161072+00:00 app[web.1]: 2021-04-14 16:58:38.160 INFO 4 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2021-04-14T16:58:38.215198+00:00 app[web.1]: 2021-04-14 16:58:38.214 INFO 4 --- [ main] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.MySQL8Dialect
2021-04-14T16:58:41.077382+00:00 app[web.1]: Hibernate: alter table experts_tags drop foreign key FKnl365tg8om78fg3ysbtghggkb
2021-04-14T16:58:41.602826+00:00 app[web.1]: Hibernate: alter table experts_tags drop foreign key FKe95y97r3gwwaboftk7gmekyg0
2021-04-14T16:58:41.850066+00:00 app[web.1]: Hibernate: drop table if exists experts
2021-04-14T16:58:42.086171+00:00 app[web.1]: Hibernate: drop table if exists experts_tags
2021-04-14T16:58:42.306130+00:00 app[web.1]: Hibernate: drop table if exists tags
2021-04-14T16:58:42.733054+00:00 app[web.1]: Hibernate: create table experts (id bigint not null auto_increment, mail varchar(255), name varchar(255), phone varchar(255), surname varchar(255), primary key (id)) engine=InnoDB
2021-04-14T16:58:43.053119+00:00 app[web.1]: Hibernate: create table experts_tags (tag_id bigint not null, expert_id bigint not null) engine=InnoDB
2021-04-14T16:58:43.350696+00:00 app[web.1]: Hibernate: create table tags (id bigint not null auto_increment, name varchar(255), primary key (id)) engine=InnoDB
2021-04-14T16:58:43.579415+00:00 app[web.1]: Hibernate: alter table experts_tags add constraint FKnl365tg8om78fg3ysbtghggkb foreign key (expert_id) references experts (id)
2021-04-14T16:58:46.064945+00:00 app[web.1]: Hibernate: alter table experts_tags add constraint FKe95y97r3gwwaboftk7gmekyg0 foreign key (tag_id) references tags (id)
2021-04-14T16:58:47.254179+00:00 app[web.1]: 2021-04-14 16:58:47.250 INFO 4 --- [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
2021-04-14T16:58:47.272102+00:00 app[web.1]: 2021-04-14 16:58:47.271 INFO 4 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2021-04-14T16:58:57.035254+00:00 app[web.1]: 2021-04-14 16:58:57.034 INFO 4 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
2021-04-14T16:58:58.573400+00:00 app[web.1]: 2021-04-14 16:58:58.573 INFO 4 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8593 (http) with context path ''
2021-04-14T16:58:58.626807+00:00 app[web.1]: 2021-04-14 16:58:58.626 INFO 4 --- [ main] com.example.HibernateProjectApplication : Started HibernateProjectApplication in 37.989 seconds (JVM running for 41.665)
2021-04-14T16:58:59.176795+00:00 heroku[web.1]: State changed from starting to up
2021-04-14T16:59:00.209572+00:00 app[web.1]: 2021-04-14 16:59:00.209 INFO 4 --- [nio-8593-exec-3] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
2021-04-14T16:59:00.212461+00:00 app[web.1]: 2021-04-14 16:59:00.209 INFO 4 --- [nio-8593-exec-3] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet'
2021-04-14T16:59:00.247973+00:00 app[web.1]: 2021-04-14 16:59:00.247 INFO 4 --- [nio-8593-exec-3] o.s.web.servlet.DispatcherServlet : Completed initialization in 35 ms
2021-04-14T16:59:00.518471+00:00 heroku[router]: at=info method=GET path="/" host=serene-wave-12377.herokuapp.com request_id=3c699b2b-f033-441d-b0e0-4403b22e9174 fwd="212.225.157.40" dyno=web.1 connect=1ms service=408ms status=404 bytes=533 protocol=https
2021-04-14T16:59:01.439451+00:00 heroku[router]: at=info method=GET path="/" host=serene-wave-12377.herokuapp.com request_id=561dae27-41a7-47f6-a464-d769fa1f11f1 fwd="212.225.157.40" dyno=web.1 connect=1ms service=20ms status=404 bytes=533 protocol=https
2021-04-14T17:33:51.292986+00:00 heroku[web.1]: Idling
2021-04-14T17:33:51.295419+00:00 heroku[web.1]: State changed from up to down
2021-04-14T17:33:52.802193+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2021-04-14T17:33:53.379215+00:00 app[web.1]: 2021-04-14 17:33:53.378 INFO 4 --- [extShutdownHook] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor'
2021-04-14T17:33:53.382140+00:00 app[web.1]: 2021-04-14 17:33:53.381 INFO 4 --- [extShutdownHook] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
2021-04-14T17:33:53.403146+00:00 app[web.1]: 2021-04-14 17:33:53.402 INFO 4 --- [extShutdownHook] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated...
2021-04-14T17:33:53.422738+00:00 app[web.1]: 2021-04-14 17:33:53.422 INFO 4 --- [extShutdownHook] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed.
2021-04-14T17:33:53.581621+00:00 heroku[web.1]: Process exited with status 143
2021-04-14T17:50:36.705241+00:00 heroku[web.1]: Unidling
2021-04-14T17:50:36.739207+00:00 heroku[web.1]: State changed from down to starting
2021-04-14T17:50:41.707826+00:00 heroku[web.1]: Starting process with command `java -Dserver.port=27335 $JAVA_OPTS -jar target/hibernate-project-0.0.1-SNAPSHOT.jar`
2021-04-14T17:50:44.513305+00:00 app[web.1]: Create a Procfile to customize the command used to run this process: https://devcenter.heroku.com/articles/procfile
2021-04-14T17:50:44.541874+00:00 app[web.1]: Setting JAVA_TOOL_OPTIONS defaults based on dyno size. Custom settings will override them.
2021-04-14T17:50:44.546769+00:00 app[web.1]: Picked up JAVA_TOOL_OPTIONS: -Xmx300m -Xss512k -XX:CICompilerCount=2 -Dfile.encoding=UTF-8
2021-04-14T17:50:47.249610+00:00 app[web.1]:undefined
2021-04-14T17:50:47.249643+00:00 app[web.1]: . ____ _ __ _ _
2021-04-14T17:50:47.249710+00:00 app[web.1]: /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
2021-04-14T17:50:47.249796+00:00 app[web.1]: ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
2021-04-14T17:50:47.249891+00:00 app[web.1]: \\/ ___)| |_)| | | | | || (_| | ) ) ) )
2021-04-14T17:50:47.249979+00:00 app[web.1]: ' |____| .__|_| |_|_| |_\__, | / / / /
2021-04-14T17:50:47.250075+00:00 app[web.1]: =========|_|==============|___/=/_/_/_/
2021-04-14T17:50:47.251699+00:00 app[web.1]: :: Spring Boot :: (v2.4.4)
2021-04-14T17:50:47.251767+00:00 app[web.1]:undefined
2021-04-14T17:50:47.821357+00:00 app[web.1]: 2021-04-14 17:50:47.815 INFO 4 --- [ main] com.example.HibernateProjectApplication : Starting HibernateProjectApplication v0.0.1-SNAPSHOT using Java 1.8.0_282-heroku on c643d1ef-1bf9-4afe-b781-67fcf736b8de with PID 4 (/app/target/hibernate-project-0.0.1-SNAPSHOT.jar started by u11638 in /app)
2021-04-14T17:50:47.838303+00:00 app[web.1]: 2021-04-14 17:50:47.838 INFO 4 --- [ main] com.example.HibernateProjectApplication : No active profile set, falling back to default profiles: default
2021-04-14T17:50:51.605839+00:00 app[web.1]: 2021-04-14 17:50:51.605 INFO 4 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2021-04-14T17:50:51.658438+00:00 app[web.1]: 2021-04-14 17:50:51.658 INFO 4 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 14 ms. Found 0 JPA repository interfaces.
2021-04-14T17:50:54.657321+00:00 app[web.1]: 2021-04-14 17:50:54.656 INFO 4 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 27335 (http)
2021-04-14T17:50:54.683536+00:00 app[web.1]: 2021-04-14 17:50:54.683 INFO 4 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2021-04-14T17:50:54.683875+00:00 app[web.1]: 2021-04-14 17:50:54.683 INFO 4 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.44]
2021-04-14T17:50:54.823579+00:00 app[web.1]: 2021-04-14 17:50:54.823 INFO 4 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2021-04-14T17:50:54.823782+00:00 app[web.1]: 2021-04-14 17:50:54.823 INFO 4 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 6823 ms
2021-04-14T17:50:55.505119+00:00 app[web.1]: 2021-04-14 17:50:55.503 INFO 4 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default]
2021-04-14T17:50:55.619977+00:00 app[web.1]: 2021-04-14 17:50:55.619 INFO 4 --- [ main] org.hibernate.Version : HHH000412: Hibernate ORM core version 5.4.25.Final
2021-04-14T17:50:56.007715+00:00 app[web.1]: 2021-04-14 17:50:56.007 INFO 4 --- [ main] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
2021-04-14T17:50:56.344137+00:00 app[web.1]: 2021-04-14 17:50:56.343 INFO 4 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2021-04-14T17:50:57.512229+00:00 app[web.1]: 2021-04-14 17:50:57.511 INFO 4 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2021-04-14T17:50:57.544862+00:00 app[web.1]: 2021-04-14 17:50:57.544 INFO 4 --- [ main] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.MySQL8Dialect
2021-04-14T17:50:59.168629+00:00 app[web.1]: Hibernate: alter table experts_tags drop foreign key FKnl365tg8om78fg3ysbtghggkb
2021-04-14T17:50:59.439632+00:00 app[web.1]: Hibernate: alter table experts_tags drop foreign key FKe95y97r3gwwaboftk7gmekyg0
2021-04-14T17:50:59.512568+00:00 app[web.1]: Hibernate: drop table if exists experts
2021-04-14T17:50:59.707009+00:00 app[web.1]: Hibernate: drop table if exists experts_tags
2021-04-14T17:51:00.077891+00:00 app[web.1]: Hibernate: drop table if exists tags
2021-04-14T17:51:00.408296+00:00 app[web.1]: Hibernate: create table experts (id bigint not null auto_increment, mail varchar(255), name varchar(255), phone varchar(255), surname varchar(255), primary key (id)) engine=InnoDB
2021-04-14T17:51:00.634624+00:00 app[web.1]: Hibernate: create table experts_tags (tag_id bigint not null, expert_id bigint not null) engine=InnoDB
2021-04-14T17:51:01.089138+00:00 app[web.1]: Hibernate: create table tags (id bigint not null auto_increment, name varchar(255), primary key (id)) engine=InnoDB
2021-04-14T17:51:01.332440+00:00 app[web.1]: Hibernate: alter table experts_tags add constraint FKnl365tg8om78fg3ysbtghggkb foreign key (expert_id) references experts (id)
2021-04-14T17:51:02.912298+00:00 app[web.1]: Hibernate: alter table experts_tags add constraint FKe95y97r3gwwaboftk7gmekyg0 foreign key (tag_id) references tags (id)
2021-04-14T17:51:03.534716+00:00 app[web.1]: 2021-04-14 17:51:03.534 INFO 4 --- [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
2021-04-14T17:51:03.550682+00:00 app[web.1]: 2021-04-14 17:51:03.550 INFO 4 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2021-04-14T17:51:06.083841+00:00 app[web.1]: 2021-04-14 17:51:06.083 INFO 4 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
2021-04-14T17:51:07.111251+00:00 app[web.1]: 2021-04-14 17:51:07.110 INFO 4 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 27335 (http) with context path ''
2021-04-14T17:51:07.114552+00:00 heroku[web.1]: State changed from starting to up
2021-04-14T17:51:07.142281+00:00 app[web.1]: 2021-04-14 17:51:07.141 INFO 4 --- [ main] com.example.HibernateProjectApplication : Started HibernateProjectApplication in 20.845 seconds (JVM running for 22.595)
2021-04-14T17:51:08.387673+00:00 app[web.1]: 2021-04-14 17:51:08.387 INFO 4 --- [io-27335-exec-3] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
2021-04-14T17:51:08.389990+00:00 app[web.1]: 2021-04-14 17:51:08.387 INFO 4 --- [io-27335-exec-3] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet'
2021-04-14T17:51:08.402205+00:00 app[web.1]: 2021-04-14 17:51:08.401 INFO 4 --- [io-27335-exec-3] o.s.web.servlet.DispatcherServlet : Completed initialization in 11 ms
2021-04-14T17:51:08.553786+00:00 heroku[router]: at=info method=GET path="/" host=serene-wave-12377.herokuapp.com request_id=c901837f-c079-465c-ab92-471e625d439e fwd="212.225.157.40" dyno=web.1 connect=1ms service=265ms status=404 bytes=533 protocol=https
2021-04-14T17:51:09.924826+00:00 heroku[router]: at=info method=GET path="/" host=serene-wave-12377.herokuapp.com request_id=20e7a49c-5522-408e-a640-dc6cb2598c03 fwd="212.225.157.40" dyno=web.1 connect=1ms service=11ms status=404 bytes=533 protocol=https
2021-04-14T17:51:28.336794+00:00 heroku[router]: at=info method=GET path="/" host=serene-wave-12377.herokuapp.com request_id=d5c31acb-73f6-4799-ac11-a4a1ee68cfea fwd="212.225.157.40" dyno=web.1 connect=0ms service=10ms status=404 bytes=533 protocol=https
2021-04-14T17:55:00.328739+00:00 heroku[router]: at=info method=GET path="/" host=serene-wave-12377.herokuapp.com request_id=84cd646d-4c8c-4c4c-bc2b-3814a8eab886 fwd="212.225.157.40" dyno=web.1 connect=1ms service=12ms status=404 bytes=533 protocol=https
Why I cant access to my app? any help would be very appreciated!
You are using MySQL for deploying your app to Heroku.
SO you have to use this addon.
Otherwise, you can use PostgreSQL then everything will work fine.
The issue i was not accessing to the right endpoint. I had to add api/experts to get my info. Hope this serves if someone has the same issue.

hbase Regionserver start, zookeeper start but hmaster is not starting (regionserver.HRegionServer: Failed construction RegionServer)

Hbase zookeeper start, regionserver start on multi node cluster but hmaster is not starting and generating below log file.
hbase-site.xml snap
<configuration>
<property>
<name>hbase.master</name>
<value>namenode:60000</value>
</property>
<property>
<name>hbase.rootdir</name>
<value>hdfs://namenode:9001</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>datanode</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/hadoop2/zookeeper</value>
</property>
<property>
<name>hbase.zookeeper.property.clientPort</name>
<value>2181</value>
</property>
</configuration>
Two machines datanode and namenode:
on datanode: jps commands shows
10977 HRegionServer
10810 HQuorumPeer
1675 DataNode
on namenode: jps command show
12017 ResourceManager
2353 NameNode
14904 Jps
11326 Jps
Below is the snap of hbase-root-master-namenode.log
2018-09-12 09:52:23,430 ERROR [main] regionserver.HRegionServer: Failed construction RegionServer
java.lang.NoClassDefFoundError: org/apache/htrace/SamplerBuilder
at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:635)
at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:619)
at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:149)
at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2669)
at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:94)
at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2703)
at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2685)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:373)
at org.apache.hadoop.fs.Path.getFileSystem(Path.java:295)
at org.apache.hadoop.hbase.util.CommonFSUtils.getRootDir(CommonFSUtils.java:358)
at org.apache.hadoop.hbase.util.CommonFSUtils.isValidWALRootDir(CommonFSUtils.java:407)
at org.apache.hadoop.hbase.util.CommonFSUtils.getWALRootDir(CommonFSUtils.java:383)
at org.apache.hadoop.hbase.regionserver.HRegionServer.initializeFileSystem(HRegionServer.java:691)
at org.apache.hadoop.hbase.regionserver.HRegionServer.<init>(HRegionServer.java:600)
at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:484)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.apache.hadoop.hbase.master.HMaster.constructMaster(HMaster.java:2965)
at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:236)
at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:140)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:149)
at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:2983)
Caused by: java.lang.ClassNotFoundException: org.apache.htrace.SamplerBuilder
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 25 more
2018-09-12 09:52:23,432 ERROR [main] master.HMasterCommandLine: Master exiting
java.lang.RuntimeException: Failed construction of Master: class org.apache.hadoop.hbase.master.HMaster.
at org.apache.hadoop.hbase.master.HMaster.constructMaster(HMaster.java:2972)
at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:236
I am trying to connect it from last 4 days install many time hbase.
Please help me out, all the setup is on Ubuntu 16.
Below is regionserver log file:
hbase-root-regionserver-datanode.log
2018-09-12 09:52:25,989 INFO [main] zookeeper.ZooKeeper: Initiating client connection, connectString=datanode:2181 sessionTimeout=90000 watcher=org.apache.hadoop.hbase.zookeeper.PendingWatcher#1c12f3ee
2018-09-12 09:52:26,006 INFO [main-SendThread(datanode:2181)] zookeeper.ClientCnxn: Opening socket connection to server datanode/192.168.1.134:2181. Will not attempt to authenticate using SASL (unknown error)
2018-09-12 09:52:26,023 INFO [main-SendThread(datanode:2181)] zookeeper.ClientCnxn: Socket connection established to datanode/192.168.1.134:2181, initiating session
2018-09-12 09:52:26,079 INFO [main-SendThread(datanode:2181)] zookeeper.ClientCnxn: Session establishment complete on server datanode/192.168.1.134:2181, sessionid = 0x165cc0408850000, negotiated timeout = 90000
2018-09-12 09:52:26,149 INFO [main] util.log: Logging initialized #3383ms
2018-09-12 09:52:26,233 INFO [main] http.HttpRequestLog: Http request log for http.requests.regionserver is not defined
2018-09-12 09:52:26,252 INFO [main] http.HttpServer: Added global filter 'safety' (class=org.apache.hadoop.hbase.http.HttpServer$QuotingInputFilter)
2018-09-12 09:52:26,252 INFO [main] http.HttpServer: Added global filter 'clickjackingprevention' (class=org.apache.hadoop.hbase.http.ClickjackingPreventionFilter)
2018-09-12 09:52:26,255 INFO [main] http.HttpServer: Added filter static_user_filter (class=org.apache.hadoop.hbase.http.lib.StaticUserWebFilter$StaticUserFilter) to context regionserver
2018-09-12 09:52:26,255 INFO [main] http.HttpServer: Added filter static_user_filter (class=org.apache.hadoop.hbase.http.lib.StaticUserWebFilter$StaticUserFilter) to context logs
2018-09-12 09:52:26,255 INFO [main] http.HttpServer: Added filter static_user_filter (class=org.apache.hadoop.hbase.http.lib.StaticUserWebFilter$StaticUserFilter) to context static
2018-09-12 09:52:26,284 INFO [main] http.HttpServer: Jetty bound to port 16030
2018-09-12 09:52:26,286 INFO [main] server.Server: jetty-9.3.19.v20170502
2018-09-12 09:52:26,327 INFO [main] handler.ContextHandler: Started o.e.j.s.ServletContextHandler#675ffd1d{/logs,file:///hbase/logs/,AVAILABLE}
2018-09-12 09:52:26,328 INFO [main] handler.ContextHandler: Started o.e.j.s.ServletContextHandler#30506c0d{/static,file:///hbase/hbase-webapps/static/,AVAILABLE}
2018-09-12 09:52:26,488 INFO [main] handler.ContextHandler: Started o.e.j.w.WebAppContext#6a0ac48e{/,file:///hbase/hbase-webapps/regionserver/,AVAILABLE}{file:/hbase/hbase-webapps/regionserver}
2018-09-12 09:52:26,498 INFO [main] server.AbstractConnector: Started ServerConnector#f84967f{HTTP/1.1,[http/1.1]}{0.0.0.0:16030}
2018-09-12 09:52:26,498 INFO [main] server.Server: Started #3733ms
Below is zookeeper log file:hbase-root-zookeeper-datanode.log
2018-09-12 09:52:21,017 INFO [main] server.ZooKeeperServer: Server environment:host.name=datanode
2018-09-12 09:52:21,017 INFO [main] server.ZooKeeperServer: Server environment:java.version=1.8.0_181
2018-09-12 09:52:21,017 INFO [main] server.ZooKeeperServer: Server environment:java.vendor=Oracle Corporation
2018-09-12 09:52:21,017 INFO [main] server.ZooKeeperServer: Server environment:java.home=/usr/local/jdk1.8.0_181/jre
2018-09-12 09:52:21,017 INFO [main] server.ZooKeeperServer: l-4.0.23.Final.jar:/hbase/bin/../lib/org.eclipse.jdt.core-3.8.2.v20130121.jar:/hbase/bin/../lib/osgi-resource-locator-1.0.1.jar:/hbase/bin/../lib/paranamer-2.3.jar:/hbase/bin/../lib/protobuf-java-2.5.0.jar:/hbase/bin/../lib/snappy-java-1.0.5.jar:/hbase/bin/../lib/spymemcached-2.12.2.jar:/hbase/bin/../lib/validation-api-1.1.0.Final.jar:/hbase/bin/../lib/xmlenc-0.52.jar:/hbase/bin/../lib/xz-1.0.jar:/hbase/bin/../lib/zookeeper-3.4.10.jar:/hbase/bin/../lib/client-facing-thirdparty/audience-annotations-0.5.0.jar:/hbase/bin/../lib/client-facing-thirdparty/commons-logging-1.2.jar:/hbase/bin/../lib/client-facing-thirdparty/findbugs-annotations-1.3.9-1.jar:/hbase/bin/../lib/client-facing-thirdparty/htrace-core4-4.2.0-incubating.jar:/hbase/bin/../lib/client-facing-thirdparty/log4j-1.2.17.jar:/hbase/bin/../lib/client-facing-thirdparty/slf4j-api-1.7.25.jar:/hbase/bin/../lib/client-facing-thirdparty/htrace-core-3.1.0-incubating.jar:/hbase/bin/../lib/client-facing-thirdparty/slf4j-log4j12-1.7.25.jar
2018-09-12 09:52:21,017 INFO [main] server.ZooKeeperServer: Server environment:java.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
2018-09-12 09:52:21,017 INFO [main] server.ZooKeeperServer: Server environment:java.io.tmpdir=/tmp
2018-09-12 09:52:21,017 INFO [main] server.ZooKeeperServer: Server environment:java.compiler=<NA>
2018-09-12 09:52:21,017 INFO [main] server.ZooKeeperServer: Server environment:os.name=Linux
2018-09-12 09:52:21,017 INFO [main] server.ZooKeeperServer: Server environment:os.arch=amd64
2018-09-12 09:52:21,017 INFO [main] server.ZooKeeperServer: Server environment:os.version=4.13.0-46-generic
2018-09-12 09:52:21,017 INFO [main] server.ZooKeeperServer: Server environment:user.name=root
2018-09-12 09:52:21,017 INFO [main] server.ZooKeeperServer: Server environment:user.home=/root
2018-09-12 09:52:21,017 INFO [main] server.ZooKeeperServer: Server environment:user.dir=/root
2018-09-12 09:52:21,026 INFO [main] server.ZooKeeperServer: tickTime set to 3000
2018-09-12 09:52:21,026 INFO [main] server.ZooKeeperServer: minSessionTimeout set to -1
2018-09-12 09:52:21,026 INFO [main] server.ZooKeeperServer: maxSessionTimeout set to 90000
2018-09-12 09:52:21,037 INFO [main] server.NIOServerCnxnFactory: binding to port 0.0.0.0/0.0.0.0:2181
2018-09-12 09:52:26,016 INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181] server.NIOServerCnxnFactory: Accepted socket connection from /192.168.1.134:44004
2018-09-12 09:52:26,028 INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181] server.ZooKeeperServer: Client attempting to establish new session at /192.168.1.134:44004
2018-09-12 09:52:26,028 INFO [SyncThread:0] persistence.FileTxnLog: Creating new log file: log.3
2018-09-12 09:52:26,077 INFO [SyncThread:0] server.ZooKeeperServer: Established session 0x165cc0408850000 with negotiated timeout 90000 for client /192.168.1.134:44004
In my installation I have:
Ubuntu 18.04
Hadoop 3.1.1
HBase 2.1.0
The same error was discussed in this question.
While starting HBase Master Daemon I've got the same error:
2018-10-17 17:53:17,058 ERROR [main] regionserver.HRegionServer: Failed construction RegionServer java.lang.NoClassDefFoundError: org/apache/htrace/SamplerBuilder
at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:635) at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:619) ...
I've guess that the error happens because HBase master use jars from HADOOP_HOME and can't find there htrace-core library.
I've check what htrace jars are located in HBASE_HOME and HADOOP_HOME:
$ find $HBASE_HOME/ -type f -name 'htrace-core*' -ls
689258 1472 -rw-r--r-- 1 hadoop hadoop 1506370 июл 6 18:28 /opt/hbase-2.1.0/lib/client-facing-thirdparty/htrace-core4-4.2.0-incubating.jar
689260 1444 -rw-r--r-- 1 hadoop hadoop 1475955 июл 6 18:33 /opt/hbase-2.1.0/lib/client-facing-thirdparty/htrace-core-3.1.0-incubating.jar
$ find $HADOOP_HOME/ -type f -name 'htrace-core*' -ls
672815 1444 -rw-r--r-- 1 hadoop hadoop 1475955 авг 2 09:50 /opt/hadoop-3.1.1/share/hadoop/yarn/timelineservice/lib/htrace-core-3.1.0-incubating.jar
673317 1468 -rw-r--r-- 1 hadoop hadoop 1502280 авг 2 09:28 /opt/hadoop-3.1.1/share/hadoop/common/lib/htrace-core4-4.1.0-incubating.jar
656456 1444 -rw-r--r-- 1 hadoop hadoop 1475955 июл 6 18:33 31 /opt/hadoop-3.1.1/share/hadoop/hdfs/lib/htrace-core4-4.1.0-incubating.jar
So, I put htrace-core-3.1.0-incubating.jar from HBASE_HOME into $HADDOP_HOME/share/hadoop/common/lib.
And I've got the next error:
2018-10-17 18:13:18,380 ERROR [Thread-14] master.HMaster: Failed to become active master
java.lang.IllegalStateException: The procedure WAL relies on the ability to hsync for proper operation during component failures, but the underlying filesystem
does not support doing so. Please check the config value of 'hbase.procedure.store.wal.use.hsync' to set the desired level of robustness and ensure the config
value of 'hbase.wal.dir' points to a FileSystem mount that can provide it.
at org.apache.hadoop.hbase.procedure2.store.wal.WALProcedureStore.rollWriter(WALProcedureStore.java:1044)
at org.apache.hadoop.hbase.procedure2.store.wal.WALProcedureStore.recoverLease(WALProcedureStore.java:383)
at org.apache.hadoop.hbase.procedure2.ProcedureExecutor.init(ProcedureExecutor.java:545)
at org.apache.hadoop.hbase.master.HMaster.createProcedureExecutor(HMaster.java:1325)
at org.apache.hadoop.hbase.master.HMaster.finishActiveMasterInitialization(HMaster.java:871)
at org.apache.hadoop.hbase.master.HMaster.startActiveMasterManager(HMaster.java:2109)
at org.apache.hadoop.hbase.master.HMaster.lambda$run$0(HMaster.java:566)
at java.lang.Thread.run(Thread.java:748)
As said here all what we need is to simply recompile HBase by ourselvs or to put property into hbase-site.xml:
<property>
<name>hbase.unsafe.stream.capability.enforce</name>
<value>false</value>
</property>
I took the second way. And Hbase was started up.
Thay may happen because you have two versions of htrace-core (3.1.0 and 4.2.0)
You should remove 4.2.0:
cd /usr/local/hbase/lib/client-facing-thirdparty/
rm -rfv htrace-core4-4.2.0-incubating.jar

SpringBoot + RabbitMQ throwing error : java.net.ConnectException: Connection refused

I have hosted a multimodule project on heroku and receiving the following error when trying to run my Spring Boot Application.
2018-06-13T05:34:47.611296+00:00 app[web.1]: 2018-06-13 05:34:47.611 INFO 4 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Bean with name 'rabbitConnectionFactory' has been autodetected for JMX exposure
2018-06-13T05:34:47.617422+00:00 app[web.1]: 2018-06-13 05:34:47.617 INFO 4 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Located managed bean 'rabbitConnectionFactory': registering with JMX server as MBean [org.springframework.amqp.rabbit.connection:name=rabbitConnectionFactory,type=CachingConnectionFactory]
2018-06-13T05:34:47.646470+00:00 app[web.1]: 2018-06-13 05:34:47.646 INFO 4 --- [ main] o.s.c.support.DefaultLifecycleProcessor : Starting beans in phase 2147483647
2018-06-13T05:34:47.660578+00:00 app[web.1]: 2018-06-13 05:34:47.660 INFO 4 --- [ container-1] o.s.a.r.c.CachingConnectionFactory : Attempting to connect to: [localhost:5672]
2018-06-13T05:34:47.680639+00:00 app[web.1]: 2018-06-13 05:34:47.679 ERROR 4 --- [ container-1] o.s.a.r.l.SimpleMessageListenerContainer : Failed to check/redeclare auto-delete queue(s).
2018-06-13T05:34:47.680646+00:00 app[web.1]:
2018-06-13T05:34:47.680648+00:00 app[web.1]: org.springframework.amqp.AmqpConnectException: java.net.ConnectException: Connection refused (Connection refused)
2018-06-13T05:34:47.680650+00:00 app[web.1]: at org.springframework.amqp.rabbit.support.RabbitExceptionTranslator.convertRabbitAccessException(RabbitExceptionTranslator.java:62) ~[spring-rabbit-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
2018-06-13T05:34:47.680651+00:00 app[web.1]: at org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.createBareConnection(AbstractConnectionFactory.java:476) ~[spring-rabbit-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
2018-06-13T05:34:47.680656+00:00 app[web.1]: at org.springframework.amqp.rabbit.connection.CachingConnectionFactory.createConnection(CachingConnectionFactory.java:614) ~[spring-rabbit-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
2018-06-13T05:34:47.680658+00:00 app[web.1]: at org.springframework.amqp.rabbit.connection.ConnectionFactoryUtils.createConnection(ConnectionFactoryUtils.java:240) ~[spring-rabbit-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
2018-06-13T05:34:47.680659+00:00 app[web.1]: at org.springframework.amqp.rabbit.core.RabbitTemplate.doExecute(RabbitTemplate.java:1797) ~[spring-rabbit-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
The issue I see is, it is trying to connect some localhost whereas I have my addon CloudAMQP
Little Lemur added in heroku and I have added these to my both Application.yml file:
spring:
profiles: heroku
mvc:
async:
request-timeout: 3600000
rabbitmq:
addresses: amqp://****:*****#puma.rmq.cloudamqp.com/uyjgxslh
host: puma.rmq.cloudamqp.com
port: 1883
username: ****:****
password: *****
In my webModule I have this code:
#SpringBootApplication
public class SpringBootHerokuExampleApplication {
public final static String PDF_MERGE_QUEUE= "pdf-merge-queue";
#Bean
Queue queue(){
return new Queue(PDF_MERGE_QUEUE, false);
}
#Bean
TopicExchange exchange(){
return new TopicExchange("pdf-nerge-exchange");
}
#Bean
Binding binding(Queue queue, TopicExchange topicExchange){
return BindingBuilder.bind(queue).to(topicExchange).with(PDF_MERGE_QUEUE);
}
#Bean
SimpleMessageListenerContainer container(ConnectionFactory connectionFactory,
MessageListenerAdapter listenerAdapter){
SimpleMessageListenerContainer container = new SimpleMessageListenerContainer();
container.setConnectionFactory(connectionFactory);
container.setQueueNames(PDF_MERGE_QUEUE);
container.setMessageListener(listenerAdapter);
return container;
}
#Bean
MessageListenerAdapter listenerAdapter(RabbitMQListener rabbitMQListener){
return new MessageListenerAdapter(rabbitMQListener, "receiveMessage");
}
public static void main(String[] args) {
SpringApplication.run(SpringBootHerokuExampleApplication.class, args);
}
}
and in my worker module main method:
public class SpringBootHerokuExampleApplication {
public final static String PDF_MERGE_QUEUE= "pdf-merge-queue";
public static void main(String[] args) {
SpringApplication.run(SpringBootHerokuExampleApplication.class, args);
}
}
Please find below some more stack trace from Heroku logs :
handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2018-06-13T05:54:13.871350+00:00 app[worker.1]: 2018-06-13 05:54:13.870 INFO 4 --- [ main] o.s.b.a.e.web.EndpointLinksResolver : Exposing 2 endpoint(s) beneath base path '/actuator'
2018-06-13T05:54:13.897860+00:00 app[worker.1]: 2018-06-13 05:54:13.897 INFO 4 --- [ main] s.b.a.e.w.s.WebMvcEndpointHandlerMapping : Mapped "{[/actuator/health],methods=[GET],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.web.servlet.AbstractWebMvcEndpointHandlerMapping$OperationHandler.handle(javax.servlet.http.HttpServletRequest,java.util.Map<java.lang.String, java.lang.String>)
2018-06-13T05:54:13.899632+00:00 app[worker.1]: 2018-06-13 05:54:13.899 INFO 4 --- [ main] s.b.a.e.w.s.WebMvcEndpointHandlerMapping : Mapped "{[/actuator/info],methods=[GET],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.web.servlet.AbstractWebMvcEndpointHandlerMapping$OperationHandler.handle(javax.servlet.http.HttpServletRequest,java.util.Map<java.lang.String, java.lang.String>)
2018-06-13T05:54:13.901591+00:00 app[worker.1]: 2018-06-13 05:54:13.901 INFO 4 --- [ main] s.b.a.e.w.s.WebMvcEndpointHandlerMapping : Mapped "{[/actuator],methods=[GET],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto protected java.util.Map<java.lang.String, java.util.Map<java.lang.String, org.springframework.boot.actuate.endpoint.web.Link>> org.springframework.boot.actuate.endpoint.web.servlet.WebMvcEndpointHandlerMapping.links(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
2018-06-13T05:54:14.128560+00:00 app[worker.1]: 2018-06-13 05:54:14.128 INFO 4 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup
2018-06-13T05:54:14.145677+00:00 app[worker.1]: 2018-06-13 05:54:14.145 INFO 4 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Bean with name 'rabbitConnectionFactory' has been autodetected for JMX exposure
2018-06-13T05:54:14.154055+00:00 app[worker.1]: 2018-06-13 05:54:14.153 INFO 4 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Located managed bean 'rabbitConnectionFactory': registering with JMX server as MBean [org.springframework.amqp.rabbit.connection:name=rabbitConnectionFactory,type=CachingConnectionFactory]
2018-06-13T05:54:14.199050+00:00 app[worker.1]: 2018-06-13 05:54:14.197 INFO 4 --- [ main] o.s.c.support.DefaultLifecycleProcessor : Starting beans in phase 2147483647
2018-06-13T05:54:14.230846+00:00 app[worker.1]: 2018-06-13 05:54:14.230 INFO 4 --- [cTaskExecutor-1] o.s.a.r.c.CachingConnectionFactory : Attempting to connect to: [localhost:5672]
2018-06-13T05:54:14.425996+00:00 app[worker.1]: 2018-06-13 05:54:14.425 INFO 4 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path ''
2018-06-13T05:54:14.437981+00:00 app[worker.1]: 2018-06-13 05:54:14.435 INFO 4 --- [ main] o.e.SpringBootHerokuExampleApplication : Started SpringBootHerokuExampleApplication in 13.198 seconds (JVM running for 14.523)
2018-06-13T05:54:14.969935+00:00 app[web.1]: 2018-06-13 05:54:14.969 WARN 4 --- [ container-2] o.s.a.r.l.SimpleMessageListenerContainer : Consumer raised exception, processing can restart if the connection factory supports it. Exception summary: org.springframework.amqp.AmqpConnectException: java.net.ConnectException: Connection refused (Connection refused)
2018-06-13T05:54:14.970343+00:00 app[web.1]: 2018-06-13 05:54:14.970 INFO 4 --- [ container-2] o.s.a.r.l.SimpleMessageListenerContainer : Restarting Consumer#362d89d0: tags=[{}], channel=null, acknowledgeMode=AUTO local queue size=0
2018-06-13T05:54:14.971125+00:00 app[web.1]: 2018-06-13 05:54:14.971 INFO 4 --- [ container-3] o.s.a.r.c.CachingConnectionFactory : Attempting to connect to: [localhost:5672]
2018-06-13T05:54:14.971946+00:00 app[web.1]: 2018-06-13 05:54:14.971 ERROR 4 --- [ container-3] o.s.a.r.l.SimpleMessageListenerContainer : Failed to check/redeclare auto-delete queue(s).
2018-06-13T05:54:14.971948+00:00 app[web.1]:
2018-06-13T05:54:14.971951+00:00 app[web.1]: org.springframework.amqp.AmqpConnectException: java.net.ConnectException: Connection refused (Connection refused)
2018-06-13T05:54:14.971952+00:00 app[web.1]: at org.springframework.amqp.rabbit.support.RabbitExceptionTranslator.convertRabbitAccessException(RabbitExceptionTranslator.java:62) ~[spring-rabbit-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
2018-06-13T05:54:14.971953+00:00 app[web.1]: at org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.createBareConnection(AbstractConnectionFactory.java:476) ~[spring-rabbit-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
2018-06-13T05:54:14.971956+00:00 app[web.1]: at org.springframework.amqp.rabbit.connection.CachingConnectionFactory.createConnection(CachingConnectionFactory.java:614) ~[spring-rabbit-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
2018-06-13T05:54:14.971957+00:00 app[web.1]: at org.springframework.amqp.rabbit.connection.ConnectionFactoryUtils.createConnection(ConnectionFactoryUtils.java:240) ~[spring-rabbit-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
2018-06-13T05:54:14.971958+00:00 app[web.1]: at org.springframework.amqp.rabbit.core.RabbitTemplate.doExecute(RabbitTemplate.java:1797) ~[spring-rabbit-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
2018-06-13T05:54:14.971959+00:00 app[web.1]: at org.springframework.amqp.rabbit.core.RabbitTemplate.execute(RabbitTemplate.java:1771) ~[spring-rabbit-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
2018-06-13T05:54:14.971960+00:00 app[web.1]: at org.springframework.amqp.rabbit.core.RabbitTemplate.execute(RabbitTemplate.java:1752) ~[spring-rabbit-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
2018-06-13T05:54:14.971961+00:00 app[web.1]: at org.springframework.amqp.rabbit.core.RabbitAdmin.getQueueProperties(RabbitAdmin.java:338) ~[spring-rabbit-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
2018-06-13T05:54:14.971962+00:00 app[web.1]: at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.redeclareElementsIfNecessary(AbstractMessageListenerContainer.java:1604) ~[spring-rabbit-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
2018-06-13T05:54:14.971964+00:00 app[web.1]: at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.run(SimpleMessageListenerContainer.java:963) [spring-rabbit-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
2018-06-13T05:54:14.971965+00:00 app[web.1]: at java.lang.Thread.run(Thread.java:748) [na:1.8.0_171-heroku]
2018-06-13T05:54:14.971967+00:00 app[web.1]: Caused by: java.net.ConnectException: Connection refused (Connection refused)
2018-06-13T05:54:14.971969+00:00 app[web.1]: at java.net.PlainSocketImpl.socketConnect(Native Method) ~[na:1.8.0_171-heroku]
2018-06-13T05:54:14.971971+00:00 app[web.1]: at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) ~[na:1.8.0_171-heroku]
2018-06-13T05:54:14.971972+00:00 app[web.1]: at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) ~[na:1.8.0_171-heroku]
2018-06-13T05:54:14.971973+00:00 app[web.1]: at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) ~[na:1.8.0_171-heroku]
2018-06-13T05:54:14.971974+00:00 app[web.1]: at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[na:1.8.0_171-heroku]
2018-06-13T05:54:14.971975+00:00 app[web.1]: at java.net.Socket.connect(Socket.java:589) ~[na:1.8.0_171-heroku]
2018-06-13T05:54:14.971976+00:00 app[web.1]: at com.rabbitmq.client.impl.SocketFrameHandlerFactory.create(SocketFrameHandlerFactory.java:60) ~[amqp-client-5.1.2.jar!/:5.1.2]
2018-06-13T05:54:14.971977+00:00 app[web.1]: at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:955) ~[amqp-client-5.1.2.jar!/:5.1.2]
2018-06-13T05:54:14.971978+00:00 app[web.1]: at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:907) ~[amqp-client-5.1.2.jar!/:5.1.2]
2018-06-13T05:54:14.971979+00:00 app[web.1]: at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:847) ~[amqp-client-5.1.2.jar!/:5.1.2]
2018-06-13T05:54:14.971980+00:00 app[web.1]: at org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.createBareConnection(AbstractConnectionFactory.java:449) ~[spring-rabbit-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
2018-06-13T05:54:14.971981+00:00 app[web.1]: ... 9 common frames omitted
2018-06-13T05:54:14.971982+00:00 app[web.1]:
2018-06-13T05:54:14.972042+00:00 app[web.1]: 2018-06-13 05:54:14.971 INFO 4 --- [ container-3] o.s.a.r.c.CachingConnectionFactory : Attempting to connect to: [localhost:5672]
2018-06-13T05:54:19.262272+00:00 app[worker.1]: 2018-06-13 05:54:19.261 WARN 4 --- [cTaskExecutor-1] o.s.a.r.l.SimpleMessageListenerContainer : Consumer raised exception, processing can restart if the connection factory supports it. Exception summary: org.springframework.amqp.AmqpConnectException: java.net.ConnectException: Connection refused (Connection refused)
2018-06-13T05:54:19.264406+00:00 app[worker.1]: 2018-06-13 05:54:19.264 INFO 4 --- [cTaskExecutor-1] o.s.a.r.l.SimpleMessageListenerContainer : Restarting Consumer#793be5ca: tags=[{}], channel=null, acknowledgeMode=AUTO local queue size=0
2018-06-13T05:54:19.272605+00:00 app[worker.1]: 2018-06-13 05:54:19.272 INFO 4 --- [cTaskExecutor-2] o.s.a.r.c.CachingConnectionFactory : Attempting to connect to: [localhost:5672]
2018-06-13T05:54:19.976366+00:00 app[web.1]: 2018-06-13 05:54:19.976 WARN 4 --- [ container-3] o.s.a.r.l.SimpleMessageListenerContainer : Consumer raised exception, processing can restart if the connection factory supports it. Exception summary: org.springframework.amqp.AmqpConnectException: java.net.ConnectException: Connection refused (Connection refused)
2018-06-13T05:54:19.976491+00:00 app[web.1]: 2018-06-13 05:54:19.976 INFO 4 --- [ container-3] o.s.a.r.l.SimpleMessageListenerContainer : Restarting Consumer#42d37ed7: tags=[{}], channel=null, acknowledgeMode=AUTO local queue size=0
2018-06-13T05:54:19.977274+00:00 app[web.1]: 2018-06-13 05:54:19.977 INFO 4 --- [ container-4] o.s.a.r.c.CachingConnectionFactory : Attempting to connect to: [localhost:5672]
2018-06-13T05:54:19.978248+00:00 app[web.1]: 2018-06-13 05:54:19.978 ERROR 4 --- [ container-4] o.s.a.r.l.SimpleMessageListenerContainer : Failed to check/redeclare auto-delete queue(s).
2018-06-13T05:54:19.978251+00:00 app[web.1]:
2018-06-13T05:54:19.978252+00:00 app[web.1]: org.springframework.amqp.AmqpConnectException: java.net.ConnectException: Connection refused (Connection refused)
2018-06-13T05:54:19.978253+00:00 app[web.1]: at org.springframework.amqp.rabbit.support.RabbitExceptionTranslator.convertRabbitAccessException(RabbitExceptionTranslator.java:62) ~[spring-rabbit-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
2018-06-13T05:54:19.978255+00:00 app[web.1]: at org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.createBareConnection(AbstractConnectionFactory.java:476) ~[spring-rabbit-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
2018-06-13T05:54:19.978256+00:00 app[web.1]: at org.springframework.amqp.rabbit.connection.CachingConnectionFactory.createConnection(CachingConnectionFactory.java:614) ~[spring-rabbit-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
2018-06-13T05:54:19.978257+00:00 app[web.1]: at org.springframework.amqp.rabbit.connection.ConnectionFactoryUtils.createConnection(ConnectionFactoryUtils.java:240) ~[spring-rabbit-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
2018-06-13T05:54:19.978258+00:00 app[web.1]: at org.springframework.amqp.rabbit.core.RabbitTemplate.doExecute(RabbitTemplate.java:1797) ~[spring-rabbit-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
2018-06-13T05:54:19.978259+00:00 app[web.1]: at org.springframework.amqp.rabbit.core.RabbitTemplate.execute(RabbitTemplate.java:1771) ~[spring-rabbit-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
2018-06-13T05:54:19.978260+00:00 app[web.1]: at org.springframework.amqp.rabbit.core.RabbitTemplate.execute(RabbitTemplate.java:1752) ~[spring-rabbit-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
2018-06-13T05:54:19.978261+00:00 app[web.1]: at org.springframework.amqp.rabbit.core.RabbitAdmin.getQueueProperties(RabbitAdmin.java:338) ~[spring-rabbit-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
2018-06-13T05:54:19.978263+00:00 app[web.1]: at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.redeclareElementsIfNecessary(AbstractMessageListenerContainer.java:1604) ~[spring-rabbit-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
2018-06-13T05:54:19.978264+00:00 app[web.1]: at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.run(SimpleMessageListenerContainer.java:963) [spring-rabbit-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
2018-06-13T05:54:19.978265+00:00 app[web.1]: at java.lang.Thread.run(Thread.java:748) [na:1.8.0_171-heroku]
2018-06-13T05:54:19.978267+00:00 app[web.1]: Caused by: java.net.ConnectException: Connection refused (Connection refused)
2018-06-13T05:54:19.978268+00:00 app[web.1]: at java.net.PlainSocketImpl.socketConnect(Native Method) ~[na:1.8.0_171-heroku]
2018-06-13T05:54:19.978269+00:00 app[web.1]: at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) ~[na:1.8.0_171-heroku]
2018-06-13T05:54:19.978270+00:00 app[web.1]: at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) ~[na:1.8.0_171-heroku]
2018-06-13T05:54:19.978271+00:00 app[web.1]: at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) ~[na:1.8.0_171-heroku]
2018-06-13T05:54:19.978272+00:00 app[web.1]: at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[na:1.8.0_171-heroku]
2018-06-13T05:54:19.978273+00:00 app[web.1]: at java.net.Socket.connect(Socket.java:589) ~[na:1.8.0_171-heroku]
2018-06-13T05:54:19.978274+00:00 app[web.1]: at com.rabbitmq.client.impl.SocketFrameHandlerFactory.create(SocketFrameHandlerFactory.java:60) ~[amqp-client-5.1.2.jar!/:5.1.2]
2018-06-13T05:54:19.978275+00:00 app[web.1]: at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:955) ~[amqp-client-5.1.2.jar!/:5.1.2]
2018-06-13T05:54:19.978276+00:00 app[web.1]: at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:907) ~[amqp-client-5.1.2.jar!/:5.1.2]
2018-06-13T05:54:19.978277+00:00 app[web.1]: at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:847) ~[amqp-client-5.1.2.jar!/:5.1.2]
2018-06-13T05:54:19.978278+00:00 app[web.1]: at org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.createBareConnection(AbstractConnectionFactory.java:449) ~[spring-rabbit-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
2018-06-13T05:54:19.978279+00:00 app[web.1]: ... 9 common frames omitted
2018-06-13T05:54:19.978280+00:00 app[web.1]:
2018-06-13T05:54:19.978370+00:00 app[web.1]: 2018-06-13 05:54:19.978 INFO 4 --- [ container-4] o.s.a.r.c.CachingConnectionFactory : Attempting to connect to: [localhost:5672]
2018-06-13T05:54:24.281046+00:00 app[worker.1]: 2018-06-13 05:54:24.280 WARN 4 --- [cTaskExecutor-2] o.s.a.r.l.SimpleMessageListenerContainer : Consumer raised exception, processing can restart if the connection factory supports it. Exception summary: org.springframework.amqp.AmqpConnectException: java.net.ConnectException: Connection refused (Connection refused)
2018-06-13T05:54:24.281735+00:00 app[worker.1]: 2018-06-13 05:54:24.281 INFO 4 --- [cTaskExecutor-2] o.s.a.r.l.SimpleMessageListenerContainer : Restarting Consumer#7170b3b5: tags=[{}], channel=null, acknowledgeMode=AUTO local queue size=0
2018-06-13T05:54:24.291703+00:00 app[worker.1]: 2018-06-13 05:54:24.291 INFO 4 --- [cTaskExecutor-3] o.s.a.r.c.CachingConnectionFactory : Attempting to connect to: [localhost:5672]
Why is it trying to connect to localhost when I have specified host name explicitly in yml file? Any Idea?
Just found out that in yml file I have a profile named as heroku, when I removed it , it connected to the RabbitMQ in the given host.
If you are using spring boot you can configure Rabbit by spring cloud stream.
In this case you dont have to configure the beans and the configuration is much easier:
spring:
#---------------- RabbitMQ -----------------#
rabbitmq:
#Default username ans pass
dynamic: true
host: localhost
port: 5672
username: guest
password: guest
#---------------------------- RabbitMQ properties Commons ------------------------------#
cloud:
stream:
bindings:
springCloudBusInput:
destination: InputExchange
group: Queue
producer:
exchangeAutoDelete: false
springCloudBusOutput:
destination: InputExchange
group: Queue
consumer:
exchangeAutoDelete: false
Then you have to create the listener:
#Component
public class RemoteEventListener implements ApplicationListener<InputEvent> {
#Override
public void onApplicationEvent(InputEvent inputEvent) {
//whatever you want to do when a InputEvent Type is received in the queue
}
}
In this case My app is writing and receiving from the same exchange
and queue (Because of testing so stuff)
If you want to configure rabbit the way you shown, try to create a configuration class with the beans of the queue, exchange and biding with #Configuration. Dont declare the beans in your app class.
It seems it can not read the autodelete property of the queue, but if I'm not wrong I should take the default.
Maybe You have network issues
Check the rabbitmq and restart it
Can you acces to rabbitMq administrator interface?
About the comment about whi is trying to connect with localhost add this to your bean definition:
#Autowired
private ConnectionFactory rabbitConnectionFactory
#Bean
public RabbitTemplate rubeExchangeTemplate() {
RabbitTemplate r = new RabbitTemplate(rabbitConnectionFactory);
r.setExchange("rmq.rube.exchange");
r.setRoutingKey("rube.key");
r.setConnectionFactory(rabbitConnectionFactory);
return r;
}
also remove addresses of your application.yml

Tomcat - HTTP Status 404 – Not Found after copy .war file on 2 computer

I created my webapp in Intellij on my 1 computer. I deployed it on Tomcat 9 from Intellij and it was working. After it I generated war file and deployed it from Tomcat level(not using Intellij) and my app still works. Next i copied war file on 2 computer and after deploy i have error: HTTP Status 404 – Not Found. All applications like /manger or /host-manager works fine.
If it is important i have Windows 10 on my 1 computer and Windows 7 on my second computer.
It is my first webapp and i don't know where i should search problem.
I will be very grateful for any solution or advice.
In Tomcat log folder I have following log files:
catalina.2018-02-25:
25-Feb-2018 10:28:12.392 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/9.0.5
25-Feb-2018 10:28:12.495 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Feb 6 2018 21:42:23 UTC
25-Feb-2018 10:28:12.496 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 9.0.5.0
25-Feb-2018 10:28:12.497 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Windows 7
25-Feb-2018 10:28:12.498 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 6.1
25-Feb-2018 10:28:12.498 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
25-Feb-2018 10:28:12.498 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: D:\Java8
25-Feb-2018 10:28:12.499 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_162-b12
25-Feb-2018 10:28:12.499 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
25-Feb-2018 10:28:12.500 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: D:\Projekty\Tomcat9
25-Feb-2018 10:28:12.500 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: D:\Projekty\Tomcat9
25-Feb-2018 10:28:12.501 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=D:\Projekty\Tomcat9
25-Feb-2018 10:28:12.501 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=D:\Projekty\Tomcat9
25-Feb-2018 10:28:12.505 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=D:\Projekty\Tomcat9\temp
25-Feb-2018 10:28:12.506 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
25-Feb-2018 10:28:12.506 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=D:\Projekty\Tomcat9\conf\logging.properties
25-Feb-2018 10:28:12.506 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: exit
25-Feb-2018 10:28:12.507 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: abort
25-Feb-2018 10:28:12.507 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xms128m
25-Feb-2018 10:28:12.507 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx256m
25-Feb-2018 10:28:12.508 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [D:\Projekty\Tomcat9\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Broadcom\Broadcom 802.11 Network Adapter\Driver;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\MySQL\MySQL Utilities 1.6\;C:\Program Files\nodejs\;.]
25-Feb-2018 10:28:13.976 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8084"]
25-Feb-2018 10:28:14.475 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
25-Feb-2018 10:28:14.518 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]
25-Feb-2018 10:28:14.522 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
25-Feb-2018 10:28:14.522 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 5503 ms
25-Feb-2018 10:28:14.660 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
25-Feb-2018 10:28:14.660 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/9.0.5
25-Feb-2018 10:28:14.922 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [D:\Projekty\Tomcat9\webapps\animalwebstore.war]
25-Feb-2018 10:28:21.993 INFO [main] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
25-Feb-2018 10:28:24.799 INFO [main] org.hibernate.jpa.internal.util.LogHelper.logPersistenceUnitInformation HHH000204: Processing PersistenceUnitInfo [
name: default
...]
25-Feb-2018 10:28:25.235 INFO [main] org.hibernate.Version.logVersion HHH000412: Hibernate Core {5.2.11.Final}
25-Feb-2018 10:28:25.239 INFO [main] org.hibernate.cfg.Environment.<clinit> HHH000205: Loaded properties from resource hibernate.properties: {hibernate.dialect=org.hibernate.dialect.MySQL5Dialect, hibernate.bytecode.use_reflection_optimizer=false, hibernate.hbm2ddl.auto=create}
25-Feb-2018 10:28:25.569 INFO [main] org.hibernate.annotations.common.reflection.java.JavaReflectionManager.<clinit> HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
25-Feb-2018 10:28:26.875 INFO [main] org.hibernate.dialect.Dialect.<init> HHH000400: Using dialect: org.hibernate.dialect.MySQL5Dialect
25-Feb-2018 10:28:28.563 WARN [main] org.hibernate.engine.jdbc.spi.SqlExceptionHelper.logExceptions SQL Error: 1146, SQLState: 42S02
25-Feb-2018 10:28:28.564 ERROR [main] org.hibernate.engine.jdbc.spi.SqlExceptionHelper.logExceptions Table 'animalwebstoredb.animals' doesn't exist
25-Feb-2018 10:28:28.569 SEVERE [main] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
25-Feb-2018 10:28:28.599 SEVERE [main] org.apache.catalina.core.StandardContext.startInternal Context [/animalwebstore] startup failed due to previous errors
25-Feb-2018 10:28:28.614 WARNING [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [animalwebstore] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
25-Feb-2018 10:28:28.615 WARNING [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [animalwebstore] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
java.lang.ref.ReferenceQueue.remove(Unknown Source)
com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:41)
25-Feb-2018 10:28:28.615 WARNING [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [animalwebstore] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
java.lang.Object.wait(Unknown Source)
java.util.TimerThread.mainLoop(Unknown Source)
java.util.TimerThread.run(Unknown Source)
25-Feb-2018 10:28:28.655 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [D:\Projekty\Tomcat9\webapps\animalwebstore.war] has finished in [13,733] ms
25-Feb-2018 10:28:28.656 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [D:\Projekty\Tomcat9\webapps\docs]
25-Feb-2018 10:28:28.817 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [D:\Projekty\Tomcat9\webapps\docs] has finished in [160] ms
25-Feb-2018 10:28:28.818 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [D:\Projekty\Tomcat9\webapps\examples]
25-Feb-2018 10:28:30.505 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [D:\Projekty\Tomcat9\webapps\examples] has finished in [1,688] ms
25-Feb-2018 10:28:30.506 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [D:\Projekty\Tomcat9\webapps\host-manager]
25-Feb-2018 10:28:30.594 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [D:\Projekty\Tomcat9\webapps\host-manager] has finished in [87] ms
25-Feb-2018 10:28:30.594 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [D:\Projekty\Tomcat9\webapps\manager]
25-Feb-2018 10:28:30.816 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [D:\Projekty\Tomcat9\webapps\manager] has finished in [222] ms
25-Feb-2018 10:28:30.816 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [D:\Projekty\Tomcat9\webapps\ROOT]
25-Feb-2018 10:28:30.861 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [D:\Projekty\Tomcat9\webapps\ROOT] has finished in [44] ms
25-Feb-2018 10:28:30.864 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8084"]
25-Feb-2018 10:28:30.874 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
25-Feb-2018 10:28:30.877 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 16353 ms
localhost.2018-02-25:
25-Feb-2018 10:28:22.069 INFO [main] org.apache.catalina.core.ApplicationContext.log No Spring WebApplicationInitializer types detected on classpath
25-Feb-2018 10:28:22.227 INFO [main] org.apache.catalina.core.ApplicationContext.log Initializing Spring root WebApplicationContext
25-Feb-2018 10:28:28.569 SEVERE [main] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener]
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in com.tur.util.AppConfig: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1710)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:583)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:502)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:312)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:310)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1085)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:858)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:409)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:291)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4637)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5099)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:740)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:716)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:703)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:976)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1847)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.util.concurrent.AbstractExecutorService.submit(Unknown Source)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:761)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:431)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1575)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:308)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:424)
at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:367)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:964)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:839)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1425)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1415)
at java.util.concurrent.FutureTask.run(Unknown Source)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.util.concurrent.AbstractExecutorService.submit(Unknown Source)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:941)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:258)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:770)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.startup.Catalina.start(Catalina.java:682)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:353)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:493)
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.persistenceException(EntityManagerFactoryBuilderImpl.java:967)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:892)
at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:57)
at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365)
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:387)
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:376)
at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1769)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1706)
... 53 more
Caused by: org.hibernate.exception.SQLGrammarException: Error accessing tables metadata
at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:63)
at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:42)
at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:111)
at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:97)
at org.hibernate.tool.schema.extract.internal.InformationExtractorJdbcDatabaseMetaDataImpl.convertSQLException(InformationExtractorJdbcDatabaseMetaDataImpl.java:98)
at org.hibernate.tool.schema.extract.internal.InformationExtractorJdbcDatabaseMetaDataImpl.populateTablesWithColumns(InformationExtractorJdbcDatabaseMetaDataImpl.java:383)
at org.hibernate.tool.schema.extract.internal.InformationExtractorJdbcDatabaseMetaDataImpl.getTables(InformationExtractorJdbcDatabaseMetaDataImpl.java:337)
at org.hibernate.tool.schema.extract.internal.DatabaseInformationImpl.getTablesInformation(DatabaseInformationImpl.java:120)
at org.hibernate.tool.schema.internal.GroupedSchemaMigratorImpl.performTablesMigration(GroupedSchemaMigratorImpl.java:65)
at org.hibernate.tool.schema.internal.AbstractSchemaMigrator.performMigration(AbstractSchemaMigrator.java:207)
at org.hibernate.tool.schema.internal.AbstractSchemaMigrator.doMigration(AbstractSchemaMigrator.java:114)
at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.performDatabaseAction(SchemaManagementToolCoordinator.java:183)
at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.process(SchemaManagementToolCoordinator.java:72)
at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:313)
at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:452)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:889)
... 60 more
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'animalwebstoredb.animals' doesn't exist
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
at com.mysql.jdbc.Util.getInstance(Util.java:383)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1062)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4208)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4140)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2597)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2758)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2820)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2769)
at com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1569)
at com.mysql.jdbc.DatabaseMetaData$2.forEach(DatabaseMetaData.java:2716)
at com.mysql.jdbc.DatabaseMetaData$2.forEach(DatabaseMetaData.java:2603)
at com.mysql.jdbc.IterateBlock.doForAll(IterateBlock.java:50)
at com.mysql.jdbc.DatabaseMetaData.getColumns(DatabaseMetaData.java:2602)
at org.hibernate.tool.schema.extract.internal.InformationExtractorJdbcDatabaseMetaDataImpl.populateTablesWithColumns(InformationExtractorJdbcDatabaseMetaDataImpl.java:350)
... 70 more
25-Feb-2018 10:28:28.604 INFO [main] org.apache.catalina.core.ApplicationContext.log Closing Spring root WebApplicationContext
25-Feb-2018 10:28:30.498 INFO [main] org.apache.catalina.core.ApplicationContext.log ContextListener: contextInitialized()
25-Feb-2018 10:28:30.498 INFO [main] org.apache.catalina.core.ApplicationContext.log SessionListener: contextInitialized()
25-Feb-2018 10:28:30.500 INFO [main] org.apache.catalina.core.ApplicationContext.log ContextListener: attributeAdded('StockTicker', 'async.Stockticker#2053b761')
In tomcat9-stderr.2018-02-25 is the same what is in catalina.2018-02-25

Categories