0% found this document useful (0 votes)
17 views10 pages

SLF4J Multiple Bindings Warning in Spring Boot

The log file documents issues encountered when starting a Spring Boot application. It indicates that there are multiple SLF4J bindings found which can cause problems. It also reports errors in configuring Quartz scheduling and dependencies related to orders and services, preventing the application context from initializing successfully.

Uploaded by

Iskandar Syah
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views10 pages

SLF4J Multiple Bindings Warning in Spring Boot

The log file documents issues encountered when starting a Spring Boot application. It indicates that there are multiple SLF4J bindings found which can cause problems. It also reports errors in configuring Quartz scheduling and dependencies related to orders and services, preventing the application context from initializing successfully.

Uploaded by

Iskandar Syah
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

SLF4J: Class path contains multiple SLF4J bindings.

SLF4J: Found binding in [jar:file:/C:/prgr/eclipse-jee-2021-06-


R/eclipse/plugins/[Link].slf4j.simple_1.18.0.20210402-
1458/jars/[Link]!/org/slf4j/impl/[Link]]
SLF4J: Found binding in [file:/C:/prgr/eclipse-jee-2021-06-
R/eclipse/configuration/[Link]/6/0/.cp/org/slf4j/impl/StaticLoggerBinder.
class]
SLF4J: See [Link] for an explanation.
SLF4J: Actual binding is of type [[Link]]
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/prgr/eclipse-jee-2021-06-
R/eclipse/plugins/[Link].slf4j.simple_1.18.0.20210402-
1458/jars/[Link]!/org/slf4j/impl/[Link]]
SLF4J: Found binding in [file:/C:/prgr/eclipse-jee-2021-06-
R/eclipse/configuration/[Link]/6/0/.cp/org/slf4j/impl/StaticLoggerBinder.
class]
SLF4J: See [Link] for an explanation.
SLF4J: Actual binding is of type [[Link]]
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------< [Link]:api >-------------------------
[INFO] Building pasaryo-api 0.0.1-SNAPSHOT
[INFO] --------------------------------[ war ]---------------------------------
[INFO]
[INFO] >>> spring-boot-maven-plugin:2.5.4:run (default-cli) > test-compile @ api
>>>
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ api ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] Copying 1 resource
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ api ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:testResources (default-testResources) @ api
---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] skip non existing resourceDirectory C:\Users\Johan
Iskandar\git\[Link]\order\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ api ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] <<< spring-boot-maven-plugin:2.5.4:run (default-cli) < test-compile @ api
<<<
[INFO]
[INFO]
[INFO] --- spring-boot-maven-plugin:2.5.4:run (default-cli) @ api ---
[INFO] Attaching agents: []

. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.5.4)

2021-09-27 19:07:36.380 INFO 16160 --- [ main]


[Link] : Starting PasaryoApp using Java 16.0.1 on
LAPTOP-I450KN4U with PID 16160 (C:\Users\Johan
Iskandar\git\[Link]\order\target\classes started by Johan Iskandar in
C:\Users\Johan Iskandar\git\[Link]\order)
2021-09-27 19:07:36.384 INFO 16160 --- [ main]
[Link] : No active profile set, falling back to
default profiles: default
2021-09-27 19:07:37.740 INFO 16160 --- [ main]
.[Link] : Multiple Spring Data modules found,
entering strict repository configuration mode!
2021-09-27 19:07:37.743 INFO 16160 --- [ main]
.[Link] : Bootstrapping Spring Data JPA
repositories in DEFAULT mode.
2021-09-27 19:07:37.836 INFO 16160 --- [ main]
.[Link] : Finished Spring Data repository scanning
in 80 ms. Found 2 JPA repository interfaces.
2021-09-27 19:07:37.856 INFO 16160 --- [ main]
.[Link] : Multiple Spring Data modules found,
entering strict repository configuration mode!
2021-09-27 19:07:37.858 INFO 16160 --- [ main]
.[Link] : Bootstrapping Spring Data Redis
repositories in DEFAULT mode.
2021-09-27 19:07:37.882 INFO 16160 --- [ main]
.RepositoryConfigurationExtensionSupport : Spring Data Redis - Could not safely
identify store assignment for repository candidate interface
[Link]. If you want this repository to be a Redis
repository, consider annotating your entities with one of these annotations:
[Link] (preferred), or consider extending
one of the following types with your repository:
[Link].
2021-09-27 19:07:37.883 INFO 16160 --- [ main]
.RepositoryConfigurationExtensionSupport : Spring Data Redis - Could not safely
identify store assignment for repository candidate interface
[Link]. If you want this repository to be a Redis
repository, consider annotating your entities with one of these annotations:
[Link] (preferred), or consider extending
one of the following types with your repository:
[Link].
2021-09-27 19:07:37.883 INFO 16160 --- [ main]
.[Link] : Finished Spring Data repository scanning
in 14 ms. Found 0 Redis repository interfaces.
2021-09-27 19:07:38.872 INFO 16160 --- [ main]
[Link] : Tomcat initialized with port(s): 8011
(http)
2021-09-27 19:07:38.886 INFO 16160 --- [ main]
[Link] : Starting service [Tomcat]
2021-09-27 19:07:38.886 INFO 16160 --- [ main]
[Link] : Starting Servlet engine: [Apache
Tomcat/9.0.52]
2021-09-27 19:07:39.325 INFO 16160 --- [ main] o.a.c.c.C.[Tomcat].
[localhost].[/] : Initializing Spring embedded WebApplicationContext
2021-09-27 19:07:39.326 INFO 16160 --- [ main]
[Link] : Root WebApplicationContext:
initialization completed in 2882 ms
2021-09-27 19:07:39.548 INFO 16160 --- [ main]
[Link] : HikariPool-1 - Starting...
2021-09-27 19:07:39.973 INFO 16160 --- [ main]
[Link] : HikariPool-1 - Start completed.
2021-09-27 19:07:40.125 INFO 16160 --- [ main]
[Link] : HHH000204: Processing
PersistenceUnitInfo [name: default]
2021-09-27 19:07:40.193 INFO 16160 --- [ main] [Link]
: HHH000412: Hibernate ORM core version [Link]
2021-09-27 19:07:40.353 INFO 16160 --- [ main]
[Link] : HCANN000001: Hibernate Commons
Annotations {[Link]}
2021-09-27 19:07:40.490 INFO 16160 --- [ main]
[Link] : HHH000400: Using dialect:
[Link].MySQL5InnoDBDialect
2021-09-27 19:07:40.673 WARN 16160 --- [ main]
[Link] : HHH000139: Illegal use of @Table in a
subclass of a SINGLE_TABLE hierarchy: [Link]
2021-09-27 19:07:40.691 WARN 16160 --- [ main]
[Link] : HHH000139: Illegal use of @Table in a
subclass of a SINGLE_TABLE hierarchy: [Link]
2021-09-27 19:07:41.209 INFO 16160 --- [ main]
[Link] : HHH000490: Using JtaPlatform
implementation:
[[Link]]
2021-09-27 19:07:41.217 INFO 16160 --- [ main]
[Link] : Initialized JPA EntityManagerFactory for
persistence unit 'default'
2021-09-27 19:07:41.638 WARN 16160 --- [ main]
ConfigServletWebServerApplicationContext : Exception encountered during context
initialization - cancelling refresh attempt:
[Link]: Error creating
bean with name 'cartController': Unsatisfied dependency expressed through field
'ordersService'; nested exception is
[Link]: Error creating
bean with name 'orderServiceImpl': Unsatisfied dependency expressed through field
'scheduler'; nested exception is
[Link]: Error creating bean with
name 'quartzScheduler' defined in class path resource
[org/springframework/boot/autoconfigure/quartz/[Link]]: Bean
instantiation via factory method failed; nested exception is
[Link]: Failed to instantiate
[[Link]]: Factory method
'quartzScheduler' threw exception; nested exception is
[Link]: Error creating bean with
name 'jobAutoInsertTrigger' defined in class path resource
[ec/java/pasaryo/api/config/[Link]]: Bean instantiation via factory method
failed; nested exception is [Link]:
Failed to instantiate [[Link]]: Factory method 'jobAutoInsertTrigger'
threw exception; nested exception is [Link]: CronExpression
'*/5 * * * *' is invalid.
2021-09-27 19:07:41.640 INFO 16160 --- [ main]
[Link] : Closing JPA EntityManagerFactory for
persistence unit 'default'
2021-09-27 19:07:41.642 INFO 16160 --- [ main]
[Link] : HikariPool-1 - Shutdown initiated...
2021-09-27 19:07:41.648 INFO 16160 --- [ main]
[Link] : HikariPool-1 - Shutdown completed.
2021-09-27 19:07:41.650 INFO 16160 --- [ main]
[Link] : Stopping service [Tomcat]
2021-09-27 19:07:41.660 INFO 16160 --- [ main]
ConditionEvaluationReportLoggingListener :

Error starting ApplicationContext. To display the conditions report re-run your


application with 'debug' enabled.
2021-09-27 19:07:41.678 ERROR 16160 --- [ main]
[Link] : Application run failed

[Link]: Error creating


bean with name 'cartController': Unsatisfied dependency expressed through field
'ordersService'; nested exception is
[Link]: Error creating
bean with name 'orderServiceImpl': Unsatisfied dependency expressed through field
'scheduler'; nested exception is
[Link]: Error creating bean with
name 'quartzScheduler' defined in class path resource
[org/springframework/boot/autoconfigure/quartz/[Link]]: Bean
instantiation via factory method failed; nested exception is
[Link]: Failed to instantiate
[[Link]]: Factory method
'quartzScheduler' threw exception; nested exception is
[Link]: Error creating bean with
name 'jobAutoInsertTrigger' defined in class path resource
[ec/java/pasaryo/api/config/[Link]]: Bean instantiation via factory method
failed; nested exception is [Link]:
Failed to instantiate [[Link]]: Factory method 'jobAutoInsertTrigger'
threw exception; nested exception is [Link]: CronExpression
'*/5 * * * *' is invalid.
at
[Link]$A
[Link]([Link]
0) ~[[Link].3.9]
at
[Link]$A
[Link]([Link])
~[[Link].3.9]
at
[Link](InjectionMeta
[Link]) ~[[Link].3.9]
at
[Link].p
ostProcessProperties([Link]) ~[spring-beans-
[Link].3.9]
at
[Link]
teBean([Link]) ~[spring-beans-
[Link].3.9]
at
[Link]
teBean([Link]) ~[[Link].3.9]
at
[Link]
Bean([Link]) ~[[Link].3.9]
at
[Link]$doGetBean$0(Ab
[Link]) ~[[Link].3.9]
at
[Link]
([Link]) ~[[Link].3.9]
at
[Link](AbstractBea
[Link]) ~[[Link].3.9]
at
[Link](AbstractBeanF
[Link]) ~[[Link].3.9]
at
[Link]
Singletons([Link]) ~[[Link].3.9]
at
[Link]
tialization([Link]) ~[[Link].3.9]
at
[Link](AbstractAppl
[Link]) ~[[Link].3.9]
at
[Link]
resh([Link]) ~[[Link].5.4]
at
[Link]([Link])
~[[Link].5.4]
at
[Link]([Link]
4) ~[[Link].5.4]
at [Link]([Link])
~[[Link].5.4]
at
[Link]([Link])
~[[Link].5.4]
at
[Link]([Link])
~[[Link].5.4]
at [Link]([Link]) ~[classes/:na]
Caused by: [Link]: Error
creating bean with name 'orderServiceImpl': Unsatisfied dependency expressed
through field 'scheduler'; nested exception is
[Link]: Error creating bean with
name 'quartzScheduler' defined in class path resource
[org/springframework/boot/autoconfigure/quartz/[Link]]: Bean
instantiation via factory method failed; nested exception is
[Link]: Failed to instantiate
[[Link]]: Factory method
'quartzScheduler' threw exception; nested exception is
[Link]: Error creating bean with
name 'jobAutoInsertTrigger' defined in class path resource
[ec/java/pasaryo/api/config/[Link]]: Bean instantiation via factory method
failed; nested exception is [Link]:
Failed to instantiate [[Link]]: Factory method 'jobAutoInsertTrigger'
threw exception; nested exception is [Link]: CronExpression
'*/5 * * * *' is invalid.
at
[Link]$A
[Link]([Link]
0) ~[[Link].3.9]
at
[Link]$A
[Link]([Link])
~[[Link].3.9]
at
[Link](InjectionMeta
[Link]) ~[[Link].3.9]
at
[Link].p
ostProcessProperties([Link]) ~[spring-beans-
[Link].3.9]
at
[Link]
teBean([Link]) ~[spring-beans-
[Link].3.9]
at
[Link]
teBean([Link]) ~[[Link].3.9]
at
[Link]
Bean([Link]) ~[[Link].3.9]
at
[Link]$doGetBean$0(Ab
[Link]) ~[[Link].3.9]
at
[Link]
([Link]) ~[[Link].3.9]
at
[Link](AbstractBea
[Link]) ~[[Link].3.9]
at
[Link](AbstractBeanF
[Link]) ~[[Link].3.9]
at
[Link](Depe
[Link]) ~[[Link].3.9]
at
[Link]
dency([Link]) ~[[Link].3.9]
at
[Link]
ncy([Link]) ~[[Link].3.9]
at
[Link]$A
[Link]([Link]
7) ~[[Link].3.9]
... 20 common frames omitted
Caused by: [Link]: Error creating
bean with name 'quartzScheduler' defined in class path resource
[org/springframework/boot/autoconfigure/quartz/[Link]]: Bean
instantiation via factory method failed; nested exception is
[Link]: Failed to instantiate
[[Link]]: Factory method
'quartzScheduler' threw exception; nested exception is
[Link]: Error creating bean with
name 'jobAutoInsertTrigger' defined in class path resource
[ec/java/pasaryo/api/config/[Link]]: Bean instantiation via factory method
failed; nested exception is [Link]:
Failed to instantiate [[Link]]: Factory method 'jobAutoInsertTrigger'
threw exception; nested exception is [Link]: CronExpression
'*/5 * * * *' is invalid.
at
[Link](Construct
[Link]) ~[[Link].3.9]
at
[Link]
ryMethod([Link]) ~[[Link].3.9]
at
[Link]
tiateUsingFactoryMethod([Link]) ~[spring-
[Link].3.9]
at
[Link]
BeanInstance([Link]) ~[spring-beans-
[Link].3.9]
at
[Link]
teBean([Link]) ~[[Link].3.9]
at
[Link]
Bean([Link]) ~[[Link].3.9]
at
[Link]$doGetBean$0(Ab
[Link]) ~[[Link].3.9]
at
[Link]
([Link]) ~[[Link].3.9]
at
[Link](AbstractBea
[Link]) ~[[Link].3.9]
at
[Link](AbstractBeanF
[Link]) ~[[Link].3.9]
at
[Link](Depe
[Link]) ~[[Link].3.9]
at
[Link]
dency([Link]) ~[[Link].3.9]
at
[Link]
ncy([Link]) ~[[Link].3.9]
at
[Link]$A
[Link]([Link]
7) ~[[Link].3.9]
... 34 common frames omitted
Caused by: [Link]: Failed to
instantiate [[Link]]: Factory
method 'quartzScheduler' threw exception; nested exception is
[Link]: Error creating bean with
name 'jobAutoInsertTrigger' defined in class path resource
[ec/java/pasaryo/api/config/[Link]]: Bean instantiation via factory method
failed; nested exception is [Link]:
Failed to instantiate [[Link]]: Factory method 'jobAutoInsertTrigger'
threw exception; nested exception is [Link]: CronExpression
'*/5 * * * *' is invalid.
at
[Link](S
[Link]) ~[[Link].3.9]
at
[Link](Construct
[Link]) ~[[Link].3.9]
... 47 common frames omitted
Caused by: [Link]: Error creating
bean with name 'jobAutoInsertTrigger' defined in class path resource
[ec/java/pasaryo/api/config/[Link]]: Bean instantiation via factory method
failed; nested exception is [Link]:
Failed to instantiate [[Link]]: Factory method 'jobAutoInsertTrigger'
threw exception; nested exception is [Link]: CronExpression
'*/5 * * * *' is invalid.
at
[Link](Construct
[Link]) ~[[Link].3.9]
at
[Link]
ryMethod([Link]) ~[[Link].3.9]
at
[Link]
tiateUsingFactoryMethod([Link]) ~[spring-
[Link].3.9]
at
[Link]
BeanInstance([Link]) ~[spring-beans-
[Link].3.9]
at
[Link]
teBean([Link]) ~[[Link].3.9]
at
[Link]
Bean([Link]) ~[[Link].3.9]
at
[Link]$doGetBean$0(Ab
[Link]) ~[[Link].3.9]
at
[Link]
([Link]) ~[[Link].3.9]
at
[Link](AbstractBea
[Link]) ~[[Link].3.9]
at
[Link](AbstractBeanF
[Link]) ~[[Link].3.9]
at
[Link](Depe
[Link]) ~[[Link].3.9]
at
[Link]
try([Link]) ~[[Link].3.9]
at
[Link]
ndidates([Link]) ~[[Link].3.9]
at
[Link]
eBeans([Link]) ~[[Link].3.9]
at
[Link]
dency([Link]) ~[[Link].3.9]
at
[Link]$DependencyObje
[Link]([Link]) ~[spring-beans-
[Link].3.9]
at
[Link]$DependencyObje
[Link]([Link]) ~[spring-beans-
[Link].3.9]
at
[Link]
er([Link]) ~[[Link].5.4]
at [Link]/[Link].invoke0(Native
Method) ~[na:na]
at
[Link]/[Link](NativeMethodAccessor
[Link]) ~[na:na]
at
[Link]/[Link](DelegatingMethod
[Link]) ~[na:na]
at [Link]/[Link]([Link]) ~[na:na]
at
[Link](S
[Link]) ~[[Link].3.9]
... 48 common frames omitted
Caused by: [Link]: Failed to
instantiate [[Link]]: Factory method 'jobAutoInsertTrigger' threw
exception; nested exception is [Link]: CronExpression '*/5 * *
* *' is invalid.
at
[Link](S
[Link]) ~[[Link].3.9]
at
[Link](Construct
[Link]) ~[[Link].3.9]
... 70 common frames omitted
Caused by: [Link]: CronExpression '*/5 * * * *' is invalid.
at [Link]([Link])
~[[Link]:na]
at [Link]([Link])
~[classes/:na]
at [Link]$$EnhancerBySpringCGLIB$
$[Link]$jobAutoInsertTrigger$1(<generated>) ~[classes/:na]
at [Link]$$EnhancerBySpringCGLIB$$575ad923$
$FastClassBySpringCGLIB$$[Link](<generated>) ~[classes/:na]
at
[Link]([Link])
~[[Link].3.9]
at
[Link]$BeanMethodInterce
[Link]([Link]) ~[spring-context-
[Link].3.9]
at [Link]$$EnhancerBySpringCGLIB$
$[Link](<generated>) ~[classes/:na]
at [Link]/[Link].invoke0(Native
Method) ~[na:na]
at
[Link]/[Link](NativeMethodAccessor
[Link]) ~[na:na]
at
[Link]/[Link](DelegatingMethod
[Link]) ~[na:na]
at [Link]/[Link]([Link]) ~[na:na]
at
[Link](S
[Link]) ~[[Link].3.9]
... 71 common frames omitted
Caused by: [Link]: Unexpected end of expression.
at [Link]([Link])
~[[Link]:na]
at [Link].<init>([Link]) ~[quartz-
[Link]:na]
at [Link]([Link])
~[[Link]:na]
... 82 common frames omitted

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.274 s
[INFO] Finished at: 2021-09-27T19:07:41+07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal [Link]:spring-boot-maven-
plugin:2.5.4:run (default-cli) on project api: Application finished with exit code:
1 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read
the following articles:
[ERROR] [Help 1]
[Link]

You might also like