Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
ApacheAbdera客户端响应getDocument方法_Apache_Client_Response - Fatal编程技术网

ApacheAbdera客户端响应getDocument方法

ApacheAbdera客户端响应getDocument方法,apache,client,response,Apache,Client,Response,我正在使用ApacheAbdera的客户端响应接口。我想查看服务器在响应对象中返回的数据。我尝试使用response对象的getDocument()方法,但它引发了一个异常,如下所示: 线程“main”java.lang.NoSuchMethodError中的异常:org.apache.axiom.om.util.StAXUtils.getXMLInputFactory(Lorg/apache/axiom/om/util/StAXParserConfiguration;)Ljavax/xml/s

我正在使用ApacheAbdera的客户端响应接口。我想查看服务器在响应对象中返回的数据。我尝试使用response对象的getDocument()方法,但它引发了一个异常,如下所示:

线程“main”java.lang.NoSuchMethodError中的异常:org.apache.axiom.om.util.StAXUtils.getXMLInputFactory(Lorg/apache/axiom/om/util/StAXParserConfiguration;)Ljavax/xml/stream/XMLInputFactory; 位于org.apache.abdera.parser.stax.FOMParser.getXMLInputFactory(FOMParser.java:152) 位于org.apache.abdera.parser.stax.FOMParser.createXMLStreamReader(FOMParser.java:178) 位于org.apache.abdera.parser.stax.FOMParser.parse(FOMParser.java:143) 位于org.apache.abdera.protocol.client.AbstractClientResponse.getDocument(AbstractClientResponse.java:111) 位于org.apache.abdera.protocol.client.AbstractClientResponse.getDocument(AbstractClientResponse.java:89) 位于org.apache.abdera.protocol.client.AbstractClientResponse.getDocument(AbstractClientResponse.java:71)

有人知道如何读取响应对象的内容吗


谢谢

我在不同的情况下遇到过同样的问题。经过一些调查,我发现问题出在错误的编译时/运行时Axiom版本(1.2.5 vs 1.2.10)

归档

我已经将提议的修复(ABDERA-284-fix.diff)附在了bug上,它对我来说效果很好