Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Issue while loading come.atlassian.plugins.plugin-data-editor

Riccardo Barbieri
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!
May 5, 2025

I am developing a plugin for Bitbucket Data Center 9.1.1, when launching the local development server with "mvn bitbucket:run" I get the following error:


[INFO] 2025-05-05 10:35:15,496 ERROR [spring-startup] c.a.plugin.osgi.factory.OsgiPlugin Detected an error (BundleException) enabling the plugin 'com.atlassian.plugins.plugin-data-editor' : Unable to resolve com.atlassian.plugins.plugin-data-editor [108](R 108.0): missing requirement [com.atlassian.plugins.plugin-data-editor [108](R 108.0)] osgi.wiring.package; (osgi.wiring.package=org.codehaus.jackson.xc) Unresolved requirements: [[com.atlassian.plugins.plugin-data-editor [108](R 108.0)] osgi.wiring.package; (osgi.wiring.package=org.codehaus.jackson.xc)]. This error usually occurs when your plugin imports a package from another bundle with a specific version constraint and either the bundle providing that package doesn't meet those version constraints, or there is no bundle available that provides the specified package. For more details on how to fix this, see https://developer.atlassian.com/x/mQAN

As far as I understand the issue here is that OSGi does not find the plugin bundle because the dependency check fails, it does not find "org.codehaus.jackson.xc".

I am not sure what change in my plugin code introduced this dependency, but I started using the PluginSettingsFactory object to store and retrieve settings for my plugin.

I tried inserting the following dependencies:

<dependency>
    <groupId>org.codehaus.jackson</groupId>
    <artifactId>jackson-core-asl</artifactId>
    <version>1.9.14-atlassian-6</version>
    <scope>provided</scope>
</dependency>
<dependency>
    <groupId>org.codehaus.jackson</groupId>
    <artifactId>jackson-mapper-asl</artifactId>
    <version>1.9.14-atlassian-6</version>
    <scope>provided</scope>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
    <artifactId>jackson-jaxrs</artifactId>
    <version>1.9.14-atlassian-6</version>
    <scope>provided</scope>
</dependency>


gathered by following this debug guide: https://developer.atlassian.com/x/mQAN linked in the error message. In the Felix web console, Plugin Data Editor in fact reports that the dependency org.codehaus.jackson.xc ver 0.0.0 could not be resolved.

Aside for the version tag that seems to be always set to 0.0.0 for each dependency, I retrieved the version to add to the dependencies from another section of the page in the Felix web console, the one that specifies the included JARs in META-INF.

Another thing I don't understand is that I can import the org.codehaus.jackson.xc package in my java code without issues and the Felix web console reports that the jars for the dependencies listed above are present in META-INF folder (i checked and they are there).

 

Please, leave a comment if more information to debug the issue is needed.

1 answer

Suggest an answer

Log in or Sign up to answer
1 vote
Tuncay Senturk _Snapbytes_
Community Champion
May 5, 2025

Hi @Riccardo Barbieri 

I'd suggest posting this question on Atlassian Developer Community, I'm sure that you'll get more answers there.

 

TAGS
AUG Leaders

Atlassian Community Events