Thread View: adobe.document.graphics.server
2 messages
2 total messages
Started by Bipin_Raj
Mon, 02 Aug 2004 17:48
Java API execution error: OutOfMemory exception
Author: Bipin_Raj
Date: Mon, 02 Aug 2004 17:48
Date: Mon, 02 Aug 2004 17:48
12 lines
1423 bytes
1423 bytes
Need help for the following error � Exception in thread �main� java.lang.OutOfMemoryError <<no stack trace available>> We are using Adobe Graphics Server for creating a big poster (24� X 36�) at 150 dpi that uses a background image which is about 100 MB in size. We are using the java API to load the images using request.addFile(<<file information>>) before issuing the server.execute(<<request object>>) command. When we execute the equivalent XML commands through the command line, it works fine. How do we get around this error when we are designing the java application? Is there a better way to execute the command using the Java API without actually loading the image file that is giving us the OutOfMemoryError? Any suggestions will be greatly appreciated. Thanks, Bipin Raj
Re: Java API execution error: OutOfMemory exception
Author: Bob_Emerson
Date: Mon, 02 Aug 2004 18:44
Date: Mon, 02 Aug 2004 18:44
13 lines
1456 bytes
1456 bytes
See the Knowledgebase article on how to increase the memory available to Java at: <http://support.adobe.com/devsup/devsup.nsf/docs/52634.htm> To avoid loading or saving the image through Java: load and save directly from AGS: - Don't use the addFile method - Put the full file path to the file into your loadContent command loadContent source="file:\\\C:\myWork\image.psd - Specify a full path to the save location by adding a resultLocation attribute to the commands tag commands resultLocation="file:\\\C:\myWork\myResults\" A saveContent or saveOptimized will write the file to the resultLocation directory. saveContent name="myFile.psd"
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads