2

I'm using Spring and Hessian together in this project with Tomcat as its container. All the Hessian codes work properly (the data is sent and saved without any hitches) but there is this thing that keeps getting logged into the catalina.out

Sep 12, 2013 1:49:49 PM com.caucho.hessian.io.SerializerFactory getDeserializer
WARNING: Hessian/Burlap: 'com.manilapath.mppiservices.document.impl.DocumentInternal' is an unknown class in WebappClassLoader
  context: /articleservices
  delegate: false
  repositories:
----------> Parent Classloader:
ClassRealm[plugin>org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT, parent: sun.misc.Launcher$AppClassLoader@3f611aec]
:
java.lang.ClassNotFoundException: com.manilapath.mppiservices.document.impl.DocumentInternal

I am somewhat worried that this will either bloat the logs or cause some problem along the road. Note that the "DocumentInternal" class is the class I'm using to pass data to the Hessian service and it is actually being deserialized correctly. I've been poking around the internet for a few days now looking for a lead into this warning but I still can't trace it, does anyone have any hints where I could look?

Cid Immacula
  • 213
  • 7
  • 18
  • Any news on this. On my side it seems the sender creates the log message because it cannot find a returned exception, yet the exception class is clearly available in the relevant jar used by the sending side. – Harald Jul 11 '14 at 14:10
  • Oh no I should've answered this one...sorry. I'll post what I found later when I get home in an answer form. But to give you the info now, it was because one of the objects I'm trying to pass has a child that extends it, but I don't include that child into the Hessian client on build. Separating them removed the warnings on my end. – Cid Immacula Jul 24 '14 at 08:12

2 Answers2

1

This warning appears when a class included into the Hessian stub has a sub-class that is not included in the Hessian stub. At least that's how it is in my case. Removing unneeded extensions caused about by bad use of inheritance solved this problem.

Cid Immacula
  • 213
  • 7
  • 18
  • Agree with this answer. For more clear: Hessian stub = DTO (data transfer object) those are used in hessian call. – ntahoang Nov 28 '16 at 06:46
-1

What helped me to turn this WARNING off is to add one line at the end of the ${tomcat_home}/conf/loggin.properties:

com.caucho.hessian.io.SerializerFactory.level = SEVERE

purebill
  • 131
  • 1
  • 4