# Error while setup of pre-registration module

**URL:** <https://community.mosip.io/t/error-while-setup-of-pre-registration-module/207>\
**Category:** Support\
**Tags:** pre-registration\
**Created:** [November 8, 2022, 3:48pm UTC](https://community.mosip.io/t/error-while-setup-of-pre-registration-module/207 "2022-11-08T15:48:00Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![AVINASH\_KSHIRSAGAR](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/avinash_kshirsagar/32/128_2.png) [@AVINASH\_KSHIRSAGAR](https://community.mosip.io/u/AVINASH_KSHIRSAGAR)\
**Post date:** [November 8, 2022, 3:48pm UTC](https://community.mosip.io/t/error-while-setup-of-pre-registration-module/207/1 "2022-11-08T15:48:00Z")

</div>

Hello, We are following the guidelines given in [Pre-registration Developers Guide - MOSIP Docs 1.2.0](https://docs.mosip.io/1.2.0/modules/pre-registration/pre-registration-developer-setup) to setup preregistration module for developers. We are getting following error  
.git directory is not found! Please specify a valid [dotGitDirectory] in your pom.xml

We have tried setting failOnNoGitDirectory to false in pom file and creating .git folder manually, still we are getting this error in pre-registration-core

Please suggest a solution to resolve this issue. Thanks in advance!

 ![Screenshot from 2022-11-08 21-17-09](https://europe1.discourse-cdn.com/flex017/uploads/mosip1/original/1X/fbe72bd76f6412d5aac97844b914c23e0755eed3.png)

---

<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:** [November 8, 2022, 4:11pm UTC](https://community.mosip.io/t/error-while-setup-of-pre-registration-module/207/2 "2022-11-08T16:11:01Z")

</div>

Did you clone the repo? I think `git commit id plugin` is trying to get the build version and it’s unable to detect the details.

Can you please clone the repo and follow the steps. This will ensure that you are working on the correct version of the code, auto versioning from `git commit id plugin` can work

---

<div class="post-metadata">

**Author:** ![suryawanshi](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/suryawanshi/32/131_2.png) [@suryawanshi](https://community.mosip.io/u/suryawanshi)\
**Post date:** [November 9, 2022, 1:54pm UTC](https://community.mosip.io/t/error-while-setup-of-pre-registration-module/207/3 "2022-11-09T13:54:31Z")

</div>

when I run as maven install then lambok fatal error appear. error msg is  
class lombok.javac.apt.LombokProcessor (in unnamed module @0x24292cf) cannot access class com.sun.tools.javac.processing.JavacProcessingEnvironment (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.processing to unnamed module @0x24292cf . please help me . i was share with screenshot of error.

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

---

<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:** [November 10, 2022, 7:57am UTC](https://community.mosip.io/t/error-while-setup-of-pre-registration-module/207/4 "2022-11-10T07:57:11Z")

</div>

Looks like you are using Java 18 ? Our recommended version is java 11

---

<div class="post-metadata">

**Author:** ![suryawanshi](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/suryawanshi/32/131_2.png) [@suryawanshi](https://community.mosip.io/u/suryawanshi)\
**Post date:** [November 10, 2022, 10:57am UTC](https://community.mosip.io/t/error-while-setup-of-pre-registration-module/207/5 "2022-11-10T10:57:17Z")

</div>

ok, currently i follow the steps according to guideline. when i run this command mvn clean install -Dgpg.skip=true in CMD then got pre-registration failed or skipped. i share screenshot with you.

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

---

<div class="post-metadata">

**Author:** ![mayuradesh](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@mayuradesh](https://community.mosip.io/u/mayuradesh)\
**Post date:** [November 11, 2022, 9:00am UTC](https://community.mosip.io/t/error-while-setup-of-pre-registration-module/207/6 "2022-11-11T09:00:26Z")

</div>

Hi

Can you please use JDK 11? This error may come if you are using JDK 17/18.  
Hope that helps.

~Mayura

---

<div class="post-metadata">

**Author:** ![suryawanshi](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/suryawanshi/32/131_2.png) [@suryawanshi](https://community.mosip.io/u/suryawanshi)\
**Post date:** [November 11, 2022, 9:11am UTC](https://community.mosip.io/t/error-while-setup-of-pre-registration-module/207/7 "2022-11-11T09:11:00Z")

</div>

I am using JDK 11. when i delete the test data then mvn clean install -Dgpg.skip=true command execute successfully. I got new error when build and run the Project. i share screenshot with you.

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

ERROR in ch.qos.logback.core.joran.spi.Interpreter@2:86 - no applicable action for [springProperty], current ElementPath is [[configuration][springProperty]]

“message”:“Application run failed”,“logger\_name”:“org.springframework.boot.SpringApplication”,“thread\_name”:“restartedMain”,“level”:“ERROR”,“level\_value”:40000,“stack\_trace”:“java.lang.IllegalStateException: Cannot load configuration class: org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration\r\n\tat org.springframework.context.annotation.ConfigurationClassPostProcessor.enhanceConfigurationClasses(ConfigurationClassPostProcessor.java:414)\r\n\tat org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanFactory(ConfigurationClassPostProcessor.java:254)\r\n\tat org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:284)\r\n\tat org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:128)\r\n\tat org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:694)\r\n\tat org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:532)\r\n\tat org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)\r\n\tat org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395)\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:327)\r\n\tat org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:137)\r\n\tat org.springframework.cloud.bootstrap.BootstrapApplicationListener.bootstrapServiceContext(BootstrapApplicationListener.java:197)\r\n\tat org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:104)\r\n\tat org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:70)\r\n\tat org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)\r\n\tat org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)\r\n\tat org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)\r\n\tat org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:127)\r\n\tat org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:74)\r\n\tat org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:54)\r\n\tat org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:358)\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:317)\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)\r\n\tat io.mosip.preregistration.application.PreRegistrationApplication.main(PreRegistrationApplication.java:23)\r\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)\r\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:568)\r\n\tat org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)\r\nCaused by: java.lang.ExceptionInInitializerError: null\r\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer.newEnhancer(ConfigurationClassEnhancer.java:122)\r\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer.enhance(ConfigurationClassEnhancer.java:110)\r\n\tat org.springframework.context.annotation.ConfigurationClassPostProcessor.enhanceConfigurationClasses(ConfigurationClassPostProcessor.java:403)\r\n\t… 28 common frames omitted\r\nCaused by: org.springframework.cglib.core.CodeGenerationException: java.lang.reflect.InaccessibleObjectException–\>Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte,int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @12ed9db6\r\n\tat org.springframework.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:464)\r\n\tat org.springframework.cglib.core.AbstractClassGenerator.generate(AbstractClassGenerator.java:336)\r\n\tat org.springframework.cglib.core.AbstractClassGenerator$ClassLoaderData$3.apply(AbstractClassGenerator.java:93)\r\n\tat org.springframework.cglib.core.AbstractClassGenerator$ClassLoaderData$3.apply(AbstractClassGenerator.java:91)\r\n\tat org.springframework.cglib.core.internal.LoadingCache$2.call(LoadingCache.java:54)\r\n\tat java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)\r\n\tat org.springframework.cglib.core.internal.LoadingCache.createEntry(LoadingCache.java:61)\r\n\tat org.springframework.cglib.core.internal.LoadingCache.get(LoadingCache.java:34)\r\n\tat org.springframework.cglib.core.AbstractClassGenerator$ClassLoaderData.get(AbstractClassGenerator.java:116)\r\n\tat org.springframework.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:291)\r\n\tat org.springframework.cglib.core.KeyFactory$Generator.create(KeyFactory.java:221)\r\n\tat org.springframework.cglib.core.KeyFactory.create(KeyFactory.java:174)\r\n\tat org.springframework.cglib.core.KeyFactory.create(KeyFactory.java:153)\r\n\tat org.springframework.cglib.proxy.Enhancer.(Enhancer.java:73)\r\n\t… 31 common frames omitted\r\nCaused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte,int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @12ed9db6\r\n\tat java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)\r\n\tat java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)\r\n\tat java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)\r\n\tat java.base/java.lang.reflect.Method.setAccessible(Method.java:193)\r\n\tat org.springframework.cglib.core.ReflectUtils$1.run(ReflectUtils.java:61)\r\n\tat java.base/java.security.AccessController.doPrivileged(AccessController.java:569)\r\n\tat org.springframework.cglib.core.ReflectUtils.(ReflectUtils.java:52)\r\n\tat org.springframework.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:243)\r\n\tat org.springframework.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)\r\n\tat org.springframework.cglib.core.AbstractClassGenerator.generate(AbstractClassGenerator.java:329)\r\n\t… 43 common frames omitted\r\n”,“appName”:“pre-registration-application-service”

---

<div class="post-metadata">

**Author:** ![suryawanshi](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/suryawanshi/32/131_2.png) [@suryawanshi](https://community.mosip.io/u/suryawanshi)\
**Post date:** [November 11, 2022, 1:36pm UTC](https://community.mosip.io/t/error-while-setup-of-pre-registration-module/207/8 "2022-11-11T13:36:45Z")

</div>

“message”:“Application run failed”,“logger\_name”:“org.springframework.boot.SpringApplication”,“thread\_name”:“restartedMain”,“level”:“ERROR”,“level\_value”:40000,“stack\_trace”:“java.lang.IllegalStateException: Cannot load configuration class: org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration\r\n\tat org.springframework.context.annotation.ConfigurationClassPostProcessor.enhanceConfigurationClasses(ConfigurationClassPostProcessor.java:414)\r\n\tat org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanFactory(ConfigurationClassPostProcessor.java:254)\r\n\tat org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:284)\r\n\tat org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:128)\r\n\tat org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:694)\r\n\tat org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:532)\r\n\tat org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)\r\n\tat org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395)\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:327)\r\n\tat org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:137)\r\n\tat org.springframework.cloud.bootstrap.BootstrapApplicationListener.bootstrapServiceContext(BootstrapApplicationListener.java:197)\r\n\tat org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:104)\r\n\tat org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:70)\r\n\tat org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)\r\n\tat org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)\r\n\tat org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)\r\n\tat org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:127)\r\n\tat org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:74)\r\n\tat org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:54)\r\n\tat org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:358)\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:317)\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)\r\n\tat io.mosip.preregistration.application.PreRegistrationApplication.main(PreRegistrationApplication.java:23)\r\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)\r\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:568)\r\n\tat org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)\r\nCaused by: java.lang.ExceptionInInitializerError: null\r\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer.newEnhancer(ConfigurationClassEnhancer.java:122)\r\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer.enhance(ConfigurationClassEnhancer.java:110)\r\n\tat org.springframework.context.annotation.ConfigurationClassPostProcessor.enhanceConfigurationClasses(ConfigurationClassPostProcessor.java:403)\r\n\t… 28 common frames omitted\r\nCaused by: org.springframework.cglib.core.CodeGenerationException: java.lang.reflect.InaccessibleObjectException–\>Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte,int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @12ed9db6\r\n\tat org.springframework.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:464)\r\n\tat org.springframework.cglib.core.AbstractClassGenerator.generate(AbstractClassGenerator.java:336)\r\n\tat org.springframework.cglib.core.AbstractClassGenerator$ClassLoaderData$3.apply(AbstractClassGenerator.java:93)\r\n\tat org.springframework.cglib.core.AbstractClassGenerator$ClassLoaderData$3.apply(AbstractClassGenerator.java:91)\r\n\tat org.springframework.cglib.core.internal.LoadingCache$2.call(LoadingCache.java:54)\r\n\tat java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)\r\n\tat org.springframework.cglib.core.internal.LoadingCache.createEntry(LoadingCache.java:61)\r\n\tat org.springframework.cglib.core.internal.LoadingCache.get(LoadingCache.java:34)\r\n\tat org.springframework.cglib.core.AbstractClassGenerator$ClassLoaderData.get(AbstractClassGenerator.java:116)\r\n\tat org.springframework.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:291)\r\n\tat org.springframework.cglib.core.KeyFactory$Generator.create(KeyFactory.java:221)\r\n\tat org.springframework.cglib.core.KeyFactory.create(KeyFactory.java:174)\r\n\tat org.springframework.cglib.core.KeyFactory.create(KeyFactory.java:153)\r\n\tat org.springframework.cglib.proxy.Enhancer.(Enhancer.java:73)\r\n\t… 31 common frames omitted\r\nCaused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte,int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @12ed9db6\r\n\tat java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)\r\n\tat java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)\r\n\tat java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)\r\n\tat java.base/java.lang.reflect.Method.setAccessible(Method.java:193)\r\n\tat org.springframework.cglib.core.ReflectUtils$1.run(ReflectUtils.java:61)\r\n\tat java.base/java.security.AccessController.doPrivileged(AccessController.java:569)\r\n\tat org.springframework.cglib.core.ReflectUtils.(ReflectUtils.java:52)\r\n\tat org.springframework.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:243)\r\n\tat org.springframework.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)\r\n\tat org.springframework.cglib.core.AbstractClassGenerator.generate(AbstractClassGenerator.java:329)\r\n\t… 43 common frames omitted\r\n”,“appName”:“pre-registration-application-service”

---

<div class="post-metadata">

**Author:** ![suryawanshi](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/suryawanshi/32/131_2.png) [@suryawanshi](https://community.mosip.io/u/suryawanshi)\
**Post date:** [November 14, 2022, 5:00am UTC](https://community.mosip.io/t/error-while-setup-of-pre-registration-module/207/9 "2022-11-14T05:00:12Z")

</div>

I am using jdk 11. when i run and build the project then got error. i shared a error screenshot with you.

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

---

<div class="post-metadata">

**Author:** ![mayuradesh](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@mayuradesh](https://community.mosip.io/u/mayuradesh)\
**Post date:** [November 14, 2022, 5:40am UTC](https://community.mosip.io/t/error-while-setup-of-pre-registration-module/207/10 "2022-11-14T05:40:53Z")

</div>

Hi,  
I have noted down few more steps/points that you can refer to:

1. In case u are getting build err with JDK 11, you can downgrade \<maven.surefire.plugin.version\>2.22.0\</maven.surefire.plugin.version\>  
to \<maven.surefire.plugin.version\>2.20\</maven.surefire.plugin.version\> in /pre-registration/pom.xml and try “mvn clean install -Dgpg.skip”.

2. After Maven build success, import the parent “pre-registration” maven project in IDE. This will import all the nested projects too.

3. Download lombok.jar and install it as a plugin for IDE. Add the lombok.jar in classpath for all nested projects under “pre-registration”.

4. Download runtime dependencies of “kernel-auth-adapter-x.x.x.jar”, “kernel-ref-idobjectvalidator-x.x.x.jar”, “kernel-transliteration-icu4j-x.x.x.jar”, “kernel-virusscanner-clamav-x.x.x.jar” from [Index of /repositories/snapshots/io/mosip](https://oss.sonatype.org/content/repositories/snapshots/io/mosip/)  
Add all above as runtime dependencies to pre-registration-application-service.  
All other pre reg services will need “kernel-auth-adapter-x.x.x.jar”.

5. Change in application.properties, config server, url’s, db passwords, keycloak client secrets as per your env.

6. Comment out line number 525,526 and add return null; in DemographicServiceUtil.java class - _in case u cannot access config server from local_

7. Start “PreRegistrationApplication.java” from your IDE.

Hope these help.

---

<div class="post-metadata">

**Author:** ![suryawanshi](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/suryawanshi/32/131_2.png) [@suryawanshi](https://community.mosip.io/u/suryawanshi)\
**Post date:** [November 15, 2022, 4:41am UTC](https://community.mosip.io/t/error-while-setup-of-pre-registration-module/207/11 "2022-11-15T04:41:46Z")

</div>

Thank you for reply… I follow the all process guided by you. i got same error when build and run the code.

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

---

<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:** [November 15, 2022, 6:06am UTC](https://community.mosip.io/t/error-while-setup-of-pre-registration-module/207/12 "2022-11-15T06:06:23Z")

</div>

Is it possible for you to remove your .m2 folder and recompile it? Somewhere this is a conflicting library.

---

<div class="post-metadata">

**Author:** ![ramkumar.kvaliteta](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/ramkumar.kvaliteta/32/563_2.png) [@ramkumar.kvaliteta](https://community.mosip.io/u/ramkumar.kvaliteta)\
**Post date:** [January 23, 2023, 11:45am UTC](https://community.mosip.io/t/error-while-setup-of-pre-registration-module/207/13 "2023-01-23T11:45:40Z")

</div>

Hi Suryawanshi,

do you able to clear this error?
