Here it is http://issues.apache.org/jira/browse/AXIS2-610
Andreas. > -----Ursprüngliche Nachricht----- > Von: Davanum Srinivas [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 24. April 2006 20:59 > An: [email protected] > Betreff: Re: [Axis2][0.95] error when creating two times > ServiceClient without a service > > Andreas, > > Could u please log a bug report? > > thanks, > dims > > On 4/24/06, Andreas Bobek <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I found out that when creating a ServiceClient with the same > > configuration context and a null service causes an > exception at the second time: > > > > .. > > ServiceClient client1 = new ServiceClient(confCtxt, null); // ok .. > > ServiceClient client2 = new ServiceClient(confCtxt, null); > // throws > > Exception > > > > > > Maybe this is intended by you? > > > > Up to now I see two possibilities to avoid this exception: > > 1.) Reusing the client. > > 2.) Check whether an anonymous service was already created > and let the > > ServiceClient create one (if missed): > > ServiceClient client = null; > > AxisService anonymousService = > > > confCtxt.getAxisConfiguration().getService(ServiceClient.ANON_SERVICE) > > ; > > if(anonymousService == null){ > > client = new ServiceClient(confCtxt, null); } else{ > > client = new ServiceClient(confCtxt, anonymousService); } > > > > I suppose it to be a bug? > > > > Regards, Andreas Bobek. > > > > > > > -- > Davanum Srinivas : http://wso2.com/blogs/
