Hi:

I've created a client from a WSDL, using the Maven "cxf-codegen-plugin". When I get the port, I configure it to use the "HttpAsyncClient":

    requestContext.put ("use.async.http.conduit", Boolean.TRUE);

I do this just because I need NTLM authentication and, this way, I don't apply the credentials to the whole system (in contrast to "HttpURLConnection" and "Authenticator"); not because I need asynchronous calls.

In my machine, everything seems to work OK. But, in my development server, and only from time to time, I get this exception:

    javax.xml.ws.soap.SOAPFaultException: Buffer already closed for writing

I simply do these steps in the code:

  1. Instantiate my service.

  2. Get the port.

  3. Configure the port as stated in the "Asynchronous Client HTTP Transport" article: https://cwiki.apache.org/confluence/display/CXF20DOC/Asynchronous+Client+HTTP+Transport .

  4. Call multiple methods of the port.

The development server is much more limited in resources than my machine, specially in CPU cores. So I guess that's what makes this error happen there but not in my machine.

Do you have any clue about how can I solve this, please?

Thank you.

Best regards,
Negora.

Reply via email to