Hi Sowmya,
I get the same thing frequently with version 4.5.1, but haven't figured out
what causes it. What I've found is that once the deployer has compiled all
the stubs, you can go to the JAR file and open it (in Winzip or whatever)
and look at the <BeanName>PSJDBC.java file. For whatever reason the method
isn't correctly defined in the Java file by the deployer and winds up with a
method definition like...
public java.util.Enumeration findAll()
throws java.rmi.RemoteException, javax.ejb.FinderException {
throw new java.lang.Error("NYI");
}
...where I assume "NYI" means 'not yet implemented.' This doesn't happen to
me on the default findByPrimaryKey method, but usually when I declare my own
finder methods in the Home interface. My work around: once the deployer has
been run, check if the source code file throws the "NYI" error in the finder
method definition, and go through the redeploy process if the method wasn't
created correctly. I've found that the deployer chokes about half the time,
but if you have things set up correctly, it only takes three or four minutes
to redeploy if you have an erroneously created finder definition.
For WebLogic-related questions, BEA has a news server with several
newsgroups: news://www4.weblogic.com.
Hope this helps,
Kirk
________________________________________
paper2net.com - http://www.paper2net.com
----- Original Message -----
From: Sowmya <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 16, 1999 2:11 AM
Subject: Q: Unable to call a finder method of a Entity Bean with CMP
> Hello,
> I am working on EJB using weblogic4.0.3
> application server. I am trying to create a entity bean
> with Container Managed Persistence.
>
> I used deployment wizard to deploy the bean and
> it is properly deployed in weblogic.
>
> I am able to contact it from the client and call
> findByPrimaryKey(primarykey) and get one single record.
>
> But when call a finder method like findAllUsers(long)
> that will return a enumeration it throws the following error
> stack on the weblogic server,
>
> Tue Nov 16 15:23:41 GMT+05:30 1999:<E> <Adapter> ServerError in
> BasicAdapter
> Tue Nov 16 15:23:41 GMT+05:30 1999:<E> <Adapter> java.lang.Error: NYI
> at entcmp.UserPSJDBC.findAllUsers(UserPSJDBC.java:540)
> at entcmp.UserBeanHomeImpl.findAllUsers(UserBeanHomeImpl.java:98)
> at
> entcmp.WLSkel6i10132r3t6yk3f3a34596d1028m3f.execute(WLSkel6i10132r3t6
> yk3f3a34596d1028m3f.java:144)
> at
> weblogic.rmi.internal.BasicAdapter.invoke(BasicAdapter.java:216)
> at
> weblogic.rmi.internal.BasicAdapter.execute(BasicAdapter.java:387)
> at weblogic.t3.srvr.ExecuteThread.run(Compiled Code)
>
>
> I have specified the finder method in Deployment Descriptor
> as below,
>
> (finderDescriptors
> "findAllUsers(long)"
> "(= facilityCode $facicode)"
> ); end finderDescriptors
>
> Any ideas folks??
>
> regards
> Sowmya S
>
>
===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff EJB-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
>
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".