org.springframework.beans.factory.BeanCreationException

Error creating bean with name 'IUserSettingService': Scope 'session' is not active for the current thread; consider defining a scoped proxy for this bean if you intend to refer to it from a singleton; nested exception is java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request.

Samebug tips1

You don't have an active HTTP session when the bean is requested.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web443

  • via Unknown by Sulaiman Karmali,
  • via Unknown by Sulaiman Karmali,
  • Stack trace

    • org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'IUserSettingService': Scope 'session' is not active for the current thread; consider defining a scoped proxy for this bean if you intend to refer to it from a singleton; nested exception is java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:312) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.pentaho.platform.engine.core.system.objfac.spring.SpringPentahoObjectReference.getObject(SpringPentahoObjectReference.java:47) at org.pentaho.platform.engine.core.system.objfac.AggregateObjectFactory.get(AggregateObjectFactory.java:203) at org.pentaho.platform.engine.core.system.objfac.AggregateObjectFactory.get(AggregateObjectFactory.java:87) at org.pentaho.platform.engine.core.system.PentahoSystem.get(PentahoSystem.java:649) at org.pentaho.platform.engine.core.system.PentahoSystem.get(PentahoSystem.java:628) at org.pentaho.platform.web.http.api.resources.SchedulerOutputPathResolver.getSettingsService(SchedulerOutputPathResolver.java:30) at org.pentaho.platform.web.http.api.resources.SchedulerOutputPathResolver.getUserSettingOutputPath(SchedulerOutputPathResolver.java:86) at org.pentaho.platform.web.http.api.resources.SchedulerOutputPathResolver.resolveOutputFilePath(SchedulerOutputPathResolver.java:56) at org.pentaho.platform.web.http.api.resources.SchedulerResource.createJob(SchedulerResource.java:156) at org.pentaho.platform.plugin.services.importer.SolutionImportHandler.importFile(SolutionImportHandler.java:206) at org.pentaho.platform.plugin.services.importer.PentahoPlatformImporter.importFile(PentahoPlatformImporter.java:70) at org.pentaho.platform.plugin.services.importer.ArchiveLoader.loadAll(ArchiveLoader.java:48) at org.pentaho.platform.plugin.action.defaultcontent.DefaultContentSystemListener$1.call(DefaultContentSystemListener.java:39) at org.pentaho.platform.plugin.action.defaultcontent.DefaultContentSystemListener$1.call(DefaultContentSystemListener.java:26) at org.pentaho.platform.engine.security.SecurityHelper.runAsSystem(SecurityHelper.java:333) at org.pentaho.platform.plugin.action.defaultcontent.DefaultContentSystemListener.startup(DefaultContentSystemListener.java:26) at org.pentaho.platform.engine.core.system.PentahoSystem.notifySystemListenersOfStartup(PentahoSystem.java:363) at org.pentaho.platform.engine.core.system.PentahoSystem.access$000(PentahoSystem.java:57) at org.pentaho.platform.engine.core.system.PentahoSystem$1.call(PentahoSystem.java:300) at org.pentaho.platform.engine.core.system.PentahoSystem$1.call(PentahoSystem.java:297) at org.pentaho.platform.engine.core.system.PentahoSystem.runAsSystem(PentahoSystem.java:339) at org.pentaho.platform.engine.core.system.PentahoSystem.notifySystemListenersOfStartup(PentahoSystem.java:297) at org.pentaho.platform.engine.core.system.PentahoSystem.init(PentahoSystem.java:268) at org.pentaho.platform.engine.core.system.PentahoSystem.init(PentahoSystem.java:181) at org.pentaho.platform.web.http.context.SolutionContextListener.contextInitialized(SolutionContextListener.java:136) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065) at org.apache.catalina.core.StandardHost.start(StandardHost.java:840) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) at org.apache.catalina.core.StandardService.start(StandardService.java:525) at org.apache.catalina.core.StandardServer.start(StandardServer.java:754) at org.apache.catalina.startup.Catalina.start(Catalina.java:595) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    Михайло ТітовМихайло Тітов
    ivanszkypeterivanszkypeter
    Once,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    138 more bugmates