I have a method (in a Seesion Bean)
(*)public Integer altaProducto(DetalleProducto dProd){}
The problem is with parameter dProd(my own class DetalleProducto).
When this is:
public Integer altaProducto(Integer dProd){}
that's all ok, but not when is (*)
here si de class:
class DetalleProducto implements Serializable{
public String id;
public String nombre;
public String descripcion;
public boolean habilitado;
public String toString{}
public int hashCode{}
etc etc.....
}
}//end class
The problem is when y call : session.altaProducto(dProd)
This give me an exception: "UndeclaredThrowableException"
I suspect your problem is due to a serialization issue of some sort. Does your parameter class implement java.io.Serializable?