[JBoss JIRA] (AS7-2179) Operation description not consumable on CLI
by Thomas Diesler (Created) (JIRA)
Operation description not consumable on CLI
-------------------------------------------
Key: AS7-2179
URL: https://issues.jboss.org/browse/AS7-2179
Project: Application Server 7
Issue Type: Bug
Components: CLI, OSGi
Reporter: Thomas Diesler
Assignee: Alexey Loubyansky
The output below is not human consumable IMHO
{code}
[standalone@localhost:9999 /] /subsystem=osgi:read-resource-description(recursive=true)
{
"outcome" => "success",
"result" => {
"description" => "The the OSGi subsystem configuration.",
"head-comment-allowed" => true,
"tail-comment-allowed" => true,
"namespace" => "urn:jboss:domain:osgi:1.0",
"attributes" => {
"activation" => {
"description" => "Activation flag for the OSGi subsystem. Possible values: lazy, eager.",
"type" => STRING,
"default" => "LAZY",
"access-type" => "read-write",
"restart-required" => "no-services",
"storage" => "configuration"
},
"startlevel" => {
"description" => "The current Start Level of the OSGi Framework. Changing this value will change the start level of the Framework accordingly. ",
"type" => INT,
"access-type" => "read-write",
"restart-required" => "no-services",
"storage" => "runtime"
}
},
"children" => {
"configuration" => {
"description" => "A configuration entry.",
"model-description" => {"*" => {
"description" => "A configuration entry.",
"attributes" => {"entries" => {
"description" => "The list of configuration entries.",
"required" => true,
"type" => LIST,
"value-type" => UNDEFINED,
"access-type" => "read-only",
"restart-required" => "RESTART_ALL_SERVICES",
"storage" => "configuration"
}}
}}
},
"property" => {
"description" => "A framework property.",
"model-description" => {"*" => {
"description" => "A framework property.",
"attributes" => {"value" => {
"description" => "The framework property value.",
"type" => STRING,
"required" => true,
"access-type" => "read-only",
"restart-required" => "RESTART_ALL_SERVICES",
"storage" => "configuration"
}}
}}
},
"capability" => {
"description" => "A framework capability.",
"model-description" => {"*" => {
"description" => "A framework capability.",
"attributes" => {"startlevel" => {
"description" => "The startlevel for the capability.",
"type" => INT,
"required" => false,
"access-type" => "read-only",
"restart-required" => "RESTART_ALL_SERVICES",
"storage" => "configuration"
}}
}}
},
"bundle" => {
"description" => "Runtime bundle information.",
"model-description" => {"*" => {
"description" => "Runtime bundle information.",
"attributes" => {
"id" => {
"type" => LONG,
"description" => "The bundle ID.",
"access-type" => "read-only",
"storage" => "runtime"
},
"startlevel" => {
"type" => INT,
"description" => "The bundle's start level.",
"access-type" => "read-only",
"required" => false,
"storage" => "runtime"
},
"symbolic-name" => {
"type" => STRING,
"description" => "The bundle symbolic name.",
"access-type" => "read-only",
"storage" => "runtime"
},
"version" => {
"type" => STRING,
"description" => "The bundle version.",
"access-type" => "read-only",
"storage" => "runtime"
}
}
}}
}
}
}
}
[standalone@localhost:9999 /] Closed connection to localhost:9999
[tdiesler@tdvaio jboss-as-7.1.0.Alpha2-SNAPSHOT]$ ^C
[tdiesler@tdvaio jboss-as-7.1.0.Alpha2-SNAPSHOT]$ bin/jboss-admin.sh --connect
Connected to standalone controller at localhost:9999
[standalone@localhost:9999 /] /subsystem=osgi:read-resource-description(recursive=true,operations=true)
{
"outcome" => "success",
"result" => {
"description" => "The the OSGi subsystem configuration.",
"head-comment-allowed" => true,
"tail-comment-allowed" => true,
"namespace" => "urn:jboss:domain:osgi:1.0",
"attributes" => {
"activation" => {
"description" => "Activation flag for the OSGi subsystem. Possible values: lazy, eager.",
"type" => STRING,
"default" => "LAZY",
"access-type" => "read-write",
"restart-required" => "no-services",
"storage" => "configuration"
},
"startlevel" => {
"description" => "The current Start Level of the OSGi Framework. Changing this value will change the start level of the Framework accordingly. ",
"type" => INT,
"access-type" => "read-write",
"restart-required" => "no-services",
"storage" => "runtime"
}
},
"children" => {
"configuration" => {
"description" => "A configuration entry.",
"model-description" => {"*" => {
"description" => "A configuration entry.",
"attributes" => {"entries" => {
"description" => "The list of configuration entries.",
"required" => true,
"type" => LIST,
"value-type" => UNDEFINED,
"access-type" => "read-only",
"restart-required" => "RESTART_ALL_SERVICES",
"storage" => "configuration"
}},
"operations" => {
"read-children-names" => {
"operation-name" => "read-children-names",
"description" => "Gets the names of all children under the selected resource with the given type",
"request-properties" => {"child-type" => {
"type" => STRING,
"description" => "The name of the node under which to get the children names",
"nillable" => false
}},
"reply-properties" => {
"type" => LIST,
"description" => "The children names",
"value-type" => STRING
}
},
"read-operation-description" => {
"operation-name" => "read-operation-description",
"description" => "Gets the details of an operation on the given resource",
"request-properties" => {
"name" => {
"type" => STRING,
"description" => "The description of the operation. Undefined if not found",
"required" => false,
"nillable" => false
},
"locale" => {
"type" => STRING,
"nillable" => true,
"description" => "The locale to get the operation description in. If null, the default locale will be used"
}
},
"reply-properties" => {
"type" => OBJECT,
"description" => "The description of the operation. Undefined if not found"
}
},
"read-operation-names" => {
"operation-name" => "read-operation-names",
"description" => "Gets the names of all the operations for the given resource",
"reply-properties" => {
"type" => LIST,
"value-type" => STRING,
"description" => "The operation names"
}
},
"read-children-types" => {
"operation-name" => "read-children-types",
"description" => "Gets the type names of all the children under the selected resource",
"reply-properties" => {
"type" => LIST,
"description" => "The children types",
"value-type" => STRING
}
},
"remove" => {
"operation-name" => "remove",
"description" => "Remove a configuration entry.",
"request-properties" => {},
"reply-properties" => {}
},
"read-children-resources" => {
"operation-name" => "read-children-resources",
"description" => "Reads information about all of a resource's children that are of a given type",
"request-properties" => {
"child-type" => {
"type" => STRING,
"description" => "The name of the resource under which to get the child resources",
"nillable" => false
},
"recursive" => {
"type" => BOOLEAN,
"description" => "Whether to get the children recursively. If absent, false is the default",
"nillable" => true
},
"proxies" => {
"type" => BOOLEAN,
"description" => "Whether to include remote resources in a recursive query (i.e. host level resources in a query of the domain root; running server resources in a query of a host). If absent, false is the default",
"nillable" => true
},
"include-runtime" => {
"type" => BOOLEAN,
"description" => "Whether to include runtime attributes (i.e. those whose value does not come from the persistent configuration) in the response. If absent, false is the default. Ignored if the 'recursive' parameter is set to 'true'; i.e. runtime attributes can only be read in non-recursive queries.",
"required" => false,
"nillable" => true
},
"include-defaults" => {
"type" => BOOLEAN,
"description" => "Boolean to enable/disable default reading. In case it is set to false only attribute set by user are returned ignoring undefined.",
"required" => false,
"nillable" => true,
"default" => true
}
},
"reply-properties" => {
"type" => LIST,
"description" => "The children resources",
"value-type" => OBJECT
}
},
"read-resource-description" => {
"operation-name" => "read-resource-description",
"description" => "Gets the description of a resource's attributes, types of children and, optionally, operations",
"request-properties" => {
"operations" => {
"type" => BOOLEAN,
"description" => "Whether to include descriptions of the resource's operations. Default is false",
"required" => false,
"nillable" => true
},
"inherited" => {
"type" => BOOLEAN,
"description" => "If 'operations' is true, whether to include descriptions of the resource's inherited operations. Default is true.",
"nillable" => true
},
"recursive" => {
"required" => false,
"type" => BOOLEAN,
"description" => "Whether to include recursively descriptions of child resources. Default is false.",
"nillable" => true
},
"locale" => {
"type" => STRING,
"required" => false,
"nillable" => true,
"description" => "The locale to get the resource description in. If null, the default locale will be used"
}
},
"reply-properties" => {
"type" => OBJECT,
"description" => "The description of the resource"
}
},
"read-resource" => {
"operation-name" => "read-resource",
"description" => "Reads a model resource's attribute values along with either basic or complete information about any child resources",
"request-properties" => {
"recursive" => {
"type" => BOOLEAN,
"description" => "Whether to include complete information about child resources, recursively. If absent, false is the default",
"required" => false,
"nillable" => true,
"default" => false
},
"proxies" => {
"type" => BOOLEAN,
"description" => "Whether to include remote resources in a recursive query (i.e. host level resources in a query of the domain root; running server resources in a query of a host). If absent, false is the default",
"required" => false,
"nillable" => true,
"default" => false
},
"include-runtime" => {
"type" => BOOLEAN,
"description" => "Whether to include runtime attributes (i.e. those whose value does not come from the persistent configuration) in the response. If absent, false is the default. Ignored if the 'recursive' parameter is set to true; i.e. runtime attributes can only be read in non-recursive queries.",
"required" => false,
"nillable" => true,
"default" => false
},
"include-defaults" => {
"type" => BOOLEAN,
"description" => "Boolean to enable/disable default reading. In case it is set to false only attribute set by user are returned ignoring undefined.",
"required" => false,
"nillable" => true,
"default" => true
}
},
"reply-properties" => {
"type" => OBJECT,
"description" => "The resource's attribute values along with information about any child resources"
}
},
"validate-address" => {
"operation-name" => "validate-address",
"description" => "Validates the operation's address",
"request-properties" => {},
"reply-properties" => {}
},
"read-attribute" => {
"operation-name" => "read-attribute",
"description" => "Gets the value of an attribute for the selected resource",
"request-properties" => {
"name" => {
"type" => STRING,
"description" => "The name of the attribute to get the value for under the selected resource",
"nillable" => false
},
"include-defaults" => {
"type" => BOOLEAN,
"description" => "Boolean to enable/disable default reading. In case it is set to false only attribute set by user are returned ignoring undefined.",
"required" => false,
"nillable" => true,
"default" => true
}
},
"reply-properties" => {
"type" => OBJECT,
"description" => "The value of the attribute. The type will be that of the attribute found"
}
},
"add" => {
"operation-name" => "add",
"description" => "Add a configuration entry.",
"request-properties" => {"entries" => {
"description" => "The list of configuration entries.",
"type" => OBJECT,
"required" => true,
"value-type" => OBJECT
}},
"reply-properties" => {}
},
"write-attribute" => {
"operation-name" => "write-attribute",
"description" => "Sets the value of an attribute for the selected resource",
"request-properties" => {
"name" => {
"type" => STRING,
"description" => "The name of the attribute to set the value for under the selected resource",
"nillable" => false
},
"value" => {
"type" => STRING,
"description" => "The value of the attribute to set the value for under the selcted resource. May be null if the underlying model supports null values.",
"nillable" => true,
"required" => false
}
}
}
}
}}
},
"property" => {
"description" => "A framework property.",
"model-description" => {"*" => {
"description" => "A framework property.",
"attributes" => {"value" => {
"description" => "The framework property value.",
"type" => STRING,
"required" => true,
"access-type" => "read-only",
"restart-required" => "RESTART_ALL_SERVICES",
"storage" => "configuration"
}},
"operations" => {
"read-children-names" => {
"operation-name" => "read-children-names",
"description" => "Gets the names of all children under the selected resource with the given type",
"request-properties" => {"child-type" => {
"type" => STRING,
"description" => "The name of the node under which to get the children names",
"nillable" => false
}},
"reply-properties" => {
"type" => LIST,
"description" => "The children names",
"value-type" => STRING
}
},
"read-operation-description" => {
"operation-name" => "read-operation-description",
"description" => "Gets the details of an operation on the given resource",
"request-properties" => {
"name" => {
"type" => STRING,
"description" => "The description of the operation. Undefined if not found",
"required" => false,
"nillable" => false
},
"locale" => {
"type" => STRING,
"nillable" => true,
"description" => "The locale to get the operation description in. If null, the default locale will be used"
}
},
"reply-properties" => {
"type" => OBJECT,
"description" => "The description of the operation. Undefined if not found"
}
},
"read-operation-names" => {
"operation-name" => "read-operation-names",
"description" => "Gets the names of all the operations for the given resource",
"reply-properties" => {
"type" => LIST,
"value-type" => STRING,
"description" => "The operation names"
}
},
"read-children-types" => {
"operation-name" => "read-children-types",
"description" => "Gets the type names of all the children under the selected resource",
"reply-properties" => {
"type" => LIST,
"description" => "The children types",
"value-type" => STRING
}
},
"remove" => {
"operation-name" => "remove",
"description" => "Remove a framework property.",
"request-properties" => {},
"reply-properties" => {}
},
"read-children-resources" => {
"operation-name" => "read-children-resources",
"description" => "Reads information about all of a resource's children that are of a given type",
"request-properties" => {
"child-type" => {
"type" => STRING,
"description" => "The name of the resource under which to get the child resources",
"nillable" => false
},
"recursive" => {
"type" => BOOLEAN,
"description" => "Whether to get the children recursively. If absent, false is the default",
"nillable" => true
},
"proxies" => {
"type" => BOOLEAN,
"description" => "Whether to include remote resources in a recursive query (i.e. host level resources in a query of the domain root; running server resources in a query of a host). If absent, false is the default",
"nillable" => true
},
"include-runtime" => {
"type" => BOOLEAN,
"description" => "Whether to include runtime attributes (i.e. those whose value does not come from the persistent configuration) in the response. If absent, false is the default. Ignored if the 'recursive' parameter is set to 'true'; i.e. runtime attributes can only be read in non-recursive queries.",
"required" => false,
"nillable" => true
},
"include-defaults" => {
"type" => BOOLEAN,
"description" => "Boolean to enable/disable default reading. In case it is set to false only attribute set by user are returned ignoring undefined.",
"required" => false,
"nillable" => true,
"default" => true
}
},
"reply-properties" => {
"type" => LIST,
"description" => "The children resources",
"value-type" => OBJECT
}
},
"read-resource-description" => {
"operation-name" => "read-resource-description",
"description" => "Gets the description of a resource's attributes, types of children and, optionally, operations",
"request-properties" => {
"operations" => {
"type" => BOOLEAN,
"description" => "Whether to include descriptions of the resource's operations. Default is false",
"required" => false,
"nillable" => true
},
"inherited" => {
"type" => BOOLEAN,
"description" => "If 'operations' is true, whether to include descriptions of the resource's inherited operations. Default is true.",
"nillable" => true
},
"recursive" => {
"required" => false,
"type" => BOOLEAN,
"description" => "Whether to include recursively descriptions of child resources. Default is false.",
"nillable" => true
},
"locale" => {
"type" => STRING,
"required" => false,
"nillable" => true,
"description" => "The locale to get the resource description in. If null, the default locale will be used"
}
},
"reply-properties" => {
"type" => OBJECT,
"description" => "The description of the resource"
}
},
"read-resource" => {
"operation-name" => "read-resource",
"description" => "Reads a model resource's attribute values along with either basic or complete information about any child resources",
"request-properties" => {
"recursive" => {
"type" => BOOLEAN,
"description" => "Whether to include complete information about child resources, recursively. If absent, false is the default",
"required" => false,
"nillable" => true,
"default" => false
},
"proxies" => {
"type" => BOOLEAN,
"description" => "Whether to include remote resources in a recursive query (i.e. host level resources in a query of the domain root; running server resources in a query of a host). If absent, false is the default",
"required" => false,
"nillable" => true,
"default" => false
},
"include-runtime" => {
"type" => BOOLEAN,
"description" => "Whether to include runtime attributes (i.e. those whose value does not come from the persistent configuration) in the response. If absent, false is the default. Ignored if the 'recursive' parameter is set to true; i.e. runtime attributes can only be read in non-recursive queries.",
"required" => false,
"nillable" => true,
"default" => false
},
"include-defaults" => {
"type" => BOOLEAN,
"description" => "Boolean to enable/disable default reading. In case it is set to false only attribute set by user are returned ignoring undefined.",
"required" => false,
"nillable" => true,
"default" => true
}
},
"reply-properties" => {
"type" => OBJECT,
"description" => "The resource's attribute values along with information about any child resources"
}
},
"validate-address" => {
"operation-name" => "validate-address",
"description" => "Validates the operation's address",
"request-properties" => {},
"reply-properties" => {}
},
"read-attribute" => {
"operation-name" => "read-attribute",
"description" => "Gets the value of an attribute for the selected resource",
"request-properties" => {
"name" => {
"type" => STRING,
"description" => "The name of the attribute to get the value for under the selected resource",
"nillable" => false
},
"include-defaults" => {
"type" => BOOLEAN,
"description" => "Boolean to enable/disable default reading. In case it is set to false only attribute set by user are returned ignoring undefined.",
"required" => false,
"nillable" => true,
"default" => true
}
},
"reply-properties" => {
"type" => OBJECT,
"description" => "The value of the attribute. The type will be that of the attribute found"
}
},
"add" => {
"operation-name" => "add",
"description" => "Add a framework property.",
"request-properties" => {"value" => {
"description" => "The framework property value.",
"type" => STRING,
"required" => true
}},
"reply-properties" => {}
},
"write-attribute" => {
"operation-name" => "write-attribute",
"description" => "Sets the value of an attribute for the selected resource",
"request-properties" => {
"name" => {
"type" => STRING,
"description" => "The name of the attribute to set the value for under the selected resource",
"nillable" => false
},
"value" => {
"type" => STRING,
"description" => "The value of the attribute to set the value for under the selcted resource. May be null if the underlying model supports null values.",
"nillable" => true,
"required" => false
}
}
}
}
}}
},
"capability" => {
"description" => "A framework capability.",
"model-description" => {"*" => {
"description" => "A framework capability.",
"attributes" => {"startlevel" => {
"description" => "The startlevel for the capability.",
"type" => INT,
"required" => false,
"access-type" => "read-only",
"restart-required" => "RESTART_ALL_SERVICES",
"storage" => "configuration"
}},
"operations" => {
"read-children-names" => {
"operation-name" => "read-children-names",
"description" => "Gets the names of all children under the selected resource with the given type",
"request-properties" => {"child-type" => {
"type" => STRING,
"description" => "The name of the node under which to get the children names",
"nillable" => false
}},
"reply-properties" => {
"type" => LIST,
"description" => "The children names",
"value-type" => STRING
}
},
"read-operation-description" => {
"operation-name" => "read-operation-description",
"description" => "Gets the details of an operation on the given resource",
"request-properties" => {
"name" => {
"type" => STRING,
"description" => "The description of the operation. Undefined if not found",
"required" => false,
"nillable" => false
},
"locale" => {
"type" => STRING,
"nillable" => true,
"description" => "The locale to get the operation description in. If null, the default locale will be used"
}
},
"reply-properties" => {
"type" => OBJECT,
"description" => "The description of the operation. Undefined if not found"
}
},
"read-operation-names" => {
"operation-name" => "read-operation-names",
"description" => "Gets the names of all the operations for the given resource",
"reply-properties" => {
"type" => LIST,
"value-type" => STRING,
"description" => "The operation names"
}
},
"read-children-types" => {
"operation-name" => "read-children-types",
"description" => "Gets the type names of all the children under the selected resource",
"reply-properties" => {
"type" => LIST,
"description" => "The children types",
"value-type" => STRING
}
},
"remove" => {
"operation-name" => "remove",
"description" => "Remove a framework capability.",
"request-properties" => {},
"reply-properties" => {}
},
"read-children-resources" => {
"operation-name" => "read-children-resources",
"description" => "Reads information about all of a resource's children that are of a given type",
"request-properties" => {
"child-type" => {
"type" => STRING,
"description" => "The name of the resource under which to get the child resources",
"nillable" => false
},
"recursive" => {
"type" => BOOLEAN,
"description" => "Whether to get the children recursively. If absent, false is the default",
"nillable" => true
},
"proxies" => {
"type" => BOOLEAN,
"description" => "Whether to include remote resources in a recursive query (i.e. host level resources in a query of the domain root; running server resources in a query of a host). If absent, false is the default",
"nillable" => true
},
"include-runtime" => {
"type" => BOOLEAN,
"description" => "Whether to include runtime attributes (i.e. those whose value does not come from the persistent configuration) in the response. If absent, false is the default. Ignored if the 'recursive' parameter is set to 'true'; i.e. runtime attributes can only be read in non-recursive queries.",
"required" => false,
"nillable" => true
},
"include-defaults" => {
"type" => BOOLEAN,
"description" => "Boolean to enable/disable default reading. In case it is set to false only attribute set by user are returned ignoring undefined.",
"required" => false,
"nillable" => true,
"default" => true
}
},
"reply-properties" => {
"type" => LIST,
"description" => "The children resources",
"value-type" => OBJECT
}
},
"read-resource-description" => {
"operation-name" => "read-resource-description",
"description" => "Gets the description of a resource's attributes, types of children and, optionally, operations",
"request-properties" => {
"operations" => {
"type" => BOOLEAN,
"description" => "Whether to include descriptions of the resource's operations. Default is false",
"required" => false,
"nillable" => true
},
"inherited" => {
"type" => BOOLEAN,
"description" => "If 'operations' is true, whether to include descriptions of the resource's inherited operations. Default is true.",
"nillable" => true
},
"recursive" => {
"required" => false,
"type" => BOOLEAN,
"description" => "Whether to include recursively descriptions of child resources. Default is false.",
"nillable" => true
},
"locale" => {
"type" => STRING,
"required" => false,
"nillable" => true,
"description" => "The locale to get the resource description in. If null, the default locale will be used"
}
},
"reply-properties" => {
"type" => OBJECT,
"description" => "The description of the resource"
}
},
"read-resource" => {
"operation-name" => "read-resource",
"description" => "Reads a model resource's attribute values along with either basic or complete information about any child resources",
"request-properties" => {
"recursive" => {
"type" => BOOLEAN,
"description" => "Whether to include complete information about child resources, recursively. If absent, false is the default",
"required" => false,
"nillable" => true,
"default" => false
},
"proxies" => {
"type" => BOOLEAN,
"description" => "Whether to include remote resources in a recursive query (i.e. host level resources in a query of the domain root; running server resources in a query of a host). If absent, false is the default",
"required" => false,
"nillable" => true,
"default" => false
},
"include-runtime" => {
"type" => BOOLEAN,
"description" => "Whether to include runtime attributes (i.e. those whose value does not come from the persistent configuration) in the response. If absent, false is the default. Ignored if the 'recursive' parameter is set to true; i.e. runtime attributes can only be read in non-recursive queries.",
"required" => false,
"nillable" => true,
"default" => false
},
"include-defaults" => {
"type" => BOOLEAN,
"description" => "Boolean to enable/disable default reading. In case it is set to false only attribute set by user are returned ignoring undefined.",
"required" => false,
"nillable" => true,
"default" => true
}
},
"reply-properties" => {
"type" => OBJECT,
"description" => "The resource's attribute values along with information about any child resources"
}
},
"validate-address" => {
"operation-name" => "validate-address",
"description" => "Validates the operation's address",
"request-properties" => {},
"reply-properties" => {}
},
"read-attribute" => {
"operation-name" => "read-attribute",
"description" => "Gets the value of an attribute for the selected resource",
"request-properties" => {
"name" => {
"type" => STRING,
"description" => "The name of the attribute to get the value for under the selected resource",
"nillable" => false
},
"include-defaults" => {
"type" => BOOLEAN,
"description" => "Boolean to enable/disable default reading. In case it is set to false only attribute set by user are returned ignoring undefined.",
"required" => false,
"nillable" => true,
"default" => true
}
},
"reply-properties" => {
"type" => OBJECT,
"description" => "The value of the attribute. The type will be that of the attribute found"
}
},
"add" => {
"operation-name" => "add",
"description" => "Add a framework capability.",
"request-properties" => {"startlevel" => {
"description" => "The startlevel for the capability.",
"type" => INT,
"required" => false
}},
"reply-properties" => {}
},
"write-attribute" => {
"operation-name" => "write-attribute",
"description" => "Sets the value of an attribute for the selected resource",
"request-properties" => {
"name" => {
"type" => STRING,
"description" => "The name of the attribute to set the value for under the selected resource",
"nillable" => false
},
"value" => {
"type" => STRING,
"description" => "The value of the attribute to set the value for under the selcted resource. May be null if the underlying model supports null values.",
"nillable" => true,
"required" => false
}
}
}
}
}}
},
"bundle" => {
"description" => "Runtime bundle information.",
"model-description" => {"*" => {
"description" => "Runtime bundle information.",
"attributes" => {
"id" => {
"type" => LONG,
"description" => "The bundle ID.",
"access-type" => "read-only",
"storage" => "runtime"
},
"startlevel" => {
"type" => INT,
"description" => "The bundle's start level.",
"access-type" => "read-only",
"required" => false,
"storage" => "runtime"
},
"symbolic-name" => {
"type" => STRING,
"description" => "The bundle symbolic name.",
"access-type" => "read-only",
"storage" => "runtime"
},
"version" => {
"type" => STRING,
"description" => "The bundle version.",
"access-type" => "read-only",
"storage" => "runtime"
}
},
"operations" => {
"read-children-names" => {
"operation-name" => "read-children-names",
"description" => "Gets the names of all children under the selected resource with the given type",
"request-properties" => {"child-type" => {
"type" => STRING,
"description" => "The name of the node under which to get the children names",
"nillable" => false
}},
"reply-properties" => {
"type" => LIST,
"description" => "The children names",
"value-type" => STRING
}
},
"stop" => {
"operation-name" => "stop",
"description" => "Stops the bundle.",
"request-properties" => {},
"reply-properties" => {}
},
"read-operation-description" => {
"operation-name" => "read-operation-description",
"description" => "Gets the details of an operation on the given resource",
"request-properties" => {
"name" => {
"type" => STRING,
"description" => "The description of the operation. Undefined if not found",
"required" => false,
"nillable" => false
},
"locale" => {
"type" => STRING,
"nillable" => true,
"description" => "The locale to get the operation description in. If null, the default locale will be used"
}
},
"reply-properties" => {
"type" => OBJECT,
"description" => "The description of the operation. Undefined if not found"
}
},
"read-operation-names" => {
"operation-name" => "read-operation-names",
"description" => "Gets the names of all the operations for the given resource",
"reply-properties" => {
"type" => LIST,
"value-type" => STRING,
"description" => "The operation names"
}
},
"read-children-types" => {
"operation-name" => "read-children-types",
"description" => "Gets the type names of all the children under the selected resource",
"reply-properties" => {
"type" => LIST,
"description" => "The children types",
"value-type" => STRING
}
},
"start" => {
"operation-name" => "start",
"description" => "Starts the bundle.",
"request-properties" => {},
"reply-properties" => {}
},
"read-children-resources" => {
"operation-name" => "read-children-resources",
"description" => "Reads information about all of a resource's children that are of a given type",
"request-properties" => {
"child-type" => {
"type" => STRING,
"description" => "The name of the resource under which to get the child resources",
"nillable" => false
},
"recursive" => {
"type" => BOOLEAN,
"description" => "Whether to get the children recursively. If absent, false is the default",
"nillable" => true
},
"proxies" => {
"type" => BOOLEAN,
"description" => "Whether to include remote resources in a recursive query (i.e. host level resources in a query of the domain root; running server resources in a query of a host). If absent, false is the default",
"nillable" => true
},
"include-runtime" => {
"type" => BOOLEAN,
"description" => "Whether to include runtime attributes (i.e. those whose value does not come from the persistent configuration) in the response. If absent, false is the default. Ignored if the 'recursive' parameter is set to 'true'; i.e. runtime attributes can only be read in non-recursive queries.",
"required" => false,
"nillable" => true
},
"include-defaults" => {
"type" => BOOLEAN,
"description" => "Boolean to enable/disable default reading. In case it is set to false only attribute set by user are returned ignoring undefined.",
"required" => false,
"nillable" => true,
"default" => true
}
},
"reply-properties" => {
"type" => LIST,
"description" => "The children resources",
"value-type" => OBJECT
}
},
"read-resource-description" => {
"operation-name" => "read-resource-description",
"description" => "Gets the description of a resource's attributes, types of children and, optionally, operations",
"request-properties" => {
"operations" => {
"type" => BOOLEAN,
"description" => "Whether to include descriptions of the resource's operations. Default is false",
"required" => false,
"nillable" => true
},
"inherited" => {
"type" => BOOLEAN,
"description" => "If 'operations' is true, whether to include descriptions of the resource's inherited operations. Default is true.",
"nillable" => true
},
"recursive" => {
"required" => false,
"type" => BOOLEAN,
"description" => "Whether to include recursively descriptions of child resources. Default is false.",
"nillable" => true
},
"locale" => {
"type" => STRING,
"required" => false,
"nillable" => true,
"description" => "The locale to get the resource description in. If null, the default locale will be used"
}
},
"reply-properties" => {
"type" => OBJECT,
"description" => "The description of the resource"
}
},
"read-resource" => {
"operation-name" => "read-resource",
"description" => "Reads a model resource's attribute values along with either basic or complete information about any child resources",
"request-properties" => {
"recursive" => {
"type" => BOOLEAN,
"description" => "Whether to include complete information about child resources, recursively. If absent, false is the default",
"required" => false,
"nillable" => true,
"default" => false
},
"proxies" => {
"type" => BOOLEAN,
"description" => "Whether to include remote resources in a recursive query (i.e. host level resources in a query of the domain root; running server resources in a query of a host). If absent, false is the default",
"required" => false,
"nillable" => true,
"default" => false
},
"include-runtime" => {
"type" => BOOLEAN,
"description" => "Whether to include runtime attributes (i.e. those whose value does not come from the persistent configuration) in the response. If absent, false is the default. Ignored if the 'recursive' parameter is set to true; i.e. runtime attributes can only be read in non-recursive queries.",
"required" => false,
"nillable" => true,
"default" => false
},
"include-defaults" => {
"type" => BOOLEAN,
"description" => "Boolean to enable/disable default reading. In case it is set to false only attribute set by user are returned ignoring undefined.",
"required" => false,
"nillable" => true,
"default" => true
}
},
"reply-properties" => {
"type" => OBJECT,
"description" => "The resource's attribute values along with information about any child resources"
}
},
"validate-address" => {
"operation-name" => "validate-address",
"description" => "Validates the operation's address",
"request-properties" => {},
"reply-properties" => {}
},
"read-attribute" => {
"operation-name" => "read-attribute",
"description" => "Gets the value of an attribute for the selected resource",
"request-properties" => {
"name" => {
"type" => STRING,
"description" => "The name of the attribute to get the value for under the selected resource",
"nillable" => false
},
"include-defaults" => {
"type" => BOOLEAN,
"description" => "Boolean to enable/disable default reading. In case it is set to false only attribute set by user are returned ignoring undefined.",
"required" => false,
"nillable" => true,
"default" => true
}
},
"reply-properties" => {
"type" => OBJECT,
"description" => "The value of the attribute. The type will be that of the attribute found"
}
},
"write-attribute" => {
"operation-name" => "write-attribute",
"description" => "Sets the value of an attribute for the selected resource",
"request-properties" => {
"name" => {
"type" => STRING,
"description" => "The name of the attribute to set the value for under the selected resource",
"nillable" => false
},
"value" => {
"type" => STRING,
"description" => "The value of the attribute to set the value for under the selcted resource. May be null if the underlying model supports null values.",
"nillable" => true,
"required" => false
}
}
}
}
}}
}
},
"operations" => {
"read-children-names" => {
"operation-name" => "read-children-names",
"description" => "Gets the names of all children under the selected resource with the given type",
"request-properties" => {"child-type" => {
"type" => STRING,
"description" => "The name of the node under which to get the children names",
"nillable" => false
}},
"reply-properties" => {
"type" => LIST,
"description" => "The children names",
"value-type" => STRING
}
},
"activate" => {
"operation-name" => "activate",
"description" => "Activate the OSGi subsystem.",
"request-properties" => {},
"reply-properties" => {}
},
"read-operation-description" => {
"operation-name" => "read-operation-description",
"description" => "Gets the details of an operation on the given resource",
"request-properties" => {
"name" => {
"type" => STRING,
"description" => "The description of the operation. Undefined if not found",
"required" => false,
"nillable" => false
},
"locale" => {
"type" => STRING,
"nillable" => true,
"description" => "The locale to get the operation description in. If null, the default locale will be used"
}
},
"reply-properties" => {
"type" => OBJECT,
"description" => "The description of the operation. Undefined if not found"
}
},
"read-operation-names" => {
"operation-name" => "read-operation-names",
"description" => "Gets the names of all the operations for the given resource",
"reply-properties" => {
"type" => LIST,
"value-type" => STRING,
"description" => "The operation names"
}
},
"read-children-types" => {
"operation-name" => "read-children-types",
"description" => "Gets the type names of all the children under the selected resource",
"reply-properties" => {
"type" => LIST,
"description" => "The children types",
"value-type" => STRING
}
},
"read-children-resources" => {
"operation-name" => "read-children-resources",
"description" => "Reads information about all of a resource's children that are of a given type",
"request-properties" => {
"child-type" => {
"type" => STRING,
"description" => "The name of the resource under which to get the child resources",
"nillable" => false
},
"recursive" => {
"type" => BOOLEAN,
"description" => "Whether to get the children recursively. If absent, false is the default",
"nillable" => true
},
"proxies" => {
"type" => BOOLEAN,
"description" => "Whether to include remote resources in a recursive query (i.e. host level resources in a query of the domain root; running server resources in a query of a host). If absent, false is the default",
"nillable" => true
},
"include-runtime" => {
"type" => BOOLEAN,
"description" => "Whether to include runtime attributes (i.e. those whose value does not come from the persistent configuration) in the response. If absent, false is the default. Ignored if the 'recursive' parameter is set to 'true'; i.e. runtime attributes can only be read in non-recursive queries.",
"required" => false,
"nillable" => true
},
"include-defaults" => {
"type" => BOOLEAN,
"description" => "Boolean to enable/disable default reading. In case it is set to false only attribute set by user are returned ignoring undefined.",
"required" => false,
"nillable" => true,
"default" => true
}
},
"reply-properties" => {
"type" => LIST,
"description" => "The children resources",
"value-type" => OBJECT
}
},
"read-resource-description" => {
"operation-name" => "read-resource-description",
"description" => "Gets the description of a resource's attributes, types of children and, optionally, operations",
"request-properties" => {
"operations" => {
"type" => BOOLEAN,
"description" => "Whether to include descriptions of the resource's operations. Default is false",
"required" => false,
"nillable" => true
},
"inherited" => {
"type" => BOOLEAN,
"description" => "If 'operations' is true, whether to include descriptions of the resource's inherited operations. Default is true.",
"nillable" => true
},
"recursive" => {
"required" => false,
"type" => BOOLEAN,
"description" => "Whether to include recursively descriptions of child resources. Default is false.",
"nillable" => true
},
"locale" => {
"type" => STRING,
"required" => false,
"nillable" => true,
"description" => "The locale to get the resource description in. If null, the default locale will be used"
}
},
"reply-properties" => {
"type" => OBJECT,
"description" => "The description of the resource"
}
},
"read-resource" => {
"operation-name" => "read-resource",
"description" => "Reads a model resource's attribute values along with either basic or complete information about any child resources",
"request-properties" => {
"recursive" => {
"type" => BOOLEAN,
"description" => "Whether to include complete information about child resources, recursively. If absent, false is the default",
"required" => false,
"nillable" => true,
"default" => false
},
"proxies" => {
"type" => BOOLEAN,
"description" => "Whether to include remote resources in a recursive query (i.e. host level resources in a query of the domain root; running server resources in a query of a host). If absent, false is the default",
"required" => false,
"nillable" => true,
"default" => false
},
"include-runtime" => {
"type" => BOOLEAN,
"description" => "Whether to include runtime attributes (i.e. those whose value does not come from the persistent configuration) in the response. If absent, false is the default. Ignored if the 'recursive' parameter is set to true; i.e. runtime attributes can only be read in non-recursive queries.",
"required" => false,
"nillable" => true,
"default" => false
},
"include-defaults" => {
"type" => BOOLEAN,
"description" => "Boolean to enable/disable default reading. In case it is set to false only attribute set by user are returned ignoring undefined.",
"required" => false,
"nillable" => true,
"default" => true
}
},
"reply-properties" => {
"type" => OBJECT,
"description" => "The resource's attribute values along with information about any child resources"
}
},
"validate-address" => {
"operation-name" => "validate-address",
"description" => "Validates the operation's address",
"request-properties" => {},
"reply-properties" => {}
},
"read-attribute" => {
"operation-name" => "read-attribute",
"description" => "Gets the value of an attribute for the selected resource",
"request-properties" => {
"name" => {
"type" => STRING,
"description" => "The name of the attribute to get the value for under the selected resource",
"nillable" => false
},
"include-defaults" => {
"type" => BOOLEAN,
"description" => "Boolean to enable/disable default reading. In case it is set to false only attribute set by user are returned ignoring undefined.",
"required" => false,
"nillable" => true,
"default" => true
}
},
"reply-properties" => {
"type" => OBJECT,
"description" => "The value of the attribute. The type will be that of the attribute found"
}
},
"add" => {
"operation-name" => "add",
"description" => "Add the OSGi subsystem configuration.",
"request-properties" => {"activation" => {
"description" => "Activation flag for the OSGi subsystem. Possible values: lazy, eager.",
"type" => STRING,
"default" => "LAZY"
}},
"reply-properties" => {}
},
"write-attribute" => {
"operation-name" => "write-attribute",
"description" => "Sets the value of an attribute for the selected resource",
"request-properties" => {
"name" => {
"type" => STRING,
"description" => "The name of the attribute to set the value for under the selected resource",
"nillable" => false
},
"value" => {
"type" => STRING,
"description" => "The value of the attribute to set the value for under the selcted resource. May be null if the underlying model supports null values.",
"nillable" => true,
"required" => false
}
}
}
}
}
}
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 4 months
[JBoss JIRA] (AS7-3766) CLI: Exception in tab completition of operation headers
by Dominik Pospisil (JIRA)
Dominik Pospisil created AS7-3766:
-------------------------------------
Summary: CLI: Exception in tab completition of operation headers
Key: AS7-3766
URL: https://issues.jboss.org/browse/AS7-3766
Project: Application Server 7
Issue Type: Bug
Components: CLI
Reporter: Dominik Pospisil
Assignee: Alexey Loubyansky
Fix For: 7.1.0.Final
CLI throws an exception when doing tab completition of operation headers.
Steps to reproduce:
1) Open CLI, connect to domain
2) type: deploy --all-server-groups /home/dpospisi/deploy/deployment0.war --headers={rollout=
3) hit tab
Exception thrown:
org.jboss.as.cli.CommandFormatException: Property is missing name at index 8
at org.jboss.as.cli.parsing.operation.header.RolloutPlanHeaderCallbackHandler.enteredState(RolloutPlanHeaderCallbackHandler.java:71)
at org.jboss.as.cli.parsing.ParserUtil$1.enteredState(ParserUtil.java:108)
at org.jboss.as.cli.parsing.StateParser$ParsingContextImpl.enterState(StateParser.java:103)
at org.jboss.as.cli.parsing.operation.HeaderState$1.handle(HeaderState.java:62)
at org.jboss.as.cli.parsing.StateParser$ParsingContextImpl.leaveState(StateParser.java:113)
at org.jboss.as.cli.parsing.GlobalCharacterHandlers$4.handle(GlobalCharacterHandlers.java:76)
at org.jboss.as.cli.parsing.StateParser.parse(StateParser.java:68)
at org.jboss.as.cli.parsing.ParserUtil.parseOperationRequest(ParserUtil.java:61)
at org.jboss.as.cli.operation.impl.DefaultCallbackHandler.parseOperation(DefaultCallbackHandler.java:128)
at org.jboss.as.cli.operation.impl.HeadersCompleter.complete(HeadersCompleter.java:53)
at org.jboss.as.cli.operation.OperationRequestCompleter.complete(OperationRequestCompleter.java:222)
at org.jboss.as.cli.CommandCompleter.complete(CommandCompleter.java:91)
at org.jboss.as.cli.impl.Console$Factory$1$1.complete(Console.java:121)
at jline.ConsoleReader.complete(ConsoleReader.java:832)
at jline.ConsoleReader.readLine(ConsoleReader.java:518)
at jline.ConsoleReader.readLine(ConsoleReader.java:448)
at org.jboss.as.cli.impl.Console$Factory$1.readLine(Console.java:192)
at org.jboss.as.cli.impl.CommandContextImpl.interact(CommandContextImpl.java:1002)
at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:189)
at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:34)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.jboss.modules.Module.run(Module.java:260)
at org.jboss.modules.Main.main(Main.java:291)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 4 months
[JBoss JIRA] (JBRULES-3387) Planner: NullPointerException on calculateTimeGradient(HardAndSoftScoreDefinition.java:73) should have a better exception message: a construction heuristic is missing
by Geoffrey De Smet (JIRA)
Geoffrey De Smet created JBRULES-3387:
-----------------------------------------
Summary: Planner: NullPointerException on calculateTimeGradient(HardAndSoftScoreDefinition.java:73) should have a better exception message: a construction heuristic is missing
Key: JBRULES-3387
URL: https://issues.jboss.org/browse/JBRULES-3387
Project: Drools
Issue Type: Enhancement
Security Level: Public (Everyone can see)
Components: drools-planner
Reporter: Geoffrey De Smet
Assignee: Geoffrey De Smet
Fix For: 5.4.0.CR1
{code}
2012-02-14 17:32:08,119 [main] INFO Solver started: time spend (0), score (null), new best score (null), random seed (0).
Exception in thread "main" java.lang.NullPointerException
at org.drools.planner.core.score.definition.HardAndSoftScoreDefinition.calculateTimeGradient(HardAndSoftScoreDefinition.java:73)
at org.drools.planner.core.score.definition.HardAndSoftScoreDefinition.calculateTimeGradient(HardAndSoftScoreDefinition.java:25)
at org.drools.planner.core.termination.ScoreAttainedTermination.calculateSolverTimeGradient(ScoreAttainedTermination.java:52)
at org.drools.planner.core.termination.OrCompositeTermination.calculateSolverTimeGradient(OrCompositeTermination.java:70)
at org.drools.planner.core.termination.OrCompositeTermination.calculateSolverTimeGradient(OrCompositeTermination.java:70)
at org.drools.planner.core.termination.PhaseToSolverTerminationBridge.calculatePhaseTimeGradient(PhaseToSolverTerminationBridge.java:49)
at org.drools.planner.core.localsearch.DefaultLocalSearchSolverPhase.solve(DefaultLocalSearchSolverPhase.java:55)
at org.drools.planner.core.solver.DefaultSolver.runSolverPhases(DefaultSolver.java:166)
at org.drools.planner.core.solver.DefaultSolver.solve(DefaultSolver.java:138)
at kz.bee.drools.planner.dating.DatingMain.start(DatingMain.java:58)
at kz.bee.drools.planner.dating.DatingMain.main(DatingMain.java:38)
{code}
See http://stackoverflow.com/questions/9287675/uninitialized-planning-value-e...
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 4 months
[JBoss JIRA] (AS7-3782) Incomplete IP addresses substitution in server configs via XSLT file changeIPAddresses.xsl
by Pavel Janousek (JIRA)
[ https://issues.jboss.org/browse/AS7-3782?page=com.atlassian.jira.plugin.s... ]
Pavel Janousek commented on AS7-3782:
-------------------------------------
I hope yes, if today's commit include's whole work of O.Ziska (I'm not sure because something what worked at begin of this week doesn't work now - I'm investigating...; some devels modify ozizka's branch as I read already), this issue should be resolved.
> Incomplete IP addresses substitution in server configs via XSLT file changeIPAddresses.xsl
> ------------------------------------------------------------------------------------------
>
> Key: AS7-3782
> URL: https://issues.jboss.org/browse/AS7-3782
> Project: Application Server 7
> Issue Type: Bug
> Components: Test Suite
> Affects Versions: 7.1.0.Final
> Reporter: Pavel Janousek
> Assignee: Ondrej Zizka
>
> When you specify *$node0* variable, you might expect appropriate changes in standalone*.xml config files. But there are several unmodified places, where "hard-coded" value *127.0.0.1* is used yet.
> - This element exists in every config:
> {code:xml}
> <wsdl-host>${jboss.bind.address:127.0.0.1}</wsdl-host>
> {code}
> - This element exists in every *-full.xml config:
> {code:xml}
> <interface name="unsecure">
> <!-- Used for IIOP sockets in the standarad configuration.
> To secure JacORB you need to setup SSL -->
> <inet-address value="127.0.0.1"/>
> </interface>
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 4 months
[JBoss JIRA] (AS7-3892) Integration with SpringServletContainerInitializer incorrect
by Martin Vanek (JIRA)
Martin Vanek created AS7-3892:
---------------------------------
Summary: Integration with SpringServletContainerInitializer incorrect
Key: AS7-3892
URL: https://issues.jboss.org/browse/AS7-3892
Project: Application Server 7
Issue Type: Bug
Components: Server, Web
Affects Versions: 7.1.0.Final, 7.0.2.Final
Reporter: Martin Vanek
Assignee: Jason Greene
Recently I have tried to install simple Spring 3.1 MVC application without web.xml to jboss 7.0.2. The context failed to load, only message indicating the something is wrong is from spring:
INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/test]] (MSC service thread 1-3) No Spring WebApplicationInitializer types detected on classpath.
I have tried to investigate the problem and it seems that problem is in class org.jboss.as.web.deployment.ServletContainerInitializerDeploymentProcessor. The reason is that spring uses interface WebApplicationInitializer in @HandlesTypes annotation and the method processHandlesType of class ServletContainerInitializerDeploymentProcessor scans only subclasses. I guess Spring guys did not nothing wrong in implementation of the ServletContainerInitializer so I think it is the problem of JBoss.
@HandlesTypes(WebApplicationInitializer.class)
public class SpringServletContainerInitializer implements ServletContainerInitializer {
....
}
I guess the processHandlesType method has to be changed something like this.
private Set<ClassInfo> processHandlesType(DotName typeName, Class<?> type, CompositeIndex index) throws DeploymentUnitProcessingException {
Set<ClassInfo> classes = new HashSet<ClassInfo>();
if (type.isAnnotation()) {
.....
} else {
classes.addAll(index.getAllKnownSubclasses(typeName));
classes.addAll(index.getAllKnownImplementors(typeName));
}
}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 4 months