Kichline, Don (Penske) wrote:
> I then jar my application up and transfer the jar to an iSeries
> (AS/400), version V5R3.  I receive the following error when I attempt to
> run my program:
> 
> java.io.IOException: Operation not supported. Map failed

This is not an iText problem. Have a look at:

>         at sun.nio.ch.FileChannelImpl.map0(Native Method)
>         at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:731)

try {
   // If no exception was thrown from map0, the address is valid
   addr = map0(imode, mapPosition, mapSize);
} catch (OutOfMemoryError x) {
   // An OutOfMemoryError may indicate that we've exhausted memory
   // so force gc and re-attempt map
   System.gc();
   try {
     Thread.sleep(100);
   } catch (InterruptedException y) {
     Thread.currentThread().interrupt();
   }
   try {
     addr = map0(imode, mapPosition, mapSize);
   } catch (OutOfMemoryError y) {
     // After a second OOME, fail
     throw new IOException("Map failed", y);
   }
}

> Any idea what might be causing this?

No, but reading the code, I'd say it's an OutOfMemoryError.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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

Reply via email to