java.lang.UnsupportedOperationException: This method is not supported in an UnloadableJiraServiceContainer

Atlassian JIRA | Mogavenasan Muthusamy [Atlassian] | 6 months ago
  1. 0

    h3. Summary JIRA Service Desk is not creating or updating issues via email. Restarting JIRA solves the problem, but after some time, the problem happens again. The following appears in the application.xml: {noformat} <service> <name>Mail handler used by JIRA Service Desk. Do not modify or delete. 10,200</name> <delay>60ms</delay> <status>unloaded</status> </service> <service> <name>Mail handler used by JIRA Service Desk. Do not modify or delete. 10,201</name> <delay>60ms</delay> <status>unloaded</status> </service> <service> <name>Mail handler used by JIRA Service Desk. Do not modify or delete. 10,300</name> <delay>60ms</delay> <status>unloaded</status> </service> {noformat} (i) Note that all the status for the Service of the Mail Handler is unloaded. h3. Steps to Reproduce *Was not able to reproduce this problem locally.* h3. Expected Results Incoming emails should be able to create or update existing issues. h3. Actual Results Incoming emails are not creating or updating existing issues. The following appears in the {{atlassian-jira.log}}: {noformat} 2016-02-18 09:52:43,156 localhost-startStop-1 ERROR [c.a.jira.service.OfBizServiceConfigStore] Unable to create a service config for service with the name : Mail handler used by JIRA Service Desk. Do not modify or delete. 10,200 com.atlassian.jira.service.OfBizServiceConfigStore$ClassNotFoundServiceException: Could not find class: com.atlassian.servicedesk.squalor.email.ServiceDeskMailFetcherService at com.atlassian.jira.service.OfBizServiceConfigStore.instantiateServiceContainer(OfBizServiceConfigStore.java:249) at com.atlassian.jira.service.OfBizServiceConfigStore.getServiceContainer(OfBizServiceConfigStore.java:209) at com.atlassian.jira.service.OfBizServiceConfigStore.getAllServiceConfigs(OfBizServiceConfigStore.java:194) at com.atlassian.jira.service.DefaultServiceManager$ServicesCacheSupplier.loadServiceConfigs(DefaultServiceManager.java:727) at com.atlassian.jira.service.DefaultServiceManager$ServicesCacheSupplier.get(DefaultServiceManager.java:716) at com.atlassian.jira.service.DefaultServiceManager$ServicesCacheSupplier.get(DefaultServiceManager.java:709) at com.atlassian.cache.memory.MemoryCacheManager$1$1.load(MemoryCacheManager.java:67) at com.atlassian.cache.memory.MemoryCacheManager$1$1.load(MemoryCacheManager.java:63) at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3527) at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2319) at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2282) at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2197) at com.google.common.cache.LocalCache.get(LocalCache.java:3937) at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3941) at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4824) at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4830) at com.atlassian.cache.memory.DelegatingCachedReference.getUnderLock(DelegatingCachedReference.java:72) at com.atlassian.cache.memory.DelegatingCachedReference.get(DelegatingCachedReference.java:58) at com.atlassian.jira.service.DefaultServiceManager.getServiceCache(DefaultServiceManager.java:640) at com.atlassian.jira.service.DefaultServiceManager.getServices(DefaultServiceManager.java:129) at com.atlassian.jira.service.DefaultServiceManager.ensureServicesScheduled(DefaultServiceManager.java:645) at com.atlassian.jira.service.DefaultServiceManager.start(DefaultServiceManager.java:115) at com.atlassian.jira.ComponentManager.runStartable(ComponentManager.java:301) at com.atlassian.jira.ComponentManager.quickStart(ComponentManager.java:215) at com.atlassian.jira.ComponentManager.start(ComponentManager.java:168) at com.atlassian.jira.upgrade.PluginSystemLauncher.start(PluginSystemLauncher.java:35) at com.atlassian.jira.startup.DefaultJiraLauncher.lambda$postDbLaunch$175(DefaultJiraLauncher.java:136) at com.atlassian.jira.startup.DefaultJiraLauncher$$Lambda$15/1403746571.run(Unknown Source) at com.atlassian.jira.config.database.DatabaseConfigurationManagerImpl.doNowOrEnqueue(DatabaseConfigurationManagerImpl.java:356) at com.atlassian.jira.config.database.DatabaseConfigurationManagerImpl.doNowOrWhenDatabaseActivated(DatabaseConfigurationManagerImpl.java:226) at com.atlassian.jira.startup.DefaultJiraLauncher.postDbLaunch(DefaultJiraLauncher.java:126) at com.atlassian.jira.startup.DefaultJiraLauncher.lambda$start$173(DefaultJiraLauncher.java:92) at com.atlassian.jira.startup.DefaultJiraLauncher$$Lambda$2/371446540.run(Unknown Source) at com.atlassian.jira.util.devspeed.JiraDevSpeedTimer.run(JiraDevSpeedTimer.java:34) at com.atlassian.jira.startup.DefaultJiraLauncher.start(DefaultJiraLauncher.java:90) at com.atlassian.jira.startup.LauncherContextListener.contextInitialized(LauncherContextListener.java:84) ... 5 filtered at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.ClassNotFoundException: Class 'com.atlassian.servicedesk.squalor.email.ServiceDeskMailFetcherService' not found. at com.atlassian.jira.plugin.DefaultComponentClassManager.constructEvenIfNotEnabled(DefaultComponentClassManager.java:160) at com.atlassian.jira.plugin.DefaultComponentClassManager.newInstance(DefaultComponentClassManager.java:72) at com.atlassian.jira.service.OfBizServiceConfigStore.loadServiceClass(OfBizServiceConfigStore.java:385) at com.atlassian.jira.service.OfBizServiceConfigStore.instantiateServiceContainer(OfBizServiceConfigStore.java:244) ... 44 more {noformat} Further analyzing the atlassian-jira.log, you will be able to see some patterns in the errors: * Database warning: {noformat} 2016-03-11 08:40:04,518 http-nio-8080-exec-20 ERROR DEdwards 520x68989x1 3f3x0w 10.10.99.18:4591,0:0:0:0:0:0:0:1 /secure/DeleteIssue.jspa [c.a.s.i.f.customer.request.RequestActivityIssueListener] Failed to store issue property 'request.public-activity.lastupdated', errors: [The specified Issue does not exist in the system.] 2016-03-11 08:40:40,409 Caesium-1-2 WARN anonymous [c.a.jira.ofbiz.ConnectionPoolHealthSqlInterceptor] Dangerous use of multiple connections: taken => count=3; marks=[2-3]; pool=2/20 2016-03-11 08:40:40,409 Caesium-1-2 WARN anonymous [c.a.jira.ofbiz.ConnectionPoolHealthSqlInterceptor] Dangerous use of multiple connections: replaced => count=2; marks=[1-3]; pool=1/20 2016-03-11 08:40:40,409 Caesium-1-2 WARN anonymous [c.a.jira.ofbiz.ConnectionPoolHealthSqlInterceptor] Dangerous use of multiple connections: replaced => count=1; marks=[0-3]; pool=0/20 2016-03-11 08:40:40,409 Caesium-1-2 WARN anonymous [c.a.jira.ofbiz.ConnectionPoolHealthSqlInterceptor] Dangerous use of multiple connections: replaced => count=0; marks=[-1-3]; pool=-1/20 {noformat} * {{NoClassDefFoundError}}: {noformat} 2016-03-11 08:40:40,409 Caesium-1-2 ERROR anonymous [c.a.scheduler.core.JobLauncher] Scheduled job with ID 'com.atlassian.jira.internal.mail.services.MailProcessorJobRunner' failed due to binary incompatibilities java.lang.NoClassDefFoundError: javax/xml/transform/Source at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671) at java.lang.Class.getConstructor0(Class.java:3075) at java.lang.Class.newInstance(Class.java:412) ... {noformat} * {{UnsupportedOperationException}}: {noformat} 2016-03-11 08:40:46,550 Caesium-1-2 ERROR anonymous Mail handler used by JIRA Service Desk. Do not modify or delete. 10,200 [c.a.jira.service.ServiceRunner] An error occurred while trying to run service 'Mail handler used by JIRA Service Desk. Do not modify or delete. 10,200'. This method is not supported in an UnloadableJiraServiceContainer java.lang.UnsupportedOperationException: This method is not supported in an UnloadableJiraServiceContainer at com.atlassian.jira.service.UnloadableJiraServiceContainer.run(UnloadableJiraServiceContainer.java:122) at com.atlassian.jira.service.ServiceRunner.runService(ServiceRunner.java:77) ... {noformat} h3. Notes Performed 2 steps which fixed the problem: * Add {{validation-query}} in {{dbconfig.xml}} file as per [Surviving Connection Closures|https://confluence.atlassian.com/jira/surviving-connection-closures-120050.html]. * Update Service Desk to 3.1.1.

    Atlassian JIRA | 6 months ago | Mogavenasan Muthusamy [Atlassian]
    java.lang.UnsupportedOperationException: This method is not supported in an UnloadableJiraServiceContainer
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Emporium app (MyFaces JSF): A server error occurs when deploying emporium with MyFaces JSF: Dec 20, 2015 3:11:54 PM org.apache.myfaces.util.ExternalSpecifications isBeanValidationAvailable INFO: MyFaces Bean Validation support disabled Dec 20, 2015 3:11:54 PM org.icefaces.impl.renderkit.DOMRenderKit <clinit> INFO: ICEsoft Technologies Inc. ICEfaces 4.1.0 Build number: 3 Build date: 151218 Revision: 46894 Dec 20, 2015 3:11:54 PM org.apache.myfaces.config.FacesConfigurator handleSerialFactory INFO: Serialization provider : class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory Dec 20, 2015 3:11:54 PM org.apache.myfaces.config.annotation.DefaultLifecycleProviderFactory getLifecycleProvider INFO: Using LifecycleProvider org.apache.myfaces.config.annotation.Tomcat7AnnotationLifecycleProvider Dec 20, 2015 3:11:54 PM org.apache.myfaces.webapp.AbstractFacesInitializer _createEagerBeans WARNING: The managed-bean with name icefacesBeanDestroyRecorder must be application scoped to support eager=true. Dec 20, 2015 3:11:54 PM org.apache.myfaces.webapp.AbstractFacesInitializer initFaces SEVERE: An error occured while initializing MyFaces: This method is not supported during startup java.lang.UnsupportedOperationException: This method is not supported during startup at org.apache.myfaces.context.servlet.StartupServletExternalContextImpl.getSession(StartupServletExternalContext Impl.java:187) at org.apache.myfaces.view.impl.DefaultViewScopeHandler.generateViewScopeId(DefaultViewScopeHandler.java:128) at org.apache.myfaces.view.ViewScopeProxyMap.getWrapped(ViewScopeProxyMap.java:76) at org.apache.myfaces.view.ViewScopeProxyMap.get(ViewScopeProxyMap.java:109) at org.apache.myfaces.config.ManagedBeanBuilder.getScope(ManagedBeanBuilder.java:560) at org.apache.myfaces.config.ManagedBeanBuilder.getNarrowestScope(ManagedBeanBuilder.java:464) at org.apache.myfaces.config.ManagedBeanBuilder.isInValidScope(ManagedBeanBuilder.java:435) at org.apache.myfaces.config.ManagedBeanBuilder.initializeProperties(ManagedBeanBuilder.java:319) at org.apache.myfaces.config.ManagedBeanBuilder.buildManagedBean(ManagedBeanBuilder.java:163) at org.apache.myfaces.webapp.AbstractFacesInitializer._createEagerBeans(AbstractFacesInitializer.java:303) at org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(AbstractFacesInitializer.java:193) at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java :119) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4937) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1120) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1678) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Dec 20, 2015 3:11:54 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory C:\Servers\apache-tomcat-7.0.42\webapps\examples Dec 20, 2015 3:11:56 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory C:\Servers\apache-tomcat-7.0.42\webapps\host-manager Dec 20, 2015 3:11:56 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory C:\Servers\apache-tomcat-7.0.42\webapps\manager Dec 20, 2015 3:11:56 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory C:\Servers\apache-tomcat-7.0.42\webapps\ROOT Dec 20, 2015 3:11:56 PM org.icefaces.demo.emporium.watcher.base.ThreadedWatcher stop INFO: Stop requested for null. Dec 20, 2015 3:11:56 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["http-bio-8080"] Dec 20, 2015 3:11:56 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["http-bio-8443"] Dec 20, 2015 3:11:56 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["ajp-bio-8009"] Dec 20, 2015 3:11:56 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 9900 ms Dec 20, 2015 3:12:11 PM org.icepush.servlet.MainServlet <init> INFO: ICEsoft Technologies Inc. ICEpush 4.1.0 Build number: 3 Revision: 46894 Dec 20, 2015 3:12:13 PM org.apache.myfaces.util.ExternalSpecifications isUnifiedELAvailable INFO: MyFaces Unified EL support enabled Dec 20, 2015 3:12:13 PM org.icefaces.demo.emporium.auth.AuthController determineStatus WARNING: Failed to find or validate Auth password file from path: /opt/tomcat/emporium/password, disallowing Auth. Dec 20, 2015 3:12:14 PM org.icefaces.demo.emporium.bid.model.AuctionImage generateParentDir INFO: Item image directory C:\Servers\apache-tomcat-7.0.42\temp\1-emporium\resources\items valid with 177 files. Dec 20, 2015 3:12:14 PM org.icefaces.demo.emporium.settings.SettingsBean initSettingsBean INFO: User initialized with SettingsBean: User #34333 from North America using theme cupertino with fg/bg colors rgba(0, 0, 0, 0.9)/rgba(176, 196, 222, 0.9) Dec 20, 2015 3:12:14 PM org.icefaces.demo.emporium.bid.AuctionService initAuctionService INFO: Test Flag status...no interval push [false], expiry [false], bid robot [false], many items [false], many past bids [false], autojoin chat [false], growl messages [false], no auth [false].

    ICEsoft JIRA Issue Tracker | 12 months ago | Carmen Cristurean
    java.lang.UnsupportedOperationException: This method is not supported during startup
  4. 0

    Showcase doesn't start if glassfish javax.faces implemetnation is replaced with myfaces libraries. maj 18, 2014 3:13:41 PM org.apache.myfaces.webapp.AbstractFacesInitializer initFaces SEVERE: An error occured while initializing MyFaces: This method is not supported during startup java.lang.UnsupportedOperationException: This method is not supported during startup at org.apache.myfaces.context.servlet.StartupServletExternalContextImpl.getSession(StartupServletExternalContextImpl.java:187) at org.apache.myfaces.view.impl.DefaultViewScopeHandler.generateViewScopeId(DefaultViewScopeHandler.java:128) at org.apache.myfaces.view.ViewScopeProxyMap.getWrapped(ViewScopeProxyMap.java:76) at org.apache.myfaces.view.ViewScopeProxyMap.get(ViewScopeProxyMap.java:109) at org.icefaces.util.EnvUtils.getViewParam(EnvUtils.java:1041) at org.icefaces.util.EnvUtils.isFocusManaged(EnvUtils.java:521) at org.icefaces.impl.event.BridgeSetup.<init>(BridgeSetup.java:60) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at java.lang.Class.newInstance(Class.java:374) at org.apache.myfaces.shared.util.ClassUtils.newInstance(ClassUtils.java:411) at org.apache.myfaces.shared.util.ClassUtils.newInstance(ClassUtils.java:374) at org.apache.myfaces.config.FacesConfigurator.configureApplication(FacesConfigurator.java:649) at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:477) at org.apache.myfaces.webapp.AbstractFacesInitializer.buildConfiguration(AbstractFacesInitializer.java:416) at org.apache.myfaces.webapp.Jsp21FacesInitializer.initContainerIntegration(Jsp21FacesInitializer.java:73) at org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(AbstractFacesInitializer.java:172) at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:119) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4971) BTW. Some pom.xml files isn't updated to support myfaces profile. But users can simple fix it so it is not problem.

    ICEsoft JIRA Issue Tracker | 3 years ago | Krashan Brahmanjara
    java.lang.UnsupportedOperationException: This method is not supported during startup

    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. java.lang.UnsupportedOperationException

      This method is not supported in an UnloadableJiraServiceContainer

      at com.atlassian.jira.service.UnloadableJiraServiceContainer.run()
    2. com.atlassian.jira
      ServiceRunner.runService
      1. com.atlassian.jira.service.UnloadableJiraServiceContainer.run(UnloadableJiraServiceContainer.java:122)
      2. com.atlassian.jira.service.ServiceRunner.runService(ServiceRunner.java:77)
      2 frames