Andre - I never got this working. I'm trying it on the Orion
app server to see if its a problem with my code or a problem
with jBoss.
Surely, if this were a problem with jBoss, someone would have
noticed it by now. Unless no one uses finder methods other
than the PK one...
-tim
> -----Original Message-----
> From: Andre Vermeulen [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, August 20, 2000 9:25 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: [jBoss-User] very simple finder method fails
>
>
> Hi Tim
>
> I am getting the same error as you - 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.setParameter
> s(JDBCFindByCo
> mmand.java:105)
>
>
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]