org.springframework.remoting.RemoteAccessException: Could not access HTTP invoker remote service at [http://localhost:8080/onyx-cartagene/remoting/InstrumentExecutionService]; nested exception is org.apache.commons.httpclient.HttpException: Did not receive successful HTTP response: status code = 500, status message = [Error creating bean with name '/InstrumentExecutionService' defined in class path resource [META-INF/spring/remote-api-export.xml]: Cannot resolve reference to bean 'instrumentExecutionService' while setting bean property 'service'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'instrumentExecutionService' defined in class path resource [META-INF/spring/remote-api-server.xml]: Cannot resolve reference to bean 'activeInstrumentRunService' while setting bean property 'activeInstrumentRunService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'activeInstrumentRunService' defined in class path resource [META-INF/spring/jade-core/beans.xml]: Cannot resolve reference to bean 'userSessionService' while setting bean property 'userSessionService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userSessionService' defined in ServletContext resource [/WEB-INF/spring/context.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: you can only locate or create sessions in the context of a request cycle]

JIRA | Alice Carey | 8 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    It seems there is a problem when we take too much time to make the noddle test. I took more than 5 minutes to make a test in cognitive application and I even went afk for a few, and when I tried to end the noddle test, I got an error message with the following stack trace. I believe this might be a problem with the session end time, because otherwise, the noddle test works perfecly well. INFO: Executing runner 2009-03-30 10:32:26 org.obiba.onyx.jade.client.JnlpClient main GRAVE: Unexpected error while executing runner org.springframework.remoting.RemoteAccessException: Could not access HTTP invoker remote service at [http://localhost:8080/onyx-cartagene/remoting/InstrumentExecutionService]; nested exception is org.apache.commons.httpclient.HttpException: Did not receive successful HTTP response: status code = 500, status message = [Error creating bean with name '/InstrumentExecutionService' defined in class path resource [META-INF/spring/remote-api-export.xml]: Cannot resolve reference to bean 'instrumentExecutionService' while setting bean property 'service'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'instrumentExecutionService' defined in class path resource [META-INF/spring/remote-api-server.xml]: Cannot resolve reference to bean 'activeInstrumentRunService' while setting bean property 'activeInstrumentRunService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'activeInstrumentRunService' defined in class path resource [META-INF/spring/jade-core/beans.xml]: Cannot resolve reference to bean 'userSessionService' while setting bean property 'userSessionService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userSessionService' defined in ServletContext resource [/WEB-INF/spring/context.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: you can only locate or create sessions in the context of a request cycle] at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.convertHttpInvokerAccessException(HttpInvokerClientInterceptor.java:211) at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.invoke(HttpInvokerClientInterceptor.java:144) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy0.addOutputParameterValues(Unknown Source) at org.obiba.onyx.jade.instrument.cardiffuniversity.NoddleTestInstrumentRunner.sendDataToServer(NoddleTestInstrumentRunner.java:194) at org.obiba.onyx.jade.instrument.cardiffuniversity.NoddleTestInstrumentRunner.getDataFiles(NoddleTestInstrumentRunner.java:129) at org.obiba.onyx.jade.instrument.cardiffuniversity.NoddleTestInstrumentRunner.run(NoddleTestInstrumentRunner.java:83) at org.obiba.onyx.jade.client.JnlpClient.main(JnlpClient.java:51) 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.sun.javaws.Launcher.executeApplication(Unknown Source) at com.sun.javaws.Launcher.executeMainClass(Unknown Source) at com.sun.javaws.Launcher.doLaunchApp(Unknown Source) at com.sun.javaws.Launcher.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: org.apache.commons.httpclient.HttpException: Did not receive successful HTTP response: status code = 500, status message = [Error creating bean with name '/InstrumentExecutionService' defined in class path resource [META-INF/spring/remote-api-export.xml]: Cannot resolve reference to bean 'instrumentExecutionService' while setting bean property 'service'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'instrumentExecutionService' defined in class path resource [META-INF/spring/remote-api-server.xml]: Cannot resolve reference to bean 'activeInstrumentRunService' while setting bean property 'activeInstrumentRunService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'activeInstrumentRunService' defined in class path resource [META-INF/spring/jade-core/beans.xml]: Cannot resolve reference to bean 'userSessionService' while setting bean property 'userSessionService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userSessionService' defined in ServletContext resource [/WEB-INF/spring/context.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: you can only locate or create sessions in the context of a request cycle] at org.springframework.remoting.httpinvoker.CommonsHttpInvokerRequestExecutor.validateResponse(CommonsHttpInvokerRequestExecutor.java:213) at org.springframework.remoting.httpinvoker.CommonsHttpInvokerRequestExecutor.doExecuteRequest(CommonsHttpInvokerRequestExecutor.java:130) at org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor.executeRequest(AbstractHttpInvokerRequestExecutor.java:136) at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.executeRequest(HttpInvokerClientInterceptor.java:191) at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.executeRequest(HttpInvokerClientInterceptor.java:173) at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.invoke(HttpInvokerClientInterceptor.java:141) ... 16 more 2009-03-30 10:32:26 org.obiba.onyx.jade.client.JnlpClient main INFO: Shutting down runner 2009-03-30 10:32:26 org.obiba.onyx.jade.client.JnlpClient main GRAVE: Unexpected error while initializing runner {} org.springframework.remoting.RemoteAccessException: Could not access HTTP invoker remote service at [http://localhost:8080/onyx-cartagene/remoting/InstrumentExecutionService]; nested exception is org.apache.commons.httpclient.HttpException: Did not receive successful HTTP response: status code = 500, status message = [Error creating bean with name '/InstrumentExecutionService' defined in class path resource [META-INF/spring/remote-api-export.xml]: Cannot resolve reference to bean 'instrumentExecutionService' while setting bean property 'service'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'instrumentExecutionService' defined in class path resource [META-INF/spring/remote-api-server.xml]: Cannot resolve reference to bean 'activeInstrumentRunService' while setting bean property 'activeInstrumentRunService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'activeInstrumentRunService' defined in class path resource [META-INF/spring/jade-core/beans.xml]: Cannot resolve reference to bean 'userSessionService' while setting bean property 'userSessionService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userSessionService' defined in ServletContext resource [/WEB-INF/spring/context.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: you can only locate or create sessions in the context of a request cycle] at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.convertHttpInvokerAccessException(HttpInvokerClientInterceptor.java:211) at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.invoke(HttpInvokerClientInterceptor.java:144) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy0.instrumentRunnerError(Unknown Source) at org.obiba.onyx.jade.client.JnlpClient.main(JnlpClient.java:54) 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.sun.javaws.Launcher.executeApplication(Unknown Source) at com.sun.javaws.Launcher.executeMainClass(Unknown Source) at com.sun.javaws.Launcher.doLaunchApp(Unknown Source) at com.sun.javaws.Launcher.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: org.apache.commons.httpclient.HttpException: Did not receive successful HTTP response: status code = 500, status message = [Error creating bean with name '/InstrumentExecutionService' defined in class path resource [META-INF/spring/remote-api-export.xml]: Cannot resolve reference to bean 'instrumentExecutionService' while setting bean property 'service'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'instrumentExecutionService' defined in class path resource [META-INF/spring/remote-api-server.xml]: Cannot resolve reference to bean 'activeInstrumentRunService' while setting bean property 'activeInstrumentRunService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'activeInstrumentRunService' defined in class path resource [META-INF/spring/jade-core/beans.xml]: Cannot resolve reference to bean 'userSessionService' while setting bean property 'userSessionService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userSessionService' defined in ServletContext resource [/WEB-INF/spring/context.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: you can only locate or create sessions in the context of a request cycle] at org.springframework.remoting.httpinvoker.CommonsHttpInvokerRequestExecutor.validateResponse(CommonsHttpInvokerRequestExecutor.java:213) at org.springframework.remoting.httpinvoker.CommonsHttpInvokerRequestExecutor.doExecuteRequest(CommonsHttpInvokerRequestExecutor.java:130) at org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor.executeRequest(AbstractHttpInvokerRequestExecutor.java:136) at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.executeRequest(HttpInvokerClientInterceptor.java:191) at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.executeRequest(HttpInvokerClientInterceptor.java:173) at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.invoke(HttpInvokerClientInterceptor.java:141) ... 13 more 2009-03-30 10:32:26 org.obiba.onyx.jade.client.JnlpClient main INFO: Destroying application context 2009-03-30 10:32:26 org.springframework.context.support.AbstractApplicationContext doClose INFO: Closing org.springframework.context.support.GenericApplicationContext@164b09c: display name [org.springframework.context.support.GenericApplicationContext@164b09c]; startup date [Mon Mar 30 09:53:03 EDT 2009]; root of context hierarchy 2009-03-30 10:32:26 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry destroySingletons INFO: Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@c6eff5: defining beans [instrumentExecutionService,clientLoggingService,cookieRequestExecutor,remoteHandler,locale,instrumentRunner,externalAppHelper]; root of factory hierarchy #### Java Web Start Error: #### Could not access HTTP invoker remote service at [http://localhost:8080/onyx-cartagene/remoting/InstrumentExecutionService]; nested exception is org.apache.commons.httpclient.HttpException: Did not receive successful HTTP response: status code = 500, status message = [Error creating bean with name '/InstrumentExecutionService' defined in class path resource [META-INF/spring/remote-api-export.xml]: Cannot resolve reference to bean 'instrumentExecutionService' while setting bean property 'service'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'instrumentExecutionService' defined in class path resource [META-INF/spring/remote-api-server.xml]: Cannot resolve reference to bean 'activeInstrumentRunService' while setting bean property 'activeInstrumentRunService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'activeInstrumentRunService' defined in class path resource [META-INF/spring/jade-core/beans.xml]: Cannot resolve reference to bean 'userSessionService' while setting bean property 'userSessionService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userSessionService' defined in ServletContext resource [/WEB-INF/spring/context.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: you can only locate or create sessions in the context of a request cycle]

    JIRA | 8 years ago | Alice Carey
    org.springframework.remoting.RemoteAccessException: Could not access HTTP invoker remote service at [http://localhost:8080/onyx-cartagene/remoting/InstrumentExecutionService]; nested exception is org.apache.commons.httpclient.HttpException: Did not receive successful HTTP response: status code = 500, status message = [Error creating bean with name '/InstrumentExecutionService' defined in class path resource [META-INF/spring/remote-api-export.xml]: Cannot resolve reference to bean 'instrumentExecutionService' while setting bean property 'service'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'instrumentExecutionService' defined in class path resource [META-INF/spring/remote-api-server.xml]: Cannot resolve reference to bean 'activeInstrumentRunService' while setting bean property 'activeInstrumentRunService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'activeInstrumentRunService' defined in class path resource [META-INF/spring/jade-core/beans.xml]: Cannot resolve reference to bean 'userSessionService' while setting bean property 'userSessionService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userSessionService' defined in ServletContext resource [/WEB-INF/spring/context.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: you can only locate or create sessions in the context of a request cycle]
  2. 0

    It seems there is a problem when we take too much time to make the noddle test. I took more than 5 minutes to make a test in cognitive application and I even went afk for a few, and when I tried to end the noddle test, I got an error message with the following stack trace. I believe this might be a problem with the session end time, because otherwise, the noddle test works perfecly well. INFO: Executing runner 2009-03-30 10:32:26 org.obiba.onyx.jade.client.JnlpClient main GRAVE: Unexpected error while executing runner org.springframework.remoting.RemoteAccessException: Could not access HTTP invoker remote service at [http://localhost:8080/onyx-cartagene/remoting/InstrumentExecutionService]; nested exception is org.apache.commons.httpclient.HttpException: Did not receive successful HTTP response: status code = 500, status message = [Error creating bean with name '/InstrumentExecutionService' defined in class path resource [META-INF/spring/remote-api-export.xml]: Cannot resolve reference to bean 'instrumentExecutionService' while setting bean property 'service'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'instrumentExecutionService' defined in class path resource [META-INF/spring/remote-api-server.xml]: Cannot resolve reference to bean 'activeInstrumentRunService' while setting bean property 'activeInstrumentRunService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'activeInstrumentRunService' defined in class path resource [META-INF/spring/jade-core/beans.xml]: Cannot resolve reference to bean 'userSessionService' while setting bean property 'userSessionService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userSessionService' defined in ServletContext resource [/WEB-INF/spring/context.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: you can only locate or create sessions in the context of a request cycle] at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.convertHttpInvokerAccessException(HttpInvokerClientInterceptor.java:211) at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.invoke(HttpInvokerClientInterceptor.java:144) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy0.addOutputParameterValues(Unknown Source) at org.obiba.onyx.jade.instrument.cardiffuniversity.NoddleTestInstrumentRunner.sendDataToServer(NoddleTestInstrumentRunner.java:194) at org.obiba.onyx.jade.instrument.cardiffuniversity.NoddleTestInstrumentRunner.getDataFiles(NoddleTestInstrumentRunner.java:129) at org.obiba.onyx.jade.instrument.cardiffuniversity.NoddleTestInstrumentRunner.run(NoddleTestInstrumentRunner.java:83) at org.obiba.onyx.jade.client.JnlpClient.main(JnlpClient.java:51) 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.sun.javaws.Launcher.executeApplication(Unknown Source) at com.sun.javaws.Launcher.executeMainClass(Unknown Source) at com.sun.javaws.Launcher.doLaunchApp(Unknown Source) at com.sun.javaws.Launcher.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: org.apache.commons.httpclient.HttpException: Did not receive successful HTTP response: status code = 500, status message = [Error creating bean with name '/InstrumentExecutionService' defined in class path resource [META-INF/spring/remote-api-export.xml]: Cannot resolve reference to bean 'instrumentExecutionService' while setting bean property 'service'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'instrumentExecutionService' defined in class path resource [META-INF/spring/remote-api-server.xml]: Cannot resolve reference to bean 'activeInstrumentRunService' while setting bean property 'activeInstrumentRunService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'activeInstrumentRunService' defined in class path resource [META-INF/spring/jade-core/beans.xml]: Cannot resolve reference to bean 'userSessionService' while setting bean property 'userSessionService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userSessionService' defined in ServletContext resource [/WEB-INF/spring/context.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: you can only locate or create sessions in the context of a request cycle] at org.springframework.remoting.httpinvoker.CommonsHttpInvokerRequestExecutor.validateResponse(CommonsHttpInvokerRequestExecutor.java:213) at org.springframework.remoting.httpinvoker.CommonsHttpInvokerRequestExecutor.doExecuteRequest(CommonsHttpInvokerRequestExecutor.java:130) at org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor.executeRequest(AbstractHttpInvokerRequestExecutor.java:136) at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.executeRequest(HttpInvokerClientInterceptor.java:191) at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.executeRequest(HttpInvokerClientInterceptor.java:173) at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.invoke(HttpInvokerClientInterceptor.java:141) ... 16 more 2009-03-30 10:32:26 org.obiba.onyx.jade.client.JnlpClient main INFO: Shutting down runner 2009-03-30 10:32:26 org.obiba.onyx.jade.client.JnlpClient main GRAVE: Unexpected error while initializing runner {} org.springframework.remoting.RemoteAccessException: Could not access HTTP invoker remote service at [http://localhost:8080/onyx-cartagene/remoting/InstrumentExecutionService]; nested exception is org.apache.commons.httpclient.HttpException: Did not receive successful HTTP response: status code = 500, status message = [Error creating bean with name '/InstrumentExecutionService' defined in class path resource [META-INF/spring/remote-api-export.xml]: Cannot resolve reference to bean 'instrumentExecutionService' while setting bean property 'service'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'instrumentExecutionService' defined in class path resource [META-INF/spring/remote-api-server.xml]: Cannot resolve reference to bean 'activeInstrumentRunService' while setting bean property 'activeInstrumentRunService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'activeInstrumentRunService' defined in class path resource [META-INF/spring/jade-core/beans.xml]: Cannot resolve reference to bean 'userSessionService' while setting bean property 'userSessionService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userSessionService' defined in ServletContext resource [/WEB-INF/spring/context.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: you can only locate or create sessions in the context of a request cycle] at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.convertHttpInvokerAccessException(HttpInvokerClientInterceptor.java:211) at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.invoke(HttpInvokerClientInterceptor.java:144) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy0.instrumentRunnerError(Unknown Source) at org.obiba.onyx.jade.client.JnlpClient.main(JnlpClient.java:54) 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.sun.javaws.Launcher.executeApplication(Unknown Source) at com.sun.javaws.Launcher.executeMainClass(Unknown Source) at com.sun.javaws.Launcher.doLaunchApp(Unknown Source) at com.sun.javaws.Launcher.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: org.apache.commons.httpclient.HttpException: Did not receive successful HTTP response: status code = 500, status message = [Error creating bean with name '/InstrumentExecutionService' defined in class path resource [META-INF/spring/remote-api-export.xml]: Cannot resolve reference to bean 'instrumentExecutionService' while setting bean property 'service'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'instrumentExecutionService' defined in class path resource [META-INF/spring/remote-api-server.xml]: Cannot resolve reference to bean 'activeInstrumentRunService' while setting bean property 'activeInstrumentRunService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'activeInstrumentRunService' defined in class path resource [META-INF/spring/jade-core/beans.xml]: Cannot resolve reference to bean 'userSessionService' while setting bean property 'userSessionService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userSessionService' defined in ServletContext resource [/WEB-INF/spring/context.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: you can only locate or create sessions in the context of a request cycle] at org.springframework.remoting.httpinvoker.CommonsHttpInvokerRequestExecutor.validateResponse(CommonsHttpInvokerRequestExecutor.java:213) at org.springframework.remoting.httpinvoker.CommonsHttpInvokerRequestExecutor.doExecuteRequest(CommonsHttpInvokerRequestExecutor.java:130) at org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor.executeRequest(AbstractHttpInvokerRequestExecutor.java:136) at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.executeRequest(HttpInvokerClientInterceptor.java:191) at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.executeRequest(HttpInvokerClientInterceptor.java:173) at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.invoke(HttpInvokerClientInterceptor.java:141) ... 13 more 2009-03-30 10:32:26 org.obiba.onyx.jade.client.JnlpClient main INFO: Destroying application context 2009-03-30 10:32:26 org.springframework.context.support.AbstractApplicationContext doClose INFO: Closing org.springframework.context.support.GenericApplicationContext@164b09c: display name [org.springframework.context.support.GenericApplicationContext@164b09c]; startup date [Mon Mar 30 09:53:03 EDT 2009]; root of context hierarchy 2009-03-30 10:32:26 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry destroySingletons INFO: Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@c6eff5: defining beans [instrumentExecutionService,clientLoggingService,cookieRequestExecutor,remoteHandler,locale,instrumentRunner,externalAppHelper]; root of factory hierarchy #### Java Web Start Error: #### Could not access HTTP invoker remote service at [http://localhost:8080/onyx-cartagene/remoting/InstrumentExecutionService]; nested exception is org.apache.commons.httpclient.HttpException: Did not receive successful HTTP response: status code = 500, status message = [Error creating bean with name '/InstrumentExecutionService' defined in class path resource [META-INF/spring/remote-api-export.xml]: Cannot resolve reference to bean 'instrumentExecutionService' while setting bean property 'service'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'instrumentExecutionService' defined in class path resource [META-INF/spring/remote-api-server.xml]: Cannot resolve reference to bean 'activeInstrumentRunService' while setting bean property 'activeInstrumentRunService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'activeInstrumentRunService' defined in class path resource [META-INF/spring/jade-core/beans.xml]: Cannot resolve reference to bean 'userSessionService' while setting bean property 'userSessionService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userSessionService' defined in ServletContext resource [/WEB-INF/spring/context.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: you can only locate or create sessions in the context of a request cycle]

    JIRA | 8 years ago | Alice Carey
    org.springframework.remoting.RemoteAccessException: Could not access HTTP invoker remote service at [http://localhost:8080/onyx-cartagene/remoting/InstrumentExecutionService]; nested exception is org.apache.commons.httpclient.HttpException: Did not receive successful HTTP response: status code = 500, status message = [Error creating bean with name '/InstrumentExecutionService' defined in class path resource [META-INF/spring/remote-api-export.xml]: Cannot resolve reference to bean 'instrumentExecutionService' while setting bean property 'service'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'instrumentExecutionService' defined in class path resource [META-INF/spring/remote-api-server.xml]: Cannot resolve reference to bean 'activeInstrumentRunService' while setting bean property 'activeInstrumentRunService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'activeInstrumentRunService' defined in class path resource [META-INF/spring/jade-core/beans.xml]: Cannot resolve reference to bean 'userSessionService' while setting bean property 'userSessionService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userSessionService' defined in ServletContext resource [/WEB-INF/spring/context.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: you can only locate or create sessions in the context of a request cycle]

    1 unregistered visitors

    Root Cause Analysis

    1. org.apache.commons.httpclient.HttpException

      Did not receive successful HTTP response: status code = 500, status message = [Error creating bean with name '/InstrumentExecutionService' defined in class path resource [META-INF/spring/remote-api-export.xml]: Cannot resolve reference to bean 'instrumentExecutionService' while setting bean property 'service'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'instrumentExecutionService' defined in class path resource [META-INF/spring/remote-api-server.xml]: Cannot resolve reference to bean 'activeInstrumentRunService' while setting bean property 'activeInstrumentRunService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'activeInstrumentRunService' defined in class path resource [META-INF/spring/jade-core/beans.xml]: Cannot resolve reference to bean 'userSessionService' while setting bean property 'userSessionService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userSessionService' defined in ServletContext resource [/WEB-INF/spring/context.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: you can only locate or create sessions in the context of a request cycle]

      at org.springframework.remoting.httpinvoker.CommonsHttpInvokerRequestExecutor.validateResponse()
    2. Spring
      HttpInvokerClientInterceptor.invoke
      1. org.springframework.remoting.httpinvoker.CommonsHttpInvokerRequestExecutor.validateResponse(CommonsHttpInvokerRequestExecutor.java:213)
      2. org.springframework.remoting.httpinvoker.CommonsHttpInvokerRequestExecutor.doExecuteRequest(CommonsHttpInvokerRequestExecutor.java:130)
      3. org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor.executeRequest(AbstractHttpInvokerRequestExecutor.java:136)
      4. org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.executeRequest(HttpInvokerClientInterceptor.java:191)
      5. org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.executeRequest(HttpInvokerClientInterceptor.java:173)
      6. org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.invoke(HttpInvokerClientInterceptor.java:141)
      6 frames
    3. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      2 frames
    4. Unknown
      $Proxy0.instrumentRunnerError
      1. $Proxy0.instrumentRunnerError(Unknown Source)
      1 frame
    5. org.obiba.onyx
      JnlpClient.main
      1. org.obiba.onyx.jade.client.JnlpClient.main(JnlpClient.java:54)
      1 frame
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    7. com.sun.javaws
      Launcher.run
      1. com.sun.javaws.Launcher.executeApplication(Unknown Source)
      2. com.sun.javaws.Launcher.executeMainClass(Unknown Source)
      3. com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
      4. com.sun.javaws.Launcher.run(Unknown Source)
      4 frames
    8. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame