PDA

View Full Version : Error Status 500: Could not initialize class com.caucho.hessian.io.SerializerFactory


int
12-23-2010, 08:39 AM
Hi

I had written Hessian Client, Hessian Service and web.xml files like in this simple example: http://hessian.caucho.com/doc/hessian-overview.xtp and I got this error on client browser (client program also throws exception):

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Could not initialize class com.caucho.hessian.io.SerializerFactory
org.apache.catalina.security.SecurityUtil.execute( SecurityUtil.java:324)
org.apache.catalina.security.SecurityUtil.doAsPriv ilege(SecurityUtil.java:162)
org.apache.catalina.security.SecurityUtil.doAsPriv ilege(SecurityUtil.java:115)
org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:102)
org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:293)
org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:856)
org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.process(Http11Protocol.java:583)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run( JIoEndpoint.java:454)
java.lang.Thread.run(Thread.java:636)

root cause

java.lang.NoClassDefFoundError: Could not initialize class com.caucho.hessian.io.SerializerFactory
com.caucho.hessian.io.HessianFactory.<init>(HessianFactory.java:80)
com.caucho.hessian.io.HessianInputFactory.<init>(HessianInputFactory.java:59)
com.caucho.hessian.server.HessianSkeleton.<init>(HessianSkeleton.java:84)
com.caucho.hessian.server.HessianServlet.init(Hess ianServlet.java:271)
com.caucho.hessian.server.HessianServlet.init(Hess ianServlet.java:331)
com.caucho.hessian.server.HessianServlet.init(Hess ianServlet.java:212)
sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:57)
sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:616)
org.apache.catalina.security.SecurityUtil$1.run(Se curityUtil.java:269)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject .java:537)
org.apache.catalina.security.SecurityUtil.execute( SecurityUtil.java:301)
org.apache.catalina.security.SecurityUtil.doAsPriv ilege(SecurityUtil.java:162)
org.apache.catalina.security.SecurityUtil.doAsPriv ilege(SecurityUtil.java:115)
org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:102)
org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:293)
org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:856)
org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.process(Http11Protocol.java:583)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run( JIoEndpoint.java:454)
java.lang.Thread.run(Thread.java:636)

note The full stack trace of the root cause is available in the Apache Tomcat/6.0.20 logs.
Apache Tomcat/6.0.20


Please help.

int
12-23-2010, 09:42 PM
When I switched server and client on Hessian 3.2.1 version It works good. Error was in newest jar 4.0.7.