3 Replies Latest reply on Mar 16, 2013 7:30 PM by asingh12

    Exception on running Apache CXF REST Service

    asingh12

      Hi,

      I am deploying a REST Service WAR based on Apache CXF 2.4.0 to GateIn server. This WAR runs fine on JBoss Portal 2.7.2 / JBOSS 4.2.3, however when deployed on Gatein 3.4.0 Final / JBOSS 7 it appears to service the request but generates following exception while marshaling response:

       

      java.lang.NullPointerException

          org.exoplatform.services.rest.impl.ResponseImpl$ResponseBuilderImpl.<init>(ResponseImpl.java:217)

          org.exoplatform.services.rest.impl.ResponseImpl$ResponseBuilderImpl.clone(ResponseImpl.java:284)

          org.apache.cxf.jaxrs.client.AbstractClient.setResponseBuilder(AbstractClient.java:379)

          org.apache.cxf.jaxrs.client.WebClient.handleResponse(WebClient.java:744)

          org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:731)

          org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:662)

          org.apache.cxf.jaxrs.client.WebClient.invoke(WebClient.java:324)

          org.apache.cxf.jaxrs.client.WebClient.get(WebClient.java:421)

       

       

      This is happening consistently. Any insights / workarounds are appreciated.

       

      Thanks.