# Prereg-application Error (MOSIP v1.2..0.1-B1)

**URL:** <https://community.mosip.io/t/prereg-application-error-mosip-v1-2-0-1-b1/396>\
**Category:** General\
**Created:** [April 3, 2023, 8:54am UTC](https://community.mosip.io/t/prereg-application-error-mosip-v1-2-0-1-b1/396 "2023-04-03T08:54:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![slimab](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@slimab](https://community.mosip.io/u/slimab)\
**Post date:** [April 3, 2023, 8:54am UTC](https://community.mosip.io/t/prereg-application-error-mosip-v1-2-0-1-b1/396/1 "2023-04-03T08:54:29Z")

</div>

Hello,  
I tried all the possible fixes but not yet, now i have an error in prereg-application  
Here is the log file:

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/mosip1/original/1X/8cd36ded70c2cb54abd1bd3934075ae1ec248431.png)

2023-04-03 08:13:09,347 [main] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.32 : sessionId - idType - id - In applicationStartedEvent method of ApplicationEventListerner login service setupLoginService method called  
2023-04-03 08:13:09,351 [main] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.32 : sessionId - idType - id - URL in demographic service util of getJson [http://config-server.config-server.svc.cluster.local/config/pre-registration/default/1.2.0.1-v3/identity-mapping.json](http://config-server.config-server.svc.cluster.local/config/pre-registration/default/1.2.0.1-v3/identity-mapping.json)  
2023-04-03 08:13:09,379 [main] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.52 : Fetched the identity json from config server{  
“identity”: {  
“IDSchemaVersion”: {  
“value”: “IDSchemaVersion”  
},  
“name”: {  
“value”: “fullName”  
},  
“gender”: {  
“value”: “gender”  
},  
“dob”: {  
“value”: “dateOfBirth”  
},  
“age”: {  
“value”: “age”  
},  
“introducerRID”: {  
“value”: “introducerRID”  
},  
“introducerUIN”: {  
“value”: “introducerUIN”  
},  
“introducerVID”: {  
“value”: “introducerVID”  
},  
“introducerName”: {  
“value”: “introducerName”  
},  
“phone”: {  
“value”: “phone”  
},  
“phoneNumber”: {  
“value”: “phone”  
},  
“email”: {  
“value”: “email”  
},  
“emailId”: {  
“value”: “email”  
},  
“uin”: {  
“value”: “UIN”  
},  
“individualBiometrics”: {  
“value”: “individualBiometrics”  
},  
“introducerBiometrics”: {  
“value”: “introducerBiometrics”  
},  
“individualAuthBiometrics”: {  
“value”: “individualAuthBiometrics”  
},  
“officerBiometricFileName”: {  
“value”: “officerBiometricFileName”  
},  
“supervisorBiometricFileName”: {  
“value”: “supervisorBiometricFileName”  
},  
“residenceStatus”: {  
“value”: “residenceStatus”  
},  
“preferredLanguage”: {  
“value”: “preferredLang”  
},  
“locationHierarchyForProfiling”: {  
“value”: “zone,postalCode”  
},  
“addressLine1”: {  
“value”: “addressLine1”  
},  
“addressLine2”: {  
“value”: “addressLine2”  
},  
“addressLine3”: {  
“value”: “addressLine3”  
},  
“location1”: {  
“value”: “city”  
},  
“location2”: {  
“value”: “region”  
},  
“location3”: {  
“value”: “province”  
},  
“postalCode”: {  
“value”: “postalCode”  
},  
“location4”: {  
“value”: “zone”  
},  
“fullAddress”: {  
“value”: “addressLine1,addressLine2,addressLine3,city,region,province,postalCode”  
}  
},  
“metaInfo”: {  
“value”: “metaInfo”  
},  
“audits”: {  
“value”: “audits”  
},  
“documents”: {  
“poa”: {  
“value”: “proofOfAddress”  
},  
“poi”: {  
“value”: “proofOfIdentity”  
},  
“por”: {  
“value”: “proofOfRelationship”  
},  
“pob”: {  
“value”: “proofOfDateOfBirth”  
},  
“poe”: {  
“value”: “proofOfException”  
}  
}  
}

2023-04-03 08:13:09,379 [main] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.32 : sessionId - idType - id - In applicationStartedEvent method of ApplicationEventListerner demographic Service setup() method is called  
2023-04-03 08:13:09,391 [main] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.57 : getAllDocCategoriesAndTypes url: [http://masterdata.kernel/v1/masterdata/validdocuments/all?pageSize=50](http://masterdata.kernel/v1/masterdata/validdocuments/all?pageSize=50)  
2023-04-03 08:13:09,482 [main] INFO [o.s.b.a.l.ConditionEvaluationReportLoggingListener].logAutoConfigurationReport.101 :

Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.  
2023-04-03 08:13:09,488 [main] ERROR [o.s.b.SpringApplication].reportFailure.842 : Application run failed  
io.mosip.preregistration.core.exception.MasterDataNotAvailableException: KER-MSD-016 → Valid document not found  
at io.mosip.preregistration.core.util.ValidationUtil.getAllDocCategoriesAndTypes(ValidationUtil.java:340)  
at io.mosip.preregistration.application.service.DocumentService.setup(DocumentService.java:187)  
at io.mosip.preregistration.application.service.DocumentService$$FastClassBySpringCGLIB$$22bc9d53.invoke()  
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)  
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:684)  
at io.mosip.preregistration.application.service.DocumentService$$EnhancerBySpringCGLIB$$232ad180.setup()  
at io.mosip.preregistration.application.config.ApplicationEventListerner.applicationStartedEvent(ApplicationEventListerner.java:36)  
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.base/java.lang.reflect.Method.invoke(Method.java:566)  
at org.springframework.context.event.ApplicationListenerMethodAdapter.doInvoke(ApplicationListenerMethodAdapter.java:261)  
at org.springframework.context.event.ApplicationListenerMethodAdapter.processEvent(ApplicationListenerMethodAdapter.java:180)  
at org.springframework.context.event.ApplicationListenerMethodAdapter.onApplicationEvent(ApplicationListenerMethodAdapter.java:142)  
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)  
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)  
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)  
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:400)  
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:354)  
at org.springframework.boot.context.event.EventPublishingRunListener.started(EventPublishingRunListener.java:97)  
at org.springframework.boot.SpringApplicationRunListeners.started(SpringApplicationRunListeners.java:72)  
at org.springframework.boot.SpringApplication.run(SpringApplication.java:334)  
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)  
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)  
at io.mosip.preregistration.application.PreRegistrationApplication.main(PreRegistrationApplication.java:23)  
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.base/java.lang.reflect.Method.invoke(Method.java:566)  
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)  
at org.springframework.boot.loader.Launcher.launch(Launcher.java:108)  
at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)  
at org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:467)  
2023-04-03 08:13:09,489 [main] INFO [o.s.c.s.AbstractApplicationContext].doClose.993 : Closing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@515f4131: startup date [Mon Apr 03 08:12:19 UTC 2023]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@5884a914  
2023-04-03 08:13:09,495 [main] INFO [o.s.j.e.MBeanExporter].destroy.451 : Unregistering JMX-exposed beans on shutdown  
2023-04-03 08:13:09,496 [main] INFO [o.s.j.s.MBeanRegistrationSupport].unregisterBeans.183 : Unregistering JMX-exposed beans  
2023-04-03 08:13:09,554 [main] INFO [o.s.o.j.AbstractEntityManagerFactoryBean].destroy.597 : Closing JPA EntityManagerFactory for persistence unit ‘hibernate’  
2023-04-03 08:13:09,557 [main] INFO [c.z.h.HikariDataSource].close.381 : HikariPool-1 - Shutdown initiated…  
2023-04-03 08:13:09,560 [main] INFO [c.z.h.HikariDataSource].close.383 : HikariPool-1 - Shutdown completed.

---

<div class="post-metadata">

**Author:** ![gsasikumar](https://avatars.discourse-cdn.com/v4/letter/g/b782af/32.png) [@gsasikumar](https://community.mosip.io/u/gsasikumar)\
**Post date:** [April 5, 2023, 7:59am UTC](https://community.mosip.io/t/prereg-application-error-mosip-v1-2-0-1-b1/396/2 "2023-04-05T07:59:31Z")

</div>

@slimab The error is from the master data. The pre-reg is calling the API to get list of valid documents. If you login to our admin portal you should see the list of valid documents.

---

<div class="post-metadata">

**Author:** ![slimab](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@slimab](https://community.mosip.io/u/slimab)\
**Post date:** [April 5, 2023, 10:13am UTC](https://community.mosip.io/t/prereg-application-error-mosip-v1-2-0-1-b1/396/3 "2023-04-05T10:13:12Z")

</div>

Hello,  
the database was not initializing correctly, we don’t have any tables in database, any process to update (create database table).

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/mosip1/original/1X/33f768814d1aaf59ab905fe97869e94ba188a9df.png)

Thanks

---

<div class="post-metadata">

**Author:** ![syed.salman](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/syed.salman/32/25_2.png) [@syed.salman](https://community.mosip.io/u/syed.salman)\
**Post date:** [April 5, 2023, 10:20am UTC](https://community.mosip.io/t/prereg-application-error-mosip-v1-2-0-1-b1/396/4 "2023-04-05T10:20:41Z")

</div>

can you please provide the logs of postgres-init and masterdata-loader?

---

<div class="post-metadata">

**Author:** ![slimab](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@slimab](https://community.mosip.io/u/slimab)\
**Post date:** [April 5, 2023, 10:56am UTC](https://community.mosip.io/t/prereg-application-error-mosip-v1-2-0-1-b1/396/5 "2023-04-05T10:56:35Z")

</div>

I redeploy and i find the table, but there is no data

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/mosip1/original/1X/19882707e410b9dc97c227431b8a258f6dd2bc50.png)

---

<div class="post-metadata">

**Author:** ![chandra\_sekhar](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/chandra_sekhar/32/129_2.png) [@chandra\_sekhar](https://community.mosip.io/u/chandra_sekhar)\
**Post date:** [April 5, 2023, 1:35pm UTC](https://community.mosip.io/t/prereg-application-error-mosip-v1-2-0-1-b1/396/6 "2023-04-05T13:35:30Z")

</div>

Hi Slimab,  
Please try to login into admin module and add the doctype details so that it will be added in the DB and appear in pre-reg when you try to create an application. Thanks
