在wildfly

时间:2018-03-06 15:34:09

标签: java web-services jersey wildfly

我无法使用wildfly中部署的泽西调用rest web服务。

在我的本地日食中,相同的代码执行正常。

以下是我收到的错误:

  

2018-03-06 15:27:45,880 ERROR [stderr](默认任务-4)   com.sun.jersey.api.client.ClientHandlerException:   java.lang.NullPointerException 2018-03-06 15:27:45,880 ERROR [stderr]   (默认任务-4)at   com.sun.jersey.impl.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:147)   2018-03-06 15:27:45,880 ERROR [stderr](默认任务-4)at   com.sun.jersey.api.client.Client.handle(Client.java:364)2018-03-06   15:27:45,880 ERROR [stderr](默认任务-4)at   com.sun.jersey.api.client.WebResource.handle(WebResource.java:355)   2018-03-06 15:27:45,880 ERROR [stderr](默认任务-4)at   com.sun.jersey.api.client.WebResource.access $ 100(WebResource.java:57)   2018-03-06 15:27:45,880 ERROR [stderr](默认任务-4)at   com.sun.jersey.api.client.WebResource $ Builder.post(WebResource.java:317)   2018-03-06 15:27:45,880 ERROR [stderr](默认任务-4)at   com.oracle.methods.OracleDataUpdateMethod.execute(OracleDataUpdateMethod.java:118)   2018-03-06 15:27:45,880 ERROR [stderr](默认任务-4)at   com.documentum.mthdservlet.DmMethodRunner.runIt(未知来源)   2018-03-06 15:27:45,880 ERROR [stderr](默认任务-4)at   com.documentum.mthdservlet.AMethodRunner.runAndReturnStatus(未知   来源)2018-03-06 15:27:45,880 ERROR [stderr](默认任务-4)at   com.documentum.mthdservlet.DoMethod.invokeMethod(Unknown Source)   2018-03-06 15:27:45,880 ERROR [stderr](默认任务-4)at   com.documentum.mthdservlet.DoMethod.doPost(Unknown Source)2018-03-06   15:27:45,880 ERROR [stderr](默认任务-4)at   javax.servlet.http.HttpServlet.service(HttpServlet.java:707)   2018-03-06 15:27:45,880 ERROR [stderr](默认任务-4)at   javax.servlet.http.HttpServlet.service(HttpServlet.java:790)   2018-03-06 15:27:45,880 ERROR [stderr](默认任务-4)at   io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:86)   2018-03-06 15:27:45,880 ERROR [stderr](默认任务-4)at   io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)   2018-03-06 15:27:45,880 ERROR [stderr](默认任务-4)at   io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)   2018-03-06 15:27:45,880 ERROR [stderr](默认任务-4)at   org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)   2018-03-06 15:27:45,880 ERROR [stderr](默认任务-4)at   io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)   2018-03-06 15:27:45,880 ERROR [stderr](默认任务-4)at   io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)   2018-03-06 15:27:45,880 ERROR [stderr](默认任务-4)at   io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)   2018-03-06 15:27:45,880 ERROR [stderr](默认任务-4)at   io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)   2018-03-06 15:27:45,880 ERROR [stderr](默认任务-4)at   io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)   2018-03-06 15:27:45,880 ERROR [stderr](默认任务-4)at   io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)   2018-03-06 15:27:45,880 ERROR [stderr](默认任务-4)at   io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58)   2018-03-06 15:27:45,880 ERROR [stderr](默认任务-4)at   io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:72)   2018-03-06 15:27:45,880 ERROR [stderr](默认任务-4)at   io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)   2018-03-06 15:27:45,880 ERROR [stderr](默认任务-4)at   io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)   2018-03-06 15:27:45,880 ERROR [stderr](默认任务-4)at   io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)   2018-03-06 15:27:45,880 ERROR [stderr](默认任务-4)at   org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)   2018-03-06 15:27:45,880 ERROR [stderr](默认任务-4)at   io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)   2018-03-06 15:27:45,880 ERROR [stderr](默认任务-4)at   io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)   2018-03-06 15:27:45,880 ERROR [stderr](默认任务-4)at   io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:282)   2018-03-06 15:27:45,880 ERROR [stderr](默认任务-4)at   io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:261)   2018-03-06 15:27:45,880 ERROR [stderr](默认任务-4)at   io.undertow.servlet.handlers.ServletInitialHandler.access $ 000(ServletInitialHandler.java:80)   2018-03-06 15:27:45,880 ERROR [stderr](默认任务-4)at   io.undertow.servlet.handlers.ServletInitialHandler $ 1.handleRequest(ServletInitialHandler.java:172)   2018-03-06 15:27:45,880 ERROR [stderr](默认任务-4)at   io.undertow.server.Connectors.executeRootHandler(Connectors.java:199)   2018-03-06 15:27:45,880 ERROR [stderr](默认任务-4)at   io.undertow.server.HttpServerExchange $ 1.run(HttpServerExchange.java:774)   2018-03-06 15:27:45,880 ERROR [stderr](默认任务-4)at   java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)   2018-03-06 15:27:45,880 ERROR [stderr](默认任务-4)at   java.util.concurrent.ThreadPoolExecutor中的$ Worker.run(ThreadPoolExecutor.java:617)   2018-03-06 15:27:45,880 ERROR [stderr](默认任务-4)at   java.lang.Thread.run(Thread.java:745)2018-03-06 15:27:45,880错误   [stderr](默认任务-4)引起:java.lang.NullPointerException   2018-03-06 15:27:45,880 ERROR [stderr](默认任务-4)at   com.sun.jersey.impl.client.urlconnection.URLConnectionClientHandler.getHeaderValue(URLConnectionClientHandler.java:213)   2018-03-06 15:27:45,880 ERROR [stderr](默认任务-4)at   com.sun.jersey.impl.client.urlconnection.URLConnectionClientHandler.writeHeaders(URLConnectionClientHandler.java:194)   2018-03-06 15:27:45,895 ERROR [stderr](默认任务-4)at   com.sun.jersey.impl.client.urlconnection.URLConnectionClientHandler._invoke(URLConnectionClientHandler.java:177)   2018-03-06 15:27:45,895 ERROR [stderr](默认任务-4)at   com.sun.jersey.impl.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:145)   2018-03-06 15:27:45,895 ERROR [stderr](默认任务-4)... 38更多

0 个答案:

没有答案