org.mule.module.launcher.DeploymentInitException: CheckExclusiveAttributes.CheckExclusiveAttributesException: The attributes of Element db:generic-config{dataSource-ref=mysqlDataSource, name=Database Configuration, name=databaseConfiguration, useXaTransactions=true} do not match the exclusive groups [driver, url, connectionTimeout, transactionIsolation, useXaTransactions] [dataSource-ref]

MuleSoft JIRA | Sergii Tk | 10 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    While I am trying to add useXaTransactions="true" to the db-generic config, during deployment of the app error appears. Without this property, app works ok, placeholders are configured ok, db connection ok. Exception: {noformat} org.mule.module.launcher.DeploymentInitException: CheckExclusiveAttributes.CheckExclusiveAttributesException: The attributes of Element db:generic-config{dataSource-ref=mysqlDataSource, name=Database Configuration, name=databaseConfiguration, useXaTransactions=true} do not match the exclusive groups [driver, url, connectionTimeout, transactionIsolation, useXaTransactions] [dataSource-ref] at org.mule.module.launcher.application.DefaultMuleApplication.init(DefaultMuleApplication.java:197) ~[mule-module-launcher-3.7.3.jar:3.7.3] at org.mule.module.launcher.artifact.ArtifactWrapper$2.execute(ArtifactWrapper.java:62) ~[mule-module-launcher-3.7.3.jar:3.7.3] at org.mule.module.launcher.artifact.ArtifactWrapper.executeWithinArtifactClassLoader(ArtifactWrapper.java:129) ~[mule-module-launcher-3.7.3.jar:3.7.3] at org.mule.module.launcher.artifact.ArtifactWrapper.init(ArtifactWrapper.java:57) ~[mule-module-launcher-3.7.3.jar:3.7.3] at org.mule.module.launcher.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:25) ~[mule-module-launcher-3.7.3.jar:3.7.3] at org.mule.module.launcher.DefaultArchiveDeployer.redeploy(DefaultArchiveDeployer.java:544) ~[mule-module-launcher-3.7.3.jar:3.7.3] at org.mule.module.launcher.DeploymentDirectoryWatcher.redeployModifiedArtifacts(DeploymentDirectoryWatcher.java:549) ~[mule-module-launcher-3.7.3.jar:3.7.3] at org.mule.module.launcher.DeploymentDirectoryWatcher.redeployModifiedApplications(DeploymentDirectoryWatcher.java:538) ~[mule-module-launcher-3.7.3.jar:3.7.3] at org.mule.module.launcher.DeploymentDirectoryWatcher.run(DeploymentDirectoryWatcher.java:348) ~[mule-module-launcher-3.7.3.jar:3.7.3] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) ~[?:1.7.0_95] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304) ~[?:1.7.0_95] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) ~[?:1.7.0_95] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) ~[?:1.7.0_95] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [?:1.7.0_95] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [?:1.7.0_95] at java.lang.Thread.run(Thread.java:745) [?:1.7.0_95] {noformat} Configuration. {noformat} <spring:bean id="mysqlDataSource" name="MysqlDataSourceBean" class="com.mchange.v2.c3p0.ComboPooledDataSource" scope="singleton" destroy-method="close" lazy-init="default"> <spring:property name="driverClass" value="${datasource.driverClassName}" /> <spring:property name="jdbcUrl" value="${datasource.url}" /> <spring:property name="user" value="${datasource.username}" /> <spring:property name="password" value="${datasource.password}" /> <spring:property name="idleConnectionTestPeriod" value="${datasource.idleConnectionTestPeriod}" /> <spring:property name="initialPoolSize" value="${datasource.initialPoolSize}" /> <spring:property name="maxConnectionAge" value="${datasource.maxConnectionAge}" /> <spring:property name="maxIdleTime" value="${datasource.maxIdleTime}" /> <spring:property name="maxPoolSize" value="${datasource.maxPoolSize}" /> <spring:property name="minPoolSize" value="${datasource.minPoolSize}" /> <spring:property name="acquireRetryAttempts" value="${datasource.acquireRetryAttempts}" /> <spring:property name="preferredTestQuery" value="${datasource.preferredTestQuery}" /> </spring:bean> <db:generic-config name="genericConfigName" doc:name="Database Configuration" dataSource-ref="mysqlDataSource" useXaTransactions="true"/> {noformat}

    MuleSoft JIRA | 10 months ago | Sergii Tk
    org.mule.module.launcher.DeploymentInitException: CheckExclusiveAttributes.CheckExclusiveAttributesException: The attributes of Element db:generic-config{dataSource-ref=mysqlDataSource, name=Database Configuration, name=databaseConfiguration, useXaTransactions=true} do not match the exclusive groups [driver, url, connectionTimeout, transactionIsolation, useXaTransactions] [dataSource-ref]
  2. 0

    While I am trying to add useXaTransactions="true" to the db-generic config, during deployment of the app error appears. Without this property, app works ok, placeholders are configured ok, db connection ok. Exception: {noformat} org.mule.module.launcher.DeploymentInitException: CheckExclusiveAttributes.CheckExclusiveAttributesException: The attributes of Element db:generic-config{dataSource-ref=mysqlDataSource, name=Database Configuration, name=databaseConfiguration, useXaTransactions=true} do not match the exclusive groups [driver, url, connectionTimeout, transactionIsolation, useXaTransactions] [dataSource-ref] at org.mule.module.launcher.application.DefaultMuleApplication.init(DefaultMuleApplication.java:197) ~[mule-module-launcher-3.7.3.jar:3.7.3] at org.mule.module.launcher.artifact.ArtifactWrapper$2.execute(ArtifactWrapper.java:62) ~[mule-module-launcher-3.7.3.jar:3.7.3] at org.mule.module.launcher.artifact.ArtifactWrapper.executeWithinArtifactClassLoader(ArtifactWrapper.java:129) ~[mule-module-launcher-3.7.3.jar:3.7.3] at org.mule.module.launcher.artifact.ArtifactWrapper.init(ArtifactWrapper.java:57) ~[mule-module-launcher-3.7.3.jar:3.7.3] at org.mule.module.launcher.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:25) ~[mule-module-launcher-3.7.3.jar:3.7.3] at org.mule.module.launcher.DefaultArchiveDeployer.redeploy(DefaultArchiveDeployer.java:544) ~[mule-module-launcher-3.7.3.jar:3.7.3] at org.mule.module.launcher.DeploymentDirectoryWatcher.redeployModifiedArtifacts(DeploymentDirectoryWatcher.java:549) ~[mule-module-launcher-3.7.3.jar:3.7.3] at org.mule.module.launcher.DeploymentDirectoryWatcher.redeployModifiedApplications(DeploymentDirectoryWatcher.java:538) ~[mule-module-launcher-3.7.3.jar:3.7.3] at org.mule.module.launcher.DeploymentDirectoryWatcher.run(DeploymentDirectoryWatcher.java:348) ~[mule-module-launcher-3.7.3.jar:3.7.3] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) ~[?:1.7.0_95] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304) ~[?:1.7.0_95] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) ~[?:1.7.0_95] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) ~[?:1.7.0_95] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [?:1.7.0_95] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [?:1.7.0_95] at java.lang.Thread.run(Thread.java:745) [?:1.7.0_95] {noformat} Configuration. {noformat} <spring:bean id="mysqlDataSource" name="MysqlDataSourceBean" class="com.mchange.v2.c3p0.ComboPooledDataSource" scope="singleton" destroy-method="close" lazy-init="default"> <spring:property name="driverClass" value="${datasource.driverClassName}" /> <spring:property name="jdbcUrl" value="${datasource.url}" /> <spring:property name="user" value="${datasource.username}" /> <spring:property name="password" value="${datasource.password}" /> <spring:property name="idleConnectionTestPeriod" value="${datasource.idleConnectionTestPeriod}" /> <spring:property name="initialPoolSize" value="${datasource.initialPoolSize}" /> <spring:property name="maxConnectionAge" value="${datasource.maxConnectionAge}" /> <spring:property name="maxIdleTime" value="${datasource.maxIdleTime}" /> <spring:property name="maxPoolSize" value="${datasource.maxPoolSize}" /> <spring:property name="minPoolSize" value="${datasource.minPoolSize}" /> <spring:property name="acquireRetryAttempts" value="${datasource.acquireRetryAttempts}" /> <spring:property name="preferredTestQuery" value="${datasource.preferredTestQuery}" /> </spring:bean> <db:generic-config name="genericConfigName" doc:name="Database Configuration" dataSource-ref="mysqlDataSource" useXaTransactions="true"/> {noformat}

    MuleSoft JIRA | 10 months ago | Sergii Tk
    org.mule.module.launcher.DeploymentInitException: CheckExclusiveAttributes.CheckExclusiveAttributesException: The attributes of Element db:generic-config{dataSource-ref=mysqlDataSource, name=Database Configuration, name=databaseConfiguration, useXaTransactions=true} do not match the exclusive groups [driver, url, connectionTimeout, transactionIsolation, useXaTransactions] [dataSource-ref]

    Root Cause Analysis

    1. org.mule.module.launcher.DeploymentInitException

      CheckExclusiveAttributes.CheckExclusiveAttributesException: The attributes of Element db:generic-config{dataSource-ref=mysqlDataSource, name=Database Configuration, name=databaseConfiguration, useXaTransactions=true} do not match the exclusive groups [driver, url, connectionTimeout, transactionIsolation, useXaTransactions] [dataSource-ref]

      at org.mule.module.launcher.application.DefaultMuleApplication.init()
    2. Mule 3 Launcher
      DeploymentDirectoryWatcher.run
      1. org.mule.module.launcher.application.DefaultMuleApplication.init(DefaultMuleApplication.java:197)[mule-module-launcher-3.7.3.jar:3.7.3]
      2. org.mule.module.launcher.artifact.ArtifactWrapper$2.execute(ArtifactWrapper.java:62)[mule-module-launcher-3.7.3.jar:3.7.3]
      3. org.mule.module.launcher.artifact.ArtifactWrapper.executeWithinArtifactClassLoader(ArtifactWrapper.java:129)[mule-module-launcher-3.7.3.jar:3.7.3]
      4. org.mule.module.launcher.artifact.ArtifactWrapper.init(ArtifactWrapper.java:57)[mule-module-launcher-3.7.3.jar:3.7.3]
      5. org.mule.module.launcher.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:25)[mule-module-launcher-3.7.3.jar:3.7.3]
      6. org.mule.module.launcher.DefaultArchiveDeployer.redeploy(DefaultArchiveDeployer.java:544)[mule-module-launcher-3.7.3.jar:3.7.3]
      7. org.mule.module.launcher.DeploymentDirectoryWatcher.redeployModifiedArtifacts(DeploymentDirectoryWatcher.java:549)[mule-module-launcher-3.7.3.jar:3.7.3]
      8. org.mule.module.launcher.DeploymentDirectoryWatcher.redeployModifiedApplications(DeploymentDirectoryWatcher.java:538)[mule-module-launcher-3.7.3.jar:3.7.3]
      9. org.mule.module.launcher.DeploymentDirectoryWatcher.run(DeploymentDirectoryWatcher.java:348)[mule-module-launcher-3.7.3.jar:3.7.3]
      9 frames
    3. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[?:1.7.0_95]
      2. java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)[?:1.7.0_95]
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)[?:1.7.0_95]
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[?:1.7.0_95]
      5. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[?:1.7.0_95]
      6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[?:1.7.0_95]
      7. java.lang.Thread.run(Thread.java:745)[?:1.7.0_95]
      7 frames