Return-Path: Delivered-To: apmail-incubator-cxf-issues-archive@locus.apache.org Received: (qmail 74975 invoked from network); 13 Nov 2007 22:58:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Nov 2007 22:58:03 -0000 Received: (qmail 16170 invoked by uid 500); 13 Nov 2007 22:57:51 -0000 Delivered-To: apmail-incubator-cxf-issues-archive@incubator.apache.org Received: (qmail 16159 invoked by uid 500); 13 Nov 2007 22:57:51 -0000 Mailing-List: contact cxf-issues-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-dev@incubator.apache.org Delivered-To: mailing list cxf-issues@incubator.apache.org Received: (qmail 16150 invoked by uid 99); 13 Nov 2007 22:57:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Nov 2007 14:57:51 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Nov 2007 22:58:03 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 042C3714209 for ; Tue, 13 Nov 2007 14:57:43 -0800 (PST) Message-ID: <12656027.1194994663006.JavaMail.jira@brutus> Date: Tue, 13 Nov 2007 14:57:43 -0800 (PST) From: "Incognito (JIRA)" To: cxf-issues@incubator.apache.org Subject: [jira] Created: (CXF-1208) WrapperClassInInterceptor incorrecltly handing SOAP headers MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org WrapperClassInInterceptor incorrecltly handing SOAP headers ----------------------------------------------------------- Key: CXF-1208 URL: https://issues.apache.org/jira/browse/CXF-1208 Project: CXF Issue Type: Bug Components: JAX-WS Runtime Affects Versions: 2.0.2 Environment: windows XP, JBoss Reporter: Incognito The following code block in WrapperClassInInterceptor is throwing IndexOutOfBoundsExceptions. The reason is that the newParams list has two (null) list entries, but the MessagePartInfo indeces that are being added to the remove arraylist are 1 and 2. List removes = null; for (MessagePartInfo part : messageInfo.getMessageParts()) { if (Boolean.TRUE.equals(part.getProperty(ReflectionServiceFactoryBean.HEADER))) { MessagePartInfo mpi = wrappedMessageInfo.getMessagePart(part.getName()); if (lst.hasValue(mpi)) { newParams.put(part, lst.get(mpi)); } else if (mpi.getTypeClass() == null) { //header, but not mapped to a param on the method if (removes == null) { removes = new ArrayList(); } removes.add(mpi.getIndex()); } } } if (removes != null) { Collections.sort(removes, Collections.reverseOrder()); for (Integer i : removes) { newParams.remove(i.intValue()); // <= error thrown here } } The two items being removed are a username and password header set in my WSDL file: It seems the wrappedMessageInfo correctly contains all three message parts (the sayHello invocation, and 2 headers) but messageInfo.getMessageParts() is only returned the latter two. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.