It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Help - create a new Custom Field Type

Hi,

I am trying to create new Custom Field Type following instructions from following link

https://developer.atlassian.com/display/JIRADEV/How+to+create+a+new+Custom+Field+Type

Plugin is not getting enabled because of build errors. Here is the error in my Log file

2013-06-04 16:17:44,697 main ERROR [plugin.osgi.factory.OsgiPlugin] Detected an error (BundleException) enabling the plugin 'com.jtricks.demo.demoplugin-tests' : Unresolved constraint in bundle com.jtricks.demo.demoplugin-tests [113]: Unable to resolve 113.0: missing requirement [113.0] package; (package=com.jtricks.mypackage). 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 http://confluence.atlassian.com/x/1xy6D

2013-06-04 16:17:44,700 main WARN [plugin.osgi.factory.OsgiPlugin] Unable to enable plugin 'com.jtricks.demo.demoplugin-tests'

com.atlassian.plugin.osgi.container.OsgiContainerException: Cannot start plugin: com.jtricks.demo.demoplugin-tests

at com.atlassian.plugin.osgi.factory.OsgiPlugin.enableInternal(OsgiPlugin.java:445)

at com.atlassian.plugin.impl.AbstractPlugin.enable(AbstractPlugin.java:237)

at com.atlassian.plugin.manager.PluginEnabler.actualEnable(PluginEnabler.java:114)

at com.atlassian.plugin.manager.PluginEnabler.enable(PluginEnabler.java:99)

at com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:725)

at com.atlassian.plugin.manager.DefaultPluginManager.init(DefaultPluginManager.java:178)

at com.atlassian.jira.plugin.JiraPluginManager.start(JiraPluginManager.java:58)

at com.atlassian.jira.ComponentManager$PluginSystem.start(ComponentManager.java:671)

at com.atlassian.jira.ComponentManager.startJIRA(ComponentManager.java:220)

at com.atlassian.jira.ComponentManager.quickStart(ComponentManager.java:212)

at com.atlassian.jira.ComponentManager.start(ComponentManager.java:197)

at com.atlassian.jira.upgrade.PluginSystemLauncher.start(PluginSystemLauncher.java:23)

at com.atlassian.jira.startup.DefaultJiraLauncher$3.run(DefaultJiraLauncher.java:105)

at com.atlassian.jira.config.database.DatabaseConfigurationManagerImpl.doNowOrEnqueue(DatabaseConfigurationManagerImpl.java:284)

at com.atlassian.jira.config.database.DatabaseConfigurationManagerImpl.doNowOrWhenDatabaseActivated(DatabaseConfigurationManagerImpl.java:169)

at com.atlassian.jira.startup.DefaultJiraLauncher.postDbLaunch(DefaultJiraLauncher.java:98)

at com.atlassian.jira.startup.DefaultJiraLauncher.access$100(DefaultJiraLauncher.java:25)

at com.atlassian.jira.startup.DefaultJiraLauncher$1.run(DefaultJiraLauncher.java:64)

at com.atlassian.jira.util.devspeed.JiraDevSpeedTimer.run(JiraDevSpeedTimer.java:33)

at com.atlassian.jira.startup.DefaultJiraLauncher.start(DefaultJiraLauncher.java:59)

at com.atlassian.jira.startup.LauncherContextListener$1.create(LauncherContextListener.java:80)

at com.atlassian.jira.startup.LauncherContextListener$1.create(LauncherContextListener.java:75)

at com.atlassian.multitenant.impl.MultiTenantComponentMapImpl.get(MultiTenantComponentMapImpl.java:121)

at com.atlassian.multitenant.impl.MultiTenantComponentMapImpl.onTenantStart(MultiTenantComponentMapImpl.java:165)

at com.atlassian.multitenant.impl.DefaultMultiTenantManager$1.consume(DefaultMultiTenantManager.java:134)

at com.atlassian.multitenant.impl.DefaultMultiTenantManager$1.consume(DefaultMultiTenantManager.java:131)

at com.atlassian.multitenant.impl.DefaultMultiTenantManager.runForEachListener(DefaultMultiTenantManager.java:256)

at com.atlassian.multitenant.impl.DefaultMultiTenantManager.startTenant(DefaultMultiTenantManager.java:130)

at com.atlassian.multitenant.impl.DefaultMultiTenantManager.startAll(DefaultMultiTenantManager.java:203)

at com.atlassian.jira.startup.LauncherContextListener.contextInitialized(LauncherContextListener.java:108) <+21> (StandardContext.java:3934) (StandardContext.java:4429) (ContainerBase.java:791) (ContainerBase.java:771) (StandardHost.java:526) (HostConfig.java:850) (HostConfig.java:724) (HostConfig.java:493) (HostConfig.java:1206) (HostConfig.java:314) (LifecycleSupport.java:119) (ContainerBase.java:1053) (StandardHost.java:722) (ContainerBase.java:1045) (StandardEngine.java:443) (StandardService.java:516) (StandardServer.java:710) (Catalina.java:583) (NativeMethodAccessorImpl.java:57) (DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:601) <+2> (Bootstrap.java:288) (Bootstrap.java:413)

Caused by: org.osgi.framework.BundleException: Unresolved constraint in bundle com.jtricks.demo.demoplugin-tests [113]: Unable to resolve 113.0: missing requirement [113.0] package; (package=com.jtricks.mypackage)

at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3409)

at org.apache.felix.framework.Felix.startBundle(Felix.java:1709)

at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905)

at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:892)

at com.atlassian.plugin.osgi.factory.OsgiPlugin.enableInternal(OsgiPlugin.java:417) <+2>

2013-06-04 16:17:44,731 main ERROR [atlassian.plugin.manager.PluginEnabler] Unable to enable plugin com.jtricks.demo.demoplugin-tests

com.atlassian.plugin.osgi.container.OsgiContainerException: Cannot start plugin: com.jtricks.demo.demoplugin-tests

at com.atlassian.plugin.osgi.factory.OsgiPlugin.enableInternal(OsgiPlugin.java:445)

at com.atlassian.plugin.impl.AbstractPlugin.enable(AbstractPlugin.java:237)

at com.atlassian.plugin.manager.PluginEnabler.actualEnable(PluginEnabler.java:114)

at com.atlassian.plugin.manager.PluginEnabler.enable(PluginEnabler.java:99)

at com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:725)

at com.atlassian.plugin.manager.DefaultPluginManager.init(DefaultPluginManager.java:178)

at com.atlassian.jira.plugin.JiraPluginManager.start(JiraPluginManager.java:58)

at com.atlassian.jira.ComponentManager$PluginSystem.start(ComponentManager.java:671)

at com.atlassian.jira.ComponentManager.startJIRA(ComponentManager.java:220)

at com.atlassian.jira.ComponentManager.quickStart(ComponentManager.java:212)

at com.atlassian.jira.ComponentManager.start(ComponentManager.java:197)

at com.atlassian.jira.upgrade.PluginSystemLauncher.start(PluginSystemLauncher.java:23)

at com.atlassian.jira.startup.DefaultJiraLauncher$3.run(DefaultJiraLauncher.java:105)

at com.atlassian.jira.config.database.DatabaseConfigurationManagerImpl.doNowOrEnqueue(DatabaseConfigurationManagerImpl.java:284)

at com.atlassian.jira.config.database.DatabaseConfigurationManagerImpl.doNowOrWhenDatabaseActivated(DatabaseConfigurationManagerImpl.java:169)

at com.atlassian.jira.startup.DefaultJiraLauncher.postDbLaunch(DefaultJiraLauncher.java:98)

at com.atlassian.jira.startup.DefaultJiraLauncher.access$100(DefaultJiraLauncher.java:25)

at com.atlassian.jira.startup.DefaultJiraLauncher$1.run(DefaultJiraLauncher.java:64)

at com.atlassian.jira.util.devspeed.JiraDevSpeedTimer.run(JiraDevSpeedTimer.java:33)

at com.atlassian.jira.startup.DefaultJiraLauncher.start(DefaultJiraLauncher.java:59)

at com.atlassian.jira.startup.LauncherContextListener$1.create(LauncherContextListener.java:80)

at com.atlassian.jira.startup.LauncherContextListener$1.create(LauncherContextListener.java:75)

at com.atlassian.multitenant.impl.MultiTenantComponentMapImpl.get(MultiTenantComponentMapImpl.java:121)

at com.atlassian.multitenant.impl.MultiTenantComponentMapImpl.onTenantStart(MultiTenantComponentMapImpl.java:165)

at com.atlassian.multitenant.impl.DefaultMultiTenantManager$1.consume(DefaultMultiTenantManager.java:134)

at com.atlassian.multitenant.impl.DefaultMultiTenantManager$1.consume(DefaultMultiTenantManager.java:131)

at com.atlassian.multitenant.impl.DefaultMultiTenantManager.runForEachListener(DefaultMultiTenantManager.java:256)

at com.atlassian.multitenant.impl.DefaultMultiTenantManager.startTenant(DefaultMultiTenantManager.java:130)

at com.atlassian.multitenant.impl.DefaultMultiTenantManager.startAll(DefaultMultiTenantManager.java:203)

at com.atlassian.jira.startup.LauncherContextListener.contextInitialized(LauncherContextListener.java:108) <+21> (StandardContext.java:3934) (StandardContext.java:4429) (ContainerBase.java:791) (ContainerBase.java:771) (StandardHost.java:526) (HostConfig.java:850) (HostConfig.java:724) (HostConfig.java:493) (HostConfig.java:1206) (HostConfig.java:314) (LifecycleSupport.java:119) (ContainerBase.java:1053) (StandardHost.java:722) (ContainerBase.java:1045) (StandardEngine.java:443) (StandardService.java:516) (StandardServer.java:710) (Catalina.java:583) (NativeMethodAccessorImpl.java:57) (DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:601) <+2> (Bootstrap.java:288) (Bootstrap.java:413)

Caused by: org.osgi.framework.BundleException: Unresolved constraint in bundle com.jtricks.demo.demoplugin-tests [113]: Unable to resolve 113.0: missing requirement [113.0] package; (package=com.jtricks.mypackage)

at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3409)

at org.apache.felix.framework.Felix.startBundle(Felix.java:1709)

at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905)

at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:892)

at com.atlassian.plugin.osgi.factory.OsgiPlugin.enableInternal(OsgiPlugin.java:417) <+2>

Can someone point me towards the source of the error?

Thanks in advance

1 answer

1 accepted

0 votes
Answer accepted

The issue was with atlassian-plugin.xml. Typo in Componeny Key.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published Apr 09, 2019 in Portfolio for Jira

Portfolio for Jira 3.0 is here!

The wait is over... Portfolio for Jira Server and Data Center 3.0 is now officially here! Platform releases offer Atlassian an opportunity to shift our strategy, make bold predictions about t...

1,557 views 14 26
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you