× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I don't recall the specific array size limitations of 32 and 64 bit JVMs, but I seem to recall reading that the limit is much higher for 64 bit JVMs. Which JVM are you using?

-Nathan.



----- Original Message ----
From: "Christen, Duane" <Duane.Christen@xxxxxxxxxx>
To: Web Enabling the AS400 / iSeries <web400@xxxxxxxxxxxx>
Sent: Mon, May 17, 2010 7:51:03 AM
Subject: [WEB400] SOAP Webservice returning PDF document

I have a requirement to return a PDF document on a call to the web service. It works beautifully, to a point, and was a lot of fun to code. 95% of the PDFs will be under 1M in size, but there will be a few that are greater than 16M, I have a test that is 26M. This is the point where the web service fails, and I'm not sure where to go from here, if there is any where to go.

The error message is "CPIAD07 - Host server error occurred with reason code 10 - 10 -- Reallocation of server buffer failed." This occurs in the web service Java code where it allocates the storage for the PDF "byte[] artifactInputBuf2 = new byte[artifactSize];" where artifactSize is the size of the PDF file on the server.

I'm not sure if this is a *SNGLVL/*TERASPACE issue or the Java program's heap space size, but is there any way for Java to "allocate" a byte array larger than 16M?

Duane Christen

--








[http://www.paetec.com/eSignature/My_PAETEC_signature_r1_c1.gif]

[http://www.paetec.com/eSignature/My_PAETEC_signature_r1_c2.gif]


[http://www.paetec.com/eSignature/My_PAETEC_signature_r2_c1.gif]<http://www.paetec.com/>



Duane Christen
Senior Software Engineer
(319) 790-7162
Duane.Christen@xxxxxxxxxx<mailto:Duane.Christen@xxxxxxxxxx>



[http://www.paetec.com/eSignature/My_PAETEC_signature_r3_c1.gif]




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.