PDA

View Full Version : c++ client access Java server Error


kuake
06-09-2011, 01:57 PM
I use hessian-3.1.6,spring-2.5.6,server side written by Java
Remoting servlet is org.springframework.web.servlet.DispatcherServlet
and org.springframework.remoting.caucho.HessianService Exporter to hession

but when c++ client access the RUI:http://localhost:8080/myRemoteService
error:
严重: Servlet.service() for servlet remoting threw exception
java.io.IOException: expected 'c' in hessian input at -1
at org.springframework.remoting.caucho.Hessian2Skelet onInvoker.invoke(Hessian2SkeletonInvoker.java:77)
at org.springframework.remoting.caucho.HessianExporte r.invoke(HessianExporter.java:142)
at org.springframework.remoting.caucho.HessianService Exporter.handleRequest(HessianServiceExporter.java :70)
at org.springframework.web.servlet.mvc.HttpRequestHan dlerAdapter.handle(HttpRequestHandlerAdapter.java: 49)
at org.springframework.web.servlet.DispatcherServlet. doDispatch(DispatcherServlet.java:875)
at org.springframework.web.servlet.DispatcherServlet. doService(DispatcherServlet.java:807)
at org.springframework.web.servlet.FrameworkServlet.p rocessRequest(FrameworkServlet.java:571)
at org.springframework.web.servlet.FrameworkServlet.d oPost(FrameworkServlet.java:511)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:717)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:206)
at org.jwebap.plugin.tracer.http.DetectFilter.doFilte r(DetectFilter.java:95)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:206)
at org.springframework.web.filter.CharacterEncodingFi lter.doFilterInternal(CharacterEncodingFilter.java :96)
at org.springframework.web.filter.OncePerRequestFilte r.doFilter(OncePerRequestFilter.java:76)
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:233)
at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:102)
at org.apache.catalina.valves.AccessLogValve.invoke(A ccessLogValve.java:555)
at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11AprProcessor.proces s(Http11AprProcessor.java:861)
at org.apache.coyote.http11.Http11AprProtocol$Http11C onnectionHandler.process(Http11AprProtocol.java:57 9)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run( AprEndpoint.java:1584)
at java.lang.Thread.run(Thread.java:662)

can somebody help me ??

Any help is greatly appreciated !

Thanks

Henaulter
04-19-2012, 04:47 AM
Oracle Coherence provides transparent
conversion to and from Java, C++ and .NET data types, including custom
application user types. This enables C++ applications to access cached Java and
.NET objects as native C++ objects and Java applications, including data grid
members and Java clients, to access cached C++ objects as native Java objects.
Oracle Coherence provides support for versioning of C++ user types to allow for
their evolution over time. This enables both forward and backward compatibility of
user types :)

william smith6161
04-23-2012, 06:40 AM
I think its good approach, sounds good to me