I am getting an error when implementing a simple finder method... should
this be a bug or an error
on my side. The findByPrimaryKey is working perfectly on the same bean,
where this finder method is not working.
The stacktrace on the console should be very helpful that knows the guts of
jBoss ...

Any ideas ...?

Regards

Andre Vermeulen

The details of the error is as such :

Home interface

public User create(String userName) throws RemoteException, CreateException,
RemoteException;
public User create(String userName, String firstName, String surname, String
phoneNumber, String email) throws RemoteException, CreateException,
RemoteException;
  public User findByPrimaryKey(String primaryKey) throws RemoteException;
  public Enumeration findByEmail(String eMail) throws RemoteException,
FinderException;

Client code :

     Object ref = jndiContext.lookup("User");
     UserHome home = (UserHome)PortableRemoteObject.narrow (ref,
UserHome.class);

     //User user = home.create("andre_ve", "andy", "verwey", "123",
"[EMAIL PROTECTED]");

     //User user =

     home.findByEmail("[EMAIL PROTECTED]");

Console of jboss  2 pr 4

[User] Found metadata for bean 'User' method is findByEmail
[User] Finder:email
[JAWS] findByEmail SQL: SELECT userName FROM User WHERE email=?
[JAWS] findByEmail command executing: SELECT userName FROM User WHERE
email=?
[JAWS] java.lang.NullPointerException
[JAWS]  at
org.jboss.ejb.plugins.jaws.jdbc.JDBCFindByCommand.setParameters(JDBCFindByCo
mmand.java:105)




--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to