deploying jersey rest web service in documentum wildfly

Hi All,
I am unable to invoke/consume rest web service using jersey which is deployed in Documentum wildfly. where as the same code is executing fine in my local eclipse. below is the error.

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

Best Answer

  • David SciutoDavid Sciuto admin
    Accepted Answer

    This question remains Unanswered

    Please note that questions to the developer network are typically peer-to-peer, best effort responses. The question has been marked Accepted Answer for auditing purposes but remains open to your answers, suggestions, and best practices.

    David Sciuto
    Community Program Manager | Online Support

    image

Answers

  • Can you help answer this question?

    We've noticed this question is over 30 days old and hasn't received a response. We're turning to you, the community, to help answer it.

    This generic response is intended to prompt discussion in this post. The question remains open to your answers, suggestions, and best practices.

    If you posted this question and were able to resolve the issue, please share your solution here with others. If you still need additional help, though, please let us know. Your question and its resolution are important to us, and we want to help.

    David Sciuto
    Community Program Manager | Online Support

    image

    • Can you help answer this question?

    We have noticed this question still hasn't received a response. We're turning to you, the community, to help answer it.

    This generic response is intended to prompt discussion in this post. The question remains open to your answers, suggestions, and best practices.

    If you posted this question, what additional information can you provide to help us respond to you? Were able to resolve the issue? Please share your solution here with others. If you still need additional help, though, please let us know. Your question and its resolution are important to us, and we want to help.

    • Please note that questions to the developer network are typically peer-to-peer, best effort responses.
    • Additionally, note that posting questions to General may not be answered by a product expert. The General forum is for non-product questions. Please be sure to post your product-specific questions to the proper product forum.

    David Sciuto
    Community Program Manager | Online Support

    image

Sign In or Register to comment.