Quantcast
Channel: VMware Communities : Popular Discussions - Hyperic User Forums
Viewing all articles
Browse latest Browse all 52618

"result set is closed" error while testing own DB2 plugin.

$
0
0
I have created my own SQL Query plugin for a simple test of db2.

Here is the error I am getting:
Simple ALIS Number of Tables:
   sql:SELECT COUNT(*) FROM syscat.tables:Number of Tables:jdbcDriver=com.ibm.db2.jcc.DB2Driver,jdbcUrl=jdbc%3Adb2%3A//myserver%3A50004/XXX,jdbcUser=myuser,jdbcPassword=*****
getValue failed for metric: Simple ALIS:sql:SELECT COUNT(*) FROM syscat.tables:Number of Tables:jdbcDriver=com.ibm.db2.jcc.DB2Driver,jdbcUrl=jdbc%3Adb2%3A//myserver%3A50004/XXX,jdbcUser=myuser,jdbcPassword=*****
MetricNotFoundException: Query failed for Number of Tables, while attempting to issue query SELECT COUNT(*) FROM syscat.tables:[jcc][t4][10120][10898][3.51.90] Invalid operation: result set is closed. ERRORCODE=-4470, SQLSTATE=null


Here is the metric I am trying to test:
<metric name="Number of Tables"
            template="sql:SELECT COUNT(*) FROM syscat.tables:Number of Tables"
            indicator="true"/>

Here is the command I am using to test:
java -jar ./agent-4.5/bundles/agent-4.5/pdk/lib/hq-pdk-4.5.jar \
-Dplugins.include=simplealis \
-Dcom.ibm.db2.jcc.DB2BaseDataSource.allowNextOnExhaustedResultSet=1  \
-DjdbcUrl=jdbc:db2://myserver:50004/XXX  \
-DjdbcDriver=com.ibm.db2.jcc.DB2Driver  \
-DjdbcUser=myuser \
-DjdbcPassword=***** -t "Simple ALIS"

I tried with and wo com.ibm.db2.jcc.DB2BaseDataSource.allowNextOnExhaustedResultSet=1.

I am able to run the sample SQL Query plugin from this url:
http://support.hyperic.com/display/EVO/SQL+Query+Plugin

I am new to hyperic so this could definitely be a noob error.

Viewing all articles
Browse latest Browse all 52618

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>