Hi!
I'm having an issue with an app, if I run my main file from my IDE (Intellij) it works perfectly fine. The issue is that whenever I build a JAR file from intellij that jar file throws an exception and I just can not figure out why.
Can someone point me in the right direction on how to debug this?
The exception in question:
[main] WARN org.springframework.context.annotation.AnnotationConfigApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'main': Unsatisfied dependency expressed through constructor parameter 1: Error creating bean with name 'manager' defined in URL [jar:file:/C:/Users/MAD/Documents/projects/java/FrigateManager/out/artifacts/FrigateManager_jar/FrigateManager.jar!/org/altered/frigate_manager/Manager.class]: null
[main] ERROR org.springframework.boot.SpringApplication - Application run failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'main': Unsatisfied dependency expressed through constructor parameter 1: Error creating bean with name 'manager' defined in URL [jar:file:/C:/Users/MAD/Documents/projects/java/FrigateManager/out/artifacts/FrigateManager_jar/FrigateManager.jar!/org/altered/frigate_manager/Manager.class]: null
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:795)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:237)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1375)
at
....
So it seems to me that it cannot instantiate the "org.altered.frigate_manager.Manager" class in spring's DI.