Do you see any mistake in this piece of code?
This is my netbeans error message:
this is a piece of the ApplicationContext.xml:Code:Error creating bean with name 'facadeAvvisi' defined in file [...\web\WEB-INF\applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'aDao' of bean class [...sistema.FacadeAvvisi]: Bean property 'aDao' is not writable or has an invalid setter method: Does the parameter type of the setter match the return type of the getter?
and these are my java class(only a piece..):Code:<bean id="facadeAvvisi" class="org.apache.shale.progettotesi.sistema.FacadeAvvisi"> <property name="aDao"> <ref bean="avvisoDao"></ref> </property> </bean> ... <bean id="avvisoDao" class="org.apache.shale.progettotesi.persistenza.impl.AvvisoDaoImpl"> <property name="dataSource"> <ref bean="dataSource"></ref> </property> </bean>
It seems that there is a type mismatch between the property in the AppContext.xml and the java variable.But actually it isn't..Code:public class FacadeAvvisi{ private AvvisoDao aDao; //getter and setter } public interface AvvisoDao { ... } public class AvvisoDaoImpl extends JdbcDaoSupport implements AvvisoDao, RowCallbackHandler{ ... }
thanks 4 help



Reply With Quote
