Re-enabling a disabled datasource results in an ERROR report in the log in EAP 6.4.0

Solution Verified - Updated

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 6.4

Issue

  • The following exception is logged when disabling and then re-enabling a datasource in the web based admin console:
... ERROR [org.jboss.msc.service] ... MSC000002: Invocation of listener "org.jboss.as.connector.subsystems.datasources.DataSourceStatisticsListener@133321d6" failed: java.lang.IllegalArgumentException: JBAS014809: A node is already registered at '(subsystem => datasources)(data-source => ExampleDS)'
	at org.jboss.as.controller.registry.ConcreteResourceRegistration.registerSubModel(ConcreteResourceRegistration.java:153)
	at org.jboss.as.controller.registry.AbstractResourceRegistration.registerOverrideModel(AbstractResourceRegistration.java:128)
	at org.jboss.as.controller.registry.DelegatingManagementResourceRegistration.registerOverrideModel(DelegatingManagementResourceRegistration.java:180)
	at org.jboss.as.connector.subsystems.datasources.DataSourceStatisticsListener.transition(DataSourceStatisticsListener.java:74)
	at org.jboss.msc.service.ServiceControllerImpl.invokeListener(ServiceControllerImpl.java:1565)
	at org.jboss.msc.service.ServiceControllerImpl.access$2800(ServiceControllerImpl.java:52)
	at org.jboss.msc.service.ServiceControllerImpl$ListenerTask.run(ServiceControllerImpl.java:2131)
	...

Resolution

  • Though the log reports an error, the datasource is successfully re-enabled and the error can be ignored
  • This is a known defect This content is not included.BZ-1245363 in older EAP 6.4 releases which is resolved in EAP 6.4.6 and later
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.