Yes, that makes no difference,using 
<sql:getColumn postion="1"/> or <sql:getColumn colName="wanted_text"/>

Maybe it's a bug in Resin 2.0.x ? The thing works correctly in Tomcat 3.2.3
on my localhost.

The strangest thing is that when there is exactly one row in the db, it
works.

In most cases (not with more complex sql queries) I can fix the nullpointer
error by modifying the following:


in BaseGetterTag.java you have the
variable _name.
The first time this _name is the column name I'm requesting results from.
(eg. wanted_text)
(in the sql query)
For the second element in the results of the sql query  ... _name has become
null.

Removing _name = null in the release() method fixes this error. (but maybe
will introduce other errors)
 I've not yet found why and where this _name variable  is set and why it is
set the first time and not set the second time.


Wim


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: dinsdag 4 december 2001 15:36
> To: [EMAIL PROTECTED]
> Subject: Re: nullpointer exceptions when using DBTAGS !
> 
> 
> --- You wrote:
> <sql:resultSet id="rset2">
>   <li><sql:getColumn colName="wanted_text"/>
> 
> </sql:resultSet>
> --- end of quote ---
> Did you try that with something like:
> 
> <sql:getColumn postion="1"/>
> 
> also, just to see if you could get anything back in the resultSet?
> 
> from the nullpointer error it seems like the resultset might be empty.
> 
> -brett tofel
> 
> --
> 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