If you're not using 1.9.4, this may be the issue:

http://issues.appfuse.org/browse/APF-430

Matt

On 12/19/06, Daniel.Rodriguez <[EMAIL PROTECTED]> wrote:

Hello everybody,

I have the following data structure:  Cliente (POJO), Producto (POJO) and
Licencia (POJO).

Licencia has  a composite_id : (FK_CLIENT_ID, FK_PROD_ID).
Which I had to implement as suggested in the forums (a separate class called
(LicenciaPK):

So far, everything works ok, plus the ant test commands all work perfectly.
The problem is located in the UI,  inside the clientForm.jsp.
Whenever I try to save a new Client, I get the following error:

Data Access Failure

IllegalArgumentException occurred calling getter of
com.quyne.licencias.model.Licencia.id;
nested exception is org.hibernate.PropertyAccessException:
IllegalArgumentException occurred calling getter
of com.quyne.licencias.model.Licencia.id


What I've been able to gather from my debugs is that Hibernate is
complaining about not getting the LicenciaPK object, but the String
representation of that Object
([EMAIL PROTECTED]), which is what the WW
select tag is printing.

I went thru the entire WW docs and found about the Conversion system.   I
created the Licencia-conversion.properties in com.quyne.licencias.model and
implemented my own LicenciaConverter.  However my deployed app doesn't seem
to run LicenciaConverter.    (Setted some breakpoints, but my app never
stops inside LicenciaConverter)  I tried changing the converter declaration
in /WEB-INF/classes/xwork-conversion.properties and nothing works.

I'm uploading a  http://www.nabble.com/file/4934/attachment.zip .zip  with
all the files involved (*.java, *.properties).

Hope someone can point me in the right direction.

Thanks !!










--
View this message in context: 
http://www.nabble.com/Webwork%27s-Conversion-not-working-tf2847151s2369.html#a7950940
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to