{"record":{"id":"83978b0197aeb49f","repo":"apereo/cas","slug":"unsupported-event-for-service-replication","errorCode":null,"errorMessage":"Unsupported event [{}] for service replication","messagePattern":"Unsupported event \\[(.+?)\\] for service replication","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"support/cas-server-support-service-registry-stream/src/main/java/org/apereo/cas/services/publisher/BaseCasRegisteredServiceStreamPublisher.java","lineNumber":53,"sourceCode":"\n    /**\n     * Publish internal.\n     *\n     * @param service     the service\n     * @param event       the event\n     * @param publisherId the publisher id\n     */\n    protected void publishInternal(final RegisteredService service, final ApplicationEvent event,\n                                   final PublisherIdentifier publisherId) {\n        if (event instanceof CasRegisteredServiceDeletedEvent) {\n            handleCasRegisteredServiceDeletedEvent(service, event, publisherId);\n            return;\n        }\n        if (event instanceof CasRegisteredServiceSavedEvent || event instanceof CasRegisteredServiceLoadedEvent) {\n            handleCasRegisteredServiceUpdateEvents(service, event, publisherId);\n            return;\n        }\n        LOGGER.warn(\"Unsupported event [{}] for service replication\", event);\n    }\n\n    /**\n     * Handle cas registered service deleted event.\n     *\n     * @param service     the service\n     * @param event       the event\n     * @param publisherId the publisher id\n     */\n    protected void handleCasRegisteredServiceDeletedEvent(final RegisteredService service, final ApplicationEvent event,\n                                                          final PublisherIdentifier publisherId) {\n    }\n\n    /**\n     * Handle cas registered service update events.\n     *\n     * @param service     the service\n     * @param event       the event","sourceCodeStart":35,"sourceCodeEnd":71,"githubUrl":"https://github.com/apereo/cas/blob/e7288fc434b4f4505b8452e1a57e8fb3111bb863/support/cas-server-support-service-registry-stream/src/main/java/org/apereo/cas/services/publisher/BaseCasRegisteredServiceStreamPublisher.java#L35-L71","documentation":"BaseCasRegisteredServiceStreamPublisher.publishInternal dispatches registered-service events to replication publishers. It handles delete, save/load, and (via handleCasRegisteredServiceUpdateEvents) update events; any other event type is logged with this warning and ignored, meaning that event will not be replicated to other nodes.","triggerScenarios":"Publishing a CasRegisteredServiceEvent subclass other than the deleted/saved/loaded events handled above (e.g. a custom or newly introduced event type) through the stream publisher.","commonSituations":"Upgrading CAS where a new service event type was added but the stream publisher module version lags; custom code firing bespoke service-registry events expecting replication.","solutions":["Check the event type being published; only saved/loaded/deleted events are replicated — convert custom events to one of the supported types.","Align versions of cas-server-support-service-registry-stream with the core services module so all supported events are handled.","If the event is benign (e.g. a refresh event that does not need replication), the warning can be ignored."],"exampleFix":"// before\npublisher.publish(new MyCustomServiceEvent(service)); // unsupported\n// after\npublisher.publish(new CasRegisteredServiceSavedEvent(this, service));","handlingStrategy":"validation","validationCode":"if (!(event instanceof CasRegisteredServiceSavedEvent\n        || event instanceof CasRegisteredServiceLoadedEvent\n        || event instanceof CasRegisteredServiceDeletedEvent)) {\n    LOGGER.warn(\"Event [{}] will not be replicated\", event);\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Publish only the supported CasRegisteredService*Event types.","Keep stream-publisher and core services modules on the same CAS version.","After upgrading, grep logs for this warning to catch newly introduced event types."],"tags":["events","replication","service-registry","streaming"],"backgroundTag":"unsupported-operation","analyzedSha":"e7288fc434b4f4505b8452e1a57e8fb3111bb863","analyzedAt":"2026-09-08T15:39:16.015Z","contentChangedAt":"2026-09-08T15:39:16.015Z","schemaVersion":2},"datasetVersion":"2026-09-15T23:17:13.987Z"}