Return-Path: Delivered-To: apmail-incubator-cxf-user-archive@locus.apache.org Received: (qmail 57634 invoked from network); 16 Jul 2007 04:25:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Jul 2007 04:25:29 -0000 Received: (qmail 5931 invoked by uid 500); 16 Jul 2007 04:25:31 -0000 Delivered-To: apmail-incubator-cxf-user-archive@incubator.apache.org Received: (qmail 5892 invoked by uid 500); 16 Jul 2007 04:25:31 -0000 Mailing-List: contact cxf-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-user@incubator.apache.org Delivered-To: mailing list cxf-user@incubator.apache.org Received: (qmail 5883 invoked by uid 99); 16 Jul 2007 04:25:31 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Jul 2007 21:25:31 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [66.111.4.26] (HELO out2.smtp.messagingengine.com) (66.111.4.26) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Jul 2007 21:25:28 -0700 Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 517809B22 for ; Mon, 16 Jul 2007 00:25:07 -0400 (EDT) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Mon, 16 Jul 2007 00:25:07 -0400 X-Sasl-enc: nR7kb9VGR82zLqgUcgIk+Ss+TirabkUrx2UghTOjwolc 1184559906 Received: from [192.168.1.100] (VDSL-130-13-10-90.PHNX.QWEST.NET [130.13.10.90]) by mail.messagingengine.com (Postfix) with ESMTP id 5D08FF4 for ; Mon, 16 Jul 2007 00:25:06 -0400 (EDT) Message-ID: <469AF31F.6090607@neurofire.com> Date: Sun, 15 Jul 2007 21:25:03 -0700 From: Brad O'Hearne User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: cxf-user@incubator.apache.org Subject: CXF crashing, unable to process a Collection type Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I have a RESTful service configured with Spring. Here is the interface: @WebService public interface IUserService { @Post @HttpResource(location="/authenticate") AuthenticateResponse authenticate(AuthenticateRequest request) throws KilterException; @Post @HttpResource(location="/getEntities") ArrayList getUsers(GetUsersRequest request) throws KilterException; } This service works without error. However, I made one change, which was changing the return type of the getUsers method from the ArrayList listed to a Collection, as follows: @Post @HttpResource(location="/getEntities") Collection getUsers(GetUsersRequest request) throws KilterException; This was the ONLY change made. Though my server loaded the service without error, oddly, invoking the authenticate method, in the same way as before, with the same exact data, resulted in the following exception (NOTE: the code of my actual service was never invoked, this exception occurred in the CXF API which was processing parameters). So apparently, this Collection type, though on the getUsers method, prevented the authenticate method from being invoked. ??? Does anyone have any idea why this would be, and how to rectify it? The exception is below: INFO: Invoking POST on /authenticate Jul 15, 2007 8:59:17 PM org.apache.cxf.binding.http.interceptor.URIParameterInInterceptor handleMessage INFO: URIParameterInterceptor handle message on path [/authenticate] with content-type [application/xml] Jul 15, 2007 8:59:17 PM org.apache.cxf.phase.PhaseInterceptorChain doIntercept INFO: Interceptor has thrown exception, unwinding now java.lang.NullPointerException at org.apache.cxf.binding.http.IriDecoderHelper.interopolateParams(IriDecoderHelper.java:264) at org.apache.cxf.binding.http.interceptor.URIParameterInInterceptor.mergeParams(URIParameterInInterceptor.java:124) at org.apache.cxf.binding.http.interceptor.URIParameterInInterceptor.handleMessage(URIParameterInInterceptor.java:105) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:206) at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:67) at org.apache.cxf.transport.servlet.ServletDestination.doMessage(ServletDestination.java:100) at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:224) at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:103) at org.apache.cxf.transport.servlet.CXFServlet.invoke(CXFServlet.java:261) at org.apache.cxf.transport.servlet.CXFServlet.doPost(CXFServlet.java:239) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:270) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:191) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:227) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:211) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:817) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:623) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:444) at java.lang.Thread.run(Thread.java:595) Thanks, Brad