RE: CMP deployment problem

2000-09-08 Thread Christophe Hartwig

Hi !

I used to get such exceptions too... I had just read about BMPs and CMPs,
and tried to implement/specify too many methods in CMP beans. Your problem
is probably similar.

Your home interface should only have finders in it, findByPrimaryKey and
others (and create if appropriate)
Your interface should only have business methods
Your bean should implement only business methods, setEntityContext and
unsetEntityContext, and ejbActivate, ejbPassivate, ejbRemove, ejbStore,
ejbLoad which most of the time are empty. No ejbFind !

Remove ejbFind, ... and the exceptions disapear

Good luck, and I hope I didn't say anything wrong...
Christophe

PS: I now use only CMP... no BMP beans.

-Original Message-
From: Damian Guy [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 08, 2000 2:42 PM
To: Orion-Interest
Subject: CMP deployment problem


Hi,

I have successfully deployed BMP beans and I am now trying to deploy CMP
beans. I keep running into the follwing error during the deployment
process:

Auto-deploying supplier.jar... java.lang.ArrayIndexOutOfBoundsException:
0
at com.evermind.server.ejb.compilation.ey.aam(JAX)
at com.evermind.server.ejb.compilation.ew.o6(JAX)
at com.evermind.server.ejb.compilation.e_.zq(JAX)
at com.evermind.server.ejb.compilation.e7.aby(JAX)
at com.evermind.server.ejb.compilation.e_.o6(JAX)
at com.evermind.server.ejb.compilation.e1.o6(JAX)
at com.evermind.server.ejb.compilation.e6.o6(JAX)
at com.evermind.server.ejb.EJBContainer.lj(JAX)
at com.evermind.server.Application.lj(JAX)
at com.evermind.server.Application.e7(JAX)
at com.evermind.server.ApplicationServer.od(JAX)
at com.evermind.server.ApplicationServer.ai5(JAX)
at com.evermind.server.ApplicationServer.e7(JAX)
at com.evermind.server.gc.run(JAX)
at java.lang.Thread.run(Thread.java:479)
at com.evermind.util.e.run(JAX)

It doesn't mean much to me! Any ideas??

TIA,

Damian.




Re: RE: CMP deployment problem

2000-09-08 Thread [EMAIL PROTECTED]

Thanks for the reply!

You were on the right track, the problem was that i hadn't updated
the ejb-jar.xml file to use the CMP version of my beans.

Cheers,

Damian Guy.
At Fri, 8 Sep 2000 16:14:22 +0200 , you wrote:
Hi !

I used to get such exceptions too... I had just read about BMPs and
CMPs,
and tried to implement/specify too many methods in CMP beans. Your
problem
is probably similar.

Your home interface should only have finders in it, findByPrimaryKey
and
others (and create if appropriate)
Your interface should only have business methods
Your bean should implement only business methods, setEntityContext
and
unsetEntityContext, and ejbActivate, ejbPassivate, ejbRemove,
ejbStore,
ejbLoad which most of the time are empty. No ejbFind !

Remove ejbFind, ... and the exceptions disapear

Good luck, and I hope I didn't say anything wrong...
Christophe

PS: I now use only CMP... no BMP beans.

-Original Message-
From: Damian Guy [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 08, 2000 2:42 PM
To: Orion-Interest
Subject: CMP deployment problem


Hi,

I have successfully deployed BMP beans and I am now trying to deploy
CMP
beans. I keep running into the follwing error during the deployment
process:

Auto-deploying supplier.jar...
java.lang.ArrayIndexOutOfBoundsException:
0
at com.evermind.server.ejb.compilation.ey.aam(JAX)
at com.evermind.server.ejb.compilation.ew.o6(JAX)
at com.evermind.server.ejb.compilation.e_.zq(JAX)
at com.evermind.server.ejb.compilation.e7.aby(JAX)
at com.evermind.server.ejb.compilation.e_.o6(JAX)
at com.evermind.server.ejb.compilation.e1.o6(JAX)
at com.evermind.server.ejb.compilation.e6.o6(JAX)
at com.evermind.server.ejb.EJBContainer.lj(JAX)
at com.evermind.server.Application.lj(JAX)
at com.evermind.server.Application.e7(JAX)
at com.evermind.server.ApplicationServer.od(JAX)
at com.evermind.server.ApplicationServer.ai5(JAX)
at com.evermind.server.ApplicationServer.e7(JAX)
at com.evermind.server.gc.run(JAX)
at java.lang.Thread.run(Thread.java:479)
at com.evermind.util.e.run(JAX)

It doesn't mean much to me! Any ideas??

TIA,

Damian.