Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 256 invoked from network); 8 Mar 2010 10:37:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Mar 2010 10:37:15 -0000 Received: (qmail 43061 invoked by uid 500); 8 Mar 2010 10:36:52 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 42962 invoked by uid 500); 8 Mar 2010 10:36:50 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 42954 invoked by uid 99); 8 Mar 2010 10:36:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Mar 2010 10:36:48 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Mar 2010 10:36:47 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 20BF1234C1EE for ; Mon, 8 Mar 2010 10:36:27 +0000 (UTC) Message-ID: <2074786104.133251268044587133.JavaMail.jira@brutus.apache.org> Date: Mon, 8 Mar 2010 10:36:27 +0000 (UTC) From: "Dieter Freismuth (JIRA)" To: issues@cxf.apache.org Subject: [jira] Created: (CXF-2697) REST and web methods taking arguments called without argument leads to IllegalArgumentException: wrong number of arguments exception MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 REST and web methods taking arguments called without argument leads to IllegalArgumentException: wrong number of arguments exception ------------------------------------------------------------------------------------------------------------------------------------ Key: CXF-2697 URL: https://issues.apache.org/jira/browse/CXF-2697 Project: CXF Issue Type: Bug Components: JAX-WS Runtime, JAXB Databinding Affects Versions: 2.2.5 Environment: using JAXD Databinding, JAX-WS with REST Reporter: Dieter Freismuth if an @WebMethod taking an @WebParam argument is called without the argument via REST the IllegalArgumentException is thrown. WebMethod: public String sayHi(@WebParam(name="text") String text, @WebParam(name="text2") String text2); this works if only one (text or text2) parameter is given within the HTTP GET Rest call and the second parameter is missing. Does not work if both parameters are missing! The Reason can be found within URIMappingInterceptor.keepInOrder method' s first line: if (params == null || params.size() == 0) { return params; } should be replaced by: if (params == null) { return params; } this change will add all required 'null' values for all missing parameters given within wsdl. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.