Announcement Announcement Module
Collapse
No announcement yet.
Hessian + Spring + Error 500 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • 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
    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:727)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:820)
    at weblogic.servlet.internal.StubSecurityHelper$Servl etServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invok eServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute( ServletStubImpl.java:292)
    at weblogic.servlet.internal.TailFilter.doFilter(Tail Filter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter (FilterChainImpl.java:56)
    at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :359)
    at org.springframework.security.intercept.web.FilterS ecurityInterceptor.invoke(FilterSecurityIntercepto r.java:109)
    at org.springframework.security.intercept.web.FilterS ecurityInterceptor.doFilter(FilterSecurityIntercep tor.java:83)
    at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
    at org.springframework.security.ui.SessionFixationPro tectionFilter.doFilterHttp(SessionFixationProtecti onFilter.java:67)
    at org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
    at org.springframework.security.ui.ExceptionTranslati onFilter.doFilterHttp(ExceptionTranslationFilter.j ava:101)
    at org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
    at org.springframework.security.providers.anonymous.A nonymousProcessingFilter.doFilterHttp(AnonymousPro cessingFilter.java:105)
    at org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
    at org.springframework.security.ui.rememberme.Remembe rMeProcessingFilter.doFilterHttp(RememberMeProcess ingFilter.java:116)
    at org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
    at org.springframework.security.wrapper.SecurityConte xtHolderAwareRequestFilter.doFilterHttp(SecurityCo ntextHolderAwareRequestFilter.java:91)
    at org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
    at org.springframework.security.ui.basicauth.BasicPro cessingFilter.doFilterHttp(BasicProcessingFilter.j ava:173)
    at org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)

    I use Spring 2.5.6 and Hessian 3.2.0.

    Thanks!
    Last edited by decadance; Apr 5th, 2011, 04:09 AM.

  • #2
    Hello


    1) use code tags

    2)

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

    Error 500--Internal Server Error
    java.io.IOException: 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

    Comment


    • #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:
      Code:
      public class MyService {
          public InitSettings getInitSettings() {
                  log("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...

      Comment


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

        Comment

        Working...
        X