You can subscribe to this list here.
| 2007 |
Jan
|
Feb
|
Mar
(927) |
Apr
(419) |
May
(352) |
Jun
(431) |
Jul
(463) |
Aug
(345) |
Sep
(304) |
Oct
(596) |
Nov
(466) |
Dec
(414) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2008 |
Jan
(348) |
Feb
(313) |
Mar
(665) |
Apr
(688) |
May
(434) |
Jun
(311) |
Jul
(540) |
Aug
(554) |
Sep
(467) |
Oct
(341) |
Nov
(365) |
Dec
(272) |
| 2009 |
Jan
(386) |
Feb
(293) |
Mar
(279) |
Apr
(239) |
May
(229) |
Jun
(199) |
Jul
(186) |
Aug
(111) |
Sep
(196) |
Oct
(146) |
Nov
(116) |
Dec
(140) |
| 2010 |
Jan
(170) |
Feb
(159) |
Mar
(151) |
Apr
(161) |
May
(90) |
Jun
(56) |
Jul
(28) |
Aug
(22) |
Sep
(5) |
Oct
|
Nov
(23) |
Dec
(12) |
| 2011 |
Jan
(8) |
Feb
(8) |
Mar
(22) |
Apr
(24) |
May
(4) |
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
| 2012 |
Jan
(5) |
Feb
(1) |
Mar
|
Apr
(1) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <jt...@hy...> - 2007-03-27 23:45:47
|
Author: jtravis Date: 2007-03-27 15:45:44 -0800 (Tue, 27 Mar 2007) New Revision: 3933 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=3933 Modified: trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/BaseController.groovy trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/dispatcher.groovy Log: Cleanup some tabs. Start using categories to add methods to resource types Modified: trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/BaseController.groovy =================================================================== --- trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/BaseController.groovy 2007-03-27 23:42:45 UTC (rev 3932) +++ trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/BaseController.groovy 2007-03-27 23:45:44 UTC (rev 3933) @@ -1,5 +1,7 @@ package org.hyperic.hq.ui.rendit +import org.hyperic.hq.ui.rendit.util.UserUtil + import org.apache.commons.lang.StringEscapeUtils import java.io.OutputStreamWriter @@ -8,8 +10,6 @@ import org.apache.commons.logging.LogFactory import org.hyperic.hq.authz.server.session.AuthzSubject -import org.hyperic.hq.ui.util.ContextUtils -import org.hyperic.hq.ui.util.RequestUtils import org.hyperic.hq.ui.rendit.helpers.LiveDataHelper import org.hyperic.hq.ui.rendit.helpers.ResourceHelper @@ -58,10 +58,7 @@ if (this.user != null) return this.user - def sessId = RequestUtils.getSessionId(invokeArgs.request) - def ctx = invokeArgs.request.session.servletContext - - this.user = ContextUtils.getAuthzBoss(ctx).getCurrentSubject(sessId) + this.user = UserUtil.getUser(invokeArgs) } // TODO: This all needs to be moved to a separate class Modified: trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/dispatcher.groovy =================================================================== --- trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/dispatcher.groovy 2007-03-27 23:42:45 UTC (rev 3932) +++ trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/dispatcher.groovy 2007-03-27 23:45:44 UTC (rev 3933) @@ -1,5 +1,11 @@ package org.hyperic.hq.ui.rendit +import org.hyperic.hq.ui.rendit.util.UserUtil +import org.hyperic.hq.ui.rendit.metaclass.AppdefLiveDataCategory +import org.hyperic.hq.ui.rendit.metaclass.CategoryInfo +import org.hyperic.hq.appdef.shared.AppdefEntityID + +import org.codehaus.groovy.runtime.InvokerHelper import org.apache.commons.logging.Log import org.apache.commons.logging.LogFactory @@ -9,6 +15,9 @@ * setting up the environment, and invoking the request. */ class Dispatcher { + private static final CATEGORIES = [ + AppdefLiveDataCategory + ] private Log log = LogFactory.getLog(Dispatcher.class); private String controllerName @@ -60,23 +69,32 @@ def loader = this.class.classLoader loader.addURL(appDir.toURL()) def controller = Class.forName(controllerName, true, - loader).newInstance() + loader).newInstance() action = path[2] - controller.setAction(action) - controller.setControllerName(path[1]) + controller.setAction(action) + controller.setControllerName(path[1]) controller.setPluginDir(invokeArgs.pluginDir) - controller.setInvokeArgs(invokeArgs) + controller.setInvokeArgs(invokeArgs) def runner = controller."$action" if (runner == null) - throw new IllegalArgumentException("Unknown action [$action]") + throw new IllegalArgumentException("Unknown action [$action]") - def start = System.currentTimeMillis() - runner(invokeArgs.request.parameterMap) - log.info "Executed $controllerName:$action in " + - "${System.currentTimeMillis() - start} ms" - return true + def start = System.currentTimeMillis() + + try { + CategoryInfo.setUser(UserUtil.getUser(invokeArgs)) + use (*CATEGORIES) { + runner(invokeArgs.request.parameterMap) + } + } finally { + CategoryInfo.setUser(null) + } + + log.info "Executed $controllerName:$action in " + + "${System.currentTimeMillis() - start} ms" + return true } } |
|
From: <jt...@hy...> - 2007-03-27 23:42:48
|
Author: jtravis Date: 2007-03-27 15:42:45 -0800 (Tue, 27 Mar 2007) New Revision: 3932 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=3932 Modified: trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/helpers/LiveDataHelper.groovy Log: Use categories, and simplify APIs so that we only deal with entity IDs and not resource value objects Modified: trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/helpers/LiveDataHelper.groovy =================================================================== --- trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/helpers/LiveDataHelper.groovy 2007-03-27 23:42:18 UTC (rev 3931) +++ trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/helpers/LiveDataHelper.groovy 2007-03-27 23:42:45 UTC (rev 3932) @@ -2,7 +2,6 @@ import org.hyperic.hq.product.PluginNotFoundException import org.hyperic.hq.appdef.shared.AppdefEntityID -import org.hyperic.hq.appdef.shared.AppdefResourceValue import org.hyperic.util.config.ConfigResponse import org.hyperic.hq.livedata.server.session.LiveDataManagerEJBImpl import org.hyperic.hq.livedata.shared.LiveDataResult @@ -17,10 +16,6 @@ private getDataMan() { LiveDataManagerEJBImpl.one } - String[] getCommands(AppdefResourceValue resource) { - dataMan.getCommands(userVal, resource.entityId) - } - String[] getCommands(AppdefEntityID id) { dataMan.getCommands(userVal, id) } @@ -29,19 +24,21 @@ dataMan.getData(userVal, commands) } - LiveDataResult getData(LiveDataCommand command) - { + LiveDataResult getData(AppdefEntityID ent, String command, config) { + def cmd = [ent, command, config as ConfigResponse] as LiveDataCommand + dataMan.getData(userVal, cmd) + } + + LiveDataResult getData(LiveDataCommand command) { dataMan.getData(userVal, command) } /** * Check if a resource supports a command. - * XXX: Would be cool if we could just attach this functionality directly - * to the entity ID or the resource via categories or metaclasses! */ boolean resourceSupports(AppdefEntityID id, String command) { try { - return (dataMan.getCommands(userVal, id) as List).contains(command) + return (id.liveDataCommands as List).contains(command) } catch(PluginNotFoundException e) { return false } |
|
From: <jt...@hy...> - 2007-03-27 23:42:21
|
Author: jtravis Date: 2007-03-27 15:42:18 -0800 (Tue, 27 Mar 2007) New Revision: 3931 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=3931 Added: trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/util/ trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/util/UserUtil.groovy Log: Utility class to get & deal with user objects Added: trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/util/UserUtil.groovy =================================================================== --- trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/util/UserUtil.groovy (rev 0) +++ trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/util/UserUtil.groovy 2007-03-27 23:42:18 UTC (rev 3931) @@ -0,0 +1,15 @@ +package org.hyperic.hq.ui.rendit.util + +import org.hyperic.hq.ui.util.ContextUtils +import org.hyperic.hq.ui.util.RequestUtils +import org.hyperic.hq.ui.rendit.InvocationBindings +import org.hyperic.hq.authz.server.session.AuthzSubject + +class UserUtil { + static AuthzSubject getUser(InvocationBindings b) { + def sessId = RequestUtils.getSessionId(b.request) + def ctx = b.request.session.servletContext + + return ContextUtils.getAuthzBoss(ctx).getCurrentSubject(sessId) + } +} \ No newline at end of file |
|
From: <jt...@hy...> - 2007-03-27 23:42:06
|
Author: jtravis Date: 2007-03-27 15:42:02 -0800 (Tue, 27 Mar 2007) New Revision: 3930 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=3930 Added: trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/metaclass/ trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/metaclass/AppdefLiveDataCategory.groovy trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/metaclass/CategoryInfo.groovy Log: Add Categories for live data, and a utility class to store the current user Added: trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/metaclass/AppdefLiveDataCategory.groovy =================================================================== --- trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/metaclass/AppdefLiveDataCategory.groovy (rev 0) +++ trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/metaclass/AppdefLiveDataCategory.groovy 2007-03-27 23:42:02 UTC (rev 3930) @@ -0,0 +1,60 @@ +package org.hyperic.hq.ui.rendit.metaclass + +import org.hyperic.hq.appdef.shared.PlatformValue +import org.hyperic.hq.appdef.shared.AppdefResourceValue +import org.hyperic.hq.livedata.shared.LiveDataResult +import org.hyperic.hq.ui.rendit.helpers.LiveDataHelper +import org.hyperic.hq.appdef.shared.AppdefEntityID + +import groovy.lang.DelegatingMetaClass + +/** + * This category adds utility methods to appdef types, to interface with + * LiveData. + */ +class AppdefLiveDataCategory { + /** + * AppdefEntityID.liveDataCommands + * See also: LiveDataHelper.getCommands + */ + static String[] getLiveDataCommands(AppdefEntityID ent) { + def ldh = new LiveDataHelper(CategoryInfo.user) + ldh.getCommands(ent) + } + + static String[] getLiveDataCommands(AppdefResourceValue ent) { + getLiveDataCommands(ent.entityId) + } + + /** + * AppdefEntityID.getLiveData(command, ?optionalConfigMap?) + * See also: LiveDataHelper.getData + * + * The optional config map is .. optional, but if specified, must be a + * map of string keys and string values, specifying the configuration to + * pass to the command + */ + static LiveDataResult getLiveData(AppdefEntityID ent, String command, + Object[] args) + { + def ldh = new LiveDataHelper(CategoryInfo.user) + def config + + if (args.length == 0) { + config = [:] + } else if (args.length == 1) { + config = args[0] + } else { + throw new IllegalArgumentException("Too many arguments to " + + "getLiveData()") + } + + ldh.getData(ent, command, config) + } + + static LiveDataResult getLiveData(AppdefResourceValue ent, String command, + Object[] args) + { + getLiveData(ent.entityId, command, args) + } +} Added: trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/metaclass/CategoryInfo.groovy =================================================================== --- trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/metaclass/CategoryInfo.groovy (rev 0) +++ trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/metaclass/CategoryInfo.groovy 2007-03-27 23:42:02 UTC (rev 3930) @@ -0,0 +1,16 @@ +package org.hyperic.hq.ui.rendit.metaclass + +/** + * This class holds onto data that is used by the categories + */ +class CategoryInfo { + private static final ThreadLocal USER = new ThreadLocal() + + static void setUser(user) { + USER.set(user) + } + + static getUser() { + USER.get() + } +} |
|
From: <jt...@hy...> - 2007-03-27 23:35:55
|
Author: jtravis Date: 2007-03-27 15:35:40 -0800 (Tue, 27 Mar 2007) New Revision: 3929 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=3929 Modified: trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/helpers/ResourceHelper.groovy Log: Allow for an string array of length 1 when doing findSingle, to make UI programming simpler Modified: trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/helpers/ResourceHelper.groovy =================================================================== --- trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/helpers/ResourceHelper.groovy 2007-03-27 23:16:14 UTC (rev 3928) +++ trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/helpers/ResourceHelper.groovy 2007-03-27 23:35:40 UTC (rev 3929) @@ -96,6 +96,14 @@ NAME_FINDERS.keySet()) def resourceVal = args[resourceType] + if (resourceVal instanceof String[]) { + if (resourceVal.length != 1) { + throw new IllegalArgumentException("findSingle does not " + + "accept > 1 id") + } + resourceVal = resourceVal[0] + } + def argType = (resourceVal instanceof String) ? 'str' : 'int' if (argType == 'str') { |
|
From: John M. W. <joh...@hy...> - 2007-03-27 23:20:36
|
Could it be a permissions issue? Is ping-plugin.xml (in your server dir) writable by the HQ server process owner? |
|
From: <rm...@hy...> - 2007-03-27 23:16:18
|
Author: rmorgan Date: 2007-03-27 15:16:14 -0800 (Tue, 27 Mar 2007) New Revision: 3928 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=3928 Modified: trunk/ui_plugins/hqu_livedata/app/LiveController.groovy Log: Integer.parseInt not needed. Modified: trunk/ui_plugins/hqu_livedata/app/LiveController.groovy =================================================================== --- trunk/ui_plugins/hqu_livedata/app/LiveController.groovy 2007-03-27 22:55:13 UTC (rev 3927) +++ trunk/ui_plugins/hqu_livedata/app/LiveController.groovy 2007-03-27 23:16:14 UTC (rev 3928) @@ -9,7 +9,7 @@ } def showResource = { params -> - def platId = Integer.parseInt(params['id'][0]) + def platId = params['id'][0] def plat = resourceHelper.find(platform:platId) def cmds = liveDataHelper.getCommands(plat) def command = params['command'] |
|
From: <rm...@hy...> - 2007-03-27 22:55:28
|
Author: rmorgan Date: 2007-03-27 14:55:13 -0800 (Tue, 27 Mar 2007) New Revision: 3927 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=3927 Modified: trunk/build.xml Log: Fix installer packaging. Modified: trunk/build.xml =================================================================== --- trunk/build.xml 2007-03-27 22:35:35 UTC (rev 3926) +++ trunk/build.xml 2007-03-27 22:55:13 UTC (rev 3927) @@ -1368,7 +1368,7 @@ <fileset dir="${thirdparty.lib}"> <include name="oracle_jdbc/ojdbc14.jar"/> <include name="postgresql/postgresql-8.1-*.jdbc3.jar"/> - <include name="mysql_jdbc/mysql-connector-java-3.0.12-*.jar"/> + <include name="mysql_jdbc/mysql*.jar"/> <include name="jakarta-oro*.jar" /> <include name="ant-contrib.jar" /> <include name="commons-logging.jar"/> |
|
From: <rm...@hy...> - 2007-03-27 22:35:40
|
Author: rmorgan Date: 2007-03-27 14:35:35 -0800 (Tue, 27 Mar 2007) New Revision: 3926 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=3926 Modified: trunk/ui_plugins/hqu_livedata/app/LiveController.groovy trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/helpers/LiveDataHelper.groovy Log: Clean up getData API for single commands. Modified: trunk/ui_plugins/hqu_livedata/app/LiveController.groovy =================================================================== --- trunk/ui_plugins/hqu_livedata/app/LiveController.groovy 2007-03-27 21:55:08 UTC (rev 3925) +++ trunk/ui_plugins/hqu_livedata/app/LiveController.groovy 2007-03-27 22:35:35 UTC (rev 3926) @@ -1,5 +1,6 @@ import org.hyperic.hq.ui.rendit.BaseController +import org.hyperic.hq.livedata.shared.LiveDataCommand import org.hyperic.util.config.ConfigResponse public class LiveController extends BaseController { @@ -16,7 +17,9 @@ if (command != null) { command = command[0] - result = liveDataHelper.getData(plat, command, [:]).XMLResult + def cmd = [plat.entityId, command, + [:] as ConfigResponse] as LiveDataCommand + result = liveDataHelper.getData(cmd).XMLResult } render(args:[resource:plat, cmds:cmds, result:result, command:command]) Modified: trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/helpers/LiveDataHelper.groovy =================================================================== --- trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/helpers/LiveDataHelper.groovy 2007-03-27 21:55:08 UTC (rev 3925) +++ trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/helpers/LiveDataHelper.groovy 2007-03-27 22:35:35 UTC (rev 3926) @@ -29,12 +29,9 @@ dataMan.getData(userVal, commands) } - LiveDataResult getData(AppdefResourceValue resource, String command, - config) + LiveDataResult getData(LiveDataCommand command) { - def cmd = [resource.entityId, command, - config as ConfigResponse] as LiveDataCommand - dataMan.getData(userVal, cmd) + dataMan.getData(userVal, command) } /** |
|
From: <cl...@hy...> - 2007-03-27 21:55:19
|
Author: clee Date: 2007-03-27 13:55:08 -0800 (Tue, 27 Mar 2007) New Revision: 3925 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=3925 Added: trunk/thirdparty/lib/mysql_jdbc/mysql-connector-java-5.0.5-bin.jar Removed: trunk/thirdparty/lib/mysql_jdbc/mysql-connector-java-3.0.12-production-bin.jar Log: Update MySQL JDBC driver Deleted: trunk/thirdparty/lib/mysql_jdbc/mysql-connector-java-3.0.12-production-bin.jar =================================================================== (Binary files differ) Added: trunk/thirdparty/lib/mysql_jdbc/mysql-connector-java-5.0.5-bin.jar =================================================================== (Binary files differ) Property changes on: trunk/thirdparty/lib/mysql_jdbc/mysql-connector-java-5.0.5-bin.jar ___________________________________________________________________ Name: svn:mime-type + application/octet-stream |
|
From: Brad F. <br...@br...> - 2007-03-27 21:48:46
|
I have upgraded to v3.0.2 on both server and agent, and still no joy. Attached is a shot of what I see. I have done this before on v2.7.x. |
|
From: <cl...@hy...> - 2007-03-27 21:32:36
|
Author: clee
Date: 2007-03-27 13:32:30 -0800 (Tue, 27 Mar 2007)
New Revision: 83
Modified:
trunk/hibernate-build.xml
Log:
Don't override the hibernate dialect already defined
Modified: trunk/hibernate-build.xml
===================================================================
--- trunk/hibernate-build.xml 2007-03-08 23:55:08 UTC (rev 82)
+++ trunk/hibernate-build.xml 2007-03-27 21:32:30 UTC (rev 83)
@@ -84,9 +84,11 @@
<property name="hibernate.dialect" value="org.hyperic.hibernate.dialect.${hyperic.dialect}Dialect" />
</case>
<case value="mySQL">
- <property name="hyperic.dialect" value="MySQL" />
+ <property name="hyperic.dialect" value="MySQL5InnoDB" />
+ <property name="hibernate.dialect" value="org.hyperic.hibernate.dialect.${hyperic.dialect}Dialect" />
</case>
<default>
+ <property name="hibernate.dialect" value="org.hibernate.dialect.${hyperic.dialect}Dialect" />
<fail>
Unrecognized datasource mapping name: ${hq.server.ds-mapping}
</fail>
@@ -159,7 +161,6 @@
</sequential>
</for>
- <property name="hibernate.dialect" value="org.hibernate.dialect.${hyperic.dialect}Dialect" />
<echoproperties destfile="${hibernate-properties}.xml" format="xml">
<propertyset>
<propertyref prefix="mapping."/>
|
|
From: Brad F. <br...@br...> - 2007-03-27 21:15:26
|
This may be the issue. As it is, visiting the Configuration Properties section gives me the error message I specified in my thread-opening post, and I am not allowed to proceed with configuration at all. |
|
From: Doug M. (JIRA) <ji...@hy...> - 2007-03-27 21:14:37
|
Add Mule 1.4 support
--------------------
Key: HHQ-787
URL: http://jira.hyperic.com/browse/HHQ-787
Project: Hyperic HQ
Type: New Feature
Components: Plugins
Reporter: Doug MacEachern
Assigned to: Doug MacEachern
Priority: Minor
Developer snapshot builds are available:
http://mule.mulesource.org/display/MULE/Download
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.hyperic.com/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
|
|
From: Brad F. <br...@br...> - 2007-03-27 21:13:18
|
I guess I should have been more specific. :) In 2.7.x, entering a percentage would NOT be accepted by HQ. If this behavior has changed, then I stand/sit corrected. |
|
From: <cl...@hy...> - 2007-03-27 21:05:33
|
Author: clee Date: 2007-03-27 13:05:29 -0800 (Tue, 27 Mar 2007) New Revision: 3924 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=3924 Modified: trunk/src/org/hyperic/tools/db/DataSet.java Log: Both Oracle and MySQL represent boolean with tinyint columns. MySQL, in particular, does not like to have the value be passed in SQL as a String. Modified: trunk/src/org/hyperic/tools/db/DataSet.java =================================================================== --- trunk/src/org/hyperic/tools/db/DataSet.java 2007-03-27 20:58:39 UTC (rev 3923) +++ trunk/src/org/hyperic/tools/db/DataSet.java 2007-03-27 21:05:29 UTC (rev 3924) @@ -26,10 +26,9 @@ package org.hyperic.tools.db; import java.sql.PreparedStatement; +import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; -import java.sql.ResultSet; -import org.hyperic.util.jdbc.JDBC; import org.apache.oro.text.perl.Perl5Util; @@ -37,7 +36,6 @@ { private DBSetup m_parent; private String m_strTableName; - private boolean m_bVerbose; private static Perl5Util regexp = new Perl5Util(); protected DataSet(String tableName, DBSetup dbsetup) @@ -85,7 +83,6 @@ protected String getCreateCommand() throws SQLException { - int index; int iCols = this.getNumberColumns(); StringBuffer strCmd = new StringBuffer("INSERT INTO "); @@ -119,7 +116,6 @@ protected String getUpdateCommand() throws SQLException { - int index; int iCols = this.getNumberColumns(); StringBuffer strCmd = new StringBuffer("UPDATE "); @@ -236,16 +232,22 @@ } if (strValue != null) { - // We need to replace the value 'TRUE' with '1' if this is - // Oracle. It's a hack to have this code in this class until I - // do some restructuring of the code - if (m_parent.getDbType() == OracleTable.CLASS_TYPE) { - if (strValue.compareTo("TRUE") == 0) - strValue = "1"; - else if (strValue.compareTo("FALSE") == 0) - strValue = "0"; + // We need to replace the value 'TRUE' with '1' and 'FALSE' with + // '0' if this is Oracle or MySQL. It's a hack to have this code + // in this class until I do some restructuring of the code + if (strValue.compareTo("TRUE") == 0 && + (m_parent.getDbType() == OracleTable.CLASS_TYPE || + m_parent.getDbType() == MySQLTable.CLASS_TYPE)) { + stmt.setInt(i + 1, 1); + continue; } - + else if (strValue.compareTo("FALSE") == 0 && + (m_parent.getDbType() == OracleTable.CLASS_TYPE || + m_parent.getDbType() == MySQLTable.CLASS_TYPE)) { + stmt.setInt(i + 1, 0); + continue; + } + stmt.setString(i + 1, strValue); } else { |
|
From: <cl...@hy...> - 2007-03-27 20:58:42
|
Author: clee Date: 2007-03-27 12:58:39 -0800 (Tue, 27 Mar 2007) New Revision: 3923 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=3923 Modified: trunk/installer/data/db-upgrade.xml Log: 3.23, not 3.33 - sorry if anyone was inconvenienced by this Modified: trunk/installer/data/db-upgrade.xml =================================================================== --- trunk/installer/data/db-upgrade.xml 2007-03-27 18:37:38 UTC (rev 3922) +++ trunk/installer/data/db-upgrade.xml 2007-03-27 20:58:39 UTC (rev 3923) @@ -5001,7 +5001,7 @@ </schema-directSQL> </schemaSpec> - <schemaSpec version="3.33"> + <schemaSpec version="3.23"> <schema-directSQL> <statement> ALTER TABLE EAM_CRISPO_OPT RENAME COLUMN KEY TO PROPKEY |
|
From: Doug M. (JIRA) <ji...@hy...> - 2007-03-27 20:55:37
|
Improve JDBCMeasurementPlugin exception handling
------------------------------------------------
Key: HHQ-786
URL: http://jira.hyperic.com/browse/HHQ-786
Project: Hyperic HQ
Type: Improvement
Components: Plugins
Reporter: Doug MacEachern
Assigned to: Doug MacEachern
Priority: Minor
Fix For: 2.6, 3.0.3
The plugin should throw MetricUnreachableException rather than MetricNotFoundException if the connection fails. This may require checking the vendor specific ErrorCode which the plugin does for Oracle but not for other databases.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.hyperic.com/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
|
|
From: Heather T. (JIRA) <ji...@hy...> - 2007-03-27 20:26:39
|
the icon with the arrows on the view service monitor page should not be clickable
----------------------------------------------------------------------------------
Key: HHQ-785
URL: http://jira.hyperic.com/browse/HHQ-785
Project: Hyperic HQ
Type: Bug
Components: UI
Versions: 3.0.2
Reporter: Heather Tumey
Assigned to: Charles Lee
Priority: Minor
confusing to have two buttons that do the same thing next to each other
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.hyperic.com/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
|
|
From: <jt...@hy...> - 2007-03-27 19:36:40
|
Author: jtravis Date: 2007-03-27 10:37:38 -0800 (Tue, 27 Mar 2007) New Revision: 3922 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=3922 Modified: trunk/src/org/hyperic/hq/ui/rendit/PluginWrapper.java Log: Plugin directory is no longer needed, as the dispatcher sets up a sub loader Modified: trunk/src/org/hyperic/hq/ui/rendit/PluginWrapper.java =================================================================== --- trunk/src/org/hyperic/hq/ui/rendit/PluginWrapper.java 2007-03-27 17:49:05 UTC (rev 3921) +++ trunk/src/org/hyperic/hq/ui/rendit/PluginWrapper.java 2007-03-27 18:37:38 UTC (rev 3922) @@ -26,7 +26,6 @@ try { u = new URL[] { sysDir.toURL(), - _pluginDir.toURL(), }; } catch(MalformedURLException e) { throw new RuntimeException(e); |
|
From: Charles L. <cl...@hy...> - 2007-03-27 17:16:32
|
Actually, Brad, you can use '90%' or '100%' if you want. It's not so odd, 100% is mathematically equal to 1. :-) Charles |
|
From: Noah S. <noa...@hy...> - 2007-03-27 17:03:41
|
If you add a % symbol after the number than it will be correctly interpreted as a percentage rather than a raw value. |
|
From: Noah S. (JIRA) <ji...@hy...> - 2007-03-27 16:59:37
|
[ http://jira.hyperic.com/browse/HHQ-450?page=comments#action_16149 ] Noah Salzman commented on HHQ-450: ---------------------------------- Here is another Forum questioner with the same problem: http://forums.hyperic.com/jiveforums/thread.jspa?threadID=1720&tstart=0 > hq-server.exe should fail with a useful error if the database isn't found > ------------------------------------------------------------------------- > > Key: HHQ-450 > URL: http://jira.hyperic.com/browse/HHQ-450 > Project: Hyperic HQ > Type: Developer > Versions: 3.0.0, 2.7.6 > Reporter: Noah Salzman > Assignee: Jon Travis > Priority: Minor > Fix For: 3.1.0 > > > It is very confusing to a new user of Hyperic that hq-server.exe (if not yet installed as a service) will happily try to start up if the database isn't running. > In the spirit of making HQ as painless as possible to get started with we should have hq-server.exe error politely and exit if there is no database running. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.hyperic.com/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
From: Ryan M. <rm...@hy...> - 2007-03-27 16:58:22
|
I should also mention that I tested this on 3.0.2. I seem to recall a bug in the 3.0 beta or 3.0.1 time frame that would cause that message to not go away once the resource has been configured. So a server upgrade to 3.0.2 may be in order. -Ryan |
|
From: Ryan M. <rm...@hy...> - 2007-03-27 16:56:47
|
Hi Brad, I think this is the desired behavior, right? After creating the ping service, you need to tell HQ which host to ping. >From the inventory tab on your ping service there should be a Configuration Properties section at the very bottom. Click the header to expand the current configuration. From there you can set what host to ping, etc. The rolled up inventory page is different in 3.0, which may be the source of confusion here. -Ryan |