cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <ba...@webslingerZ.com>
Subject Re: SQL-Null-Pointer-Exception!!!!!!!!!
Date Thu, 01 Jun 2000 16:18:59 GMT
On Thu, 1 Jun 2000, mohamed ramzy wrote:

> hi
> i'm trying to make a dynamic queries by useing
> SQLtaglib...
> 
> i did the following :
> 
> <sql:execute-query>
> <sql:driver>org.gjt.mm.mysql.Driver</sql:driver>
> <sql:dburl>jdbc:mysql://localhost/Ramzy1</sql:dburl>
> <sql:username>rrr</sql:username>
> <sql:password>rrr</sql:password>
> <sql:query>select name,owner from pet  </sql:query>
> </sql:execute-query>
> 
> 
> and i got the NULLPointerException error...does any 1
> knows what is going on !!!!!!?????
> 
> NB: i did the same query with normal cocoon's SQL and
> it worked but i found that i can't make dynamic query
> unless by useing SQLTaglib....!!!!

What version of cocoon are you using? Older versions would give an NPE if
you didn't specify a doc-element. Try upgrading or adding a doc-element,
or post your full stacktrace.

- donald


Mime
View raw message