SV: SV: [JBoss-user] INSERTING AN ALREADY EXISTING BEAN..... problem

2001-05-16 Thread Lennart Petersson

I guess that is ok.
/Lennart

- Original Message - 
From: Norton Lam <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 16, 2001 8:05 PM
Subject: RE: SV: [JBoss-user] INSERTING AN ALREADY EXISTING BEAN. problem


> Lennart,
> 
> Do you actually need it to compile and run?  Or would code that
> you can peruse do?



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: SV: [JBoss-user] INSERTING AN ALREADY EXISTING BEAN..... problem

2001-05-16 Thread Norton Lam

Lennart,

Do you actually need it to compile and run?  Or would code that
you can peruse do?

-Original Message-
From: Lennart Petersson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 16, 2001 10:05 AM
To: Norton
Cc: [EMAIL PROTECTED]
Subject: SV: SV: [JBoss-user] INSERTING AN ALREADY EXISTING BEAN.
problem


Copying this to jboss-user list also.

Is it possible to have copies of your test cases?
/L

- Original Message - 
From: Norton <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 15, 2001 8:51 PM
Subject: RE: SV: [JBoss-user] INSERTING AN ALREADY EXISTING BEAN.
problem


> This message was sent from Geocrawler.com by "Norton" <[EMAIL PROTECTED]>
> 
> Hi,
> 
> I've been encountering this problem consistently.
> 
> I have a two tests in a JUnit test case.  One
> creates a bean, the other delets it.  It runs
> fine the first time, but the second time I
> run it, I get this exception.  If I run it
> again, it works.  Essentially, it fails every
> other time.
> 
> Don't know if that helps...
> 
> Norton
> 
> 

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



SV: SV: [JBoss-user] INSERTING AN ALREADY EXISTING BEAN..... problem

2001-05-16 Thread Lennart Petersson

Copying this to jboss-user list also.

Is it possible to have copies of your test cases?
/L

- Original Message - 
From: Norton <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 15, 2001 8:51 PM
Subject: RE: SV: [JBoss-user] INSERTING AN ALREADY EXISTING BEAN. problem


> This message was sent from Geocrawler.com by "Norton" <[EMAIL PROTECTED]>
> 
> Hi,
> 
> I've been encountering this problem consistently.
> 
> I have a two tests in a JUnit test case.  One
> creates a bean, the other delets it.  It runs
> fine the first time, but the second time I
> run it, I get this exception.  If I run it
> again, it works.  Essentially, it fails every
> other time.
> 
> Don't know if that helps...
> 
> Norton
> 
> 
> ---
> This is strange
> 
> Following is (was) the problem:
> 
> a) Creates an entity bean with PK x
> 
> b) Does a remove on this entity bean
> 
> c) Tries again to create this entity bean with 
> the same PK x.
> 
> I used to (and others also) to get an exception 
> doing this telling me that
> i'm trying to insert an already existing bean. 
> What i and others thought
> was that the removed entity bean was still 
> available in the cache and therefore
> not possible to recreate. Please note that the 
> entity was always successfully
> removed from the db.
> 
> I now made a simple test to show you this and 
> what happens??? One of following
> is correct:
> 
> 1) Same problem
> 2) Other problem
> 3) It works like a dream - no errors
> 
> And the right answer is: 3) It works like a 
> dream...
> 
> Made my test in 2 variants: First when a, b and c 
> was called in seperate
> transactions and then when a, b and c was called 
> in one transaction. Both
> variants was working.
> 
> Now i rest my case, until it creeps up again.
> 
> /Lennart
> 
> - Original Message - 
> From: Bordet, Simone <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, May 15, 2001 2:34 PM
> Subject: RE: [JBoss-user] INSERTING AN ALREADY 
> EXISTING BEAN. problem
> 
> 
> > Ulp !
> > 
> > > yes, the problem exists and no, iv'e no fix 
> on it yet.
> > 
> > What is exactly the problem ? I probably missed 
> it...
> > Do you have a simple test that fails ?
> > 
> > Simon
> > 
> > > I said for some weeks ago that i would take 
> on it but there 
> > > hasn't been any time for it yet :-(
> > > 
> > > /Lennart
> > > 
> > > 
> > > 
> ___
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > > 
> http://lists.sourceforge.net/lists/listinfo/jboss-
> user
> > > 
> > 
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > 
> http://lists.sourceforge.net/lists/listinfo/jboss-
> user
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-
> user
> 
> 
> 
> Geocrawler.com - The Knowledge Archive


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



SV: [JBoss-user] INSERTING AN ALREADY EXISTING BEAN..... problem

2001-05-15 Thread Lennart Petersson

This is strange

Following is (was) the problem:

a) Creates an entity bean with PK x

b) Does a remove on this entity bean

c) Tries again to create this entity bean with the same PK x.

I used to (and others also) to get an exception doing this telling me that i'm trying 
to insert an already existing bean. What i and others thought was that the removed 
entity bean was still available in the cache and therefore not possible to recreate. 
Please note that the entity was always successfully removed from the db.

I now made a simple test to show you this and what happens??? One of following is 
correct:

1) Same problem
2) Other problem
3) It works like a dream - no errors

And the right answer is: 3) It works like a dream...

Made my test in 2 variants: First when a, b and c was called in seperate transactions 
and then when a, b and c was called in one transaction. Both variants was working.

Now i rest my case, until it creeps up again.

/Lennart

- Original Message - 
From: Bordet, Simone <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 15, 2001 2:34 PM
Subject: RE: [JBoss-user] INSERTING AN ALREADY EXISTING BEAN. problem


> Ulp !
> 
> > yes, the problem exists and no, iv'e no fix on it yet.
> 
> What is exactly the problem ? I probably missed it...
> Do you have a simple test that fails ?
> 
> Simon
> 
> > I said for some weeks ago that i would take on it but there 
> > hasn't been any time for it yet :-(
> > 
> > /Lennart
> > 
> > 
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
> > 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



SV: [JBoss-user] INSERTING AN ALREADY EXISTING BEAN..... problem

2001-05-15 Thread Lennart Petersson

yes, the problem exists and no, iv'e no fix on it yet.

I said for some weeks ago that i would take on it but there hasn't been any time for 
it yet :-(

/Lennart


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user