Finally i solved this problem:

The ServerException encapsulated a VerifyError that means there was some linkage error 
executing my compiled bytecode. In fact, this bean was compiled with an old version of 
Xerces and the container (Tomcat) loads at init time another version of Xerces, and 
when it instantiates reflectively my class the linkage with Xerces former classes is 
not performed correctly, because it probably reuses the init-loaded Xerces library.

It sounds a little confusing, maybe because it is confusing!!

I hope it could help someone in the future!

Cheers,
Henrique Andrade Viecili

  ----- Original Message ----- 
  From: Henrique VIECILI 
  To: Struts Users Mailing List 
  Sent: Wednesday, June 09, 2004 2:29 PM
  Subject: [Semi-OT] Incompatible object argument for function call


  Hi All,

  I use a bean in the application scope doing like this:

  <jsp:useBean id="myBean" scope="application" type="my.pkg.MyBean"/>

  then i set some properties using <jsp:setProperty> and then in scriplet:

  <% myBean.executeSomething();%>

  but a ServletException is thrown with this message:

  (class: my/pkg/MyBean, method: executeSomething signature: ()V) Incompatible object 
argument for function call

  Does anyone know what does it mean? I have searched google and it says that the 
container is creating the instance of my.pkg.MyBean incorrectly, but it seems a 
*little* weird. I am using Tomcat 4.1.27

  Henrique Viecili

Reply via email to