Hi,
I have one service application running on tomcat, the configuration on server side is as below
on client side following is the configuration:Code:<bean id="someService" class="service.impl.someServiceImpl" /> <bean name="serviceExporter" class="org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter"> <property name="service" ref="someService"/> <property name="serviceInterface" value="service.ServiceIntf"/> </bean>
Object clientService gets created successfully but when we call method with this object below exception gets printed:Code:<bean id="clientService" class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean"> <property name="serviceUrl" value="http://localhost:8080/webapp-app/service/someService"/> <property name="serviceInterface" value="service.ServiceIntf"/> </bean>
when I directly copy url: http://localhost:8080/webapp-app/service/someService in browser then below exception gets thrown:Code:Cannot access HTTP invoker remote service at [http://localhost:8080/rvs-webapp/service/rvsService]
Can anyone please help me in figuring out whts going wrong?Code:HTTP Status 500 - -------------------------------------------------------------------------------- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.io.EOFException java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2281) java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2750) java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:780) java.io.ObjectInputStream.<init>(ObjectInputStream.java:280) org.springframework.core.ConfigurableObjectInputStream.<init>(ConfigurableObjectInputStream.java:47) org.springframework.remoting.rmi.CodebaseAwareObjectInputStream.<init>(CodebaseAwareObjectInputStream.java:81) org.springframework.remoting.rmi.RemoteInvocationSerializingExporter.createObjectInputStream(RemoteInvocationSerializingExporter.java:105) org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter.readRemoteInvocation(HttpInvokerServiceExporter.java:115) org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter.readRemoteInvocation(HttpInvokerServiceExporter.java:96) org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter.handleRequest(HttpInvokerServiceExporter.java:73) org.springframework.web.context.support.HttpRequestHandlerServlet.service(HttpRequestHandlerServlet.java:67) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) note The full stack trace of the root cause is available in the Apache Tomcat/6.0.24 logs.
Thanks!!!


Reply With Quote
