Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6856651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:54:48+00:00 2026-05-27T01:54:48+00:00

I have implemented a Webservice using Apache CXF . The flow is this way

  • 0

I have implemented a Webservice using Apache CXF .
The flow is this way :

1.When a request is made to our Webservice , we will Obtain the Input parameters from it .
2. From the Obtained Input parameters we internally call another webservice .

inside my JSP i have given the following

JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
 factory.setServiceClass(MyWebService.class);
 factory.setAddress(host);

     MyWebService client = (MYWebService) factory.create();
     Client clientProxy = ClientProxy.getClient(client);
          HTTPConduit conduit = (HTTPConduit) clientProxy.getConduit();
          HTTPClientPolicy policy = new HTTPClientPolicy();
          policy.setConnectionTimeout(200000000);
          policy.setReceiveTimeout(10000000);
          conduit.setClient(policy);

But Still am getting Socket Time Out Exception

SEVERE: Servlet.service() for servlet CXFServlet threw exception
java.net.SocketException: Broken pipe
        at java.net.SocketOutputStream.socketWrite0(Native Method)
        at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
        at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
        at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:740)
        at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:434)
        at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:349)
        at org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:764)
        at org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:126)
        at org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:573)
        at org.apache.coyote.Response.doWrite(Response.java:560)
        at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:353)
        at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:434)
        at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:349)
        at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:381)
        at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:370)
        at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:89)
        at com.ctc.wstx.io.UTF8Writer.write(UTF8Writer.java:139)
        at com.ctc.wstx.sw.BufferingXmlWriter.flushBuffer(BufferingXmlWriter.java:1103)
        at com.ctc.wstx.sw.BufferingXmlWriter.fastWriteRaw(BufferingXmlWriter.java:1149)
        at com.ctc.wstx.sw.BufferingXmlWriter.writeEndTag(BufferingXmlWriter.java:803)
        at com.ctc.wstx.sw.BaseNsStreamWriter.doWriteEndTag(BaseNsStreamWriter.java:669)
        at com.ctc.wstx.sw.BaseNsStreamWriter.writeEndElement(BaseNsStreamWriter.java:282)
        at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:633)
        at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:525)
        at org.apache.cxf.staxutils.StaxUtils.writeNode(StaxUtils.java:642)
        at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:628)
        at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:525)
        at org.apache.cxf.staxutils.StaxUtils.writeNode(StaxUtils.java:642)
        at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:628)
        at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:525)
        at org.apache.cxf.staxutils.StaxUtils.writeNode(StaxUtils.java:642)
        at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:628)
        at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:525)

The way i am calling the other Webservice from my webservice as a Method call (And not using JaxWsProxyFactoryBean )
Will this be an issue ??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T01:54:49+00:00Added an answer on May 27, 2026 at 1:54 am
    java.net.SocketException: Broken pipe
    

    That’s not a timeout exception. That basically says the server has closed the connection for some reason and we can no longer write to the socket. You would likely need to check the server side logs to figure out why.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using latest Apache CXF to create a webservice. I have configured ws-security
I have Restful web-service implemented using Apache CXF. Since I am going to use
I have successfully implemented rest webservice using apache wink. I am using ant to
Usage scenario We have implemented a webservice that our web frontend developers use (via
I have just implemented an autocompletion for a textfield using an online webservice, based
I have implemented a web service with server and client authentication using keytool. The
I have implemented a ToString() override method for my class in my Webservice and
I have a web service implemented in WCF. This service is only going to
I have a web service, defined(WSDL) and implemented in PHP. This one is relatively
I have implemented a python webserver. Each http request spawns a new thread. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.