SpagoBI + Firebird DataSource (The result set is closed)

匿名 (未验证) 提交于 2019-12-03 01:36:02

问题:

I am using Spagobi version 3.6.0, Jaybird-2.2.2JDK_1.7 and Firebird 2.5 (x64). I set up a datasource and the testing is OK.

I set up a dataset and the preview shows the correct list of colunms, only there is no data. Access via some other SQL viewer shows the data.

The error message in the Catalina log is:

org.firebirdsql.jdbc.FBSQLException: The result set is closed  

Does anybody have an idea what I did wrong?

回答1:

After some testing the solution to your problem is to specify the connection property defaultHoldable=true in the connection URL of the datasource, so for example:

jdbc:firebirdsql://localhost/database?defaultHoldable=true 

As commented earlier you also need to upgrade to Jaybird 2.2.7, otherwise you will be confronted with bugs JDBC-304 and/or JDBC-305.

I haven't checked the code of SpagoBI, but it looks like SpagoBI assumes that result sets are always holdable over commit and executes its queries using auto commit. It should either not use auto commit, or check the DatabaseMetaData.getResultSetHoldability() and/or Connection.getHoldability() and explicitly request holdable result sets.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!