- Article Type: General
- Product: Aleph
- Product Version: 16.02
Our PLIF load produces a large report (>20MBs) which we are unable to print. The following message appears during our attempted print: Exception in thread "main" java.lang.OutOfMemoryError: Java heap space. Is there a workaround for this?
The problem with large files is a known issue for which there is not currently a fix in the version 16 GUI. We are also working on the PLIF Loader report file size to try and make smaller.
Meanwhile, there is a workaround so that you can print or view large files outside of the GUI. This works using Internet Explorer to view XML files. It should work on other browsers, but we havenâ€™t tried it.
A few small steps will change your problem XMLXSL file into a standard XML file that can be viewed using the standard Aleph XSL stylesheet. Even though the GUI could not display the large file, when you downloaded it and tried to print it from the GUI, Aleph did convert the file just like any other file viewed via the Task Manager.
The problem XMLXSL file should be located in:
For example, a file that you tried to print during the hour between 10 am and 11 am on 26 April 2006 from your USM50 library would be located in:
The file name will be: patron-loader-[NNNN].xmlxsl, for example, patron-loader-1840.xmlxsl
 Copy the problem XMLXSL into the XSL template directory (this directory gets overwritten regularly, so if you want to print the same file in a week or so, youâ€™ll have to perform these changes again). The XSL template directory location is:
(Your language/â€œLNGâ€? is probably â€œengâ€?):
 Change the XMLXSL file extension from *.xmlxsl to *.xml so that it will behave like a standard XML file.
 Edit the XML file using Notepad (or a similar text editor). The first 4 lines of the file should be:
## - XML_XSL
[3a] Remove the first line: â€œ## - XML_XSLâ€?.
The first line in the file is now: â€œ<?xml version="1.0"?>â€?
[3b] Add a new 2nd line (between â€œ<?xml version="1.0"?>â€? and â€œ<printout>â€?) pointing the XML file to its XSL stylesheet:
<?xml-stylesheet type='text/xsl' href='[formname].xsl'?>
Usually you can use the name between the â€œ<form-name>â€? and â€œ</form-name>â€? delimiters, but on my machine the name of the patron loader XSL file is â€œpatron-loader-00.xslâ€?, so on my machine, this is what should be copied between the form-name delimiters. Check in your XSL template directory to be sure about the file name.
The first 4 lines of the XML file should now be:
<?xml-stylesheet type='text/xsl' href='patron-loader-00.xsl'?>
Save and close the XML file.
 Once these steps are complete, opening the modified XML file in your default Internet Browser (for example, by double-clicking on the file in Windows Explorer) should display the report.
- Article last edited: 10/8/2013