Hi @ymahtat ,
Pre-Registration Application Service Logs
Timestamp: 2024-11-18 18:11:36.579+05:30
Log Level: INFO
Message:
getAllDocCategoriesAndTypes url: http://localhost:8080/v1/masterdata/validdocuments/all?pageSize=50
Logger Name: io.mosip.preregistration.core.util.ValidationUtil
Thread Name: restartedMain
App Name: pre-registration-application-service
Timestamp: 2024-11-18 18:11:36.627+05:30
Log Level: INFO
Message:
Requesting for new Token for the provided OIDC Service: http://localhost:8080/auth/realms/
Logger Name: io.mosip.kernel.auth.defaultadapter.helper.TokenHelper
Thread Name: restartedMain
App Name: pre-registration-application-service
Trace ID: 913031a8cc64e4eb
Span ID: 913031a8cc64e4eb
Timestamp: 2024-11-18 18:11:36.645+05:30
Log Level: ERROR
Message:
error connecting to auth service
Logger Name: io.mosip.kernel.auth.defaultadapter.helper.TokenHelper
Thread Name: restartedMain
App Name: pre-registration-application-service
Trace ID: 913031a8cc64e4eb
Span ID: 913031a8cc64e4eb
Timestamp: 2024-11-18 18:11:36.647+05:30
Log Level: ERROR
Message:
there is some issue with getting token with clientId and secret
Logger Name: io.mosip.kernel.auth.defaultadapter.config.SelfTokenRestInterceptor
Thread Name: restartedMain
App Name: pre-registration-application-service
Trace ID: 913031a8cc64e4eb
Span ID: 913031a8cc64e4eb
Timestamp: 2024-11-18 18:11:36.655+05:30
Log Level: INFO
Message:
Error starting ApplicationContext. To display the conditions report, re-run your application with 'debug' enabled.
Logger Name: org.springframework.boot.autoconfigure.logging.ConditionEvaluationReportLoggingListener
Thread Name: restartedMain
App Name: pre-registration-application-service
Timestamp: 2024-11-18 18:11:36.663+05:30
Log Level: ERROR
Message:
Application run failed
Logger Name: org.springframework.boot.SpringApplication
Thread Name: restartedMain
Stack Trace:
io.mosip.kernel.auth.defaultadapter.exception.AuthAdapterException: Self cached auth token is null
at io.mosip.kernel.auth.defaultadapter.config.SelfTokenRestInterceptor.intercept(SelfTokenRestInterceptor.java:71)
at org.springframework.http.client.InterceptingClientHttpRequest$InterceptingRequestExecution.execute(InterceptingClientHttpRequest.java:92)
...
App Name: pre-registration-application-service
Timestamp: 2024-11-18 18:11:36.666+05:30
Log Level: INFO
Message:
Closing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@581dd551: startup date [Mon Nov 18 18:11:18 IST 2024]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@5a2a1ca3
Logger Name: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext
Thread Name: restartedMain
App Name: pre-registration-application-service
Timestamp: 2024-11-18 18:11:36.691+05:30
Log Level: INFO
Message:
HikariPool-1 - Shutdown initiated...
Logger Name: com.zaxxer.hikari.HikariDataSource
Thread Name: restartedMain
App Name: pre-registration-application-service
Timestamp: 2024-11-18 18:11:36.695+05:30
Log Level: INFO
Message:
HikariPool-1 - Shutdown completed.
Logger Name: com.zaxxer.hikari.HikariDataSource
Thread Name: restartedMain
App Name: pre-registration-application-service
Application Properties :
-
spring.cloud.config.uri= http://localhost:51000/config
-
mosip.base.url=http://localhost:8080
-
application.id: pre-registration
-
Also Created a new application in the authentication service and generated a Client ID and Client Secret.
- Replaced the old credentials with the new Client ID and Secret in the application properties.