and the currencySymbol is not null in your code?

marc


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Indigo Blue
> Sent: Monday, May 22, 2000 10:03 AM
> To: [EMAIL PROTECTED]
> Subject: [jBoss-User] JAWS O>R problem
> 
> 
> 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]
> 


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

Reply via email to