dvankley / firefly-plaid-connector-2

Connector to pull Plaid financial data into the Firefly finance tool
GNU General Public License v3.0
94 stars 14 forks source link

Failed to bind properties under 'firefly-plaid-connector2' to net.djvk.fireflyPlaidConnector2.config.properties.AccountConfigs #41

Closed hjmuller closed 10 months ago

hjmuller commented 10 months ago

I'm getting an error of "Failed to bind properties under 'firefly-plaid-connector2' to net.djvk.fireflyPlaidConnector2.config.properties.AccountConfigs" when I run the batch program using Docker.

It's difficult for me to tell where the problem lies, unfortunately.


app_1  | Setting Active Processor Count to 6
app_1  | Calculating JVM memory based on 10324444K available memory
app_1  | For more information on this calculation, see https://paketo.io/docs/reference/java-reference/#memory-calculator
app_1  | Calculated JVM Memory Configuration: -XX:MaxDirectMemorySize=10M -Xmx9931445K -XX:MaxMetaspaceSize=85798K -XX:ReservedCodeCacheSize=240M -Xss1M (Total Memory: 10324444K, Thread Count: 50, Loaded Class Count: 12734, Headroom: 0%)
app_1  | Enabling Java Native Memory Tracking
app_1  | Adding 137 container CA certificates to JVM truststore
app_1  | Spring Cloud Bindings Enabled
app_1  | Picked up JAVA_TOOL_OPTIONS: -Djava.security.properties=/layers/paketo-buildpacks_bellsoft-liberica/java-security-properties/java-security.properties -XX:+ExitOnOutOfMemoryError -XX:ActiveProcessorCount=6 -XX:MaxDirectMemorySize=10M -Xmx9931445K -XX:MaxMetaspaceSize=85798K -XX:ReservedCodeCacheSize=240M -Xss1M -XX:+UnlockDiagnosticVMOptions -XX:NativeMemoryTracking=summary -XX:+PrintNMTStatistics -Dorg.springframework.cloud.bindings.boot.enable=true
app_1  | 
app_1  |   .   ____          _            __ _ _
app_1  |  /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
app_1  | ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
app_1  |  \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
app_1  |   '  |____| .__|_| |_|_| |_\__, | / / / /
app_1  |  =========|_|==============|___/=/_/_/_/
app_1  |  :: Spring Boot ::                (v3.1.4)
app_1  | 
app_1  | 2023-11-16T19:31:35.456Z  INFO 1 --- [           main] .d.f.FireflyPlaidConnector2ApplicationKt : Starting FireflyPlaidConnector2ApplicationKt v1.0.8 using Java 17.0.7 with PID 1 (/workspace/BOOT-INF/classes started by cnb in /workspace)
app_1  | 2023-11-16T19:31:35.459Z DEBUG 1 --- [           main] .d.f.FireflyPlaidConnector2ApplicationKt : Running with Spring Boot v3.1.4, Spring v6.0.12
app_1  | 2023-11-16T19:31:35.460Z  INFO 1 --- [           main] .d.f.FireflyPlaidConnector2ApplicationKt : No active profile set, falling back to 1 default profile: "default"
app_1  | 2023-11-16T19:31:36.799Z  WARN 1 --- [           main] s.c.a.AnnotationConfigApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'fireflyPlaidConnector2Application': Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'batchSyncRunner' defined in file [/workspace/BOOT-INF/classes/net/djvk/fireflyPlaidConnector2/sync/BatchSyncRunner.class]: Unsatisfied dependency expressed through constructor parameter 5: Error creating bean with name 'syncHelper' defined in file [/workspace/BOOT-INF/classes/net/djvk/fireflyPlaidConnector2/sync/SyncHelper.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'firefly-plaid-connector2-net.djvk.fireflyPlaidConnector2.config.properties.AccountConfigs': Could not bind properties to 'AccountConfigs' : prefix=firefly-plaid-connector2, ignoreInvalidFields=false, ignoreUnknownFields=true
app_1  | 2023-11-16T19:31:36.809Z  INFO 1 --- [           main] .s.b.a.l.ConditionEvaluationReportLogger : 
app_1  | 
app_1  | Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
app_1  | 2023-11-16T19:31:36.825Z ERROR 1 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 
app_1  | 
app_1  | ***************************
app_1  | APPLICATION FAILED TO START
app_1  | ***************************
app_1  | 
app_1  | Description:
app_1  | 
app_1  | Failed to bind properties under 'firefly-plaid-connector2' to net.djvk.fireflyPlaidConnector2.config.properties.AccountConfigs:
app_1  | 
app_1  |     Reason: java.lang.NullPointerException: Parameter specified as non-null is null: method net.djvk.fireflyPlaidConnector2.config.properties.AccountConfigs.<init>, parameter accounts
app_1  | 
app_1  | Action:
app_1  | 
app_1  | Update your application's configuration
app_1  | 
app_1  | 
app_1  | Native Memory Tracking:
app_1  | 
app_1  | Total: reserved=11088098679, committed=312743287
app_1  |        malloc: 55612791 #172107
app_1  |        mmap:   reserved=11032485888, committed=257130496
app_1  | 
app_1  | -                 Java Heap (reserved=10175381504, committed=167772160)
app_1  |                             (mmap: reserved=10175381504, committed=167772160) 
app_1  |  
app_1  | -                     Class (reserved=84453612, committed=3778796)
app_1  |                             (classes #6196)
app_1  |                             (  instance classes #5781, array classes #415)
app_1  |                             (malloc=567532 #11956) 
app_1  |                             (mmap: reserved=83886080, committed=3211264) 
app_1  |                             (  Metadata:   )
app_1  |                             (    reserved=67108864, committed=22216704)
app_1  |                             (    used=22016248)
app_1  |                             (    waste=200456 =0.90%)
app_1  |                             (  Class space:)
app_1  |                             (    reserved=83886080, committed=3211264)
app_1  |                             (    used=3035848)
app_1  |                             (    waste=175416 =5.46%)
app_1  |  
app_1  | -                    Thread (reserved=24245928, committed=1373864)
app_1  |                             (thread #23)
app_1  |                             (stack: reserved=24174592, committed=1302528)
app_1  |                             (malloc=40904 #166) 
app_1  |                             (arena=30432 #52)
app_1  |  
app_1  | -                      Code (reserved=254254024, committed=12114888)
app_1  |                             (malloc=621512 #4211) 
app_1  |                             (mmap: reserved=253632512, committed=11493376) 
app_1  |  
app_1  | -                        GC (reserved=425336928, committed=53960800)
app_1  |                             (malloc=13856864 #2454) 
app_1  |                             (mmap: reserved=411480064, committed=40103936) 
app_1  |  
app_1  | -                  Compiler (reserved=3405240, committed=3405240)
app_1  |                             (malloc=19376 #335) 
app_1  |                             (arena=3385864 #14)
app_1  |  
app_1  | -                  Internal (reserved=275041, committed=275041)
app_1  |                             (malloc=238177 #4743) 
app_1  |                             (mmap: reserved=36864, committed=36864) 
app_1  |  
app_1  | -                    Symbol (reserved=7512328, committed=7512328)
app_1  |                             (malloc=7143688 #145779) 
app_1  |                             (arena=368640 #1)
app_1  |  
app_1  | -    Native Memory Tracking (reserved=2760360, committed=2760360)
app_1  |                             (malloc=6632 #95) 
app_1  |                             (tracking overhead=2753728)
app_1  |  
app_1  | -        Shared class space (reserved=16777216, committed=10985472)
app_1  |                             (mmap: reserved=16777216, committed=10985472) 
app_1  |  
app_1  | -               Arena Chunk (reserved=26362784, committed=26362784)
app_1  |                             (malloc=26362784) 
app_1  |  
app_1  | -                   Tracing (reserved=345, committed=345)
app_1  |                             (malloc=345 #9) 
app_1  |  
app_1  | -                 Arguments (reserved=169, committed=169)
app_1  |                             (malloc=169 #5) 
app_1  |  
app_1  | -                    Module (reserved=46544, committed=46544)
app_1  |                             (malloc=46544 #624) 
app_1  |  
app_1  | -                 Safepoint (reserved=8192, committed=8192)
app_1  |                             (mmap: reserved=8192, committed=8192) 
app_1  |  
app_1  | -           Synchronization (reserved=57424, committed=57424)
app_1  |                             (malloc=57424 #680) 
app_1  |  
app_1  | -            Serviceability (reserved=672, committed=672)
app_1  |                             (malloc=672 #6) 
app_1  |  
app_1  | -                 Metaspace (reserved=67215712, committed=22323552)
app_1  |                             (malloc=106848 #60) 
app_1  |                             (mmap: reserved=67108864, committed=22216704) 
app_1  |  
app_1  | -      String Deduplication (reserved=704, committed=704)
app_1  |                             (malloc=704 #8) 
app_1  |  
app_1  | -           Object Monitors (reserved=3952, committed=3952)
app_1  |                             (malloc=3952 #19) 
app_1  |  
firefly_iii_plaid_connector_app_1 exited with code 1
hjmuller commented 10 months ago

I got this to work. My YAML array for asset accounts was not properly configured.