Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Premature end of stream  RSS feed

 
prasuna koneru
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

does anyone have an idea of why a web service would sporadically get
errors like this;

Fault Code=SOAP-ENV rotocol Exception Text=Premature end of stream. Data is
truncated. Read 70983 bytes successfully, expected 101979

It's built with Apache SOAP 2.3.1 & JDK 1.3

Any help would be greatly appreciated.
 
Watsh Rajneesh
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The HTTP protocol provides only a low-level degree of robustness. To illustrate, HTTP has no automatic retries to reestablish a connection that disconnects. If the receiving end fails, the entire HTTP call fails and there is no attempt to connect later. This low-level degree of robustness is not necessarily bad, since it means that HTTP can accommodate the participation of all kinds of systems and networks in a distributed Internet environment. HTTP is also a fairly simple protocol that any system can implement with a reasonable amount of effort.

Read this for a strategy to build a fault-tolerant webservice (requiring retries and idempotency of endpoints).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!