I’ve created a fresh plugin sample from scratch using:
atlas-create-confluence-plugin
Then the confluence version was changed to exact what is used in test, Confluence 6.11.0. After that I created the package:
atlas-package
and installed the jar manually using the UPM file upload. Immediately UPM throws following exception:
After refreshing the page, the plugin was installed successfully. I have the same error for a more complex custom plugin, where this error is thrown, but UPM installs the plugin.
The logs do not show anything suspicious
2018-12-07 12:50:25,668 WARN [Caesium-1-1] [impl.schedule.caesium.JobRunnerWrapper] runJob Scheduled job LaasPerformanceLoggingJob#LaasPerformanceLoggingJob completed unsuccessfully with response JobRunnerResponse[runOutcome=ABORTED,message='LaaS performance logging is turned off']
2018-12-07 12:50:30,618 DEBUG [ThreadPoolAsyncTaskExecutor::Thread 54] [com.example.test.spring] printBundleDebugInfo
Bundle Id : 266
Bundle Name : com.example.test
Bundle Location : file:/opt/atlassian/application-data/confluence/plugins-cache/1544183430550plugin_9019756578600465682_test-1.0.0-SNAPSHOT.jar
Bundle Version : 1.0.0.SNAPSHOT
Bundle Headers :
Archiver-Version: Plexus Archiver
Atlassian-Build-Date: 2018-12-07T12:48:54+0100
Atlassian-Plugin-Key: com.example.test
Bnd-LastModified: 1544183335421
Build-Jdk: 1.8.0_121
Built-By: david
Bundle-Description: This is the com.example:test plugin for Atlassian Confluence.
Bundle-DocURL: http://www.example.com/
Bundle-ManifestVersion: 2
Bundle-Name: test
Bundle-SymbolicName: com.example.test
Bundle-Vendor: Example Company
Bundle-Version: 1.0.0.SNAPSHOT
Created-By: Apache Maven Bundle Plugin
Export-Package: com.example.test.api;version="1.0.0"
Import-Package: org.springframework.osgi.context;resolution:=optional,org.springframework.osgi.service.exporter.support;resolution:=optional,org.springframework.osgi.service.importer.support;resolution:=optional,org.eclipse.gemini.blueprint.context;resolution:=optional,org.eclipse.gemini.blueprint.service.exporter;resolution:=optional,org.eclipse.gemini.blueprint.service.exporter.support;resolution:=optional,org.eclipse.gemini.blueprint.service.importer.support;resolution:=optional,com.atlassian.plugin.osgi.factory,com.atlassian.sal.api,com.example.test.api;version="[1.0,2)",com.google.common.base,com.google.common.collect,javax.annotation,javax.inject,org.apache.commons.lang,org.apache.commons.logging,org.osgi.framework,org.springframework.aop.support,org.springframework.beans,org.springframework.beans.factory,org.springframework.beans.factory.annotation,org.springframework.beans.factory.config,org.springframework.beans.factory.parsing,org.springframework.beans.factory.support,org.springframework.beans.factory.xml,org.springframework.context.annotation,org.springframework.core.io,org.springframework.stereotype,org.springframework.util,org.w3c.dom
Manifest-Version: 1.0
Originally-Created-By: Apache Maven Bundle Plugin
Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.8))"
Spring-Context: *
Tool: Bnd-3.5.0.201709291849
2018-12-07 12:50:30,620 DEBUG [ThreadPoolAsyncTaskExecutor::Thread 54] [com.example.test.spring] logBeanDetail BeforeInstantiation [bean=myPluginComponent, type=com.example.test.impl.MyPluginComponentImpl]
2018-12-07 12:50:30,621 DEBUG [ThreadPoolAsyncTaskExecutor::Thread 54] [com.example.test.spring] logBeanDetail AfterInitialisation [bean=applicationProperties, type=com.sun.proxy.$Proxy2611]
2018-12-07 12:50:30,624 DEBUG [ThreadPoolAsyncTaskExecutor::Thread 54] [com.example.test.spring] logBeanDetail AfterInitialisation [bean=myPluginComponent_osgiService, type=org.eclipse.gemini.blueprint.service.exporter.support.internal.support.ServiceRegistrationWrapper]
2018-12-07 12:50:30,624 DEBUG [ThreadPoolAsyncTaskExecutor::Thread 54] [com.example.test.spring] logBeanDetail AfterInitialisation [bean=myPluginComponent, type=com.example.test.impl.MyPluginComponentImpl]
2018-12-07 12:50:30,624 DEBUG [ThreadPoolAsyncTaskExecutor::Thread 54] [com.example.test.spring] logBeanDetail BeforeInstantiation [bean=org.springframework.context.event.internalEventListenerProcessor, type=org.springframework.context.event.EventListenerMethodProcessor]
2018-12-07 12:50:30,625 DEBUG [ThreadPoolAsyncTaskExecutor::Thread 54] [com.example.test.spring] logBeanDetail AfterInitialisation [bean=org.springframework.context.event.internalEventListenerProcessor, type=org.springframework.context.event.EventListenerMethodProcessor]
2018-12-07 12:50:30,625 DEBUG [ThreadPoolAsyncTaskExecutor::Thread 54] [com.example.test.spring] logBeanDetail BeforeInstantiation [bean=org.springframework.context.event.internalEventListenerFactory, type=org.springframework.context.event.DefaultEventListenerFactory]
2018-12-07 12:50:30,625 DEBUG [ThreadPoolAsyncTaskExecutor::Thread 54] [com.example.test.spring] logBeanDetail AfterInitialisation [bean=org.springframework.context.event.internalEventListenerFactory, type=org.springframework.context.event.DefaultEventListenerFactory]
2018-12-07 12:50:33,151 WARN [UpmScheduler:thread-4] [atlassian.upm.pac.PacClientImpl] getUpdates Update check request may take longer because of the number of apps
-- url: /confluence/rest/plugins/1.0/ | referer: https://ppm.bytesourcecloud.com/confluence/plugins/servlet/upm | traceId: 5aba18befd30966a | userName: david
The only error is about the update check:
2018-12-07 12:50:33,151 WARN [UpmScheduler:thread-4] [atlassian.upm.pac.PacClientImpl] getUpdates Update check request may take longer because of the number of apps
Any idea?






