commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [jelly] 'bug' setting tag properties from properties file
Date Tue, 17 Dec 2002 14:01:37 GMT
I'm using the latka plugin.
It has a set of Jelly tags which have Strings for their setter methods, 
i.e. the Request tag has a setHost(String) method.

1) I populate these tags with an expression, which references properties 
maven reads from, e.g.

<suite defaultHost="${}">

where is defined in the ${basedir}/

2) When the tag is executed, I get a 
2002-12-17 13:29:52,798 DEBUG org.apache.commons.jelly.impl.TagScript - 
Caught exception: java.lang.IllegalArgumentException: Property 
'defaultHost' has no write method
java.lang.IllegalArgumentException: Property 'defaultHost' has no write 

3) This is caused because the expression is being passed to BeanUtils with 
no conversion done, e.g. :
2002-12-17 13:29:52,758 DEBUG org.apache.commons.jelly.JellyContext - 
findVariable: value: 
2002-12-17 13:29:52,758 DEBUG org.apache.commons.beanutils.BeanUtils - 
setProperty(org.apache.commons.latka.jelly.SuiteTag@78aa80, defaultHost, 

4) This tag has no methods that take an Expression as a paramter, and 
since no conversion is being done by Jelly/BeanUtils the code fails with 
the above IllegalArgumentException.

5) When these properties are passed in from the command prompt via for example, all works fine, as they are explicitly 
known as Strings.

Any idea where to start in fixing this?
dIon Gillard, Multitask Consulting

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message