cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "olonga henry (JIRA)" <>
Subject [jira] Created: (CXF-1568) cxf client error throws exception while invoking strikeIron ws with implicit headers
Date Mon, 05 May 2008 22:19:55 GMT
cxf client error throws exception while invoking strikeIron ws with implicit headers

                 Key: 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: (Sending implicit SOAP Headers using JAX-WS).
            Reporter: olonga henry
            Priority: Minor

client code:

package client;

import java.util.*;
import com.strikeiron.*;
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( "" );
               policy.setProxyServerPort( 8080 );
               httpConduit.setClient( policy );

   private static LicenseInfo getLicenseInfo()
       LicenseInfo licenseInfo = new LicenseInfo();
       RegisteredUser registeredUser = new RegisteredUser();
       licenseInfo.setRegisteredUser( registeredUser );
       return licenseInfo;

   private static getSubscriptionInfo()
       SubscriptionInfo sInfo = new SubscriptionInfo(); holder = new sInfo );

       return holder;

   public static void main (String[] args) {
       try {
           if (args.length != 1) {
               System.out.println("Usage: WSClient ");

           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) {
           System.out.println("Exception: " +  e.getMessage());

Everthing seems fine till the execution point it throws an exception:

    [java] Index: 3, Size: 3
    [java]     at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(
    [java]     at $Proxy28.getTeamInfoByCity(Unknown Source)
    [java]     at client.WSClient.main(
    [java] Caused by: java.lang.IndexOutOfBoundsException: Index: 3, Size: 3
    [java]     at java.util.ArrayList.RangeCheck(
    [java]     at java.util.ArrayList.get(
    [java]     at org.apache.cxf.message.MessageContentsList.get(
    [java]     at org.apache.cxf.jaxws.interceptors.HolderInInterceptor.handleMessage(
    [java]     at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
    [java]     at org.apache.cxf.endpoint.ClientImpl.onMessage(
    [java]     at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(
    [java]     at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(
    [java]     at org.apache.cxf.transport.AbstractConduit.close(
    [java]     at org.apache.cxf.transport.http.HTTPConduit.close(
    [java]     at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(
    [java]     at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
    [java]     at org.apache.cxf.endpoint.ClientImpl.invoke(
    [java]     at org.apache.cxf.endpoint.ClientImpl.invoke(
    [java]     at org.apache.cxf.frontend.ClientProxy.invokeSync(
    [java]     at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(
    [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.

View raw message