ClassNotFoundException Unable to load class

Albert Cieślak
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 9, 2022

Hello,

When our client tries to install our plugin BigPicture in DC, we get the following error:

2022-02-09 21:34:08,263+0900 SP-bigpicture-TenantActivationSingleJobExecutor-60631 ERROR anonymous 1183x918957x16 1ps14tw 10.5.4.254 /rest/plugins/1.0/installed-marketplace [c.s.s.c.concurrent.job.DefaultExceptionHandlingJobContextProxyFactory] [AC:-/AAAAAAAA] Token: 8992547243fa2f1d053c42cd9ad449da06f8584f2139359600e28f496e168bbdfe4972d49ce873aa8165279ac333188b20fa44b02dbad7763024fc9fbf68c267.744ce1f33b72f931111b4f8a68388a4beaf49e8a1cf3342db4b3d0a21344d9f002e53da40b9b8fbe5fcc63255e400b2931796de91cd17af968e0e9061069020c.3e96de93d472f3ccfe2959d48c214b7b2d6bbdb2be824bc2b1c22ffe575ec839c696344a618a473fe22f395551d0ff6c1dd97cd3e467f4d4c333cce61b3def90.Wed Feb 09 21:34:08 KST 2022,
com.softwareplant.util.concurrent.job.JobExecutionException: jobDescription: L10nTextKey[key=SPT_JOB_CLASS_MULTITENANTSYSTEMTENANTACTIVATOR, paramsMap={}] com.softwareplant.system.core.FailedSystemActivationException: Activation of system context: 0000000 has failed!
	at com.softwareplant.system.core.concurrent.job.SystemEndPointJobContext.call(SystemEndPointJobContext.java:68)
	at com.softwareplant.system.core.concurrent.job.AuditContextJobContextProxyFactory$1.call(AuditContextJobContextProxyFactory.java:20)
	at com.softwareplant.system.manager.jiraserver.environment.JiraJobContextProxyFactory$1.call(JiraJobContextProxyFactory.java:33)
	at com.softwareplant.util.concurrent.job.ExceptionHandlingJobContext.call(ExceptionHandlingJobContext.java:15)
	at com.softwareplant.util.concurrent.job.ContextualCompletableFuture.lambda$supplyAsync$2(ContextualCompletableFuture.java:106)
	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:652)
	at java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:649)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:649)
	at java.lang.Thread.run(Thread.java:748)
Caused by: com.softwareplant.system.core.FailedSystemActivationException: Activation of system context: 0000000 has failed!
	at com.softwareplant.system.core.TechnicalSystem.getFailedActivationException(TechnicalSystem.java:142)
	at com.softwareplant.system.core.TechnicalSystem.systemOn(TechnicalSystem.java:95)
	at com.softwareplant.system.tenant.core.MultiTenantSystem.tenantOn(MultiTenantSystem.java:122)
	at com.softwareplant.system.tenant.core.MultiTenantSystem.tenantOn(MultiTenantSystem.java:115)
	at com.softwareplant.system.tenant.core.MultiTenantSystemTenantActivator$1.call(MultiTenantSystemTenantActivator.java:55)
	at com.softwareplant.util.concurrent.job.JobContextImpl.call(JobContextImpl.java:8)
	at com.softwareplant.system.core.concurrent.job.SystemEndPointJobContext.jobContextCall(SystemEndPointJobContext.java:73)
	at com.softwareplant.system.core.concurrent.job.SystemEndPointJobContext$1.invoke(SystemEndPointJobContext.java:59)
	at com.softwareplant.system.core.endpoint.SystemEndPointChainImpl.processRequest(SystemEndPointChainImpl.java:25)
	at com.softwareplant.system.manager.jiraserver.environment.JiraServerBaseURLSystemEndPointInterceptor.invoke(JiraServerBaseURLSystemEndPointInterceptor.java:19)
	at com.softwareplant.system.core.endpoint.SystemEndPointChainImpl.processRequest(SystemEndPointChainImpl.java:29)
	at com.softwareplant.system.core.transaction.SystemTransactionManagerImpl.invoke(SystemTransactionManagerImpl.java:28)
	at com.softwareplant.system.core.endpoint.SystemEndPointChainImpl.processRequest(SystemEndPointChainImpl.java:29)
	at com.softwareplant.system.core.endpoint.interceptors.SessionContextSystemEndPointInterceptor.invoke(SessionContextSystemEndPointInterceptor.java:30)
	at com.softwareplant.system.core.endpoint.SystemEndPointChainImpl.processRequest(SystemEndPointChainImpl.java:29)
	at com.softwareplant.system.tenant.core.endpoint.MonitoringTenantSystemEndPointInterceptor.lambda$invoke$0(MonitoringTenantSystemEndPointInterceptor.java:43)
	at com.softwareplant.util.monitoring.DropwizardMetrics.measureOnly(DropwizardMetrics.java:165)
	at com.softwareplant.util.monitoring.DropwizardMetrics.measure(DropwizardMetrics.java:64)
	at com.softwareplant.util.monitoring.MonitoringImpl.monitor(MonitoringImpl.java:34)
	at com.softwareplant.system.tenant.core.endpoint.MonitoringTenantSystemEndPointInterceptor.invoke(MonitoringTenantSystemEndPointInterceptor.java:43)
	at com.softwareplant.system.core.endpoint.SystemEndPointChainImpl.processRequest(SystemEndPointChainImpl.java:29)
	at com.softwareplant.system.core.endpoint.interceptors.AuditSystemEndPointInterceptor.invoke(AuditSystemEndPointInterceptor.java:22)
	at com.softwareplant.system.core.endpoint.SystemEndPointChainImpl.processRequest(SystemEndPointChainImpl.java:29)
	at com.softwareplant.system.core.endpoint.interceptors.SystemStatusEndpointInterceptor.invoke(SystemStatusEndpointInterceptor.java:20)
	at com.softwareplant.system.core.endpoint.SystemEndPointChainImpl.processRequest(SystemEndPointChainImpl.java:29)
	at com.softwareplant.system.core.endpoint.TechnicalSystemEndPointInterceptors.run(TechnicalSystemEndPointInterceptors.java:33)
	at com.softwareplant.system.tenant.core.MultiTenantSystem.runWithinInterceptors(MultiTenantSystem.java:92)
	at com.softwareplant.system.core.TechnicalSystem.invoke(TechnicalSystem.java:207)
	at com.softwareplant.system.core.concurrent.job.SystemEndPointJobContext.call(SystemEndPointJobContext.java:36)
	... 12 more
Caused by: java.lang.NoClassDefFoundError: com/softwareplant/util/storage/dbupgrade/domain/FailedUpgradeTaskExecutionResult
	at com.softwareplant.util.storage.dbupgrade.ScheduledUpgradeTasksExecutor.executeUpgradeTask(ScheduledUpgradeTasksExecutor.java:77)
	at com.softwareplant.util.storage.dbupgrade.ScheduledUpgradeTasksExecutor.executeUpgradeTasks(ScheduledUpgradeTasksExecutor.java:54)
	at com.softwareplant.util.storage.dbupgrade.ScheduledUpgradeTasksExecutor.execute(ScheduledUpgradeTasksExecutor.java:46)
	at com.softwareplant.util.storage.dbupgrade.DatabaseUpgradeExecutor.executeScheduledUpgradeTasks(DatabaseUpgradeExecutor.java:84)
	at com.softwareplant.util.storage.dbupgrade.DatabaseUpgradeExecutor.upgrade(DatabaseUpgradeExecutor.java:55)
	at com.softwareplant.system.manager.jiraserver.environment.db.JiraServerDatabaseUpgradeTenantActivator.beforeSystemEnabled(JiraServerDatabaseUpgradeTenantActivator.java:20)
	at com.softwareplant.system.core.activator.TechnicalActivators.runEnabled(TechnicalActivators.java:38)
	at com.softwareplant.system.core.TechnicalSystem.systemOn(TechnicalSystem.java:89)
	... 40 more
Caused by: java.lang.ClassNotFoundException: Unable to load class 'com.softwareplant.util.storage.dbupgrade.domain.FailedUpgradeTaskExecutionResult' because the bundle wiring for com.softwareplant.app.bigpicture.app-bigpicture-jiraserver is no longer valid.
	at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1604)
	at org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80)
	at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 49 more

For some reason, felix doesn't allow us to load our class, which causes the installation to crash. 

Regards,
Albert

0 answers

Suggest an answer

Log in or Sign up to answer