Running RegClient UI

io.mosip.registration.config.AppConfig not loading.

Hi @nyageo,

Please check the console or logs if any exception stacktrace is printed and copy paste the same here. That helps us in understanding the issue.

Best Regards,
Himaja

1 Like

Hello @HimajaDhanyamraju2 ,

Thanks for the quick response. please see below the logs from the console and guide accordingly.

SLF4J: Class path contains multiple SLF4J bindings.

SLF4J: Found binding in [jar:file:/C:/Users/swadmin/Desktop/MOSIP/tools/mock-sdk-1.2.0.1-20230802.033519-11-jar-with-dependencies.jar!/org/slf4j/impl/StaticLoggerBinder.class]

SLF4J: Found binding in [jar:file:/C:/Users/swadmin/.m2/repository/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]

SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]

14:27:42,142 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [C:\Users\swadmin\git\registration-client\registration\registration-client\lib\logback.xml]

14:27:42,143 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]

14:27:42,145 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]

14:27:42,161 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/C:/Users/swadmin/git/registration-client/registration/registration-services/target/classes/logback.xml]

14:27:42,171 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs multiple times on the classpath.

14:27:42,171 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/C:/Users/swadmin/.m2/repository/io/mosip/kernel/kernel-keymanager-service/1.2.0.1-SNAPSHOT/kernel-keymanager-service-1.2.0.1-SNAPSHOT-lib.jar!/logback.xml]

14:27:42,171 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/C:/Users/swadmin/.m2/repository/io/mosip/kernel/kernel-idvalidator-prid/1.2.0.1-SNAPSHOT/kernel-idvalidator-prid-1.2.0.1-SNAPSHOT.jar!/logback.xml]

14:27:42,171 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/C:/Users/swadmin/.m2/repository/io/mosip/kernel/kernel-idvalidator-rid/1.2.0.1-SNAPSHOT/kernel-idvalidator-rid-1.2.0.1-SNAPSHOT.jar!/logback.xml]

14:27:42,171 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/C:/Users/swadmin/.m2/repository/io/mosip/kernel/kernel-pdfgenerator-itext/1.2.0.1-SNAPSHOT/kernel-pdfgenerator-itext-1.2.0.1-SNAPSHOT.jar!/logback.xml]

14:27:42,171 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/C:/Users/swadmin/.m2/repository/io/mosip/kernel/kernel-templatemanager-velocity/1.2.0.1-SNAPSHOT/kernel-templatemanager-velocity-1.2.0.1-SNAPSHOT.jar!/logback.xml]

14:27:42,171 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [file:/C:/Users/swadmin/git/registration-client/registration/registration-services/target/classes/logback.xml]

14:27:42,171 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/C:/Users/swadmin/.m2/repository/io/mosip/kernel/kernel-idgenerator-prid/1.2.0.1-SNAPSHOT/kernel-idgenerator-prid-1.2.0.1-SNAPSHOT.jar!/logback.xml]

14:27:42,171 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/C:/Users/swadmin/.m2/repository/io/mosip/kernel/kernel-dataaccess-hibernate/1.2.0.1-SNAPSHOT/kernel-dataaccess-hibernate-1.2.0.1-SNAPSHOT.jar!/logback.xml]

14:27:42,171 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/C:/Users/swadmin/.m2/repository/io/mosip/kernel/kernel-idvalidator-uin/1.2.0.1-SNAPSHOT/kernel-idvalidator-uin-1.2.0.1-SNAPSHOT.jar!/logback.xml]

14:27:42,171 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/C:/Users/swadmin/.m2/repository/io/mosip/kernel/kernel-idvalidator-vid/1.2.0.1-SNAPSHOT/kernel-idvalidator-vid-1.2.0.1-SNAPSHOT.jar!/logback.xml]

14:27:42,171 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/C:/Users/swadmin/.m2/repository/io/mosip/kernel/kernel-idgenerator-rid/1.2.0.1-SNAPSHOT/kernel-idgenerator-rid-1.2.0.1-SNAPSHOT.jar!/logback.xml]

14:27:42,171 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/C:/Users/swadmin/.m2/repository/io/mosip/commons/khazana/1.2.0.1-SNAPSHOT/khazana-1.2.0.1-SNAPSHOT.jar!/logback.xml]

14:27:42,171 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/C:/Users/swadmin/.m2/repository/io/mosip/kernel/kernel-qrcodegenerator-zxing/1.2.0.1-SNAPSHOT/kernel-qrcodegenerator-zxing-1.2.0.1-SNAPSHOT.jar!/logback.xml]

14:27:42,171 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/C:/Users/swadmin/.m2/repository/io/mosip/kernel/kernel-idobjectvalidator/1.2.0.1-SNAPSHOT/kernel-idobjectvalidator-1.2.0.1-SNAPSHOT.jar!/logback.xml]

14:27:42,572 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set

14:27:42,583 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]

14:27:42,590 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [applicationLog]

14:27:42,603 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property

14:27:42,823 |-INFO in ch.qos.logback.core.rolling.FixedWindowRollingPolicy@bfd9cea - No compression will be used

14:27:42,827 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[applicationLog] - Active log file name: logs/registration.log

14:27:42,827 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[applicationLog] - File property is set to [logs/registration.log]

14:27:42,839 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]

14:27:42,839 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [metrics]

14:27:43,474 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@1294574504 - No compression will be used

14:27:43,475 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@1294574504 - Will use the pattern logs/metrics-archive.%d{yyyy-MM-dd_HH}.log for the active file

14:27:43,479 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - The date pattern is ‘yyyy-MM-dd_HH’ from file name pattern ‘logs/metrics-archive.%d{yyyy-MM-dd_HH}.log’.

14:27:43,479 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Roll-over at the top of every hour.

14:27:43,513 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Setting initial period to Sun Aug 27 23:32:59 EAT 2023

14:27:43,516 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[metrics] - Active log file name: logs/metrics.log

14:27:43,516 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[metrics] - File property is set to [logs/metrics.log]

14:27:43,517 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [io.mosip] to INFO

14:27:43,517 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [io.mosip] to false

14:27:43,517 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [applicationLog] to Logger[io.mosip]

14:27:43,518 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [io.mosip.registration.config.LoggingJsonMeterRegistry] to INFO

14:27:43,518 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [io.mosip.registration.config.LoggingJsonMeterRegistry] to false

14:27:43,518 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [metrics] to Logger[io.mosip.registration.config.LoggingJsonMeterRegistry]

14:27:43,518 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.

14:27:43,520 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@1db75c10 - Registering current configuration as safe fallback point

Hi @nyageo,

Thanks for sharing the console logs. There is no error printed here.
Can you also share the logs from “registration.log” file which will be created under logs folder?

If you are unable to attach the complete file, share the last 15-20 lines, so that we can go through them and assist you.

Best Regards,
Himaja

Hello @HimajaDhanyamraju2

Below is an extraction from the registration.logs file

2023-08-28 14:28:15,795 ERROR [JavaFX Application Thread] i.m.r.p.ClientPreLoader : Cannot load configuration class: io.mosip.registration.config.AppConfig

java.lang.IllegalStateException: Cannot load configuration class: io.mosip.registration.config.AppConfig

at org.springframework.context.annotation.ConfigurationClassPostProcessor.enhanceConfigurationClasses(ConfigurationClassPostProcessor.java:414)

at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanFactory(ConfigurationClassPostProcessor.java:254)

at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:284)

at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:128)

at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:694)

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:532)

at org.springframework.context.annotation.AnnotationConfigApplicationContext.(AnnotationConfigApplicationContext.java:88)

at io.mosip.registration.controller.ClientApplication.init(ClientApplication.java:84)

at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:824)

at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195)

at java.base/java.lang.Thread.run(Thread.java:833)

Caused by: java.lang.ExceptionInInitializerError: null

at org.springframework.context.annotation.ConfigurationClassEnhancer.newEnhancer(ConfigurationClassEnhancer.java:122)

at org.springframework.context.annotation.ConfigurationClassEnhancer.enhance(ConfigurationClassEnhancer.java:110)

at org.springframework.context.annotation.ConfigurationClassPostProcessor.enhanceConfigurationClasses(ConfigurationClassPostProcessor.java:403)

… 10 common frames omitted

Caused 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 @57e37929

at org.springframework.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:464)

at org.springframework.cglib.core.AbstractClassGenerator.generate(AbstractClassGenerator.java:336)

at org.springframework.cglib.core.AbstractClassGenerator$ClassLoaderData$3.apply(AbstractClassGenerator.java:93)

at org.springframework.cglib.core.AbstractClassGenerator$ClassLoaderData$3.apply(AbstractClassGenerator.java:91)

at org.springframework.cglib.core.internal.LoadingCache$2.call(LoadingCache.java:54)

at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)

at org.springframework.cglib.core.internal.LoadingCache.createEntry(LoadingCache.java:61)

at org.springframework.cglib.core.internal.LoadingCache.get(LoadingCache.java:34)

at org.springframework.cglib.core.AbstractClassGenerator$ClassLoaderData.get(AbstractClassGenerator.java:116)

at org.springframework.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:291)

at org.springframework.cglib.core.KeyFactory$Generator.create(KeyFactory.java:221)

at org.springframework.cglib.core.KeyFactory.create(KeyFactory.java:174)

at org.springframework.cglib.core.KeyFactory.create(KeyFactory.java:153)

at org.springframework.cglib.proxy.Enhancer.(Enhancer.java:73)

… 13 common frames omitted

Caused 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 @57e37929

at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)

at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)

at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)

at java.base/java.lang.reflect.Method.setAccessible(Method.java:193)

at org.springframework.cglib.core.ReflectUtils$1.run(ReflectUtils.java:61)

at java.base/java.security.AccessController.doPrivileged(AccessController.java:569)

at org.springframework.cglib.core.ReflectUtils.(ReflectUtils.java:52)

at org.springframework.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:243)

at org.springframework.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)

at org.springframework.cglib.core.AbstractClassGenerator.generate(AbstractClassGenerator.java:329)

… 25 common frames omitted

1 Like

Hi @nyageo

What is the java version?

Hello @Anusha_sunkadh,

Am using java version 11.0.20

Hi @nyageo,

We wanted to know if the issue is with the IDE or with java version.

To understand the same, I have listed down below steps. Please follow them.

  1. Open the “Run Configurations” from your IDE and click on “Show Command Line” option. It opens up a popup which displays command line argument to run the application from command prompt.

    Attaching screenshot for your reference:

  1. Copy the content which is displayed in the next popup.
  2. Open command prompt and enter the same.

It should start the registrationclient application.

Please let us know the outcome of this activity.

Best Regards,
Himaja

1 Like

Hi @HimajaDhanyamraju2

Thanks so much! After several attempts, I realized the problem was on using the default eclipse JRE and the compiler compliance…

RegClient UI is now running well. Much appreciations

Hi @nyageo

It’s great to hear that our team was able to help you out and provide the right solution to your problem.

Best Regards,
Team MOSIP