axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikhil Thaker (JIRA)" <>
Subject [jira] Created: (AXIS2-1115) Error while creating multiple instance of same service on same thread.
Date Wed, 06 Sep 2006 18:35:22 GMT
Error while creating multiple instance of same service on same thread.

                 Key: AXIS2-1115
             Project: Apache Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: jaxws
            Reporter: Nikhil Thaker

I receive the "An error occurred while creating the ServiceClient" exception when running
junit test
cases. This appears to happen when there are multiple instances of the same Service within
the same
thread. In this case, the previously configured servise should be picked up instead of reconfiguring
a new one.

Here's the JUnit Sample code:

DocLitWrappedService service1 = new DocLitWrappedService();
DocLitWrappedProxy port1 = service2.getDocLitWrappedPort();
port1.twoWayTest("some test string"); // this is ok

DocLitWrappedService service2 = new DocLitWrappedService();
DocLitWrappedProxy port2 = service2.getDocLitWrappedPort();
port2.twoWayTest("some test string"); // throws the exception

Here's the stack trace: An error occurred while creating the ServiceClient.
	at org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException(
	at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(
	at org.apache.axis2.jaxws.spi.ServiceDelegate.getServiceClient(
	at org.apache.axis2.jaxws.client.proxy.BaseProxyHandler.InvokeSEIMethod(
	at org.apache.axis2.jaxws.client.proxy.BaseProxyHandler.invoke(
	at $Proxy6.twoWay(Unknown Source)
	at jaxws.proxy.wsfvt.test.DocLitWrappedTest.testTwoWay(
Caused by: org.apache.axis2.AxisFault: Two services can not have same name, a service with
ProxyDocLitWrappedService already exists in the system
	at org.apache.axis2.client.ServiceClient.configureServiceClient(
	at org.apache.axis2.client.ServiceClient.<init>(
	at org.apache.axis2.jaxws.spi.ServiceDelegate.getServiceClient(
	... 22 more

I will be attaching fix for this issue.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message