org.osgi.framework.BundleException: Unresolved constraint in bundle com.ni.apps.jira.mailhandler.Mai lHandler [127]: Unable to resolve 127.0: missing requirement [127.0] package; (package=com.atlassian .jira.plugins.mail.model)

Atlassian JIRA | Taiwo Akindele [Atlassian] | 3 years ago
  1. 0

    A customer reports that Custom Message (Mail) Handler written based on the [development tutorial: Custom Message (Mail) Handler for JIRA|https://developer.atlassian.com/display/JIRADEV/Tutorial+-+Custom+message+%28mail%29+handler+for+JIRA] that works well for JIRA 5, isn't working for JIRA 6 due to _Unable to resolve com.atlassian.jira.plugins.mail.model_ exception with the stack trace below: {code} 2013-08-08 04:09:39,549 FelixDispatchQueue ERROR [osgi.container.felix.FelixOsgiContainerManage r] Framework error in bundle com.ni.apps.jira.mailhandler.MailHandler org.osgi.framework.BundleException: Unresolved constraint in bundle com.ni.apps.jira.mailhandler.Mai lHandler [127]: Unable to resolve 127.0: missing requirement [127.0] package; (package=com.atlassian .jira.plugins.mail.model) at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3409) at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1584) at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:887) at com.atlassian.plugin.osgi.util.BundleClassLoaderAccessor$BundleClassLoader.findClass(Bund leClassLoaderAccessor.java:69) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at com.atlassian.jira.plugin.DefaultComponentClassManager.constructEvenIfNotEnabled(DefaultC omponentClassManager.java:133) at com.atlassian.jira.plugin.DefaultComponentClassManager.newInstance(DefaultComponentClassM anager.java:70) . . . {code} As we are unable to confirm whether or not this is indeed a bug, and being that it is out of Atlassian Support scope. We think it's best for developers to verify how vailid this is.

    Atlassian JIRA | 3 years ago | Taiwo Akindele [Atlassian]
    org.osgi.framework.BundleException: Unresolved constraint in bundle com.ni.apps.jira.mailhandler.Mai lHandler [127]: Unable to resolve 127.0: missing requirement [127.0] package; (package=com.atlassian .jira.plugins.mail.model)
  2. 0

    A customer reports that Custom Message (Mail) Handler written based on the [development tutorial: Custom Message (Mail) Handler for JIRA|https://developer.atlassian.com/display/JIRADEV/Tutorial+-+Custom+message+%28mail%29+handler+for+JIRA] that works well for JIRA 5, isn't working for JIRA 6 due to _Unable to resolve com.atlassian.jira.plugins.mail.model_ exception with the stack trace below: {code} 2013-08-08 04:09:39,549 FelixDispatchQueue ERROR [osgi.container.felix.FelixOsgiContainerManage r] Framework error in bundle com.ni.apps.jira.mailhandler.MailHandler org.osgi.framework.BundleException: Unresolved constraint in bundle com.ni.apps.jira.mailhandler.Mai lHandler [127]: Unable to resolve 127.0: missing requirement [127.0] package; (package=com.atlassian .jira.plugins.mail.model) at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3409) at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1584) at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:887) at com.atlassian.plugin.osgi.util.BundleClassLoaderAccessor$BundleClassLoader.findClass(Bund leClassLoaderAccessor.java:69) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at com.atlassian.jira.plugin.DefaultComponentClassManager.constructEvenIfNotEnabled(DefaultC omponentClassManager.java:133) at com.atlassian.jira.plugin.DefaultComponentClassManager.newInstance(DefaultComponentClassM anager.java:70) . . . {code} As we are unable to confirm whether or not this is indeed a bug, and being that it is out of Atlassian Support scope. We think it's best for developers to verify how vailid this is.

    Atlassian JIRA | 3 years ago | Taiwo Akindele [Atlassian]
    org.osgi.framework.BundleException: Unresolved constraint in bundle com.ni.apps.jira.mailhandler.Mai lHandler [127]: Unable to resolve 127.0: missing requirement [127.0] package; (package=com.atlassian .jira.plugins.mail.model)
  3. 0

    [GHS-6157] Unable to start GH in a Java 7 JVM - Atlassian JIRA

    atlassian.com | 1 year ago
    org.osgi.framework.BundleException: Unresolved constraint in bundle com.pyxis.greenhopper.jira [132]: Unable to resolve 132.0: missing requirement [132.0] ; (&( =javax.xml.parsers)(version>=0.0.0.1_006_JavaSE)(version<=0.0.0.1_006_JavaSE))
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    According to the documentation the upcoming version of JIRA 5.2 will support Java 7, but trying to run the EAP version with the GreenHopper plugin will trigger this failure on the plugin initialization: {code} 2012-10-10 15:07:38,931 FelixDispatchQueue ERROR [osgi.container.felix.FelixOsgiContainerManager] Framework error in bundle com.pyxis.greenhopper.jira org.osgi.framework.BundleException: Unresolved constraint in bundle com.pyxis.greenhopper.jira [132]: Unable to resolve 132.0: missing requirement [132.0] package; (&(package=javax.xml.parsers)(version>=0.0.0.1_006_JavaSE)(version<=0.0.0.1_006_JavaSE)) at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3409) at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1584) at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:887) at com.atlassian.plugin.osgi.util.BundleClassLoaderAccessor$BundleClassLoader.findClass(BundleClassLoaderAccessor.java:75) at java.lang.ClassLoader.loadClass(ClassLoader.java:423) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) at com.atlassian.jira.plugin.DefaultComponentClassManager.loadClassEvenIfNotEnabled(DefaultComponentClassManager.java:179) at com.atlassian.jira.plugin.DefaultComponentClassManager.loadClass(DefaultComponentClassManager.java:167) at com.atlassian.jira.plugins.mail.extensions.MessageHandlerModuleDescriptor.init(MessageHandlerModuleDescriptor.java:74) at com.atlassian.plugin.osgi.factory.UnrecognizedModuleDescriptorServiceTrackerCustomizer.canFactoryResolveUnrecognizedDescriptor(UnrecognizedModuleDescriptorServiceTrackerCustomizer.java:86) at com.atlassian.plugin.osgi.factory.UnrecognizedModuleDescriptorServiceTrackerCustomizer.addingService(UnrecognizedModuleDescriptorServiceTrackerCustomizer.java:55) at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:896) at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:261) at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:184) at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:339) at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:273) at com.atlassian.plugin.osgi.factory.OsgiPluginInstalledHelper.onEnable(OsgiPluginInstalledHelper.java:92) at com.atlassian.plugin.osgi.factory.OsgiPlugin.enableInternal(OsgiPlugin.java:419) at com.atlassian.plugin.impl.AbstractPlugin.enable(AbstractPlugin.java:237) at com.atlassian.plugin.impl.AbstractDelegatingPlugin.enable(AbstractDelegatingPlugin.java:215) 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) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardHost.start(StandardHost.java:722) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:583) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) {code} h3. Workaround # Stop JIRA. # Install Java 6, as in [Installing Java|https://confluence.atlassian.com/display/JIRA/Installing+Java]. (!) Ensure the {{JAVA_HOME}} points to 1.6. # Start JIRA. This will start JIRA up using Java 6 instead of 7. Please note that Tomcat 7 is backwards compatible with Java 6.

    Atlassian JIRA | 4 years ago | Felipe Cuozzo
    org.osgi.framework.BundleException: Unresolved constraint in bundle com.pyxis.greenhopper.jira [132]: Unable to resolve 132.0: missing requirement [132.0] package; (&(package=javax.xml.parsers)(version>=0.0.0.1_006_JavaSE)(version<=0.0.0.1_006_JavaSE))
  6. 0

    According to the documentation the upcoming version of JIRA 5.2 will support Java 7, but trying to run the EAP version with the GreenHopper plugin will trigger this failure on the plugin initialization: {code} 2012-10-10 15:07:38,931 FelixDispatchQueue ERROR [osgi.container.felix.FelixOsgiContainerManager] Framework error in bundle com.pyxis.greenhopper.jira org.osgi.framework.BundleException: Unresolved constraint in bundle com.pyxis.greenhopper.jira [132]: Unable to resolve 132.0: missing requirement [132.0] package; (&(package=javax.xml.parsers)(version>=0.0.0.1_006_JavaSE)(version<=0.0.0.1_006_JavaSE)) at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3409) at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1584) at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:887) at com.atlassian.plugin.osgi.util.BundleClassLoaderAccessor$BundleClassLoader.findClass(BundleClassLoaderAccessor.java:75) at java.lang.ClassLoader.loadClass(ClassLoader.java:423) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) at com.atlassian.jira.plugin.DefaultComponentClassManager.loadClassEvenIfNotEnabled(DefaultComponentClassManager.java:179) at com.atlassian.jira.plugin.DefaultComponentClassManager.loadClass(DefaultComponentClassManager.java:167) at com.atlassian.jira.plugins.mail.extensions.MessageHandlerModuleDescriptor.init(MessageHandlerModuleDescriptor.java:74) at com.atlassian.plugin.osgi.factory.UnrecognizedModuleDescriptorServiceTrackerCustomizer.canFactoryResolveUnrecognizedDescriptor(UnrecognizedModuleDescriptorServiceTrackerCustomizer.java:86) at com.atlassian.plugin.osgi.factory.UnrecognizedModuleDescriptorServiceTrackerCustomizer.addingService(UnrecognizedModuleDescriptorServiceTrackerCustomizer.java:55) at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:896) at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:261) at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:184) at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:339) at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:273) at com.atlassian.plugin.osgi.factory.OsgiPluginInstalledHelper.onEnable(OsgiPluginInstalledHelper.java:92) at com.atlassian.plugin.osgi.factory.OsgiPlugin.enableInternal(OsgiPlugin.java:419) at com.atlassian.plugin.impl.AbstractPlugin.enable(AbstractPlugin.java:237) at com.atlassian.plugin.impl.AbstractDelegatingPlugin.enable(AbstractDelegatingPlugin.java:215) 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) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardHost.start(StandardHost.java:722) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:583) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) {code} h3. Workaround # Stop JIRA. # Install Java 6, as in [Installing Java|https://confluence.atlassian.com/display/JIRA/Installing+Java]. (!) Ensure the {{JAVA_HOME}} points to 1.6. # Start JIRA. This will start JIRA up using Java 6 instead of 7. Please note that Tomcat 7 is backwards compatible with Java 6.

    Atlassian JIRA | 4 years ago | Felipe Cuozzo
    org.osgi.framework.BundleException: Unresolved constraint in bundle com.pyxis.greenhopper.jira [132]: Unable to resolve 132.0: missing requirement [132.0] package; (&(package=javax.xml.parsers)(version>=0.0.0.1_006_JavaSE)(version<=0.0.0.1_006_JavaSE))

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.osgi.framework.BundleException

      Unresolved constraint in bundle com.ni.apps.jira.mailhandler.Mai lHandler [127]: Unable to resolve 127.0: missing requirement [127.0] package; (package=com.atlassian .jira.plugins.mail.model)

      at org.apache.felix.framework.Felix.resolveBundle()
    2. Apache Felix Framework
      BundleImpl.loadClass
      1. org.apache.felix.framework.Felix.resolveBundle(Felix.java:3409)
      2. org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1584)
      3. org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:887)
      3 frames