Wildfly Undertow请求在Web服务上的HttpServerExchange失败



我正在尝试访问在我的Wildfly实例上运行的Web服务。webservice被注释为Post并接受JSON。当我尝试调用该服务时,我的Wildfly会抛出一个NullpointereException。

实际堆栈跟踪如下所示:

15:23:40,324 ERROR [io.undertow.request] (default task-1) Undertow request  failed HttpServerExchange{ POST <path to my service>}: java.lang.NullPointerException
at io.undertow.servlet.spec.ServletInputStreamImpl.readIntoBuffer(ServletInputStreamImpl.java:171)
at io.undertow.servlet.spec.ServletInputStreamImpl.close(ServletInputStreamImpl.java:245)
at io.undertow.servlet.spec.HttpServletRequestImpl.closeAndDrainRequest(HttpServletRequestImpl.java:602)
at io.undertow.servlet.core.ServletBlockingHttpExchange.close(ServletBlockingHttpExchange.java:87)
at io.undertow.server.HttpServerExchange.endExchange(HttpServerExchange.java:1444)
at io.undertow.server.Connectors.executeRootHandler(Connectors.java:213)
at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:759)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_75]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_75]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_75]

我真的不明白是什么引发了NullpointereException,因为我对Wildfly的开发不是很熟悉。

这似乎是WildFly缺陷:UNDETOW-367:当POST方法没有普通参数时出现NullPointerException

相关内容

  • 没有找到相关文章

最新更新