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

MetricNotFoundException using sqlquery-plugin on DB2 9.5

$
0
0

When using sqlquery-plugin with DB2 9.5 on Windows XP running hyperic 4.6, the following exception is reported via the query:

 

ERROR [main] [SQLQueryMeasurementPlugin] Query failed for Query, while attempting to issue query <SELECT QUERY OMITTED>:[jcc][t4][10120][10898][3.57.116] Invalid operation: result set is closed. ERRORCODE=-4470, SQLSTATE=null

org.hyperic.hq.product.MetricNotFoundException: Query failed for Query, while attempting to issue query <SELECT QUERY OMITTED>:[jcc][t4][10120][10898][3.57.116] Invalid operation: result set is closed. ERRORCODE=-4470, SQLSTATE=null

at org.hyperic.hq.product.JDBCMeasurementPlugin.getQueryValue(JDBCMeasurementPlugin.java:334)

at org.hyperic.hq.plugin.sqlquery.SQLQueryMeasurementPlugin.getValue(SQLQueryMeasurementPlugin.java:368)

at org.hyperic.hq.product.MeasurementPluginManager.getPluginValue(MeasurementPluginManager.java:176)

at org.hyperic.hq.product.MeasurementPluginManager.getValue(MeasurementPluginManager.java:274)

at org.hyperic.hq.product.MeasurementPluginManager.getValue(MeasurementPluginManager.java:135)

at org.hyperic.hq.product.MeasurementPluginManager.getValue(MeasurementPluginManager.java:127)

at org.hyperic.hq.product.util.PluginDumper.getValue(PluginDumper.java:644)

at org.hyperic.hq.product.util.PluginDumper.fetchMetrics(PluginDumper.java:787)

at org.hyperic.hq.product.util.PluginDumper.fetchMetrics(PluginDumper.java:859)

at org.hyperic.hq.product.util.PluginDumper.invoke(PluginDumper.java:412)

at org.hyperic.hq.product.util.PluginMain.main(PluginMain.java:321)

Caused by: com.ibm.db2.jcc.am.SqlException: [jcc][t4][10120][10898][3.57.116] Invalid operation: result set is closed. ERRORCODE=-4470, SQLSTATE=null

at com.ibm.db2.jcc.am.bd.a(bd.java:660)

at com.ibm.db2.jcc.am.bd.a(bd.java:60)

at com.ibm.db2.jcc.am.bd.a(bd.java:103)

at com.ibm.db2.jcc.am.dm.Db(dm.java:4219)

at com.ibm.db2.jcc.am.dm.r(dm.java:1609)

at com.ibm.db2.jcc.am.dm.getMetaData(dm.java:1601)

at org.hyperic.hq.product.JDBCMeasurementPlugin.getSqlRow(JDBCMeasurementPlugin.java:351)

at org.hyperic.hq.product.JDBCMeasurementPlugin.getQueryValue(JDBCMeasurementPlugin.java:294)

... 10 more

 

After checking out the plugin code for the SQLQueryMeasurementPlugin, caught the metric exception, and adding simple jdbc select, result is returned. See method "getQueryValueOnException" in attached.

 

However, real issue in JDBCMeasurementPlugin. I have not debugged this code for build.


Viewing all articles
Browse latest Browse all 52618

Trending Articles