Re: [JBoss-user] CMR Error under load

2003-04-04 Thread Stephen Coy
It's now checked in to Branch_3_2. ./build.sh -Dtest=org.jboss.test.cmp2.cmrstress.CMRStressTestCase one-test Disregard my earlier comment about the getters on the child bean. Steve Coy On Friday, April 4, 2003, at 02:00 AM, Dain Sundstrom wrote: What is the name of the test case and are you

Re: [JBoss-user] CMR Error under load

2003-04-04 Thread Andrew May
Unfortunately without the read-only tags our application performs too slowly to be usable under load. We use the CMP Entities for authentication to our site, where every user gets the guest identity, and many different users may share the same institutional identity. So if there's a lot of authe

Re: [JBoss-user] CMR Error under load

2003-04-03 Thread Stephen Coy
Sourceforge CVS was very slow last night, so I did not get much done. I don't know about a solution, but I will try and diagnose it. At the moment, it looks like there is a problem if the child bean's getters are marked read-only, even if the parent bean's are not. Anyway, hopefully (if the sou

Re: [JBoss-user] CMR Error under load

2003-04-03 Thread Dain Sundstrom
What is the name of the test case and are you working on a solution? -dain On Thursday, April 3, 2003, at 04:22 AM, Stephen Coy wrote: I'll add the testcase to Branch_3_0 as well. We've never experienced this problem, but have only operated under 3.0.2, 3.0.4 and 3.0.6. Our application (over)

Re: [JBoss-user] CMR Error under load

2003-04-03 Thread Dain Sundstrom
I think the message is remove the read-only tags and you will not get the errors. -dain On Thursday, April 3, 2003, at 03:03 AM, Andrew May wrote: My test case fails on 3.0.3 so it's not just a problem with 3.2.0. So for us that means we can't go live with either :( - unless we can find a sui

Re: [JBoss-user] CMR Error under load

2003-04-03 Thread Stephen Coy
I'll add the testcase to Branch_3_0 as well. We've never experienced this problem, but have only operated under 3.0.2, 3.0.4 and 3.0.6. Our application (over)uses lots of CMR and we use those read-only tags everywhere too. Steve Coy On Thursday, April 3, 2003, at 07:03 PM, Andrew May wrote:

Re: [JBoss-user] CMR Error under load

2003-04-03 Thread Andrew May
My test case fails on 3.0.3 so it's not just a problem with 3.2.0. So for us that means we can't go live with either :( - unless we can find a suitable workaround. Andrew Stephen Coy wrote: At the moment, we have a regression failure from 3.0.x to 3.2.0, because it "works" fine there. I say it

Re: [JBoss-user] CMR Error under load

2003-04-02 Thread Stephen Coy
At the moment, we have a regression failure from 3.0.x to 3.2.0, because it "works" fine there. I say it "works" because it doesn't fail, which is not the same thing as behaving correctly. So, we need to decide what the appropriate behaviour will be for 3.2 and make it work properly. I will

Re: [JBoss-user] CMR Error under load

2003-04-02 Thread Dain Sundstrom
I doubt that a CMR will work with the read-only flag. The problem is a read-only specifically does not associate the transaction with the invocation and does not enlist the entity in the tx synchronization. A CMR collection is dependent on a transaction and having tx synchronization. I b

Re: [JBoss-user] CMR Error under load

2003-04-02 Thread Stephen Coy
Ah ha! It needs those "read-only" tags in jboss.xml in order to fail. Previously, I had explicitly specified that "getChildren" was read-only. It needs to be "get*". My test is failing now. Steve Coy On Thursday, April 3, 2003, at 01:30 AM, Andrew May wrote: I've tried to do a bit of inves

Re: [JBoss-user] CMR Error under load

2003-04-02 Thread Stephen Coy
I can't get this test to fail on my Mac with either Hypersonic or Oracle. This is with "Release ID: JBoss [WonderLand] 3.2.0RC5 (build: CVSTag=Branch_3_2 date=200303312311)". Tomorrow night I'll move it onto my linux box and see what happens. It needs a little cleaning up before I check it in

Re: [JBoss-user] CMR Error under load

2003-04-02 Thread Andrew May
I've tried to do a bit of investigation of my own. I'm still trying to get my head around the code, but this is what I think is going on. The exception: java.lang.IllegalStateException: The iterator of a CMR collection may only be used within the transction in which it was created at o

Re: [JBoss-user] CMR Error under load

2003-04-02 Thread Stephen Coy
This is outside the CMP spec, so legality does not enter into it. What is more interesting is what "read-only" means in the context of a CMR getter that returns a Collection. My test program happily lets me update the returned collection even when the getter is marked read-only. Steve Coy On

Re: [JBoss-user] CMR Error under load

2003-04-02 Thread Davide Pozza
Hi, On my application (under JBOSS 3.2RC5) I have the same problem and I've found that happens only when the CMR getter methods (from which I obtain the iterators...) are set as "read-only" on jboss.xml. So, in my opinion, the main question is: Is it legal to set a CMR getter method as read-only

Re: [JBoss-user] CMR Error under load

2003-04-02 Thread Stephen Coy
I'm currently incorporating the essence of your test case into the formal JBoss 3.2 test suite. With luck, I'll get it in this evening. And you're right btw, there's nothing wrong with your test case spec wise. Steve Coy On Wednesday, April 2, 2003, at 07:35 PM, Andrew May wrote: OK, from th

Re: [JBoss-user] CMR Error under load

2003-04-02 Thread Stephen Coy
[ jboss-Bugs-705542 ] Errorenous IllegalStateException on CMR-Collection Steve Coy On Wednesday, April 2, 2003, at 07:35 PM, Andrew May wrote: Earlier in the thread Alex wrote that I'm not alone in complaining about this. Is there an existing bug report for this problem that I should add the

Re: [JBoss-user] CMR Error under load

2003-04-02 Thread Andrew May
OK, from the EJB 2.0 spec: 10.3.10.1 Restrictions on remote interfaces The following restrictions apply to the remote interface of an entity bean with container-managed persistence. • The Bean Provider must not expose the get and set methods for container-managed relationship fields or the persi

Re: [JBoss-user] CMR Error under load

2003-04-01 Thread Andrew May
calls the test method. Simone - Original Message - From: "Simone Milani" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 01, 2003 1:25 PM Subject: Re: Re[2]: [JBoss-user] CMR Error under load As of yesterday 10 PM GMT. Simone - Original Message -

Re: Re[2]: [JBoss-user] CMR Error under load

2003-04-01 Thread Simone Milani
t; <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 01, 2003 1:25 PM Subject: Re: Re[2]: [JBoss-user] CMR Error under load > As of yesterday 10 PM GMT. > > > Simone > - Original Message - > From: "Alex Loubyansky" <[EMAIL PROTECTED]> &

Re: Re[2]: [JBoss-user] CMR Error under load

2003-04-01 Thread Simone Milani
As of yesterday 10 PM GMT. Simone - Original Message - From: "Alex Loubyansky" <[EMAIL PROTECTED]> To: "Simone Milani" <[EMAIL PROTECTED]> Sent: Tuesday, April 01, 2003 9:47 AM Subject: Re[2]: [JBoss-user] CMR Error under load > with fresh 3.2.0RC5 fr

Re: [JBoss-user] CMR Error under load

2003-04-01 Thread Andrew May
I've just built RC5 from CVS and I still get the CMR problem. Release ID: JBoss [WonderLand] 3.2.0RC5 (build: CVSTag=Branch_3_2 date=200304010938) Alex Loubyansky wrote: with fresh 3.2.0RC5 from CVS? alex --- This SF.net email is sponsore

Re[2]: [JBoss-user] CMR Error under load

2003-04-01 Thread Alex Loubyansky
OTECTED]> SM> Sent: Tuesday, April 01, 2003 8:40 AM SM> Subject: Re: [JBoss-user] CMR Error under load >> Simone, >> >> I manually inserted a couple of records. e.g.: >> >> INSERT INTO Parent VALUES ('test1'); >> INSERT INTO Child (id, name, va

Re: [JBoss-user] CMR Error under load

2003-04-01 Thread Simone Milani
Hi Andrew, I had the error as well Simone - Original Message - From: "Andrew May" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 01, 2003 8:40 AM Subject: Re: [JBoss-user] CMR Error under load > Simone, > > I manually in

Re: [JBoss-user] CMR Error under load

2003-04-01 Thread Andrew May
rom CVS. Andrew Simone Milani wrote: Hi Andrew, I am trying your test, do you have a script to populate the tables and the parameters for the CMRTestClass? Thanks Simone - Original Message - From: "Andrew May" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monda

Re: [JBoss-user] CMR Error under load

2003-03-31 Thread Simone Milani
Hi Andrew, I am trying your test, do you have a script to populate the tables and the parameters for the CMRTestClass? Thanks Simone - Original Message - From: "Andrew May" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 31, 2003 2:46 PM Subject

RE: [JBoss-user] CMR Error under load

2003-03-31 Thread Bill Burke
6 AM > To: [EMAIL PROTECTED] > Subject: Re: [JBoss-user] CMR Error under load > > > I don't see a RC5 release on sourceforge, so I assume this means > I have to build it from > CVS. I'll give that a go, but as I've never tried it before it > could take me a

Re: [JBoss-user] CMR Error under load

2003-03-31 Thread Andrew May
I don't see a RC5 release on sourceforge, so I assume this means I have to build it from CVS. I'll give that a go, but as I've never tried it before it could take me a while (never actually used CVS I confess) - still it's something I ought to be able to do. If anyone has a chance to run my test

Re[2]: [JBoss-user] CMR Error under load

2003-03-31 Thread Alex Loubyansky
Could you, please, try it on JBoss-3.2.0RC5 which is the current version. I have a testcase that failed in my old 3.2 and passes in current 3.2.0RC5. Please, try it. alex Monday, March 31, 2003, 12:37:32 PM, Andrew May wrote: AM> OK, here's a test case that recreates the problem for me. AM> I'

Re: [JBoss-user] CMR Error under load

2003-03-31 Thread Andrew May
OK, here's a test case that recreates the problem for me. I've attached test.jar which is the ejb-jar and also includes the test case class. Also attached is test-src.jar which has the source code for the EJBs and the test. I'm afraid I've been hacking around existing build scripts to create the

Re: Re[2]: [JBoss-user] CMR Error under load

2003-03-28 Thread Dain Sundstrom
I fixed a similar bug in this stuff for Sacha on March 19th (version 1.43.2.13). The problem was registering for transaction synchronization on the transaction in the context and not the transaction associated with the current thread. This bug created the type of problem you have described, b

Re[2]: [JBoss-user] CMR Error under load

2003-03-28 Thread Alex Loubyansky
Hello Andrew, you are not alone complaining about this. But nobody could produce a testcase that fail at least eventually. I am trying to reproduce it but can't for the moment. I have a Parent and 1000 of related Child entities. I have 100 concurrent threads finding parent by primary key, gettin

Re: [JBoss-user] CMR Error under load

2003-03-28 Thread Andrew May
I've just tried it and RC4 has the same problem. We're using normal jbosscmp container. Andrew Simone Milani wrote: Hi, I had the same promlem when I was using RC3. Try to move to RC4. What container are you using? Simone --- This SF.

Re: [JBoss-user] CMR Error under load

2003-03-28 Thread Simone Milani
Hi, I had the same promlem when I was using RC3. Try to move to RC4. What container are you using? Simone - Original Message - From: "Andrew May" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 28, 2003 11:49 AM Subject: [JBoss-user] CMR Er

[JBoss-user] CMR Error under load

2003-03-28 Thread Andrew May
I'm getting this CMR error when I load test our system: java.lang.IllegalStateException: The iterator of a CMR collection may only be used within the transction in which it was created at org.jboss.ejb.plugins.cmp.jdbc.bridge.RelationSet$1.verifyIteratorIsValid(RelationSet.java:309)