cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Helma van der Linden (JIRA)" <j...@apache.org>
Subject [jira] Reopened: (COCOON-401) [PATCH] SQLTransformer Query object prematurely closes connection causing NullPointerException when accessing ResultSet
Date Tue, 25 Oct 2005 13:43:57 GMT
     [ http://issues.apache.org/jira/browse/COCOON-401?page=all ]
     
Helma van der Linden reopened COCOON-401:
-----------------------------------------


reopened just to set the resolution to fixed

> [PATCH] SQLTransformer Query object prematurely closes connection causing NullPointerException
when accessing ResultSet
> -----------------------------------------------------------------------------------------------------------------------
>
>          Key: COCOON-401
>          URL: http://issues.apache.org/jira/browse/COCOON-401
>      Project: Cocoon
>         Type: Bug
>   Components: - Components: Sitemap
>     Versions: 2.0.4
>  Environment: Operating System: All
> Platform: All
>     Reporter: Brian Johnson
>     Assignee: Cocoon Developers Team
>  Attachments: SQLTransformer.patch, sqlproblem.txt
>
> The Query.execute() method closes the connection object after storing the ResultSet 
and ResultSetMetaData objects. This causes a NullPointerException when retrieving results
from certain J2EE connections (FirebirdDS, possibly others). There is no reason for the conn.close()
call as Query.close() closes everything and is called at the end of the SQLTransformer.executeQuery()
method. Removing conn.close() and conn = null from the end of the Query.excute() method fixes
the problem.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message