Announcement Announcement Module
No announcement yet.
httpinvoker not working on google app engine Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • httpinvoker not working on google app engine

    I've been trying to set up a httpinvoker based server on my google appengine account. I followed instructions given in spring documentation, but it doesn't seem to work. Can someone please review my code below and let me know whats wrong.

    My web.xml:

    <servlet-class>org.springframework.web.servlet.DispatcherSe rvlet</servlet-class>


    My remoting-servlet.xml

    <bean name="/AccountService" class="org.springframework.remoting.httpinvoker.Ht tpInvokerServiceExporter">
    <property name="service" ref="accountService"/>
    <property name="serviceInterface" value="app.server.AccountService"/>

    My client xml:

    <bean id="httpInvokerProxy" class="org.springframework.remoting.httpinvoker.Ht tpInvokerProxyFactoryBean">
    <property name="serviceUrl" value="http://<google appid>"/>
    <property name="serviceInterface" value="app.server.AccountService"/>

    My client side code:
    public static void main(String[] args) throws Exception {
    ApplicationContext applicationContext = new ClassPathXmlApplicationContext("springClientConfig .xml");
    AccountService testService = (AccountService) applicationContext.getBean("httpInvokerProxy");
    String retVal = testService.getAccounts("test");

    I keep getting a exception (org.springframework.remoting.RemoteAccessExceptio n):
    Could not access HTTP invoker remote service at []; nested exception is Did not receive successful HTTP response: status code = 500, status message = [Internal Server Error]
    Last edited by coolyellowjacket; Mar 16th, 2013, 11:25 AM.

  • #2
    Please use [ code][/code ] tags when posting code, that way it remains readable...

    Check your server, there is an exception there somewhere, so check your logs.