java.lang.IllegalArgumentException

java.lang.IllegalArgumentException: Invalid type id 'org.apereo.cas.support.oauth.services.OAuthRegisteredService' (for id type 'Id.class'): no such class found

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Stack trace

  • java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: Invalid type id 'org.apereo.cas.support.oauth.services.OAuthRegisteredService' (for id type 'Id.class'): no such class found at org.apereo.cas.util.serialization.AbstractJacksonBackedStringSerializer.from(AbstractJacksonBackedStringSerializer.java:122)[cas-server-core-util-5.0.0.jar!/:5.0.0] at org.apereo.cas.services.AbstractResourceBasedServiceRegistryDao.load(AbstractResourceBasedServiceRegistryDao.java:211)[cas-server-core-services-5.0.0.jar!/:5.0.0] at org.apereo.cas.services.ServiceRegistryConfigWatcher.handleCreateEvent(ServiceRegistryConfigWatcher.java:166)[cas-server-core-services-5.0.0.jar!/:5.0.0] at org.apereo.cas.services.ServiceRegistryConfigWatcher.lambda$handleEvent$1(ServiceRegistryConfigWatcher.java:117)[cas-server-core-services-5.0.0.jar!/:5.0.0] at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)[?:1.8.0_111] at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)[?:1.8.0_111] at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)[?:1.8.0_111] at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)[?:1.8.0_111] at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)[?:1.8.0_111] at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)[?:1.8.0_111] at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)[?:1.8.0_111] at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)[?:1.8.0_111] at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)[?:1.8.0_111] at org.apereo.cas.services.ServiceRegistryConfigWatcher.handleEvent(ServiceRegistryConfigWatcher.java:104)[cas-server-core-services-5.0.0.jar!/:5.0.0] at org.apereo.cas.services.ServiceRegistryConfigWatcher.run(ServiceRegistryConfigWatcher.java:75)[cas-server-core-services-5.0.0.jar!/:5.0.0] at java.lang.Thread.run(Thread.java:745)[?:1.8.0_111] Caused by: java.lang.IllegalArgumentException: Invalid type id 'org.apereo.cas.support.oauth.services.OAuthRegisteredService' (for id type 'Id.class'): no such class found at com.fasterxml.jackson.databind.jsontype.impl.ClassNameIdResolver._typeFromId(ClassNameIdResolver.java:66)[jackson-databind-2.6.5.jar!/:2.6.5] at com.fasterxml.jackson.databind.jsontype.impl.ClassNameIdResolver.typeFromId(ClassNameIdResolver.java:48)[jackson-databind-2.6.5.jar!/:2.6.5] at com.fasterxml.jackson.databind.jsontype.impl.TypeDeserializerBase._findDeserializer(TypeDeserializerBase.java:154)[jackson-databind-2.6.5.jar!/:2.6.5] at com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer._deserializeTypedForId(AsPropertyTypeDeserializer.java:108)[jackson-databind-2.6.5.jar!/:2.6.5] at com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer.deserializeTypedFromObject(AsPropertyTypeDeserializer.java:93)[jackson-databind-2.6.5.jar!/:2.6.5] at com.fasterxml.jackson.databind.deser.AbstractDeserializer.deserializeWithType(AbstractDeserializer.java:131)[jackson-databind-2.6.5.jar!/:2.6.5] at com.fasterxml.jackson.databind.deser.impl.TypeWrappedDeserializer.deserialize(TypeWrappedDeserializer.java:42)[jackson-databind-2.6.5.jar!/:2.6.5] at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3736)[jackson-databind-2.6.5.jar!/:2.6.5] at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2726)[jackson-databind-2.6.5.jar!/:2.6.5] at org.apereo.cas.util.serialization.AbstractJacksonBackedStringSerializer.from(AbstractJacksonBackedStringSerializer.java:120)[cas-server-core-util-5.0.0.jar!/:5.0.0] ... 15 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

We couldn't find other users who have seen this exception.