0 Replies Latest reply on Jul 30, 2003 9:02 AM by eldon

    CMP 2.0 find*() methods with Jboss 3.2.1 not works

    eldon

      I've been a problem with find methods (CMP 2.0). I wrote a enity bean with some finders methods that returns a Collection. When this methods returns only one object in Collection works fine. When find()* methods returns more than one, a excpetion is throw:
      09:40:31,691 ERROR [LogInterceptor] EJBException:
      javax.ejb.EJBException: Unknown load group: name=group name
      at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.getLoadGroup(JDBCEntityBridge.java:490)
      (etc...)
      ------------------------------------------
      Iterator i = home.findByName("arg").iterator();
      while (i.hasNext()) {
      Product prod = (Product) PortableRemoteObject.narrow(i.next(), Product.class);
      System.out.println(prod.getName()); // the exception occurs here
      }

      ------------------------
      JBoss 3.2.1
      PostgresSQL 7.3.3
      Linux RH 9.0
      ---------------------------

      help me !

      Thanks a lot !