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]

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

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

Solutions on the web69

  • via JIRA by Alice Carey, 1 year ago
    '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]
  • via JIRA by Alice Carey, 1 year ago
    '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]
  • via Stack Overflow by VinayVeluri
    , 1 year ago
    Could not access HTTP invoker remote service at [https://localhost:8443/service/http/Aservice]; nested exception is org.apache.commons.httpclient.HttpException: Did not receive successful HTTP response: status code = 401, status message = [Full authentication is required to access this resource]
  • Stack trace

    • 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

    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 user
    Once, 1 year ago