java.lang.NoClassDefFoundError: io/atlassian/blobstore/plugin/analytics/Event$Type

Atlassian JIRA | SABARISH CHOKKALINGOM | 1 year ago
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    h3. Summary A bug in JIRA, exposed by a certain version of the JIRA Toolkit plugin, will cause JIRA to leak database connections from the Database Connection Pool (DBCP) whilst indexing. This will result in an exhaustion of available connections in the DBCP and JIRA will not function as expected. It's the same behaviour as described in our [JIRA Stops Functioning due to Timeout waiting for idle object|] KB article. h3. Steps to Reproduce # Install JIRA toolkit 0.35.10 or higher. # Create a "Last public comment date" custom field. # Go to issue search and include this field as a column on the search. # Run a search returning 50 or so issues (more than configured max connections in {{dbconfig.xml}}). h3. Expected Results JIRA indexes as per normal without any failures. h3. Actual Results The number of active connections in DBCP spikes and they are not released back into the connection pool. As a result of this the following exceptions will be thrown, affecting JIRA's functionality: {noformat} java.lang.RuntimeException: Unable to obtain a connection from the underlying connection pool at org.ofbiz.core.entity.jdbc.interceptors.connection.ConnectionTracker.trackConnection( at org.ofbiz.core.entity.transaction.DBCPConnectionFactory.trackConnection( at org.ofbiz.core.entity.transaction.DBCPConnectionFactory.getConnection( at org.ofbiz.core.entity.ConnectionFactory.tryGenericConnectionSources( at org.ofbiz.core.entity.transaction.JNDIFactory.getConnection( at org.ofbiz.core.entity.TransactionFactory.getConnection( at org.ofbiz.core.entity.ConnectionFactory.getConnection( at org.ofbiz.core.entity.jdbc.SQLProcessor.getConnection( at at org.ofbiz.core.entity.GenericHelperDAO.findByPrimaryKey( at org.ofbiz.core.entity.GenericDelegator.findByPrimaryKey( at org.ofbiz.core.entity.GenericDelegator.findByPrimaryKey( ... Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool error Timeout waiting for idle object at org.apache.commons.dbcp.PoolingDataSource.getConnection( at org.apache.commons.dbcp.BasicDataSource.getConnection( at org.ofbiz.core.entity.transaction.DBCPConnectionFactory$ at org.ofbiz.core.entity.transaction.DBCPConnectionFactory$ at org.ofbiz.core.entity.jdbc.interceptors.connection.ConnectionTracker.trackConnection( ... 236 more Caused by: java.util.NoSuchElementException: Timeout waiting for idle object at org.apache.commons.pool.impl.GenericObjectPool.borrowObject( at org.apache.commons.dbcp.AbandonedObjectPool.borrowObject( at org.apache.commons.dbcp.PoolingDataSource.getConnection( ... 240 more {noformat} h3. Workaround Downgrade JIRA Toolkit plugin to version 0.35.9 (compatible with JIRA Server 6.2 - 6.3.15) or disable the plugin. To disable: # Browse to the Add-on Manager. # Search for the JIRA Toolkit plugin and click on the disable button. # Reindex JIRA. To downgrade: # Browse to the Add-on Manager. # Uninstall the current version. # Download 0.35.9 from the [Atlassian Marketplace|]. # Manually upload the JAR as per [Installing add-ons|]. # Reindex JIRA.

    Atlassian JIRA | 3 years ago | Martin Sander
    java.lang.NoClassDefFoundError: io/atlassian/blobstore/plugin/analytics/Event$Type
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError


    2. io.atlassian.blobstore
      2. io.atlassian.blobstore.plugin.TraceGeneratorBlobStoreService.delete([?:?]
      2 frames
    3. com.atlassian.jira
      3 frames