aspose file tools
The moose likes Web Services and the fly likes Premature end of stream Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Premature end of stream" Watch "Premature end of stream" New topic
Author

Premature end of stream

prasuna koneru
Greenhorn

Joined: Aug 16, 2006
Posts: 1
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

Joined: Apr 17, 2006
Posts: 109
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).


SCJP 5.0 (90%), SCDJWS 1.4 (88%), SCWCD 1.4 (82%), SCBCD 1.3 (85%)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Premature end of stream
 
Similar Threads
Apache Axis1.1 with java 1.5 to handle complex data type
EclEmma Installation Problem in Eclipse
'Could not compile stylesheet' with XSLTInputHandler(InputSource, InputSource)
XML Cator Parsing Exception
WA #2 ..... word association