I don't think is _has_ to return a collection - in this
case I know the string I'm searching on is unique. But,
just for grins, I made it a Collection but got the same
error.
Any other ideas?
-tim "desperate to get jBoss working" drury
> -----Original Message-----
> From: Luan O'Carroll [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 17, 2000 6:25 AM
> To: jBoss
> Subject: Re: [jBoss-User] very simple finder method fails
>
>
> The findBySampleString method should return a Collection
> ----- Original Message -----
> From: "Tim Drury" <[EMAIL PROTECTED]>
> To: "Jboss Users (E-mail)" <[EMAIL PROTECTED]>
> Sent: Wednesday, August 16, 2000 6:48 PM
> Subject: [jBoss-User] very simple finder method fails
>
>
> >
> > I'm trying to implement a trivial finder method.
> > My attribute is a String called sampleString.
> >
> > Here is my Home interface:
> >
> > public interface SampleDocumentHome extends DocumentHome
> > {
> > public SampleDocument create(String id) throws RemoteException,
> > CreateException;
> > public SampleDocument findByPrimaryKey(String id) throws
> RemoteException,
> > FinderException;
> > public SampleDocument findBySampleString(String
> sampleString) throws
> > RemoteException, FinderException;
> >
> > } // end SampleDocumentHome
> >
> > I did nothing to the deployment descriptors - aren't attribute
> > finders supposed to work without adjusting these?
> >
> > Here is the exception the client throws:
> >
> > ---------------
> > [administrator@TDRURY1 src]$ java -classpath
> > "e:/dev/netvendor/classes;c:/usr/l
> >
> ocal/jboss-20000816/jboss/dist/lib/ext/ejb.jar;c:/usr/local/jb
> oss-20000816/j
> > bos
> > s/dist/client/jboss-client.jar"
> com.netvendor.doc.SampleDocumentClient get
> > hell
> > o6
> > java.naming.provider.url=192.168.1.102:1099
> > HomeProxy:findBySampleString
> > javax.ejb.FinderException: Find failed
> > at
> >
> sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Stream
> > RemoteCall.java:245)
> > at
> >
> sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:
> > 220)
> > at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
> > at
> >
> org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHom
> > e(Unknown Source)
> > at
> >
> org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java
> > :228)
> > at $Proxy0.findBySampleString(Unknown Source)
> > at
> >
> com.netvendor.doc.SampleDocumentClient.main(SampleDocumentClient.java
> > :89)
> > -------------------
> >
> > jBoss is running on a remote client (192.168.1.102). If I search on
> > the Primary Key, everything works fine. But my finder fails.
> >
> > Since cutting and pasting from the Linux server to my NT box sucks,
> > here is a hand typed exception dump from the server (some of it):
> >
> > [JAWS] findBySampleString SQL: SELECT id FROM
> SampleDocumentBean WHERE
> > sampleString=?
> > [JAWS] findBySampleString command executing: SELECT id FROM
> > SampleDocumentBean
> > WHERE sampleString=?
> > [JAWS] java.lang.NullPointerException
> > [JAWS] at
> >
> org.jboss.ejb.plugins.jaws.jdbc.JDBCFindByCommand.setParameter
> s(JDBCFindByCo
> > mmand.java:110)
> > ....
> >
> > I'm using the default Hypersonic database. I'm using a
> build out of CVS
> > from today (8/16/2000). Thanks for any help.
> >
> > -tim drury
> >
> >
> > --
> > --------------------------------------------------------------
> > To subscribe: [EMAIL PROTECTED]
> > To unsubscribe: [EMAIL PROTECTED]
> > Problems?: [EMAIL PROTECTED]
> >
> >
>
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]