9. Q&A

1.Q: What should I do if the app cannot be enabled after upgrading/installing and an error is reported in the Confluence log?

2023-09-21 03:26:47,393 ERROR [ThreadPoolAsyncTaskExecutor::Thread 28] [internal.dependencies.startup.DependencyWaiterApplicationContextExecutor] fail Unable to create application context for [com.shdsd.plugin.attachmentListener], unsatisfied dependencies: none -- referer: http://192.168.xx.xx:xxxxx/plugins/servlet/upm | url: /rest/plugins/1.0/com.shdsd.plugin.attachmentListener-key | traceId: 6e9a3b6a71ccb0b9 | userName: admin org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL [bundle://319.0:0/META-INF/spring/atlassian-plugins-component-imports.xml]; nested exception is java.lang.IllegalStateException: The bundle is uninstalled. at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:417) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:338) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:196) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:232) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:203) ...... Caused by: java.lang.IllegalStateException: The bundle is uninstalled. at org.apache.felix.framework.Felix.getBundleResources(Felix.java:1706) at org.apache.felix.framework.BundleImpl.getResources(BundleImpl.java:689) at org.eclipse.gemini.blueprint.util.BundleDelegatingClassLoader.getResources(BundleDelegatingClassLoader.java:186) at org.springframework.core.io.support.PropertiesLoaderUtils.loadAllProperties(PropertiesLoaderUtils.java:188) at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.getHandlerMappings(DefaultNamespaceHandlerResolver.java:164) at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.resolve(DefaultNamespaceHandlerResolver.java:118) ...... ... 20 more

A: Restart Confluence to resolve it.

2. Q: Why does it fail when “download all attachments”?

A: There are 3 reasons in total:

  • In "Global Configuration > Attachment Download Restrictions", you have configured restrictions on downloading files with zip suffixes.

  • In "Global Configuration > Attachment Download Restrictions", you have configured restrictions on downloading files with other suffixes, and the zip file for "download all attachments" exactly contains files with that suffix.

  • In "More Space Permissions" and "More Page Permissions", you did not grant the user the "download attachments" permission.