Cumulocity-IoT / cumulocity-microservice-archetype

Maven archetype for cumulocity microservice. Developed by Global Competency Center IoT
Apache License 2.0
4 stars 1 forks source link

spring dev tools not working anymore #11

Open PestusAtSAG opened 1 year ago

PestusAtSAG commented 1 year ago

With new version 10.15, spring dev tools not working anymore:

Exception: Caused by: java.lang.IllegalAccessError: class com.cumulocity.microservice.api.CumulocityClientFeature$TenantPlatformConfig$$EnhancerBySpringCGLIB$$23091115_2 cannot access its superclass com.cumulocity.microservice.api.CumulocityClientFeature$TenantPlatformConfig (com.cumulocity.microservice.api.CumulocityClientFeature$TenantPlatformConfig$$EnhancerBySpringCGLIB$$23091115_2 is in unnamed module of loader org.springframework.boot.devtools.restart.classloader.RestartClassLoader @c263e7e; com.cumulocity.microservice.api.CumulocityClientFeature$TenantPlatformConfig is in unnamed module of loader 'app')

PestusAtSAG commented 1 year ago

quick fix: https://github.com/SoftwareAG/cumulocity-microservice-archetype/commit/dfa5d13a288a0e5cc561842e87ae21ece8707971

However, topic is under investigation

joerghartmann commented 1 year ago

@PestusAtSAG Easiest fix is to disable restart feature Spring dev tools. See https://docs.spring.io/spring-boot/docs/2.7.6/reference/html/using.html#using.devtools.restart.disable.