Announcement Announcement Module
No announcement yet.
Hessian + Spring + Error 500 Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Hessian + Spring + Error 500

    Hi, all!

    Could anyone help me with the following problem:
    I have Web-application which is run on Tomcat 6 or WebLogic.
    Web UI is made on Flex.
    Hessian protocol is used for communicating server and client.
    Sometimes when i log in to my portal (i.e. in Flex UI) I got an error:

    Error 500--Internal Server Error expected 'c' in hessian input at -1
    at org.springframework.remoting.caucho.Hessian2Skelet onInvoker.invoke(
    at org.springframework.remoting.caucho.HessianExporte r.invoke(
    at org.springframework.remoting.caucho.HessianService Exporter.handleRequest( :70)
    at org.springframework.web.servlet.mvc.HttpRequestHan dlerAdapter.handle( 49)
    at org.springframework.web.servlet.DispatcherServlet. doDispatch(
    at org.springframework.web.servlet.DispatcherServlet. doService(
    at org.springframework.web.servlet.FrameworkServlet.p rocessRequest(
    at org.springframework.web.servlet.FrameworkServlet.d oPost(
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:727)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:820)
    at weblogic.servlet.internal.StubSecurityHelper$Servl
    at weblogic.servlet.internal.StubSecurityHelper.invok eServlet(
    at weblogic.servlet.internal.ServletStubImpl.execute(
    at weblogic.servlet.internal.TailFilter.doFilter(Tail
    at weblogic.servlet.internal.FilterChainImpl.doFilter (
    at $VirtualFilterChain.doFilter( :359)
    at ecurityInterceptor.invoke(FilterSecurityIntercepto
    at ecurityInterceptor.doFilter(FilterSecurityIntercep
    at $VirtualFilterChain.doFilter( :371)
    at tectionFilter.doFilterHttp(SessionFixationProtecti
    at er.doFilter(
    at $VirtualFilterChain.doFilter( :371)
    at onFilter.doFilterHttp(ExceptionTranslationFilter.j ava:101)
    at er.doFilter(
    at $VirtualFilterChain.doFilter( :371)
    at nonymousProcessingFilter.doFilterHttp(AnonymousPro
    at er.doFilter(
    at $VirtualFilterChain.doFilter( :371)
    at rMeProcessingFilter.doFilterHttp(RememberMeProcess
    at er.doFilter(
    at $VirtualFilterChain.doFilter( :371)
    at xtHolderAwareRequestFilter.doFilterHttp(SecurityCo
    at er.doFilter(
    at $VirtualFilterChain.doFilter( :371)
    at cessingFilter.doFilterHttp(BasicProcessingFilter.j ava:173)
    at er.doFilter(
    at $VirtualFilterChain.doFilter( :371)

    I use Spring 2.5.6 and Hessian 3.2.0.

    Last edited by decadance; Apr 5th, 2011, 03:09 AM.

  • #2

    1) use code tags


    Sometimes when i log in to my portal (i.e. in Flex UI) I got an error:

    Error 500--Internal Server Error expected 'c' in hessian input at -1
    It would be useful if you can detect when this error appear, making a call? using a special method?, if you have already detected this, post it to have a better idea


    • #3
      It seems that issue occurs during (or exactly before) the first call to remote hessian servlet for calling concrete method of my service.

      For example my service looks like:
      public class MyService {
          public InitSettings getInitSettings() {
      getInitSettings() - is the first method which is called using hessian protocol during user login.

      If described error occurs there is no "getInitSettings()" record in log.
      So method is not called at all.

      It seems that for unknown for me reasons sometimes hessian input does not have 'c' char (indicating method call) at its beginning...or hessian input does not contain any data...


      • #4
        always-use-dafault-target="true" need to be added to form-login configuration.