Uploaded by asdgagame3

end-user-otp

advertisement
13:31:14,299 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
13:31:14,303 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [jar:file:/end-user-otp.jar!/BOOT-INF/classes!/logback.xml]
13:31:14,308 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs multiple times on the classpath.
13:31:14,308 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/end-user-otp.jar!/BOOT-INF/classes!/logback.xml]
13:31:14,308 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/end-user-otp.jar!/BOOT-INF/lib/vault-lib-v1.1.7.jar!/logback.xml]
13:31:14,510 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@401e7803 - URL [jar:file:/end-user-otp.jar!/BOOT-INF/classes!/logback.xml] is not of type file
13:31:14,914 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
13:31:15,809 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
13:31:15,813 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [logAppender]
13:31:17,599 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to INFO
13:31:17,599 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [logAppender] to Logger[ROOT]
13:31:17,600 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.kafka] to WARN
13:31:17,600 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
13:31:17,601 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@10dba097 - Registering current configuration as safe fallback point
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.6.7)
{"@timestamp":"2023-06-19T13:31:21.015Z","@version":"1","message":"Starting Application v0.1 using Java 17.0.6 on end-user-otp-76d946b984-p85jk with PID 1 (/end-user-otp.jar started by enduserotp in /)","logger_name":"com.trustly.enduserotp.Application","thread_name":"main","level":"INFO","level_value":20000}
{"@timestamp":"2023-06-19T13:31:21.097Z","@version":"1","message":"Running with Spring Boot v2.6.7, Spring v5.3.19","logger_name":"com.trustly.enduserotp.Application","thread_name":"main","level":"DEBUG","level_value":10000}
{"@timestamp":"2023-06-19T13:31:21.097Z","@version":"1","message":"The following 1 profile is active: \"devOtpTokenVerifierActive\"","logger_name":"com.trustly.enduserotp.Application","thread_name":"main","level":"INFO","level_value":20000}
{"@timestamp":"2023-06-19T13:31:27.609Z","@version":"1","message":"Multiple Spring Data modules found, entering strict repository configuration mode!","logger_name":"org.springframework.data.repository.config.RepositoryConfigurationDelegate","thread_name":"main","level":"INFO","level_value":20000}
{"@timestamp":"2023-06-19T13:31:27.614Z","@version":"1","message":"Bootstrapping Spring Data Redis repositories in DEFAULT mode.","logger_name":"org.springframework.data.repository.config.RepositoryConfigurationDelegate","thread_name":"main","level":"INFO","level_value":20000}
{"@timestamp":"2023-06-19T13:31:28.012Z","@version":"1","message":"Finished Spring Data repository scanning in 221 ms. Found 0 Redis repository interfaces.","logger_name":"org.springframework.data.repository.config.RepositoryConfigurationDelegate","thread_name":"main","level":"INFO","level_value":20000}
{"@timestamp":"2023-06-19T13:31:29.705Z","@version":"1","message":"BeanFactory id=300728e0-79f6-32eb-ab42-dafa41d75f3e","logger_name":"org.springframework.cloud.context.scope.GenericScope","thread_name":"main","level":"INFO","level_value":20000}
{"@timestamp":"2023-06-19T13:31:34.699Z","@version":"1","message":"Tomcat initialized with port(s): 8080 (http)","logger_name":"org.springframework.boot.web.embedded.tomcat.TomcatWebServer","thread_name":"main","level":"INFO","level_value":20000}
{"@timestamp":"2023-06-19T13:31:34.711Z","@version":"1","message":"Initializing ProtocolHandler [\"http-nio-8080\"]","logger_name":"org.apache.coyote.http11.Http11NioProtocol","thread_name":"main","level":"INFO","level_value":20000}
{"@timestamp":"2023-06-19T13:31:34.711Z","@version":"1","message":"Starting service [Tomcat]","logger_name":"org.apache.catalina.core.StandardService","thread_name":"main","level":"INFO","level_value":20000}
{"@timestamp":"2023-06-19T13:31:34.712Z","@version":"1","message":"Starting Servlet engine: [Apache Tomcat/9.0.62]","logger_name":"org.apache.catalina.core.StandardEngine","thread_name":"main","level":"INFO","level_value":20000}
{"@timestamp":"2023-06-19T13:31:35.112Z","@version":"1","message":"Initializing Spring embedded WebApplicationContext","logger_name":"org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]","thread_name":"main","level":"INFO","level_value":20000}
{"@timestamp":"2023-06-19T13:31:35.112Z","@version":"1","message":"Root WebApplicationContext: initialization completed in 13711 ms","logger_name":"org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext","thread_name":"main","level":"INFO","level_value":20000}
{"@timestamp":"2023-06-19T13:31:41.096Z","@version":"1","message":"Creating LettuceConnectionFactory with properties com.trustly.enduserotp.configuration.RedisConfiguration$$EnhancerBySpringCGLIB$$3905e361@795fd838","logger_name":"com.trustly.enduserotp.configuration.RedisConfiguration","thread_name":"main","level":"INFO","level_value":20000}
{"@timestamp":"2023-06-19T13:31:43.104Z","@version":"1","message":"Using dummy client for SMS","logger_name":"com.trustly.enduserotp.adapters.spi.dev.DummyTextSender","thread_name":"main","level":"INFO","level_value":20000}
{"@timestamp":"2023-06-19T13:31:46.704Z","@version":"1","message":"Using vault to fetch api token secret.","logger_name":"com.trustly.enduserotp.configuration.vault.SecretsConfiguration","thread_name":"main","level":"INFO","level_value":20000}
{"@timestamp":"2023-06-19T13:31:46.796Z","@version":"1","message":"Connecting to vault for secret service/end-user/end-user-otp.end-user/api-key, retry count 0","logger_name":"com.trustly.enduserotp.configuration.vault.SecretsConfiguration","thread_name":"main","level":"INFO","level_value":20000}
{"@timestamp":"2023-06-19T13:31:46.798Z","@version":"1","message":"Successfully retrieved api token secrets from vault","logger_name":"com.trustly.enduserotp.configuration.vault.SecretsConfiguration","thread_name":"main","level":"INFO","level_value":20000}
{"@timestamp":"2023-06-19T13:31:48.4Z","@version":"1","message":"Login successful using TLS certificates","logger_name":"com.trustly.vault.impl.VaultClientCertAuth","thread_name":"main","level":"DEBUG","level_value":10000}
{"@timestamp":"2023-06-19T13:31:48.402Z","@version":"1","message":"Scheduling Token renewal","logger_name":"org.springframework.vault.authentication.LifecycleAwareSessionManager","thread_name":"main","level":"INFO","level_value":20000}
{"@timestamp":"2023-06-19T13:31:48.991Z","@version":"1","message":"Using vault to fetch encryption secret.","logger_name":"com.trustly.enduserotp.configuration.vault.SecretsConfiguration","thread_name":"main","level":"INFO","level_value":20000}
{"@timestamp":"2023-06-19T13:31:48.992Z","@version":"1","message":"Connecting to vault for secret service/end-user/end-user-otp.end-user/encryption, retry count 0","logger_name":"com.trustly.enduserotp.configuration.vault.SecretsConfiguration","thread_name":"main","level":"INFO","level_value":20000}
{"@timestamp":"2023-06-19T13:31:48.992Z","@version":"1","message":"Successfully retrieved encryption secret from vault","logger_name":"com.trustly.enduserotp.configuration.vault.SecretsConfiguration","thread_name":"main","level":"INFO","level_value":20000}
{"@timestamp":"2023-06-19T13:31:49.198Z","@version":"1","message":"Using vault to fetch sinch verification secret.","logger_name":"com.trustly.enduserotp.configuration.vault.SecretsConfiguration","thread_name":"main","level":"INFO","level_value":20000}
{"@timestamp":"2023-06-19T13:31:49.198Z","@version":"1","message":"Connecting to vault for secret service/end-user/end-user-otp.end-user/sinch, retry count 0","logger_name":"com.trustly.enduserotp.configuration.vault.SecretsConfiguration","thread_name":"main","level":"INFO","level_value":20000}
{"@timestamp":"2023-06-19T13:31:49.198Z","@version":"1","message":"Successfully retrieved sinch verification secrets from vault","logger_name":"com.trustly.enduserotp.configuration.vault.SecretsConfiguration","thread_name":"main","level":"INFO","level_value":20000}
{"@timestamp":"2023-06-19T13:31:50.303Z","@version":"1","message":"Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sinchVerifier' defined in class path resource [com/trustly/enduserotp/configuration/EndUserOtpConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.trustly.enduserotp.adapters.spi.sns.helpers.SinchVerifier]: Factory method 'sinchVerifier' threw exception; nested exception is java.lang.IllegalArgumentException: Username must not be null","logger_name":"org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext","thread_name":"main","level":"WARN","level_value":30000}
{"@timestamp":"2023-06-19T13:31:50.303Z","@version":"1","message":"Shutting down...","logger_name":"com.trustly.enduserotp.adapters.spi.rest.enduser.EndUserServiceClient","thread_name":"main","level":"INFO","level_value":20000}
{"@timestamp":"2023-06-19T13:31:50.304Z","@version":"1","message":"Shutting down...","logger_name":"com.trustly.enduserotp.adapters.spi.rest.order.DepositServiceClient","thread_name":"main","level":"INFO","level_value":20000}
{"@timestamp":"2023-06-19T13:31:50.305Z","@version":"1","message":"Shutting down...","logger_name":"com.trustly.enduserotp.adapters.spi.redis.RedisOtpTokenRepository","thread_name":"main","level":"INFO","level_value":20000}
{"@timestamp":"2023-06-19T13:31:50.305Z","@version":"1","message":"Shutting down...","logger_name":"com.trustly.enduserotp.adapters.spi.redis.RedisOrderFlowRepository","thread_name":"main","level":"INFO","level_value":20000}
{"@timestamp":"2023-06-19T13:31:50.313Z","@version":"1","message":"Shutting down...","logger_name":"com.trustly.enduserotp.adapters.spi.kafka.KafkaWorkflowReporter","thread_name":"main","level":"INFO","level_value":20000}
{"@timestamp":"2023-06-19T13:31:50.317Z","@version":"1","message":"Stopping service [Tomcat]","logger_name":"org.apache.catalina.core.StandardService","thread_name":"main","level":"INFO","level_value":20000}
{"@timestamp":"2023-06-19T13:31:50.392Z","@version":"1","message":"The web application [ROOT] appears to have started a thread named [lettuce-eventExecutorLoop-1-1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:\n java.base@17.0.6/jdk.internal.misc.Unsafe.park(Native Method)\n java.base@17.0.6/java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:252)\n java.base@17.0.6/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:1672)\n java.base@17.0.6/java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:460)\n io.netty.util.concurrent.SingleThreadEventExecutor.takeTask(SingleThreadEventExecutor.java:256)\n io.netty.util.concurrent.DefaultEventExecutor.run(DefaultEventExecutor.java:64)\n io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)\n io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)\n java.base@17.0.6/java.lang.Thread.run(Thread.java:833)","logger_name":"org.apache.catalina.loader.WebappClassLoaderBase","thread_name":"main","level":"WARN","level_value":30000}
{"@timestamp":"2023-06-19T13:31:50.393Z","@version":"1","message":"The web application [ROOT] appears to have started a thread named [lettuce-timer-3-1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:\n java.base@17.0.6/java.lang.Thread.sleep(Native Method)\n io.netty.util.HashedWheelTimer$Worker.waitForNextTick(HashedWheelTimer.java:600)\n io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:496)\n io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)\n java.base@17.0.6/java.lang.Thread.run(Thread.java:833)","logger_name":"org.apache.catalina.loader.WebappClassLoaderBase","thread_name":"main","level":"WARN","level_value":30000}
{"@timestamp":"2023-06-19T13:31:50.41Z","@version":"1","message":"\n\nError starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.","logger_name":"org.springframework.boot.autoconfigure.logging.ConditionEvaluationReportLoggingListener","thread_name":"main","level":"INFO","level_value":20000}
{"@timestamp":"2023-06-19T13:31:50.505Z","@version":"1","message":"Application run failed","logger_name":"org.springframework.boot.SpringApplication","thread_name":"main","level":"ERROR","level_value":40000,"stack_trace":"org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sinchVerifier' defined in class path resource [com/trustly/enduserotp/configuration/EndUserOtpConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.trustly.enduserotp.adapters.spi.sns.helpers.SinchVerifier]: Factory method 'sinchVerifier' threw exception; nested exception is java.lang.IllegalArgumentException: Username must not be null\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:658)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:638)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:953)\n\tat org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)\n\tat org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)\n\tat org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145)\n\tat org.springframework.boot.SpringApplication.refresh(SpringApplication.java:740)\n\tat org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:415)\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:303)\n\tat com.trustly.enduserotp.Application.main(Application.java:18)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:568)\n\tat org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)\n\tat org.springframework.boot.loader.Launcher.launch(Launcher.java:108)\n\tat org.springframework.boot.loader.Launcher.launch(Launcher.java:58)\n\tat org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88)\nCaused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.trustly.enduserotp.adapters.spi.sns.helpers.SinchVerifier]: Factory method 'sinchVerifier' threw exception; nested exception is java.lang.IllegalArgumentException: Username must not be null\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)\n\t... 25 common frames omitted\nCaused by: java.lang.IllegalArgumentException: Username must not be null\n\tat org.springframework.util.Assert.notNull(Assert.java:201)\n\tat org.springframework.boot.web.client.BasicAuthentication.<init>(BasicAuthentication.java:39)\n\tat org.springframework.boot.web.client.RestTemplateBuilder.basicAuthentication(RestTemplateBuilder.java:391)\n\tat org.springframework.boot.web.client.RestTemplateBuilder.basicAuthentication(RestTemplateBuilder.java:378)\n\tat com.trustly.enduserotp.configuration.EndUserOtpConfiguration.sinchVerifier(EndUserOtpConfiguration.java:218)\n\tat com.trustly.enduserotp.configuration.EndUserOtpConfiguration$$EnhancerBySpringCGLIB$$eb5eda1.CGLIB$sinchVerifier$12(<generated>)\n\tat com.trustly.enduserotp.configuration.EndUserOtpConfiguration$$EnhancerBySpringCGLIB$$eb5eda1$$FastClassBySpringCGLIB$$78afae54.invoke(<generated>)\n\tat org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244)\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331)\n\tat com.trustly.enduserotp.configuration.EndUserOtpConfiguration$$EnhancerBySpringCGLIB$$eb5eda1.sinchVerifier(<generated>)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:568)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)\n\t... 26 common frames omitted\n"}
Download