Uploaded image for project: 'Isis'
  1. Isis
  2. ISIS-947

Todo webapp throws exception when logging in DEBUG mode

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: viewer-wicket-1.7.0
    • Fix Version/s: tidy-up
    • Component/s: Core: Viewer: Wicket
    • Labels:
      None

      Description

      Hi Dan, here steps to reproduce.

      1. create todo thru archetype
      2. adapt logging.properties (file webapp\src\main\webapp\WEB-INF\logging.properties) - uncomment line 23

      log4j.rootCategory=DEBUG, Console

      3. start the webapp

      here the exception in console

      14:24:04,469  [IsisWicketApplication main       ERROR]  Failed to initialize
      com.google.inject.ProvisionException: Guice provision errors:
      
      1) Error in custom provider, java.lang.IllegalStateException: No service found for thread; make sure ((RequestScopedService)service).__isis_startRequest() is called first
        at org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:132)
        at org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:132)
        while locating org.apache.isis.core.runtime.system.IsisSystem
          for field at org.apache.isis.viewer.wicket.viewer.IsisWicketApplication.system(IsisWicketApplication.java:124)
        while locating webapp.ToDoApplication
      
      1 error
      	at com.google.inject.internal.Errors.throwProvisionExceptionIfErrorsExist(Errors.java:451)
      	at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:65)
      	at com.google.inject.internal.InjectorImpl.injectMembers(InjectorImpl.java:944)
      	at org.apache.isis.viewer.wicket.viewer.IsisWicketApplication.init(IsisWicketApplication.java:229)
      	at org.apache.wicket.Application.initApplication(Application.java:823)
      	at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:424)
      	at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:351)
      	at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
      	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      	at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713)
      	at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
      	at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
      	at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
      	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
      	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
      	at org.mortbay.jetty.Server.doStart(Server.java:224)
      	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      	at org.apache.isis.core.webserver.WebServerBootstrapper.bootstrap(WebServerBootstrapper.java:85)
      	at org.apache.isis.core.webserver.WebServer.run(WebServer.java:92)
      	at org.apache.isis.core.webserver.WebServer.main(WebServer.java:68)
      	at org.apache.isis.WebServer.main(WebServer.java:25)
      Caused by: java.lang.IllegalStateException: No service found for thread; make sure ((RequestScopedService)service).__isis_startRequest() is called first
      	at org.apache.isis.core.runtime.services.ServiceInstantiator$2.invoke(ServiceInstantiator.java:159)
      	at org.apache.isis.applib.services.queryresultscache.QueryResultsCache_$$_javassist_2.toString(QueryResultsCache_$$_javassist_2.java)
      	at java.lang.String.valueOf(Unknown Source)
      	at java.lang.StringBuilder.append(Unknown Source)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.invokeInjectorField(ServicesInjectorDefault.java:268)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.autowire(ServicesInjectorDefault.java:191)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.autowireViaFields(ServicesInjectorDefault.java:175)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.injectServices(ServicesInjectorDefault.java:159)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.injectServicesInto(ServicesInjectorDefault.java:126)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.injectServicesInto(ServicesInjectorDefault.java:132)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.autowireServicesAndContainer(ServicesInjectorDefault.java:281)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.setServices(ServicesInjectorDefault.java:80)
      	at org.apache.isis.core.runtime.persistence.PersistenceSessionFactoryDelegating.init(PersistenceSessionFactoryDelegating.java:133)
      	at org.apache.isis.core.runtime.system.session.IsisSessionFactoryDefault.init(IsisSessionFactoryDefault.java:197)
      	at org.apache.isis.core.runtime.system.IsisSystemFixturesHookAbstract.init(IsisSystemFixturesHookAbstract.java:122)
      	at org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:133)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      	at java.lang.reflect.Method.invoke(Unknown Source)
      	at com.google.inject.internal.ProviderMethod.get(ProviderMethod.java:104)
      	at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
      	at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
      	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
      	at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
      	at com.google.inject.Scopes$1$1.get(Scopes.java:65)
      	at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
      	at com.google.inject.internal.SingleFieldInjector.inject(SingleFieldInjector.java:53)
      	at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:110)
      	at com.google.inject.internal.MembersInjectorImpl$1.call(MembersInjectorImpl.java:75)
      	at com.google.inject.internal.MembersInjectorImpl$1.call(MembersInjectorImpl.java:73)
      	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1024)
      	at com.google.inject.internal.MembersInjectorImpl.injectAndNotify(MembersInjectorImpl.java:73)
      	at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:60)
      	... 20 more
      14:24:04,486  [WicketFilter         main       ERROR]  The initialization of an application with name 'WicketFilter' has failed.
      com.google.inject.ProvisionException: Guice provision errors:
      
      1) Error in custom provider, java.lang.IllegalStateException: No service found for thread; make sure ((RequestScopedService)service).__isis_startRequest() is called first
        at org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:132)
        at org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:132)
        while locating org.apache.isis.core.runtime.system.IsisSystem
          for field at org.apache.isis.viewer.wicket.viewer.IsisWicketApplication.system(IsisWicketApplication.java:124)
        while locating webapp.ToDoApplication
      
      1 error
      	at com.google.inject.internal.Errors.throwProvisionExceptionIfErrorsExist(Errors.java:451)
      	at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:65)
      	at com.google.inject.internal.InjectorImpl.injectMembers(InjectorImpl.java:944)
      	at org.apache.isis.viewer.wicket.viewer.IsisWicketApplication.init(IsisWicketApplication.java:229)
      	at org.apache.wicket.Application.initApplication(Application.java:823)
      	at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:424)
      	at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:351)
      	at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
      	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      	at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713)
      	at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
      	at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
      	at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
      	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
      	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
      	at org.mortbay.jetty.Server.doStart(Server.java:224)
      	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      	at org.apache.isis.core.webserver.WebServerBootstrapper.bootstrap(WebServerBootstrapper.java:85)
      	at org.apache.isis.core.webserver.WebServer.run(WebServer.java:92)
      	at org.apache.isis.core.webserver.WebServer.main(WebServer.java:68)
      	at org.apache.isis.WebServer.main(WebServer.java:25)
      Caused by: java.lang.IllegalStateException: No service found for thread; make sure ((RequestScopedService)service).__isis_startRequest() is called first
      	at org.apache.isis.core.runtime.services.ServiceInstantiator$2.invoke(ServiceInstantiator.java:159)
      	at org.apache.isis.applib.services.queryresultscache.QueryResultsCache_$$_javassist_2.toString(QueryResultsCache_$$_javassist_2.java)
      	at java.lang.String.valueOf(Unknown Source)
      	at java.lang.StringBuilder.append(Unknown Source)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.invokeInjectorField(ServicesInjectorDefault.java:268)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.autowire(ServicesInjectorDefault.java:191)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.autowireViaFields(ServicesInjectorDefault.java:175)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.injectServices(ServicesInjectorDefault.java:159)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.injectServicesInto(ServicesInjectorDefault.java:126)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.injectServicesInto(ServicesInjectorDefault.java:132)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.autowireServicesAndContainer(ServicesInjectorDefault.java:281)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.setServices(ServicesInjectorDefault.java:80)
      	at org.apache.isis.core.runtime.persistence.PersistenceSessionFactoryDelegating.init(PersistenceSessionFactoryDelegating.java:133)
      	at org.apache.isis.core.runtime.system.session.IsisSessionFactoryDefault.init(IsisSessionFactoryDefault.java:197)
      	at org.apache.isis.core.runtime.system.IsisSystemFixturesHookAbstract.init(IsisSystemFixturesHookAbstract.java:122)
      	at org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:133)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      	at java.lang.reflect.Method.invoke(Unknown Source)
      	at com.google.inject.internal.ProviderMethod.get(ProviderMethod.java:104)
      	at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
      	at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
      	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
      	at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
      	at com.google.inject.Scopes$1$1.get(Scopes.java:65)
      	at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
      	at com.google.inject.internal.SingleFieldInjector.inject(SingleFieldInjector.java:53)
      	at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:110)
      	at com.google.inject.internal.MembersInjectorImpl$1.call(MembersInjectorImpl.java:75)
      	at com.google.inject.internal.MembersInjectorImpl$1.call(MembersInjectorImpl.java:73)
      	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1024)
      	at com.google.inject.internal.MembersInjectorImpl.injectAndNotify(MembersInjectorImpl.java:73)
      	at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:60)
      	... 20 more
      14:24:04,516  [ObjectReflectorDefault main       INFO ]  shutting down org.apache.isis.core.metamodel.specloader.ObjectReflectorDefault@44a2786
      14:24:04,516  [Application          main       INFO ]  [WicketFilter] destroy: Wicket extensions initializer (wicket-jquery-ui-plugins)
      14:24:04,516  [Application          main       INFO ]  [WicketFilter] destroy: Wicket core library initializer
      14:24:04,516  [Application          main       INFO ]  [WicketFilter] destroy: Wicket extensions initializer
      14:24:04,542  [log                  main       WARN ]  failed WicketFilter: javax.servlet.ServletException: com.google.inject.ProvisionException: Guice provision errors:
      
      1) Error in custom provider, java.lang.IllegalStateException: No service found for thread; make sure ((RequestScopedService)service).__isis_startRequest() is called first
        at org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:132)
        at org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:132)
        while locating org.apache.isis.core.runtime.system.IsisSystem
          for field at org.apache.isis.viewer.wicket.viewer.IsisWicketApplication.system(IsisWicketApplication.java:124)
        while locating webapp.ToDoApplication
      
      1 error
      14:24:04,542  [log                  main       DEBUG]  EXCEPTION 
      javax.servlet.ServletException: com.google.inject.ProvisionException: Guice provision errors:
      
      1) Error in custom provider, java.lang.IllegalStateException: No service found for thread; make sure ((RequestScopedService)service).__isis_startRequest() is called first
        at org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:132)
        at org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:132)
        while locating org.apache.isis.core.runtime.system.IsisSystem
          for field at org.apache.isis.viewer.wicket.viewer.IsisWicketApplication.system(IsisWicketApplication.java:124)
        while locating webapp.ToDoApplication
      
      1 error
      	at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:450)
      	at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:351)
      	at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
      	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      	at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713)
      	at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
      	at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
      	at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
      	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
      	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
      	at org.mortbay.jetty.Server.doStart(Server.java:224)
      	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      	at org.apache.isis.core.webserver.WebServerBootstrapper.bootstrap(WebServerBootstrapper.java:85)
      	at org.apache.isis.core.webserver.WebServer.run(WebServer.java:92)
      	at org.apache.isis.core.webserver.WebServer.main(WebServer.java:68)
      	at org.apache.isis.WebServer.main(WebServer.java:25)
      Caused by: com.google.inject.ProvisionException: Guice provision errors:
      
      1) Error in custom provider, java.lang.IllegalStateException: No service found for thread; make sure ((RequestScopedService)service).__isis_startRequest() is called first
        at org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:132)
        at org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:132)
        while locating org.apache.isis.core.runtime.system.IsisSystem
          for field at org.apache.isis.viewer.wicket.viewer.IsisWicketApplication.system(IsisWicketApplication.java:124)
        while locating webapp.ToDoApplication
      
      1 error
      	at com.google.inject.internal.Errors.throwProvisionExceptionIfErrorsExist(Errors.java:451)
      	at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:65)
      	at com.google.inject.internal.InjectorImpl.injectMembers(InjectorImpl.java:944)
      	at org.apache.isis.viewer.wicket.viewer.IsisWicketApplication.init(IsisWicketApplication.java:229)
      	at org.apache.wicket.Application.initApplication(Application.java:823)
      	at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:424)
      	... 16 more
      Caused by: java.lang.IllegalStateException: No service found for thread; make sure ((RequestScopedService)service).__isis_startRequest() is called first
      	at org.apache.isis.core.runtime.services.ServiceInstantiator$2.invoke(ServiceInstantiator.java:159)
      	at org.apache.isis.applib.services.queryresultscache.QueryResultsCache_$$_javassist_2.toString(QueryResultsCache_$$_javassist_2.java)
      	at java.lang.String.valueOf(Unknown Source)
      	at java.lang.StringBuilder.append(Unknown Source)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.invokeInjectorField(ServicesInjectorDefault.java:268)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.autowire(ServicesInjectorDefault.java:191)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.autowireViaFields(ServicesInjectorDefault.java:175)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.injectServices(ServicesInjectorDefault.java:159)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.injectServicesInto(ServicesInjectorDefault.java:126)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.injectServicesInto(ServicesInjectorDefault.java:132)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.autowireServicesAndContainer(ServicesInjectorDefault.java:281)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.setServices(ServicesInjectorDefault.java:80)
      	at org.apache.isis.core.runtime.persistence.PersistenceSessionFactoryDelegating.init(PersistenceSessionFactoryDelegating.java:133)
      	at org.apache.isis.core.runtime.system.session.IsisSessionFactoryDefault.init(IsisSessionFactoryDefault.java:197)
      	at org.apache.isis.core.runtime.system.IsisSystemFixturesHookAbstract.init(IsisSystemFixturesHookAbstract.java:122)
      	at org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:133)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      	at java.lang.reflect.Method.invoke(Unknown Source)
      	at com.google.inject.internal.ProviderMethod.get(ProviderMethod.java:104)
      	at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
      	at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
      	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
      	at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
      	at com.google.inject.Scopes$1$1.get(Scopes.java:65)
      	at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
      	at com.google.inject.internal.SingleFieldInjector.inject(SingleFieldInjector.java:53)
      	at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:110)
      	at com.google.inject.internal.MembersInjectorImpl$1.call(MembersInjectorImpl.java:75)
      	at com.google.inject.internal.MembersInjectorImpl$1.call(MembersInjectorImpl.java:73)
      	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1024)
      	at com.google.inject.internal.MembersInjectorImpl.injectAndNotify(MembersInjectorImpl.java:73)
      	at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:60)
      	... 20 more
      14:24:04,545  [log                  main       ERROR]  Nested in javax.servlet.ServletException: com.google.inject.ProvisionException: Guice provision errors:
      
      1) Error in custom provider, java.lang.IllegalStateException: No service found for thread; make sure ((RequestScopedService)service).__isis_startRequest() is called first
        at org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:132)
        at org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:132)
        while locating org.apache.isis.core.runtime.system.IsisSystem
          for field at org.apache.isis.viewer.wicket.viewer.IsisWicketApplication.system(IsisWicketApplication.java:124)
        while locating webapp.ToDoApplication
      
      1 error:
      com.google.inject.ProvisionException: Guice provision errors:
      
      1) Error in custom provider, java.lang.IllegalStateException: No service found for thread; make sure ((RequestScopedService)service).__isis_startRequest() is called first
        at org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:132)
        at org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:132)
        while locating org.apache.isis.core.runtime.system.IsisSystem
          for field at org.apache.isis.viewer.wicket.viewer.IsisWicketApplication.system(IsisWicketApplication.java:124)
        while locating webapp.ToDoApplication
      
      1 error
      	at com.google.inject.internal.Errors.throwProvisionExceptionIfErrorsExist(Errors.java:451)
      	at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:65)
      	at com.google.inject.internal.InjectorImpl.injectMembers(InjectorImpl.java:944)
      	at org.apache.isis.viewer.wicket.viewer.IsisWicketApplication.init(IsisWicketApplication.java:229)
      	at org.apache.wicket.Application.initApplication(Application.java:823)
      	at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:424)
      	at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:351)
      	at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
      	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      	at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713)
      	at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
      	at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
      	at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
      	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
      	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
      	at org.mortbay.jetty.Server.doStart(Server.java:224)
      	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      	at org.apache.isis.core.webserver.WebServerBootstrapper.bootstrap(WebServerBootstrapper.java:85)
      	at org.apache.isis.core.webserver.WebServer.run(WebServer.java:92)
      	at org.apache.isis.core.webserver.WebServer.main(WebServer.java:68)
      	at org.apache.isis.WebServer.main(WebServer.java:25)
      Caused by: java.lang.IllegalStateException: No service found for thread; make sure ((RequestScopedService)service).__isis_startRequest() is called first
      	at org.apache.isis.core.runtime.services.ServiceInstantiator$2.invoke(ServiceInstantiator.java:159)
      	at org.apache.isis.applib.services.queryresultscache.QueryResultsCache_$$_javassist_2.toString(QueryResultsCache_$$_javassist_2.java)
      	at java.lang.String.valueOf(Unknown Source)
      	at java.lang.StringBuilder.append(Unknown Source)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.invokeInjectorField(ServicesInjectorDefault.java:268)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.autowire(ServicesInjectorDefault.java:191)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.autowireViaFields(ServicesInjectorDefault.java:175)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.injectServices(ServicesInjectorDefault.java:159)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.injectServicesInto(ServicesInjectorDefault.java:126)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.injectServicesInto(ServicesInjectorDefault.java:132)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.autowireServicesAndContainer(ServicesInjectorDefault.java:281)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.setServices(ServicesInjectorDefault.java:80)
      	at org.apache.isis.core.runtime.persistence.PersistenceSessionFactoryDelegating.init(PersistenceSessionFactoryDelegating.java:133)
      	at org.apache.isis.core.runtime.system.session.IsisSessionFactoryDefault.init(IsisSessionFactoryDefault.java:197)
      	at org.apache.isis.core.runtime.system.IsisSystemFixturesHookAbstract.init(IsisSystemFixturesHookAbstract.java:122)
      	at org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:133)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      	at java.lang.reflect.Method.invoke(Unknown Source)
      	at com.google.inject.internal.ProviderMethod.get(ProviderMethod.java:104)
      	at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
      	at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
      	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
      	at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
      	at com.google.inject.Scopes$1$1.get(Scopes.java:65)
      	at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
      	at com.google.inject.internal.SingleFieldInjector.inject(SingleFieldInjector.java:53)
      	at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:110)
      	at com.google.inject.internal.MembersInjectorImpl$1.call(MembersInjectorImpl.java:75)
      	at com.google.inject.internal.MembersInjectorImpl$1.call(MembersInjectorImpl.java:73)
      	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1024)
      	at com.google.inject.internal.MembersInjectorImpl.injectAndNotify(MembersInjectorImpl.java:73)
      	at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:60)
      	... 20 more
      14:24:04,546  [log                  main       WARN ]  Failed startup of context org.mortbay.jetty.webapp.WebAppContext@3f952ad4{,src/main/webapp}
      javax.servlet.ServletException: com.google.inject.ProvisionException: Guice provision errors:
      
      1) Error in custom provider, java.lang.IllegalStateException: No service found for thread; make sure ((RequestScopedService)service).__isis_startRequest() is called first
        at org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:132)
        at org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:132)
        while locating org.apache.isis.core.runtime.system.IsisSystem
          for field at org.apache.isis.viewer.wicket.viewer.IsisWicketApplication.system(IsisWicketApplication.java:124)
        while locating webapp.ToDoApplication
      
      1 error
      	at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:450)
      	at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:351)
      	at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
      	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      	at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713)
      	at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
      	at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
      	at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
      	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
      	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
      	at org.mortbay.jetty.Server.doStart(Server.java:224)
      	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      	at org.apache.isis.core.webserver.WebServerBootstrapper.bootstrap(WebServerBootstrapper.java:85)
      	at org.apache.isis.core.webserver.WebServer.run(WebServer.java:92)
      	at org.apache.isis.core.webserver.WebServer.main(WebServer.java:68)
      	at org.apache.isis.WebServer.main(WebServer.java:25)
      Caused by: com.google.inject.ProvisionException: Guice provision errors:
      
      1) Error in custom provider, java.lang.IllegalStateException: No service found for thread; make sure ((RequestScopedService)service).__isis_startRequest() is called first
        at org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:132)
        at org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:132)
        while locating org.apache.isis.core.runtime.system.IsisSystem
          for field at org.apache.isis.viewer.wicket.viewer.IsisWicketApplication.system(IsisWicketApplication.java:124)
        while locating webapp.ToDoApplication
      
      1 error
      	at com.google.inject.internal.Errors.throwProvisionExceptionIfErrorsExist(Errors.java:451)
      	at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:65)
      	at com.google.inject.internal.InjectorImpl.injectMembers(InjectorImpl.java:944)
      	at org.apache.isis.viewer.wicket.viewer.IsisWicketApplication.init(IsisWicketApplication.java:229)
      	at org.apache.wicket.Application.initApplication(Application.java:823)
      	at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:424)
      	... 16 more
      Caused by: java.lang.IllegalStateException: No service found for thread; make sure ((RequestScopedService)service).__isis_startRequest() is called first
      	at org.apache.isis.core.runtime.services.ServiceInstantiator$2.invoke(ServiceInstantiator.java:159)
      	at org.apache.isis.applib.services.queryresultscache.QueryResultsCache_$$_javassist_2.toString(QueryResultsCache_$$_javassist_2.java)
      	at java.lang.String.valueOf(Unknown Source)
      	at java.lang.StringBuilder.append(Unknown Source)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.invokeInjectorField(ServicesInjectorDefault.java:268)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.autowire(ServicesInjectorDefault.java:191)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.autowireViaFields(ServicesInjectorDefault.java:175)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.injectServices(ServicesInjectorDefault.java:159)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.injectServicesInto(ServicesInjectorDefault.java:126)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.injectServicesInto(ServicesInjectorDefault.java:132)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.autowireServicesAndContainer(ServicesInjectorDefault.java:281)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.setServices(ServicesInjectorDefault.java:80)
      	at org.apache.isis.core.runtime.persistence.PersistenceSessionFactoryDelegating.init(PersistenceSessionFactoryDelegating.java:133)
      	at org.apache.isis.core.runtime.system.session.IsisSessionFactoryDefault.init(IsisSessionFactoryDefault.java:197)
      	at org.apache.isis.core.runtime.system.IsisSystemFixturesHookAbstract.init(IsisSystemFixturesHookAbstract.java:122)
      	at org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:133)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      	at java.lang.reflect.Method.invoke(Unknown Source)
      	at com.google.inject.internal.ProviderMethod.get(ProviderMethod.java:104)
      	at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
      	at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
      	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
      	at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
      	at com.google.inject.Scopes$1$1.get(Scopes.java:65)
      	at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
      	at com.google.inject.internal.SingleFieldInjector.inject(SingleFieldInjector.java:53)
      	at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:110)
      	at com.google.inject.internal.MembersInjectorImpl$1.call(MembersInjectorImpl.java:75)
      	at com.google.inject.internal.MembersInjectorImpl$1.call(MembersInjectorImpl.java:73)
      	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1024)
      	at com.google.inject.internal.MembersInjectorImpl.injectAndNotify(MembersInjectorImpl.java:73)
      	at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:60)
      	... 20 more
      14:24:04,548  [log                  main       ERROR]  Nested in javax.servlet.ServletException: com.google.inject.ProvisionException: Guice provision errors:
      
      1) Error in custom provider, java.lang.IllegalStateException: No service found for thread; make sure ((RequestScopedService)service).__isis_startRequest() is called first
        at org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:132)
        at org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:132)
        while locating org.apache.isis.core.runtime.system.IsisSystem
          for field at org.apache.isis.viewer.wicket.viewer.IsisWicketApplication.system(IsisWicketApplication.java:124)
        while locating webapp.ToDoApplication
      
      1 error:
      com.google.inject.ProvisionException: Guice provision errors:
      
      1) Error in custom provider, java.lang.IllegalStateException: No service found for thread; make sure ((RequestScopedService)service).__isis_startRequest() is called first
        at org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:132)
        at org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:132)
        while locating org.apache.isis.core.runtime.system.IsisSystem
          for field at org.apache.isis.viewer.wicket.viewer.IsisWicketApplication.system(IsisWicketApplication.java:124)
        while locating webapp.ToDoApplication
      
      1 error
      	at com.google.inject.internal.Errors.throwProvisionExceptionIfErrorsExist(Errors.java:451)
      	at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:65)
      	at com.google.inject.internal.InjectorImpl.injectMembers(InjectorImpl.java:944)
      	at org.apache.isis.viewer.wicket.viewer.IsisWicketApplication.init(IsisWicketApplication.java:229)
      	at org.apache.wicket.Application.initApplication(Application.java:823)
      	at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:424)
      	at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:351)
      	at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
      	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      	at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713)
      	at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
      	at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
      	at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
      	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
      	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
      	at org.mortbay.jetty.Server.doStart(Server.java:224)
      	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      	at org.apache.isis.core.webserver.WebServerBootstrapper.bootstrap(WebServerBootstrapper.java:85)
      	at org.apache.isis.core.webserver.WebServer.run(WebServer.java:92)
      	at org.apache.isis.core.webserver.WebServer.main(WebServer.java:68)
      	at org.apache.isis.WebServer.main(WebServer.java:25)
      Caused by: java.lang.IllegalStateException: No service found for thread; make sure ((RequestScopedService)service).__isis_startRequest() is called first
      	at org.apache.isis.core.runtime.services.ServiceInstantiator$2.invoke(ServiceInstantiator.java:159)
      	at org.apache.isis.applib.services.queryresultscache.QueryResultsCache_$$_javassist_2.toString(QueryResultsCache_$$_javassist_2.java)
      	at java.lang.String.valueOf(Unknown Source)
      	at java.lang.StringBuilder.append(Unknown Source)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.invokeInjectorField(ServicesInjectorDefault.java:268)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.autowire(ServicesInjectorDefault.java:191)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.autowireViaFields(ServicesInjectorDefault.java:175)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.injectServices(ServicesInjectorDefault.java:159)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.injectServicesInto(ServicesInjectorDefault.java:126)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.injectServicesInto(ServicesInjectorDefault.java:132)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.autowireServicesAndContainer(ServicesInjectorDefault.java:281)
      	at org.apache.isis.core.metamodel.services.ServicesInjectorDefault.setServices(ServicesInjectorDefault.java:80)
      	at org.apache.isis.core.runtime.persistence.PersistenceSessionFactoryDelegating.init(PersistenceSessionFactoryDelegating.java:133)
      	at org.apache.isis.core.runtime.system.session.IsisSessionFactoryDefault.init(IsisSessionFactoryDefault.java:197)
      	at org.apache.isis.core.runtime.system.IsisSystemFixturesHookAbstract.init(IsisSystemFixturesHookAbstract.java:122)
      	at org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:133)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      	at java.lang.reflect.Method.invoke(Unknown Source)
      	at com.google.inject.internal.ProviderMethod.get(ProviderMethod.java:104)
      	at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
      	at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
      	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
      	at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
      	at com.google.inject.Scopes$1$1.get(Scopes.java:65)
      	at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
      	at com.google.inject.internal.SingleFieldInjector.inject(SingleFieldInjector.java:53)
      	at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:110)
      	at com.google.inject.internal.MembersInjectorImpl$1.call(MembersInjectorImpl.java:75)
      	at com.google.inject.internal.MembersInjectorImpl$1.call(MembersInjectorImpl.java:73)
      	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1024)
      	at com.google.inject.internal.MembersInjectorImpl.injectAndNotify(MembersInjectorImpl.java:73)
      	at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:60)
      	... 20 more
      14:24:04,549  [log                  main       DEBUG]  started org.mortbay.jetty.webapp.WebAppContext@3f952ad4{,src/main/webapp}
      

        Attachments

          Activity

            People

            • Assignee:
              danhaywood Daniel Keir Haywood
              Reporter:
              niv Vladimir Nisevic
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: