Authentication demo service error

Hi, im trying to start the authentication-demo-service however im having the error below,
do you guys have any idea how to fix this?

2023-10-26 13:43:58,708 [main] WARN [o.s.c.s.AbstractApplicationContext].refresh.558 : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘authRequestController’: Unsatisfied dependency expressed through field ‘encrypt’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘encrypt’: Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder ‘mosip.api.internal.url’ in value “${mosip.api.internal.url}”
2023-10-26 13:43:58,709 [main] INFO [o.s.o.j.AbstractEntityManagerFactoryBean].destroy.597 : Closing JPA EntityManagerFactory for persistence unit ‘default’
2023-10-26 13:43:58,711 [main] INFO [o.h.t.s.i.SchemaDropperImpl$DelayedDropActionImpl].perform.524 : HHH000477: Starting delayed drop of schema as part of SessionFactory shut-down’
2023-10-26 13:43:58,716 [main] INFO [c.z.h.HikariDataSource].close.381 : HikariPool-1 - Shutdown initiated…
2023-10-26 13:43:58,721 [main] INFO [c.z.h.HikariDataSource].close.383 : HikariPool-1 - Shutdown completed.
2023-10-26 13:43:58,722 [main] INFO [o.a.j.l.DirectJDKLog].log.173 : Stopping service [Tomcat]
2023-10-26 13:43:58,734 [localhost-startStop-1] WARN [o.a.j.l.DirectJDKLog].log.175 : Failed to clear soft references from ObjectStreamClass$Caches for web application [v1#identity]
java.lang.ClassCastException: class java.io.ObjectStreamClass$Caches$1 cannot be cast to class java.util.Map (java.io.ObjectStreamClass$Caches$1 and java.util.Map are in module java.base of loader ‘bootstrap’)
at org.apache.catalina.loader.WebappClassLoaderBase.clearCache(WebappClassLoaderBase.java:2244)
at org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesObjectStreamClassCaches(WebappClassLoaderBase.java:2231)

Hi @carlvin48 ,
You will need to either pass the VM argument like -Dmosip.api.internal.url=https://api-internal.dev.mosip.net or set that property in the application properties file like mosip.api.internal.url=https://api-internal.dev.mosip.net

1 Like