解析服务器响应的J2Bugzilla致命错误 - methodResponse

时间:2014-11-26 12:43:40

标签: java xml-rpc bugzilla

我更新了Bugzilla服务器中的产品,插入了一些新组件并删除了其他组件。 之后,每次我尝试运行检索这些组件的代码时,都会出现以下错误:

  

遇到未知错误;故障代码:0:无法解析   服务器的响应:O tipo de elemento methodResponse“deve ser   encerrado pela tag final Correspondente“< \ methodResponse>”。

(这是由j2bugzilla生成的本地化消息,但它基本上意味着必须使用< \ methodResponse>标记关闭该元素。)

我收到错误的代码是:

GetLegalValues get = new GetLegalValues(GetLegalValues.Fields.COMPONENT);
bugzilla.executeMethod(get); // Here is where the error occurs
values = get.getLegalValues();
for(String value : values) {
    componentComboBox.addItem(value);
}

我有相同的代码检索版本,优先级,平台,操作系统......但只有在查找组件时才会抛出错误。我正在使用j2bugzilla 2.2.1。

1 个答案:

答案 0 :(得分:0)

我明白了:产品和组件的名称中不允许有特殊字符。虽然Bugzilla在其名称中接受这些字符,但Apache的XmlRpcClient无法理解它们,并抛出XmlRpcClientException

相关问题