[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jboss-development
Subject:    [JBoss-dev] [ jboss-Bugs-601866 ] CMR not allowing insert
From:       noreply () sourceforge ! net
Date:       2002-08-30 16:21:15
[Download RAW message or body]

Bugs item #601866, was opened at 2002-08-29 08:39
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=601866&group_id=22866

Category: JBossCMP
Group: v3.2
Status: Open
Resolution: None
Priority: 5
Submitted By: David Baillieul (baillieul)
>Assigned to: Dain Sundstrom (dsundstrom)
Summary: CMR not allowing insert

Initial Comment:
A page table has been defined with a foreign key to a 
process table. When adding a page to a process, the 
server returns null for the process id in the page, which 
causes a NPE when trying to create the page proxy.
The sequence of events is as follows: 
1) The pageBean is created (ejbCreate is called), resulting 
in an insert in the database. The process id for the page is 
not set at that time, because it is a CMR field.
2) ejbPostCreate is called. The process id is set. 
3) the invoker gets a proxy object for the page. This result 
in a call to get the processId for the page that in turn does a 
select on the page row. This returns a null.
What seems to be missing is the call to update the process 
id in the page row. This normally occurs as part of ejbStore. 
ejbStore is not invoked in this case because the transaction 
is not committed, or if a finder is invoked. 
Issue exists with 3.0.0, 3.0.1 and 3.0.2 all on Win2000 
using Hypersonix database.

----------------------------------------------------------------------

>Comment By: Dain Sundstrom (dsundstrom)
Date: 2002-08-30 11:21

Message:
Logged In: YES 
user_id=251431

You need to post a test case that reproduces this bug.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=601866&group_id=22866


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Jboss-development mailing list
Jboss-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic