21 Mar 2010 04:28
Hessian Client gets 500 error
Hi there, I had tried to run a simple hessian client but I got 500 error: com.caucho.hessian.client.HessianConnectionException: 500: java.io.IOException Server returned HTTP response code: 500 for URL: http://passport.com:8080/remoting/UserService org.springframework.web.util.NestedServletException: Hessian skeleton invocation failed; nested exception is java.io.IOException: expected 'c' in hessian input at 72 My simple client: public class HessianSimpleClient { public static void main(String[] args) throws Exception { String url = "http://passport.com:8080/remoting/UserService"; HessianProxyFactory factory = new HessianProxyFactory(); IUserService userService = (IUserService) factory.create( IUserService.class, url); try { userService.login(); } catch (Exception e) { e.printStackTrace(); } } } Service public interface IUserService {(Continue reading)
RSS Feed