Well guys, I was writing to this list for these
kind of problems with CMP/JAWS persistance fist to author Rickard ?berg and
after to list...without result:(
All who want immediate solution- write to me [EMAIL PROTECTED] : I'll send you
attachments of new/patched classes- what I was sent to the list.
What's all I can do ...
Regards. Andrey.
----- Original Message -----
From: "Andre Vermeulen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 23, 2000 1:33 AM
Subject: [jBoss-User] finder method fails...
> 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);
>
> file://User user = home.create("andre_ve", "andy", "verwey", "123",
> "[EMAIL PROTECTED]");
>
> file://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]
>
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]