Announcement Announcement Module
Collapse
No announcement yet.
HTTP Invoker Remote Service exception Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • HTTP Invoker Remote Service exception

    I am having a problems with a jsf page when the before render method is called
    before render makes a call to a managed bean to then return a list of users.
    the managed bean is defined as such
    @ManagedProperty(value = "#{userService}")
    IUserService userService;

    when the findUserByName method is called I get the following exception.
    I have checked to make sure that the value passed to the method is not null
    I have checked my jboss management console and know that the http://localhost/coreservice url is functioning and all httpservice urls are being handled by the
    org.springframework.web.servlet.DispatcherServlet class
    Does anyone have any suggestions ?

    SEVERE: Error Rendering View[/module/main.xhtml]
    org.springframework.remoting.RemoteConnectFailureE xception: Could not connect to HTTP invoker remote service at [http://localhost/coreservice/httpser...rviceInvoker]; nested exception is java.net.ConnectException: Connection refused: connect
    at org.springframework.remoting.httpinvoker.HttpInvok erClientInterceptor.convertHttpInvokerAccessExcept ion(HttpInvokerClientInterceptor.java:202)
    at org.springframework.remoting.httpinvoker.HttpInvok erClientInterceptor.invoke(HttpInvokerClientInterc eptor.java:144)
    at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :171)
    at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:204)
    at $Proxy300.findUserByName(Unknown Source)
    at com.cardgroup.cbrp.litebean.module.MainBean.before Render(MainBean.java:113)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.operamasks.faces.binding.ModelBean.invokeMetho d(ModelBean.java:319)
    at org.operamasks.faces.binding.ModelBean.invoke(Mode lBean.java:350)
    at org.operamasks.faces.binding.impl.MethodAdapter.in voke(MethodAdapter.java:48)
    at org.operamasks.faces.binding.impl.PhaseListenerBin ding$BeforeRenderMethodAdapter.invoke(PhaseListene rBinding.java:157)
    at org.operamasks.faces.binding.impl.CompositeMethodA dapter.invoke(CompositeMethodAdapter.java:62)
    at javax.faces.component.UIViewRoot.notifyPhaseListen ers(UIViewRoot.java:618)
    at javax.faces.component.UIViewRoot.encodeBegin(UIVie wRoot.java:567)
    at javax.faces.component.UIComponent.encodeAll(UIComp onent.java:884)
    at org.operamasks.faces.facelets.FaceletViewHandlerHo ok.renderView(FaceletViewHandlerHook.java:315)
    at org.operamasks.faces.lifecycle.RenderResponse.exec ute(RenderResponse.java:73)
    at org.operamasks.faces.lifecycle.LifecycleImpl.doPha se(LifecycleImpl.java:135)
    at org.operamasks.faces.lifecycle.LifecycleImpl.rende r(LifecycleImpl.java:96)
    at javax.faces.webapp.FacesServlet.service(FacesServl et.java:245)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:206)
    at org.operamasks.faces.webapp.filter.DefaultSuffixRe director.doFilter(DefaultSuffixRedirector.java:73)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:206)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doF ilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:230)
    at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:175)
    at org.jboss.web.tomcat.security.SecurityAssociationV alve.invoke(SecurityAssociationValve.java:179)
    at org.apache.catalina.authenticator.AuthenticatorBas e.invoke(AuthenticatorBase.java:524)
    at org.jboss.web.tomcat.security.JaccContextValve.inv oke(JaccContextValve.java:84)
    at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:102)
    at org.josso.tc55.agent.SSOAgentValve.invoke(SSOAgent Valve.java:689)
    at org.jboss.web.tomcat.service.jca.CachedConnectionV alve.invoke(CachedConnectionValve.java:157)
    at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:262)
    at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:844)
    at org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run( JIoEndpoint.java:446)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(Unknown Source)
    at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at sun.net.NetworkClient.doConnect(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.http.HttpClient.<init>(Unknown Source)
    at sun.net.www.http.HttpClient.New(Unknown Source)
    at sun.net.www.http.HttpClient.New(Unknown Source)
    at sun.net.http://www.protocol.http.HttpURLConn...Client(Unknown Source)
    at sun.net.http://www.protocol.http.HttpURLConn...onnect(Unknown Source)
    at sun.net.http://www.protocol.http.HttpURLConn...onnect(Unknown Source)
    at sun.net.http://www.protocol.http.HttpURLConn...Stream(Unknown Source)
    at org.springframework.remoting.httpinvoker.SimpleHtt pInvokerRequestExecutor.writeRequestBody(SimpleHtt pInvokerRequestExecutor.java:122)
    at org.springframework.remoting.httpinvoker.SimpleHtt pInvokerRequestExecutor.doExecuteRequest(SimpleHtt pInvokerRequestExecutor.java:61)
    at org.springframework.remoting.httpinvoker.AbstractH ttpInvokerRequestExecutor.executeRequest(AbstractH ttpInvokerRequestExecutor.java:134)
    at org.springframework.remoting.httpinvoker.HttpInvok erClientInterceptor.executeRequest(HttpInvokerClie ntInterceptor.java:191)
    at org.springframework.remoting.httpinvoker.HttpInvok erClientInterceptor.executeRequest(HttpInvokerClie ntInterceptor.java:173)
    at org.springframework.remoting.httpinvoker.HttpInvok erClientInterceptor.invoke(HttpInvokerClientInterc eptor.java:141)
    ... 44 more

  • #2
    As a follow up to this post I have dug a bit deeper and found out that the problem is that I am trying to set the location of the service using params from the invokerService.properties file. Unfortunately these properties are not getting read from the properties file. This is causing the service to try to connect on port 80 instead of the port that the service is running on (8080).
    Has anyone else had problems with the properties not being resolved from this file ?

    Comment

    Working...
    X