As I was the one who pushed for Scarab to be used for issue reporting
I have decided to follow my own suggestion..

I have entered the defect as reported in Scarab and uploaded my 
patch to the system as well.

http://scarab.werken.com/scarab/issues/id/OJB110

Russell

> -----Original Message-----
> From: Russell Smyth [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 22, 2002 9:27 AM
> To: 'OJB Users List'
> Subject: RE: null value for Blob/Clob causes NullPointerException
> 
> 
> We just happened to run into this yesterday also. I posted a 
> patch from home
> last night, but for some reason it did not arrive here.... I 
> will repost
> when I can.
> 
> > -----Original Message-----
> > From: Michael Mogley [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, November 21, 2002 8:12 PM
> > To: [EMAIL PROTECTED]
> > Subject: null value for Blob/Clob causes NullPointerException
> > 
> > 
> > I've just started experimenting with Ojb and seem to have run 
> > across a bug.  Specifically, a Clob or Blob field whose value 
> > is undefined in the db gives the following stack trace:
> > 
> > java.lang.NullPointerException
> >         at 
> > org.apache.ojb.broker.accesslayer.JdbcAccess.getObjectFromColu
> > mn(JdbcAccess.java:592)
> >         at 
> > org.apache.ojb.broker.accesslayer.JdbcAccess.getObjectFromColu
> > mn(JdbcAccess.java:469)
> >         at 
> > org.apache.ojb.broker.accesslayer.RowReaderDefaultImpl.readObj
> > ectArrayFrom(RowReaderDefaultImpl.java:141)
> >         at 
> > org.apache.ojb.broker.accesslayer.RsIterator.getObjectFromResu
> > ltSet(RsIterator.java:385)
> >         at 
> > 
> org.apache.ojb.broker.accesslayer.RsIterator.next(RsIterator.java:203)
> >         at 
> > org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.getCollec
> > tionByQuery(PersistenceBrokerImpl.java:1117)
> >         at 
> > org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.getCollec
> > tionByQuery(PersistenceBrokerImpl.java:1239)
> >         at 
> > org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.getCollec
> > tionByQuery(PersistenceBrokerImpl.java:1265)
> >         at 
> > org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.getCollec
> > tionByQuery(PersistenceBrokerImpl.java:1252)
> > 
> > Ojb attempts to perform operations on the Blob/Clob before 
> > checking to see if the returned value is null.
> > 
> > Or am I missing something?
> > 
> > Michael
> > 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to