Getting NullPointerException in jboss using REST API implmentation with Apache wink framework.

Solution Unverified - Updated -

Issue

  • Running REST API (implemented using apache wink framework) gives a NullPointerException. Seems like Apache Wink is conflicting with JBoss REST API implmentation:
21:11:36,866 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web]. 
[default-host].[/CommonRegistrationWeb].[RestAPI]] (http-localhost/127. 
0.0.1:8080-3) JBWEB000236: Servlet.service() for servlet RestAPI threw  
exception: java.lang.NullPointerException                               
       at org.apache.wink.common.internal.http.Accept.valueOf(Accept.   
java:139) [wink-1.2.0-incubating.jar:1.2.0-incubating]                  
       at org.apache.wink.server.internal.contexts.HttpHeadersImpl.     
getAcceptHeader(HttpHeadersImpl.java:152) [wink-1.2.0-incubating.jar:   
1.2.0-incubating]                                                       
      .............
       at org.apache.wink.server.handlers.ResponseHandlersChain.handle  
(ResponseHandlersChain.java:22) [wink-1.2.0-incubating.jar:1.2.0-       
incubating]                                                             
       at org.apache.wink.server.handlers.AbstractHandlersChain.doChain 
(AbstractHandlersChain.java:63) [wink-1.2.0-incubating.jar:1.2.0-       
incubating]                                                             
............................                       
Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) 
[jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]                
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.
java:926) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]      
       at java.lang.Thread.run(Unknown Source) [rt.jar:1.8.0_73]

Environment

  • Red Hat JBoss enterprise Application platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.