Mosip preregistration module errors

Hello,
I have cloned the pre-registration repo release-1.2.0 on my local machine.
But i’am having an error in prereg-application service.
i have config server running in local machine and i followed all the instructions in developer guide v1.2.0.
I also wanted to know if masterdata is required for preregistration as it is not listed in the dependencies in the documentation

Here is the output (a part) when i try to run the application:

{“@timestamp”:“2023-04-25T17:55:02.949Z”,“@version”:“1”,“message”:“Mapped URL path [/] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]“,“logger_name”:“org.springframework.web.servlet.handler.SimpleUrlHandlerMapping”,“thread_name”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{”@timestamp":“2023-04-25T17:55:02.949Z”,“@version”:“1”,“message”:"Mapped URL path [/application-service/swagger-ui*/
] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]”,“logger_name”:“org.springframework.web.servlet.handler.SimpleUrlHandlerMapping”,“thread_name”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-04-25T17:55:02.986Z”,“@version”:“1”,“message”:“Detected @ExceptionHandler methods in authAdapterExceptionHandler”,“logger_name”:“org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver”,“thread_name”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-04-25T17:55:02.986Z”,“@version”:“1”,“message”:“Detected @ExceptionHandler methods in preRegistrationExceptionHandler”,“logger_name”:“org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver”,“thread_name”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-04-25T17:55:02.986Z”,“@version”:“1”,“message”:“Detected @ExceptionHandler methods in org.springdoc.core.SpringDocConfiguration$OpenApiResourceAdvice”,“logger_name”:“org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver”,“thread_name”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-04-25T17:55:03.299Z”,“@version”:“1”,“message”:“swagger open api bean is ready”,“logger_name”:“io.mosip.preregistration.application.config.LoginConfig”,“thread_name”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-04-25T17:55:03.329Z”,“@version”:“1”,“message”:“swagger open api bean is ready”,“logger_name”:“io.mosip.preregistration.application.config.LoginConfig”,“thread_name”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-04-25T17:55:04.106Z”,“@version”:“1”,“message”:“Unable to start LiveReload server”,“logger_name”:“org.springframework.boot.devtools.autoconfigure.OptionalLiveReloadServer”,“thread_name”:“restartedMain”,“level”:“WARN”,“level_value”:30000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-04-25T17:55:05.178Z”,“@version”:“1”,“message”:“Cannot determine local hostname”,“logger_name”:“org.springframework.cloud.commons.util.InetUtils”,“thread_name”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-04-25T17:55:05.397Z”,“@version”:“1”,“message”:“Exposing 3 endpoint(s) beneath base path ‘/actuator’”,“logger_name”:“org.springframework.boot.actuate.endpoint.web.EndpointLinksResolver”,“thread_name”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-04-25T17:55:05.421Z”,“@version”:“1”,“message”:“Mapped "{[/actuator/health],methods=[GET],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.web.servlet.AbstractWebMvcEndpointHandlerMapping$OperationHandler.handle(javax.servlet.http.HttpServletRequest,java.util.Map<java.lang.String, java.lang.String>)”,“logger_name”:“org.springframework.boot.actuate.endpoint.web.servlet.WebMvcEndpointHandlerMapping”,“thread_name”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-04-25T17:55:05.421Z”,“@version”:“1”,“message”:“Mapped "{[/actuator/info],methods=[GET],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.web.servlet.AbstractWebMvcEndpointHandlerMapping$OperationHandler.handle(javax.servlet.http.HttpServletRequest,java.util.Map<java.lang.String, java.lang.String>)”,“logger_name”:“org.springframework.boot.actuate.endpoint.web.servlet.WebMvcEndpointHandlerMapping”,“thread_name”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-04-25T17:55:05.422Z”,“@version”:“1”,“message”:“Mapped "{[/actuator/refresh],methods=[POST],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.web.servlet.AbstractWebMvcEndpointHandlerMapping$OperationHandler.handle(javax.servlet.http.HttpServletRequest,java.util.Map<java.lang.String, java.lang.String>)”,“logger_name”:“org.springframework.boot.actuate.endpoint.web.servlet.WebMvcEndpointHandlerMapping”,“thread_name”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-04-25T17:55:05.423Z”,“@version”:“1”,“message”:“Mapped "{[/actuator],methods=[GET],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto protected java.util.Map<java.lang.String, java.util.Map<java.lang.String, org.springframework.boot.actuate.endpoint.web.Link>> org.springframework.boot.actuate.endpoint.web.servlet.WebMvcEndpointHandlerMapping.links(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)”,“logger_name”:“org.springframework.boot.actuate.endpoint.web.servlet.WebMvcEndpointHandlerMapping”,“thread_name”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-04-25T17:55:05.580Z”,“@version”:“1”,“message”:“Registering beans for JMX exposure on startup”,“logger_name”:“org.springframework.jmx.export.annotation.AnnotationMBeanExporter”,“thread_name”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-04-25T17:55:05.582Z”,“@version”:“1”,“message”:“Bean with name ‘dataSource’ has been autodetected for JMX exposure”,“logger_name”:“org.springframework.jmx.export.annotation.AnnotationMBeanExporter”,“thread_name”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-04-25T17:55:05.597Z”,“@version”:“1”,“message”:“Bean with name ‘environmentManager’ has been autodetected for JMX exposure”,“logger_name”:“org.springframework.jmx.export.annotation.AnnotationMBeanExporter”,“thread_name”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-04-25T17:55:05.599Z”,“@version”:“1”,“message”:“Bean with name ‘refreshScope’ has been autodetected for JMX exposure”,“logger_name”:“org.springframework.jmx.export.annotation.AnnotationMBeanExporter”,“thread_name”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-04-25T17:55:05.601Z”,“@version”:“1”,“message”:“Bean with name ‘configurationPropertiesRebinder’ has been autodetected for JMX exposure”,“logger_name”:“org.springframework.jmx.export.annotation.AnnotationMBeanExporter”,“thread_name”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-04-25T17:55:05.606Z”,“@version”:“1”,“message”:“Located managed bean ‘environmentManager’: registering with JMX server as MBean [org.springframework.cloud.context.environment:name=environmentManager,type=EnvironmentManager]”,“logger_name”:“org.springframework.jmx.export.annotation.AnnotationMBeanExporter”,“thread_name”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-04-25T17:55:05.620Z”,“@version”:“1”,“message”:“Located managed bean ‘refreshScope’: registering with JMX server as MBean [org.springframework.cloud.context.scope.refresh:name=refreshScope,type=RefreshScope]”,“logger_name”:“org.springframework.jmx.export.annotation.AnnotationMBeanExporter”,“thread_name”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-04-25T17:55:05.641Z”,“@version”:“1”,“message”:“Located managed bean ‘configurationPropertiesRebinder’: registering with JMX server as MBean [org.springframework.cloud.context.properties:name=configurationPropertiesRebinder,context=2779f74a,type=ConfigurationPropertiesRebinder]”,“logger_name”:“org.springframework.jmx.export.annotation.AnnotationMBeanExporter”,“thread_name”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-04-25T17:55:05.654Z”,“@version”:“1”,“message”:“Located MBean ‘dataSource’: registering with JMX server as MBean [com.zaxxer.hikari:name=dataSource,type=HikariDataSource]”,“logger_name”:“org.springframework.jmx.export.annotation.AnnotationMBeanExporter”,“thread_name”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-04-25T17:55:05.713Z”,“@version”:“1”,“message”:“Found Token in response body and returning the Token(WebClient)”,“logger_name”:“io.mosip.kernel.auth.defaultadapter.helper.TokenHelper”,“thread_name”:“ThreadPoolTaskScheduler-1”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-04-25T17:55:05.742Z”,“@version”:“1”,“message”:“Starting ProtocolHandler ["http-nio-9090"]”,“logger_name”:“org.apache.coyote.http11.Http11NioProtocol”,“thread_name”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-04-25T17:55:05.746Z”,“@version”:“1”,“message”:“Using a shared selector for servlet write/read”,“logger_name”:“org.apache.tomcat.util.net.NioSelectorPool”,“thread_name”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-04-25T17:55:05.766Z”,“@version”:“1”,“message”:“Tomcat started on port(s): 9090 (http) with context path ‘/preregistration/v1’”,“logger_name”:“org.springframework.boot.web.embedded.tomcat.TomcatWebServer”,“thread_name”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-04-25T17:55:05.773Z”,“@version”:“1”,“message”:“Started PreRegistrationApplication in 16.932 seconds (JVM running for 18.001)”,“logger_name”:“io.mosip.preregistration.application.PreRegistrationApplication”,“thread_name”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-04-25T17:55:05.775Z”,“@version”:“1”,“message”:“sessionId - idType - id - In applicationStartedEvent method of ApplicationEventListerner”,“logger_name”:“io.mosip.preregistration.application.config.ApplicationEventListerner”,“thread_name”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-04-25T17:55:05.786Z”,“@version”:“1”,“message”:“In setupLoginService method of login service”,“logger_name”:“io.mosip.preregistration.application.service.LoginService”,“thread_name”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-04-25T17:55:05.787Z”,“@version”:“1”,“message”:" URL in login service util of configRestCall http://localhost:8888/config/*/default/develop-v3/application.properties “,“logger_name”:“io.mosip.preregistration.application.util.LoginCommonUtil”,“thread_name”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{”@timestamp":“2023-04-25T17:55:06.822Z”,“@version”:“1”,“message”:" URL in login service util of configRestCall http://localhost:8888/config/*/default/develop-v3/pre-registration-default.properties “,“logger_name”:“io.mosip.preregistration.application.util.LoginCommonUtil”,“thread_name”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{”@timestamp":“2023-04-25T17:55:07.853Z”,“@version”:“1”,“message”:“Fetched the globalConfig and preRegconfig from config server”,“logger_name”:“io.mosip.preregistration.application.service.LoginService”,“thread_name”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-04-25T17:55:07.853Z”,“@version”:“1”,“message”:“sessionId - idType - id - In applicationStartedEvent method of ApplicationEventListerner login service setupLoginService method called”,“logger_name”:“io.mosip.preregistration.application.config.ApplicationEventListerner”,“thread_name”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-04-25T17:55:07.856Z”,“@version”:“1”,“message”:“sessionId - idType - id - URL in demographic service util of getJson http://localhost:8888/config/*/default/develop-v3/identity-mapping.json",“logger_name”:“io.mosip.preregistration.application.service.util.DemographicServiceUtil”,“thread_name”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:"pre-registration-application-service”}
{“@timestamp”:“2023-04-25T17:55:08.917Z”,“@version”:“1”,“message”:“Fetched the identity json from config server{\n\t"identity": {\n\t\t"IDSchemaVersion": {\n\t\t\t"value": "IDSchemaVersion"\n\t\t},\n\t\t"name": {\n\t\t\t"value": "fullName"\n\t\t},\n\t\t"gender": {\n\t\t\t"value": "gender"\n\t\t},\n\t\t"dob": {\n\t\t\t"value": "dateOfBirth"\n\t\t},\n\t\t"age": {\n\t\t\t"value": "age"\n\t\t},\n\t\t"introducerRID": {\n\t\t\t"value": "introducerRID"\n\t\t},\n\t\t"introducerUIN": {\n\t\t\t"value": "introducerUIN"\n\t\t},\n\t\t"introducerVID": {\n\t\t\t"value": "introducerVID"\n\t\t},\n\t\t"introducerName": {\n\t\t\t"value": "introducerName"\n\t\t},\n\t\t"phone": {\n\t\t\t"value": "phone"\n\t\t},\n\t\t"phoneNumber": {\n\t\t\t"value": "phone"\n\t\t},\n\t\t"email": {\n\t\t\t"value": "email"\n\t\t},\n\t\t"emailId": {\n\t\t\t"value": "email"\n\t\t},\n\t\t"uin": {\n\t\t\t"value": "UIN"\n\t\t},\n\t\t"vid": {\n\t\t\t"value": "VID"\n\t\t},\n\t\t"individualBiometrics": {\n\t\t\t"value": "individualBiometrics"\n\t\t},\n\t\t"introducerBiometrics": {\n\t\t\t"value": "introducerBiometrics"\n\t\t},\n\t\t"individualAuthBiometrics": {\n\t\t\t"value": "individualAuthBiometrics"\n\t\t},\n\t\t"officerBiometricFileName": {\n\t\t\t"value": "officerBiometricFileName"\n\t\t},\n\t\t"supervisorBiometricFileName": {\n\t\t\t"value": "supervisorBiometricFileName"\n\t\t},\n\t\t"residenceStatus": {\n\t\t\t"value": "residenceStatus"\n\t\t},\n\t\t"preferredLanguage": {\n\t\t\t"value": "preferredLang"\n\t\t},\n\t\t"locationHierarchyForProfiling": {\n\t\t\t"value": "zone,postalCode"\n\t\t},\n\t\t"addressLine1": {\n\t\t\t"value": "addressLine1"\n\t\t},\n\t\t"addressLine2": {\n\t\t\t"value": "addressLine2"\n\t\t},\n\t\t"addressLine3": {\n\t\t\t"value": "addressLine3"\n\t\t},\n\t\t"location1": {\n\t\t\t"value": "city"\n\t\t},\n\t\t"location2": {\n\t\t\t"value": "region"\n\t\t},\n\t\t"location3": {\n\t\t\t"value": "province"\n\t\t},\n\t\t"postalCode": {\n\t\t\t"value": "postalCode"\n\t\t},\n\t\t"location4": {\n\t\t\t"value": "zone"\n\t\t},\n\t\t"fullAddress": {\n\t\t\t"value": "addressLine1,addressLine2,addressLine3,city,region,province,postalCode"\n\t\t},\n\t\t"bestTwoFingers": {\n\t\t\t"value": "bestTwoFingers"\n\t\t},\n\t\t"birthdate": {\n\t\t "value": "dateOfBirth"\n\t\t},\n\t\t"picture": {\n\t\t "value": "face"\n\t\t},\n\t\t"address": {\n\t\t "value": "addressLine1,addressLine2,addressLine3,city,region,province,postalCode"\n\t\t},\n\t\t"phone_number": {\n\t\t\t"value": "phone"\n\t\t},\n "individual_id": {\n\t\t\t"value": "individual_id"\n\t\t}, \n "street_address": {\n "value": "addressLine1,addressLine2,addressLine3"\n },\n "locality": {\n "value": "city"\n },\n "region": {\n "value": "region"\n },\n "postal_code": {\n "value": "postalCode"\n },\n "country": {\n "value": "province"\n }\n\t},\n\t"metaInfo": {\n\t\t"value": "metaInfo"\n\t},\n\t"audits": {\n\t\t"value": "audits"\n\t},\n\t"documents": {\n\t\t"poa": {\n\t\t\t"value": "proofOfAddress"\n\t\t},\n\t\t"poi": {\n\t\t\t"value": "proofOfIdentity"\n\t\t},\n\t\t"por": {\n\t\t\t"value": "proofOfRelationship"\n\t\t},\n\t\t"pob": {\n\t\t\t"value": "proofOfDateOfBirth"\n\t\t},\n\t\t"poe": {\n\t\t\t"value": "proofOfException"\n\t\t}\n\t},\n\t"attributeUpdateCountLimit": {\n\t\t"fullName": 2,\n\t\t"gender": 1,\n\t\t"dob": 1,\n\t\t"age": 1\n\t}\n}\n”,“logger_name”:“io.mosip.preregistration.application.service.DemographicService”,“thread_name”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-04-25T17:55:08.918Z”,“@version”:“1”,“message”:“sessionId - idType - id - In applicationStartedEvent method of ApplicationEventListerner demographic Service setup() method is called”,“logger_name”:“io.mosip.preregistration.application.config.ApplicationEventListerner”,“thread_name”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-04-25T17:55:08.932Z”,“@version”:“1”,“message”:“getAllDocCategoriesAndTypes url: http://localhost:8888/v1/masterdata/validdocuments/all?pageSize=50 “,“logger_name”:“io.mosip.preregistration.core.util.ValidationUtil”,“thread_name”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{”@timestamp”:“2023-04-25T17:55:08.966Z”,“@version”:“1”,“message”:“sessionId - idType - id - ---- docCatMap {}org.springframework.web.client.HttpClientErrorException: 404 \n\tat org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:94)\n\tat org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:79)\n\tat org.springframework.web.client.ResponseErrorHandler.handleError(ResponseErrorHandler.java:63)\n\tat org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:766)\n\tat org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:724)\n\tat org.springframework.web.client.RestTemplate.execute(RestTemplate.java:680)\n\tat org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:629)\n\tat io.mosip.preregistration.core.util.ValidationUtil.getAllDocCategoriesAndTypes(ValidationUtil.java:329)\n\tat io.mosip.preregistration.application.service.DocumentService.setup(DocumentService.java:187)\n\tat io.mosip.preregistration.application.service.DocumentService$$FastClassBySpringCGLIB$$22bc9d53.invoke()\n\tat org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)\n\tat org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:684)\n\tat io.mosip.preregistration.application.service.DocumentService$$EnhancerBySpringCGLIB$$bc5d4f3.setup()\n\tat io.mosip.preregistration.application.config.ApplicationEventListerner.applicationStartedEvent(ApplicationEventListerner.java:37)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:566)\n\tat org.springframework.context.event.ApplicationListenerMethodAdapter.doInvoke(ApplicationListenerMethodAdapter.java:261)\n\tat org.springframework.context.event.ApplicationListenerMethodAdapter.processEvent(ApplicationListenerMethodAdapter.java:180)\n\tat org.springframework.context.event.ApplicationListenerMethodAdapter.onApplicationEvent(ApplicationListenerMethodAdapter.java:142)\n\tat org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)\n\tat org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)\n\tat org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)\n\tat org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:400)\n\tat org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:354)\n\tat org.springframework.boot.context.event.EventPublishingRunListener.started(EventPublishingRunListener.java:97)\n\tat org.springframework.boot.SpringApplicationRunListeners.started(SpringApplicationRunListeners.java:72)\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:334)\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)\n\tat io.mosip.preregistration.application.PreRegistrationApplication.main(PreRegistrationApplication.java:23)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:566)\n\tat org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)\n”,“logger_name”:“io.mosip.preregistration.core.util.ValidationUtil”,“thread_name”:“restartedMain”,“level”:“ERROR”,“level_value”:40000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-04-25T17:55:08.972Z”,“@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”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-04-25T17:55:09.007Z”,“@version”:“1”,“message”:“Application run failed”,“logger_name”:“org.springframework.boot.SpringApplication”,“thread_name”:“restartedMain”,“level”:“ERROR”,“level_value”:40000,“stack_trace”:“io.mosip.preregistration.core.exception.MasterDataNotAvailableException: PRG_CORE_REQ_022 → MASTERDATA_SERVICE_CALL_FAIL\n\tat io.mosip.preregistration.core.util.ValidationUtil.getAllDocCategoriesAndTypes(ValidationUtil.java:356)\n\tat io.mosip.preregistration.application.service.DocumentService.setup(DocumentService.java:187)\n\tat io.mosip.preregistration.application.service.DocumentService$$FastClassBySpringCGLIB$$22bc9d53.invoke()\n\tat org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)\n\tat org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:684)\n\tat io.mosip.preregistration.application.service.DocumentService$$EnhancerBySpringCGLIB$$bc5d4f3.setup()\n\tat io.mosip.preregistration.application.config.ApplicationEventListerner.applicationStartedEvent(ApplicationEventListerner.java:37)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:566)\n\tat org.springframework.context.event.ApplicationListenerMethodAdapter.doInvoke(ApplicationListenerMethodAdapter.java:261)\n\tat org.springframework.context.event.ApplicationListenerMethodAdapter.processEvent(ApplicationListenerMethodAdapter.java:180)\n\tat org.springframework.context.event.ApplicationListenerMethodAdapter.onApplicationEvent(ApplicationListenerMethodAdapter.java:142)\n\tat org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)\n\tat org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)\n\tat org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)\n\tat org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:400)\n\tat org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:354)\n\tat org.springframework.boot.context.event.EventPublishingRunListener.started(EventPublishingRunListener.java:97)\n\tat org.springframework.boot.SpringApplicationRunListeners.started(SpringApplicationRunListeners.java:72)\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:334)\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)\n\tat io.mosip.preregistration.application.PreRegistrationApplication.main(PreRegistrationApplication.java:23)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:566)\n\tat org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)\n”,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-04-25T17:55:09.009Z”,“@version”:“1”,“message”:“Closing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@2779f74a: startup date [Tue Apr 25 17:54:50 GMT 2023]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@20c9dbb0”,“logger_name”:“org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext”,“thread_name”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-04-25T17:55:09.016Z”,“@version”:“1”,“message”:“Unregistering JMX-exposed beans on shutdown”,“logger_name”:“org.springframework.jmx.export.annotation.AnnotationMBeanExporter”,“thread_name”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-04-25T17:55:09.016Z”,“@version”:“1”,“message”:“Unregistering JMX-exposed beans”,“logger_name”:“org.springframework.jmx.export.annotation.AnnotationMBeanExporter”,“thread_name”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-04-25T17:55:09.058Z”,“@version”:“1”,“message”:“Closing JPA EntityManagerFactory for persistence unit ‘hibernate’”,“logger_name”:“org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean”,“thread_name”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-04-25T17:55:09.061Z”,“@version”:“1”,“message”:“HikariPool-1 - Shutdown initiated…”,“logger_name”:“com.zaxxer.hikari.HikariDataSource”,“thread_name”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}
{“@timestamp”:“2023-04-25T17:55:09.068Z”,“@version”:“1”,“message”:“HikariPool-1 - Shutdown completed.”,“logger_name”:“com.zaxxer.hikari.HikariDataSource”,“thread_name”:“restartedMain”,“level”:“INFO”,“level_value”:20000,“appName”:“pre-registration-application-service”}

Hello

From the logs MasterDataNotAvailableException: PRG_CORE_REQ_022
Yes, master data is required to be running but not as a pom build dependency. Also “SyncData”, “KeyManager”, “AuditManger” etc will have to be running.

Hope this helps.
Thanks
Mayura

1 Like

Thanks @mayuradesh.
So i need the admin module and commons ?
Is there a way to run the pre-reg module only by itself just for testing and development purposes ? I thought each module could be run by itself.

Hi

Yes, you will need MasterData service running also couple of more as mentioned earlier.

~ Mayura

I have to follow this sequence right ?

hi @PMG
Can I get more info as mentioned below?

  1. Is this in k8 cluster using V3 architecture.
  2. tag used for deployment?
  3. Is the deployment sequence updated?

Also it is advised not to use release-* branch for deployments rather use tagged code.

hi @ckm007
Im not using cluster i want to run the prereg module only as developer on branch release-1.2.0
I was asking if it is possible to run it on my local machine inside eclipse or something without deploying all the other components in the list above.
thanks

Hi

Sure, you can run PreReg alone on your local machine, but you will need access to some env where all required services are running.
You will have to add appropriate URLS of these services in the local application.properties file.

~ Mayura

Hi @mayuradesh ,
Ok if i understood correctly i need the env setup already.
That actually means i can’t run only prereg at all and i need the infrastructure to run all the heavy dependencies that it needs.

Dear @PMG

I can feel your frustration in running these services, however, after a thorough play around with MOSIP and specifically the pre-reg service, I have managed to have it running locally following the developer documentation
However, there is still need to refine the developer references as they are too technical and may need to be broken down further for starting developers
Please follow this trend:

Once the thread is closed, I will share my walk through (with screenshots and snippets) on how I got them running locally on my laptop

Also, I have relied on the documentation below to have the Pre-reg UI running and Pre-reg services built on my PC

https://docs.mosip.io/1.2.0/modules/pre-registration/pre-registration-developer-setup

Yes all modules are working together.

You can try to access collab.mosip.net to get few URL’s that you can use to run the PreReg module independently.

But you may not have PostGres access, so you will have to host it independently.