FYI:

 

We are using JRE with 3gigs of memory on our production system. 

 

The error occurs in JRE-Method - we assume the memory mapping returns an
int above 2gig which is not correctly specified as unsigned integer and
so becomes negative. Starting the jre with less than 2gigs works.

 

Elmar  

 

  _____  

Von: Brauchart Elmar e1-solutions 
Gesendet: Donnerstag, 04. Dezember 2008 20:37
An: [email protected]
Betreff: [iText-questions] Not enough space during creating a
newPdfReader-Instance

 

I tried to deploy a pdf-creating java-class to our production system
(all is running well on the test-systems) and there, I always get to
following error.
 
Just tried this single statement
 
com.lowagie.text.pdf.PdfReader readerz = new
com.lowagie.text.pdf.PdfReader("/templates/releaseFormTemplate.pdf"); 
 
in a jsp-page.
 
Anyone an idea what the problem is?  
 
Discspace is no problem
 
 
org.apache.jasper.JasperException: Not enough space (errno:12)
 
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServle
tWrapper.java:460)
 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:361)
 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 
wt.httpgw.filter.WTContextBeanFilter.doFilterInternal(WTContextBeanFilte
r.java:69)
 
wt.httpgw.filter.WTContextBeanFilter.doFilter(WTContextBeanFilter.java:4
9)
 
wt.servlet.RequestInterrupter.doFilter(RequestInterrupter.java:326)
 
wt.servlet.ServletRequestMonitor.doFilter(ServletRequestMonitor.java:101
2)
 
wt.servlet.ServletRequestMonitorFilter.doFilter(ServletRequestMonitorFil
ter.java:55)

root cause 

java.io.IOException: Not enough space (errno:12)
        sun.nio.ch.FileChannelImpl.map0(Native Method)
        sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:913)
        com.lowagie.text.pdf.MappedRandomAccessFile.init(Unknown Source)
        com.lowagie.text.pdf.MappedRandomAccessFile.<init>(Unknown
Source)
        com.lowagie.text.pdf.RandomAccessFileOrArray.<init>(Unknown
Source)
        com.lowagie.text.pdf.RandomAccessFileOrArray.<init>(Unknown
Source)
        com.lowagie.text.pdf.PRTokeniser.<init>(Unknown Source)
        com.lowagie.text.pdf.PdfReader.<init>(Unknown Source)
        com.lowagie.text.pdf.PdfReader.<init>(Unknown Source)
 
org.apache.jsp.ext.jsp.avl.pdm.part.itext_jsp._jspService(itext_jsp.java
:100)
 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:331)
 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 
wt.httpgw.filter.WTContextBeanFilter.doFilterInternal(WTContextBeanFilte
r.java:69)
 
wt.httpgw.filter.WTContextBeanFilter.doFilter(WTContextBeanFilter.java:4
9)
 
wt.servlet.RequestInterrupter.doFilter(RequestInterrupter.java:326)
 
wt.servlet.ServletRequestMonitor.doFilter(ServletRequestMonitor.java:101
2)
 
wt.servlet.ServletRequestMonitorFilter.doFilter(ServletRequestMonitorFil
ter.java:55)
 
Thanks 
Elmar Brauchart

 


_________________________________________________________________________________________
AVL List GmbH, Firmensitz: Graz, Firmenbuchnummer: FN 53507M, Landesgericht 
fuer ZRS Graz


 
________________________________________________________________________
____
AVL List GmbH, Firmensitz: Graz, Firmenbuchnummer: FN 53507M,
Landesgericht fuer ZRS Graz


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to