2 Replies Latest reply on Jul 14, 2002 4:09 PM by kiuma

    ejb query

    kiuma

      Hello all again,

      I've the following problem using a postgres db.

      I've a Customer object mapped on a customer table and
      findAll method works, so Coustomer is mapped to the table.

      Now I try to find a customer by his name but I always get a FinderException, but I really don't know where is the error/orror!

      I attach the three files involved in the game
      Please help me.
      Thanks again,
      kiuma



        • 1. what does this mean???
          kiuma

          2002-07-14 20:58:58,036 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCQueryManager.webappointments/Customer] Could not create the finder findByName, because no matching CMP field was found.
          2002-07-14 20:58:58,080 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCQueryManager.webappointments/User] Could not create the finder findByName, because no matching CMP field was found.
          2002-07-14 20:58:58,313 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCQueryManager.test/TestEntity] Could not create the finder findByName, because no matching CMP field was found.
          2002-07-14 21:00:11,671 ERROR [STDERR] java.rmi.ServerException: Customer not found: Unknown query: public abstract com.wingstech.webappointments.interfaces.Customer com.wingstech.webappointments.interfaces.CustomerHome.findByName(java.lang.String,java.lang.String) throws java.rmi.RemoteException,javax.ejb.FinderException; nested exception is:
          javax.ejb.EJBException: Customer not found: Unknown query: public abstract com.wingstech.webappointments.interfaces.Customer com.wingstech.webappointments.interfaces.CustomerHome.findByName(java.lang.String,java.lang.String) throws java.rmi.RemoteException,javax.ejb.FinderException
          2002-07-14 21:00:11,750 ERROR [STDERR] Caused by: javax.ejb.EJBException: Customer not found: Unknown query: public abstract com.wingstech.webappointments.interfaces.Customer com.wingstech.webappointments.interfaces.CustomerHome.findByName(java.lang.String,java.lang.String) throws java.rmi.RemoteException,javax.ejb.FinderException

          Is it possible that i've written wrong querys? they are ok for me, so what's wrong?

          P.S. I'm using PostgreSQL 7.3

          • 2. what does this mean???
            kiuma

            2002-07-14 20:58:58,036 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCQueryManager.webappointments/Customer] Could not create the finder findByName, because no matching CMP field was found.
            2002-07-14 20:58:58,080 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCQueryManager.webappointments/User] Could not create the finder findByName, because no matching CMP field was found.
            2002-07-14 20:58:58,313 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCQueryManager.test/TestEntity] Could not create the finder findByName, because no matching CMP field was found.
            2002-07-14 21:00:11,671 ERROR [STDERR] java.rmi.ServerException: Customer not found: Unknown query: public abstract com.wingstech.webappointments.interfaces.Customer com.wingstech.webappointments.interfaces.CustomerHome.findByName(java.lang.String,java.lang.String) throws java.rmi.RemoteException,javax.ejb.FinderException; nested exception is:
            javax.ejb.EJBException: Customer not found: Unknown query: public abstract com.wingstech.webappointments.interfaces.Customer com.wingstech.webappointments.interfaces.CustomerHome.findByName(java.lang.String,java.lang.String) throws java.rmi.RemoteException,javax.ejb.FinderException
            2002-07-14 21:00:11,750 ERROR [STDERR] Caused by: javax.ejb.EJBException: Customer not found: Unknown query: public abstract com.wingstech.webappointments.interfaces.Customer com.wingstech.webappointments.interfaces.CustomerHome.findByName(java.lang.String,java.lang.String) throws java.rmi.RemoteException,javax.ejb.FinderException

            Is it possible that i've written wrong querys? they are ok for me, so what's wrong?

            P.S. I'm using PostgreSQL 7.3