Bean属性“bagBisDomainService”不可写或具有无效的setter方法

时间:2014-02-11 17:17:33

标签: java spring

当我执行spring web应用程序时,我有一个“Bean属性'bagBisDomainService'不可写或具有无效的setter方法”错误。以下是我的代码:

public class StatusSynthesisFlightsAction extends WDispatchAction {

protected FlightListeCritereForm criteriaForm = null;

/**
 * Reference sur le domain service
 */
private BagDS bagBisDomainService;

/**
 * Reference sur le domain service
 */
 private FlightDS flightBisDomainService;

 /**
  * @return the bagBisDomainService
  */
 public BagDS getBagBisDomainService() {
     return bagBisDomainService;
 }


 /**
  * @param bagBisDomainService the bagBisDomainService to set
  */
 public void setBagBisDomainService(BagDS bagBisDomainService) {
     this.bagBisDomainService = bagBisDomainService;
 }


 /**
  * @return the flightDomainService
  */
 public FlightDS getFlightBisDomainService() {
     return flightBisDomainService;
 }

}

<bean name="/statusSynthesisFlights" class="com.afklm.srbview.applicationlayer.action.flight.StatusSynthesisFlightsAction" scope="singleton">
    <property name="bagBisDomainService" ref="bagDSImpl"/>
    <property name="flightBisDomainService" ref="flightDSImpl"/>
</bean>

任何想法?

提前致谢

1 个答案:

答案 0 :(得分:0)

1)清洁后再重新构建并尝试。 2)公共类StatusSynthesisFlightsAction扩展WDispatchAction实现可序列化,如果1)失败。