Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 47467 invoked from network); 5 May 2008 22:20:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 May 2008 22:20:25 -0000 Received: (qmail 7697 invoked by uid 500); 5 May 2008 22:20:27 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 7685 invoked by uid 500); 5 May 2008 22:20:26 -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 7674 invoked by uid 99); 5 May 2008 22:20:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 May 2008 15:20:26 -0700 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, 05 May 2008 22:19:41 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E0E9C234C114 for ; Mon, 5 May 2008 15:19:55 -0700 (PDT) Message-ID: <769199381.1210025995920.JavaMail.jira@brutus> Date: Mon, 5 May 2008 15:19:55 -0700 (PDT) From: "olonga henry (JIRA)" To: issues@cxf.apache.org Subject: [jira] Created: (CXF-1568) cxf client error throws exception while invoking strikeIron ws with implicit 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 cxf client error throws exception while invoking strikeIron ws with implicit headers ------------------------------------------------------------------------------------ Key: CXF-1568 URL: https://issues.apache.org/jira/browse/CXF-1568 Project: CXF Issue Type: Bug Affects Versions: 2.0.4 Environment: The client artifacts were generated using the wsdl2java utility with -exsh flag set to true in order to invoke strike iron NFL Team web service. ref: http://www.jroller.com/gmazza/date/20071001 (Sending implicit SOAP Headers using JAX-WS). Reporter: olonga henry Priority: Minor client code: package client; import java.util.*; import javax.xml.ws.Holder; import com.strikeiron.*; import com.strikeiron.ws.*; import org.apache.cxf.transports.http.configuration.*; import org.apache.cxf.transport.http.*; import org.apache.cxf.frontend.ClientProxy; import org.apache.cxf.endpoint.Client; public class WSClient { private static void setProxyInfo(Object port) { Client client = ClientProxy.getClient( port ); HTTPConduit httpConduit = (HTTPConduit) client.getConduit(); HTTPClientPolicy policy = new HTTPClientPolicy(); policy.setProxyServer( "proxy.domain.com" ); policy.setProxyServerPort( 8080 ); httpConduit.setClient( policy ); } private static LicenseInfo getLicenseInfo() { LicenseInfo licenseInfo = new LicenseInfo(); RegisteredUser registeredUser = new RegisteredUser(); registeredUser.setUserID("iam@email.com"); registeredUser.setPassword("mypwd"); licenseInfo.setRegisteredUser( registeredUser ); return licenseInfo; } private static javax.xml.ws.Holder getSubscriptionInfo() { SubscriptionInfo sInfo = new SubscriptionInfo(); javax.xml.ws.Holder holder = new javax.xml.ws.Holder( sInfo ); return holder; } public static void main (String[] args) { try { if (args.length != 1) { System.out.println("Usage: WSClient "); System.exit(0); } SDPNFLTeams sdpService = new SDPNFLTeams(); SDPNFLTeamsSoap endpt = sdpService.getSDPNFLTeamsSoap(); setProxyInfo( endpt ); com.strikeiron.NFLTeamOutput x = endpt.getTeamInfoByCity( "INDIANAPOLLIS",getLicenseInfo(),getSubscriptionInfo() ); List teamInfo = x.getServiceResult().getTeams().getNFLTeamInfo(); for(NFLTeamInfo tix: teamInfo) { System.out.println( tix.getNickname()+" "+tix.getDivision() ); } } catch (Exception e) { e.printStackTrace(); System.out.println("Exception: " + e.getMessage()); } } } Everthing seems fine till the execution point it throws an exception: [java] javax.xml.ws.soap.SOAPFaultException: Index: 3, Size: 3 [java] at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:175) [java] at $Proxy28.getTeamInfoByCity(Unknown Source) [java] at client.WSClient.main(WSClient.java:60) [java] Caused by: java.lang.IndexOutOfBoundsException: Index: 3, Size: 3 [java] at java.util.ArrayList.RangeCheck(ArrayList.java:546) [java] at java.util.ArrayList.get(ArrayList.java:321) [java] at org.apache.cxf.message.MessageContentsList.get(MessageContentsList.java:79) [java] at org.apache.cxf.jaxws.interceptors.HolderInInterceptor.handleMessage(HolderInInterceptor.java:64) [java] at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:208) [java] at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:429) [java] at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1955) [java] at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1791) [java] at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66) [java] at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:575) [java] at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62) [java] at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:208) [java] at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:276) [java] at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:222) [java] at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73) [java] at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:135) [java] ... 2 more [java] Exception: Index: 3, Size: 3 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.