cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <ba...@webslingerZ.com>
Subject Re: [C1.8.1-dev] NullPointerException in ESQL code
Date Thu, 30 Nov 2000 21:53:47 GMT
On Thu, 30 Nov 2000, Drasko Kokic wrote:

> Hi *,
> 
> I am getting often this error:
> 
> java.lang.NullPointerException
>         at
> _D_._kodra._test._case_007.populateDocument(_case_007.java:349)
> 
> the line where it breaks is:
> 
> if(!_esql_connection.connection.getAutoCommit()) {
> 
> in the following block:
> 
>     if (_esql_queries.empty()) {
>       _esql_query = null;
>     } else {
>       _esql_query = (EsqlQuery)_esql_queries.pop();
>     }
>   
>       
>     } finally {
>       if(!_esql_connection.connection.getAutoCommit())
> {
>         _esql_connection.connection.commit();
>       }
>       
>          
> _esql_pool.releaseConnection(_esql_connection.db_connection);

tell me - is it always the case when you get these NPEs that an exception
has occured, or does it also happen when a connection is closing normally?

- donald


Mime
View raw message