java.lang.RuntimeException: javax.management.InstanceAlreadyExistsException: com.atlassian.jira:name=BasicDataSource

atlassian.com | 4 months ago
  1. 0

    Could not determine database type - Atlassian Answers

    atlassian.com | 11 months ago
    java.lang.RuntimeException: javax.management.InstanceAlreadyExistsException: com.atlassian.jira:name=BasicDataSource
  2. 0

    JIRA Does Not Start due to InstanceAlreadyExistsException - 골드피처-JIRA-제품 - 골드피처

    co.kr | 8 months ago
    java.lang.RuntimeException: javax.management.InstanceAlreadyExistsException: com.atlassian.jira:name=BasicDataSource
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Even after a successful test connection using config.bat file, JIRA is unable to connect database using password with special character. That error was confirmed using SQL 2008 and Mysql 5.5 As an example, use *fz2/Gf%uX!FK;99=* as password Step by Step to reproduce: # Create new database # Grant access to a new user using *fz2/Gf%uX!FK;99=* as user password # Configure JIRA and test connection using config.bat file # Try so startup JIRA with startup.bat I tried to use parent encoding and quotes, didn’t work too. The following error appear in the {{atlassian-jira.log}} {code}2013-06-03 14:50:17,043 main ERROR [NoModule] Error getting datasource via DBCP: JdbcDatasourceInfo{uri='jdbc:jtds:sqlserver://nywcl1150db01:7001/JIRAPREVIEW1;autoCommit=false', driverClassName='net.sourceforge.jtds.jdbc.Driver', username='jirapreview1', password='********', isolationLevel='null', connectionProperties=null, connectionPoolInfo=ConnectionPoolInfo{maxSize=20, minSize=20, initialSize=null, maxIdle=20, maxWait=30000, sleepTime=300000, lifeTime=600000, deadLockMaxWait=600000, deadLockRetryWait=10000, validationQuery=null, minEvictableTimeMillis=null, timeBetweenEvictionRunsMillis=null, poolPreparedStatements=null, testOnBorrow=null, testOnReturn=null, testWhileIdle=null, maxOpenPreparedStatements=null, numTestsPerEvictionRun=null, removeAbandonedTimeout=300, validationQueryTimeout=null, defaultCatalog=null}} java.lang.RuntimeException: javax.management.InstanceAlreadyExistsException: com.atlassian.jira:name=BasicDataSource at org.weakref.jmx.MBeanExporter.export(MBeanExporter.java:45) at org.apache.commons.dbcp.ManagedBasicDataSource.exportMBean(ManagedBasicDataSource.java:70) at org.apache.commons.dbcp.ManagedBasicDataSource.<init>(ManagedBasicDataSource.java:61) at org.apache.commons.dbcp.ManagedBasicDataSourceFactory.createDataSource(ManagedBasicDataSourceFactory.java:278) at org.ofbiz.core.entity.transaction.DBCPConnectionFactory.createDataSource(DBCPConnectionFactory.java:190) at org.ofbiz.core.entity.transaction.DBCPConnectionFactory.getConnection(DBCPConnectionFactory.java:91) at org.ofbiz.core.entity.ConnectionFactory.tryGenericConnectionSources(ConnectionFactory.java:69) .... Caused by: javax.management.InstanceAlreadyExistsException: com.atlassian.jira:name=BasicDataSource at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:453) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1484) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:963) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:917) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:312) at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482) at org.weakref.jmx.MBeanExporter.export(MBeanExporter.java:39) ... 140 more{code} h3. Workaround Use a password without special characters (limit the password to using _ or . with alphanumeric characters only).

    Atlassian JIRA | 5 years ago | Paulo Vieira
    java.lang.RuntimeException: javax.management.InstanceAlreadyExistsException: com.atlassian.jira:name=BasicDataSource
  5. 0

    JIRA Functionality Fails due to InstanceAlreadyExistsException - Atlassian Documentation

    atlassian.com | 5 months ago
    java.lang.RuntimeException: javax.management.InstanceAlreadyExistsException: com.atlassian.jira:name=BasicDataSource

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.RuntimeException

      javax.management.InstanceAlreadyExistsException: com.atlassian.jira:name=BasicDataSource

      at org.weakref.jmx.MBeanExporter.export()
    2. jmxutils
      MBeanExporter.export
      1. org.weakref.jmx.MBeanExporter.export(MBeanExporter.java:45)
      1 frame
    3. Commons DBCP
      ManagedBasicDataSourceFactory.createDataSource
      1. org.apache.commons.dbcp.ManagedBasicDataSource.exportMBean(ManagedBasicDataSource.java:70)
      2. org.apache.commons.dbcp.ManagedBasicDataSource.<init>(ManagedBasicDataSource.java:61)
      3. org.apache.commons.dbcp.ManagedBasicDataSourceFactory.createDataSource(ManagedBasicDataSourceFactory.java:278)
      3 frames
    4. org.ofbiz.core
      GenericDelegator.getGenericDelegator
      1. org.ofbiz.core.entity.transaction.DBCPConnectionFactory.createDataSource(DBCPConnectionFactory.java:190)
      2. org.ofbiz.core.entity.transaction.DBCPConnectionFactory.getConnection(DBCPConnectionFactory.java:91)
      3. org.ofbiz.core.entity.ConnectionFactory.tryGenericConnectionSources(ConnectionFactory.java:69)
      4. org.ofbiz.core.entity.transaction.JNDIFactory.getConnection(JNDIFactory.java:146)
      5. org.ofbiz.core.entity.TransactionFactory.getConnection(TransactionFactory.java:101)
      6. org.ofbiz.core.entity.ConnectionFactory.getConnection(ConnectionFactory.java:59)
      7. org.ofbiz.core.entity.ConnectionFactory$1.getConnection(ConnectionFactory.java:52)
      8. org.ofbiz.core.entity.jdbc.DatabaseUtil.getConnection(DatabaseUtil.java:128)
      9. org.ofbiz.core.entity.jdbc.DatabaseUtil.getTableNames(DatabaseUtil.java:899)
      10. org.ofbiz.core.entity.jdbc.DatabaseUtil.checkDb(DatabaseUtil.java:162)
      11. org.ofbiz.core.entity.jdbc.DatabaseUtil.checkDb(DatabaseUtil.java:140)
      12. org.ofbiz.core.entity.GenericDAO.checkDb(GenericDAO.java:1430)
      13. org.ofbiz.core.entity.GenericHelperDAO.checkDataSource(GenericHelperDAO.java:251)
      14. org.ofbiz.core.entity.GenericDelegator.<init>(GenericDelegator.java:184)
      15. org.ofbiz.core.entity.GenericDelegator.getGenericDelegator(GenericDelegator.java:116)
      15 frames
    5. com.opensymphony.module
      OFBizPropertySet.getKeys
      1. com.opensymphony.module.propertyset.ofbiz.OFBizPropertySet.getDelegator(OFBizPropertySet.java:293)
      2. com.opensymphony.module.propertyset.ofbiz.OFBizPropertySet.getKeys(OFBizPropertySet.java:82)
      2 frames
    6. com.atlassian.jira
      JiraCachingPropertySet.init
      1. com.atlassian.jira.propertyset.PropertySetCache.bulkLoad(PropertySetCache.java:318)
      2. com.atlassian.jira.propertyset.JiraCachingPropertySet$12.run(JiraCachingPropertySet.java:785)
      3. com.atlassian.jira.propertyset.JiraCachingPropertySet.doLocked(JiraCachingPropertySet.java:846)
      4. com.atlassian.jira.propertyset.JiraCachingPropertySet.init(JiraCachingPropertySet.java:770)
      4 frames
    7. com.opensymphony.module
      PropertySetManager.getInstance
      1. com.opensymphony.module.propertyset.PropertySetManager.getInstance(PropertySetManager.java:58)
      2. com.opensymphony.module.propertyset.PropertySetManager.getInstance(PropertySetManager.java:31)
      2 frames
    8. com.atlassian.jira
      DbBackedPropertiesManager$1.create
      1. com.atlassian.jira.config.properties.PropertySetUtils.createDatabaseBackedPropertySet(PropertySetUtils.java:34)
      2. com.atlassian.jira.config.properties.DbBackedPropertiesManager$1.create(DbBackedPropertiesManager.java:26)
      3. com.atlassian.jira.config.properties.DbBackedPropertiesManager$1.create(DbBackedPropertiesManager.java:22)
      3 frames
    9. com.atlassian.util
      ResettableLazyReference.get
      1. com.atlassian.util.concurrent.ResettableLazyReference$InternalReference.create(ResettableLazyReference.java:140)
      2. com.atlassian.util.concurrent.LazyReference$Sync.run(LazyReference.java:321)
      3. com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:143)
      4. com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:112)
      5. com.atlassian.util.concurrent.ResettableLazyReference.get(ResettableLazyReference.java:87)
      5 frames
    10. com.atlassian.jira
      TrustedApplicationFilter$OSUserResolver.<init>
      1. com.atlassian.jira.config.properties.PropertiesManager.getPropertySet(PropertiesManager.java:27)
      2. com.atlassian.jira.config.properties.ApplicationPropertiesStore.getStringFromDb(ApplicationPropertiesStore.java:268)
      3. com.atlassian.jira.config.properties.ApplicationPropertiesStore.getString(ApplicationPropertiesStore.java:346)
      4. com.atlassian.jira.config.properties.ApplicationPropertiesImpl.getDefaultBackedString(ApplicationPropertiesImpl.java:60)
      5. com.atlassian.jira.security.auth.trustedapps.UserNameTransformer$ApplicationPropertiesClassNameRetriever.get(UserNameTransformer.java:68)
      6. com.atlassian.jira.security.auth.trustedapps.UserNameTransformer$Factory.get(UserNameTransformer.java:99)
      7. com.atlassian.jira.security.auth.trustedapps.TrustedApplicationFilter$OSUserResolver.<init>(TrustedApplicationFilter.java:40)
      7 frames