axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "rnell (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2-566) Multiple ServiceClients using the same configurationContext causes NPE
Date Wed, 12 Apr 2006 12:54:22 GMT
Multiple ServiceClients using the same configurationContext causes NPE
----------------------------------------------------------------------

         Key: AXIS2-566
         URL: http://issues.apache.org/jira/browse/AXIS2-566
     Project: Apache Axis 2.0 (Axis2)
        Type: Bug

  Components: client-api  
    Versions: 0.95    
    Reporter: rnell


This code causes an NPE.  Am I using the API wrong?

public class MultiServiceClientTest extends TestCase {

    public MultiServiceClientTest( String name ) {
        super( name );
    }

    public void test() throws Exception {
        ConfigurationContext configurationContext = ConfigurationContextFactory.createConfigurationContextFromFileSystem(
null, null );

        URL wsdlURL = new URL( "http://localhost:8080/axis2/services/MyService?wsdl" );
        QName serviceName = new QName( "http://org.apache.axis2/", "MyService" );
        String portName = "MyServicePortType0";
        ServiceClient sender1 = new ServiceClient( configurationContext, wsdlURL, serviceName,
portName );
        ServiceClient sender2 = new ServiceClient( configurationContext, wsdlURL, serviceName,
portName );
    }

    public static void main( String[] args ) {
        junit.textui.TestRunner.run( new TestSuite( MultiServiceClientTest.class ) );
    }
}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message