Hi Indigo!!!

The way I see it, you have two choices:

1. Change the necessary code and rebuild jBoss. The change you have to
make is the following:

In the method storeEntity() in JAWSPersistenceManager 

 for (int i = 0;i < dirtyFields.size(); i++)

in row 776 should be changed to 

 for (int i = 0; i < dirtyField.length; i++)

This is however just a temporary fix, as there is another bug in this
method (see Bugzilla bug no 25).

2. Wait until the problems is fixed (is someone working on this, btw??)

Regards,
Fredrik...


On Mon, 22 May 2000, Indigo Blue wrote:

> Thanks for your reply Justin.
> So what do you suggest I do?
> 
> 
> >From: Justin Forder <[EMAIL PROTECTED]>
> >Reply-To: "jBoss" <[EMAIL PROTECTED]>
> >To: jBoss <[EMAIL PROTECTED]>
> >Subject: Re: [jBoss-User] JAWS O>R problem
> >Date: Mon, 22 May 2000 19:46:09 +0100
> >
> >Ina
> >
> >This is a bug reported by Fredrik Borgh (Bug 25 on Bugzilla). It is in
> >the storeEntity() method of JAWSPersistenceManager.java.
> >
> >Fredrik contributed a re-written method as an attachment to the bug
> >report. This can't just be plugged in to the current code, because
> >Rickard has made some changes since Fredrik posted his fix.
> >
> >If you look at the difference between the original jBoss2.0 zip (or
> >version 1.1.1.1 from CVS) and Fredrik's code for this method, you can
> >see clearly what Fredrik changed.
> >
> >Rickard: do you have some way of saving entities the rest of us don't
> >know about? :-)
> >
> >regards
> >
> >    Justin
> >
> >In message <[EMAIL PROTECTED]>, Indigo Blue
> ><[EMAIL PROTECTED]> writes
> > >Hi all,
> > >In my client app I create a new instance of an entity bean (passing the
> > >primary key as an argument of create method)and then try to call some of 
> >the
> > >set methods to set the other values.
> > >But then I get an exception due to JAWS trying to set the value of the 
> >filed
> > >to the primary key WHERE primary key =NULL. (bellow is the relenavt part 
> >of
> > >the server log)
> > >Where did I go wrong?
> > >Thanks in advance.
> > >Ina
> > >
> > >[JAWS] Create entity
> > >[JAWS] Create, id is 012
> > >[JAWS] Insert
> > >[JAWS] Executing:INSERT INTO exchange (currencySymbol,id,rate) VALUES
> > >(?,?,?)
> > >[ExchangeRateBean EJB] RMI TCP Connection(8)-130.205.88.207 INSERT INTO
> > >exchange
> > >( currencySymbol , id , rate ) VALUES ( NULL , 012 , 0.0 )
> > >[JAWS] Load SQL:SELECT currencySymbol,id,rate FROM exchange WHERE id=?
> > >[Default] RMI TCP Connection(8)-130.205.88.207 SELECT currencySymbol , id 
> >,
> > >rate FROM exchange WHERE id = 012
> > >[Default] RMI TCP Connection(8)-130.205.88.207
> > >java.lang.NullPointerException
> > >[Default] RMI TCP Connection(8)-130.205.88.207 UPDATE exchange SET
> > >currencySymbol = 012 WHERE id = NULL
> > >[Default] java.rmi.ServerException: Store failed; nested exception is:
> > >        java.sql.SQLException
> > >[Default] java.sql.SQLException
> > >[Default]       at db.SQLProg.execute(SQLProg)
> > >
> > >________________________________________________________________________
> > >Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
> > >
> > >
> > >
> > >--
> > >--------------------------------------------------------------
> > >To subscribe:        [EMAIL PROTECTED]
> > >To unsubscribe:      [EMAIL PROTECTED]
> > >Problems?:           [EMAIL PROTECTED]
> > >
> >
> >--
> >Justin Forder
> >
> >
> >--
> >--------------------------------------------------------------
> >To subscribe:        [EMAIL PROTECTED]
> >To unsubscribe:      [EMAIL PROTECTED]
> >Problems?:           [EMAIL PROTECTED]
> >
> 
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
> 
> 
> 
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Problems?:           [EMAIL PROTECTED]
> 
> 



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to