I get this error when attempting to connect to a sybase database.
The configuration has not been set for this resource due to : Invalid configuration: Error retrieving value: Query failed for Availability: JZ00L: Login failed. Examine the SQLWarnings chained to this exception for the reason(s).
I have tested the same settings on a Hyperic 3.2.4 agent connecting to a 3.2.4 HQ without any problems.
Excerpt from the agent.log at debug level:
2008-09-24 15:50:20,785 DEBUG [AsyncInvoker-1] [MeasurementCommandsService] Error getting real time measurement 'sybase:Type=Server:Availability:jdbcUrl=jdbc%3Asybase%3ATds%3Amortenk-v%3A5000/master,jdbcUser=sa,jdbcPassword=': Error retrieving value: Query failed for Availability: JZ00L: Login failed. Examine the SQLWarnings chained to this exception for the reason(s).
org.hyperic.hq.product.MetricNotFoundException: Query failed for Availability: JZ00L: Login failed. Examine the SQLWarnings chained to this exception for the reason(s).
at org.hyperic.hq.plugin.sybase.SybaseMeasurementPlugin.getValue(SybaseMeasurementPlugin.java:296)
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.measurement.agent.server.MeasurementCommandsService.getMeasurements(MeasurementCommandsService.java:201)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.remoting.transporter.TransporterHandler.invoke(TransporterHandler.java:83)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:809)
at com.hyperic.hq.transport.unidirectional.ServerInvocationHandler.handleInvocation(ServerInvocationHandler.java:48)
at org.hyperic.hq.transport.util.AsynchronousInvocationHandler.run(AsynchronousInvocationHandler.java:68)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
at java.lang.Thread.run(Unknown Source)
Caused by: java.sql.SQLException: JZ00L: Login failed. Examine the SQLWarnings chained to this exception for the reason(s).
at com.sybase.jdbc3.jdbc.ErrorMessage.raiseError(ErrorMessage.java:565)
at com.sybase.jdbc3.tds.Tds.processLoginAckToken(Tds.java:3765)
at com.sybase.jdbc3.tds.Tds.doLogin(Tds.java:576)
at com.sybase.jdbc3.tds.Tds.login(Tds.java:459)
at com.sybase.jdbc3.jdbc.SybConnection.tryLogin(SybConnection.java:247)
at com.sybase.jdbc3.jdbc.SybConnection.regularConnect(SybConnection.java:223)
at com.sybase.jdbc3.jdbc.SybConnection.<init>(SybConnection.java:198)
at com.sybase.jdbc3.jdbc.SybConnection.<init>(SybConnection.java:132)
at com.sybase.jdbc3.jdbc.SybDriver.connect(SybDriver.java:179)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at org.hyperic.hq.plugin.sybase.SybaseMeasurementPlugin.getConnection(SybaseMeasurementPlugin.java:94)
at org.hyperic.hq.product.JDBCMeasurementPlugin.getCachedConnection(JDBCMeasurementPlugin.java:199)
at org.hyperic.hq.product.JDBCMeasurementPlugin.getCachedConnection(JDBCMeasurementPlugin.java:188)
at org.hyperic.hq.plugin.sybase.SybaseMeasurementPlugin.getValue(SybaseMeasurementPlugin.java:286)
... 16 more
The configuration has not been set for this resource due to : Invalid configuration: Error retrieving value: Query failed for Availability: JZ00L: Login failed. Examine the SQLWarnings chained to this exception for the reason(s).
I have tested the same settings on a Hyperic 3.2.4 agent connecting to a 3.2.4 HQ without any problems.
Excerpt from the agent.log at debug level:
2008-09-24 15:50:20,785 DEBUG [AsyncInvoker-1] [MeasurementCommandsService] Error getting real time measurement 'sybase:Type=Server:Availability:jdbcUrl=jdbc%3Asybase%3ATds%3Amortenk-v%3A5000/master,jdbcUser=sa,jdbcPassword=': Error retrieving value: Query failed for Availability: JZ00L: Login failed. Examine the SQLWarnings chained to this exception for the reason(s).
org.hyperic.hq.product.MetricNotFoundException: Query failed for Availability: JZ00L: Login failed. Examine the SQLWarnings chained to this exception for the reason(s).
at org.hyperic.hq.plugin.sybase.SybaseMeasurementPlugin.getValue(SybaseMeasurementPlugin.java:296)
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.measurement.agent.server.MeasurementCommandsService.getMeasurements(MeasurementCommandsService.java:201)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.remoting.transporter.TransporterHandler.invoke(TransporterHandler.java:83)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:809)
at com.hyperic.hq.transport.unidirectional.ServerInvocationHandler.handleInvocation(ServerInvocationHandler.java:48)
at org.hyperic.hq.transport.util.AsynchronousInvocationHandler.run(AsynchronousInvocationHandler.java:68)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
at java.lang.Thread.run(Unknown Source)
Caused by: java.sql.SQLException: JZ00L: Login failed. Examine the SQLWarnings chained to this exception for the reason(s).
at com.sybase.jdbc3.jdbc.ErrorMessage.raiseError(ErrorMessage.java:565)
at com.sybase.jdbc3.tds.Tds.processLoginAckToken(Tds.java:3765)
at com.sybase.jdbc3.tds.Tds.doLogin(Tds.java:576)
at com.sybase.jdbc3.tds.Tds.login(Tds.java:459)
at com.sybase.jdbc3.jdbc.SybConnection.tryLogin(SybConnection.java:247)
at com.sybase.jdbc3.jdbc.SybConnection.regularConnect(SybConnection.java:223)
at com.sybase.jdbc3.jdbc.SybConnection.<init>(SybConnection.java:198)
at com.sybase.jdbc3.jdbc.SybConnection.<init>(SybConnection.java:132)
at com.sybase.jdbc3.jdbc.SybDriver.connect(SybDriver.java:179)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at org.hyperic.hq.plugin.sybase.SybaseMeasurementPlugin.getConnection(SybaseMeasurementPlugin.java:94)
at org.hyperic.hq.product.JDBCMeasurementPlugin.getCachedConnection(JDBCMeasurementPlugin.java:199)
at org.hyperic.hq.product.JDBCMeasurementPlugin.getCachedConnection(JDBCMeasurementPlugin.java:188)
at org.hyperic.hq.plugin.sybase.SybaseMeasurementPlugin.getValue(SybaseMeasurementPlugin.java:286)
... 16 more