[ http://issues.apache.org/jira/browse/COCOON-401?page=all ] Helma van der Linden closed COCOON-401: ---------------------------------------
Resolution: 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