Unable to update UPM
Asked by Alexander Afonyashin:

Hi,

Trying to update UPM from version 2.7.8 to the newest I've got the following error in logs:

2012-12-14 12:19:34,588 ERROR Spring executor 16 extender.internal.activator.ContextLoaderListener onOsgiApplicationEvent Application context refresh failed (NonValidatingOsgiBundleXmlAppl

icationContext(bundle=com.atlassian.upm.atlassian-universal-plugin-manager-selfupdate-plugin, config=osgibundle:/META-INF/spring/\*.xml))

-- url: /rest/plugins/1.0/ \| userName: alexander.afonyashin \| referer: <https://wiki.enter.ru/plugins/servlet/upm>

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'updateParametersFactory' defined in URL bundle://131.0:0/META-INF/spring/atlassian-plugins-com

ponents.xml : Unsatisfied dependency expressed through constructor argument with index 0 of type com.atlassian.sal.api.pluginsettings.PluginSettingsFactory : : Error loading class com.atlass

ian.upm.selfupdate.async.SimpleAsyncTaskManager for bean with name 'simpleAsyncTaskManager' defined in URL bundle://131.0:0/META-INF/spring/atlassian-plugins-components.xml : problem with cl

ass file or dependent class; nested exception is java.lang.NoClassDefFoundError: com.atlassian.upm.selfupdate.async.SimpleAsyncTaskManager not found from bundle Atlassian Universal Plugin Man

ager Self-Update Plugin (com.atlassian.upm.atlassian-universal-plugin-manager-selfupdate-plugin) ; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Error loa

ding class com.atlassian.upm.selfupdate.async.SimpleAsyncTaskManager for bean with name 'simpleAsyncTaskManager' defined in URL bundle://131.0:0/META-INF/spring/atlassian-plugins-components

.xml : problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: com.atlassian.upm.selfupdate.async.SimpleAsyncTaskManager not found from bundle Atlassia

n Universal Plugin Manager Self-Update Plugin (com.atlassian.upm.atlassian-universal-plugin-manager-selfupdate-plugin)

at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:591)

at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:193)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)

at java.security.AccessController.doPrivileged(Native Method)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)

at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)

at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)

at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)

at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)

at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)

at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)

at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:13

2)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class com.atlassian.upm.selfupdate.async.SimpleAsyncTaskManager for bean with name 'simpleAsyncTaskManager' defined in URL bundle://131.0:0/META-INF/spring/atlassian-plugins-components.xml : problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: com.atlassian.upm.selfupdate.async.SimpleAsyncTaskManager not found from bundle Atlassian Universal Plugin Manager Self-Update Plugin (com.atlassian.upm.atlassian-universal-plugin-manager-selfupda

te-plugin)

at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1144)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:524)

at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1177)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:222)

at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:187)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:652)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:610)

at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:622)

at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:584)

... 22 more

Caused by: java.lang.NoClassDefFoundError: com.atlassian.upm.selfupdate.async.SimpleAsyncTaskManager not found from bundle Atlassian Universal Plugin Manager Self-Update Plugin (com.atlassian.upm.atlassian-universal-plugin-manager-selfupdate-plugin)

at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:112)

at org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156)

at java.lang.ClassLoader.loadClass(Unknown Source)

at org.springframework.util.ClassUtils.forName(ClassUtils.java:211)

at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:385)

at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1138)

... 30 more

Caused by: java.lang.NoClassDefFoundError: org/springframework/beans/factory/DisposableBean

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClassCond(Unknown Source)

at java.lang.ClassLoader.defineClass(Unknown Source)

at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.findClass(ModuleImpl.java:1829)

at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:716)

at org.apache.felix.framework.ModuleImpl.access$200(ModuleImpl.java:73)

at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1690)

at java.lang.ClassLoader.loadClass(Unknown Source)

at org.apache.felix.framework.ModuleImpl.getClassByDelegation(ModuleImpl.java:634)

at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1594)

at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:887)

at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:99)

... 35 more

Caused by: java.lang.ClassNotFoundException: org.springframework.beans.factory.DisposableBean

at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:772)

at org.apache.felix.framework.ModuleImpl.access$200(ModuleImpl.java:73)

at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1690)

at java.lang.ClassLoader.loadClass(Unknown Source)

... 47 more

Best regards,

Alexander Afonyashin


Answers:
author: Matt
body: Download plugin from <https://marketplace.atlassian.com/plugins/com.atlassian.upm.atlassian-universal-plugin-manager-plugin> and install it by uploading a jar file.


author: C. Faysal
body: its a bug

uninstall 2.7.8 and update to latest version

you're using confluence right?

there is a simple workarround for this

<https://confluence.atlassian.com/display/UPM/Updating+the+Universal+Plugin+Manager#UpdatingtheUniversalPluginManager-UpdatingUPMbyfilereplacement>

comments: author: C. Faysal
body: already discussed here

[https://answers.atlassian.com/questions/113801/error-while-updating-universal-plugin-manager-from-2-7-8-to-2-7-9-in-confluence-4-3-3](/questions/113801/error-while-updating-universal-plugin-manager-from-2-7-8-to-2-7-9-in-confluence-4-3-3)

affects 2.7.8 and 2.7.9


author: Alexander Afonyashin
body: Thank you all. It was successfully updated with manual intervention.


author: RianA
body: Might be related to corrupted plugin cache. Please try to reset plugin cache and here's the brief steps on doing that.  
# Shutdown Confluence  
# Remove the following folders (they will be regenerated at startup):  
#\* \<confluence_home\>/bundled-plugins  
#\* \<confluence_home\>/plugins-cache  
#\* \<confluence_home\>/plugins-osgi-cache  
#\* \<confluence_home\>/plugins-temp  
# Startup Confluence

Hope it helps!


Tags: universal-plugin-manager

update