0 Replies Latest reply on Aug 21, 2006 9:54 AM by peixubin peixubin

    Transfer a struts's DynaActionForm to slsb error?

    peixubin peixubin Newbie

      I uses struts1.2+slsb .

      I transfer a DynaActionForm to slsb in my app,when I use jboss-3.2.x,it works fine.but when I use jboss-4.0.3.sp1,it reports error.

      In web side:
      ...
      public ActionForward executeAction(ActionMapping mapping, ActionForm form,
      HttpServletRequest req, HttpServletResponse res) throws Exception {
      FyglManager manager=getFyglManager();//get a slsb
      manager.ccXg(form);
      ...
      }


      In ejb side:
      ...
      public void ccXg(Object o) throws RemoteException,YdxtException {
      Long cclb=null;
      try {
      if (log.isDebugEnabled()) {
      log.debug("request data="+o);
      }

      cclb=(Long)PropertyUtils.getProperty(o,"cclb");
      if (cclb==null || 0==cclb.intValue()) {
      throw new MissingRequiredException("cclb is null");
      }
      } catch (Exception e) {
      e.printStackTrace();
      throw new MissingRequiredException(e.getMessage());
      }
      ....

      error message:

      21:55:10,157 DEBUG [FyglManagerEJBSession] request data=DynaActionForm[dynaClass=ccxgForm,fyown=AAA,action=save,aa=,fy2=444,fy1=222,cclb=1701]
      21:55:10,159 INFO [STDOUT] java.lang.NoSuchMethodException: Unknown property 'cclb'
      21:55:10,159 INFO [STDOUT] at org.apache.commons.beanutils.PropertyUtilsBean.getSimpleProperty(Ljava.lang.Object;Ljava.lang.String;)Ljava.lang.Object;(PropertyUtilsBean.java:1122)
      21:55:10,159 INFO [STDOUT] at org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(Ljava.lang.Object;Ljava.lang.String;)Ljava.lang.Object;(PropertyUtilsBean.java:686)
      21:55:10,159 INFO [STDOUT] at org.apache.commons.beanutils.PropertyUtilsBean.getProperty(Ljava.lang.Object;Ljava.lang.String;)Ljava.lang.Object;(PropertyUtilsBean.java:715)
      21:55:10,159 INFO [STDOUT] at org.apache.commons.beanutils.PropertyUtils.getProperty(Ljava.lang.Object;Ljava.lang.String;)Ljava.lang.Object;(PropertyUtils.java:290)
      ...