It seems like almost every attempt I make to create an Atlas (MapQuest or Backcountry Navigator) fails with the following Exception:
Version: Mobile Atlas Creator (MOBAC) 1.9 beta 6 (1831)
Platform: Linux (2.6.32-33-generic-pae) (gnome)
Distribution name: Ubuntu 10.04.3 LT
Java VM: OpenJDK Server VM (1.6.0_20-b20)
Thread: AtlasThread 1
Map
name=Canterbury9-11-13 09
mapSource=nztopomaps.com (New Zealand only)
zoom=9
maxTileCoordinate=128767/83711
minTileCoordinate=127488/82176
parameters=Tile size: (256/256) JPEG - quality 85)
Map type: MAPPACK
Map implementation: mp-region_oceania.jar
Map revision: null
Error hierarchy:
MapCreationException: mobac.exceptions.MapCreationException: Error writing tile image: Invalid argument to native writeImage
MapCreationException: Error writing tile image: Invalid argument to native writeImage
IIOException: Invalid argument to native writeImage
mobac.exceptions.MapCreationException: mobac.exceptions.MapCreationException: Error writing tile image: Invalid argument to native writeImage
at mobac.program.atlascreators.AlpineQuestMap.createMap(AlpineQuestMap.java:319)
at mobac.program.AtlasThread.createMap(AtlasThread.java:347)
at mobac.program.AtlasThread.createAtlas(AtlasThread.java:202)
at mobac.program.AtlasThread.run(AtlasThread.java:127)
Caused by: mobac.exceptions.MapCreationException: Error writing tile image: Invalid argument to native writeImage
at mobac.program.atlascreators.AlpineQuestMap.addLevelTiles(AlpineQuestMap.java:390)
at mobac.program.atlascreators.AlpineQuestMap.createMap(AlpineQuestMap.java:317)
... 3 more
Caused by: javax.imageio.IIOException: Invalid argument to native writeImage
at com.sun.imageio.plugins.jpeg.JPEGImageWriter.writeImage(Native Method)
at com.sun.imageio.plugins.jpeg.JPEGImageWriter.writeOnThread(JPEGImageWriter.java:1055)
at com.sun.imageio.plugins.jpeg.JPEGImageWriter.write(JPEGImageWriter.java:357)
at mobac.program.tiledatawriter.TileImageJpegDataWriter.processImage(TileImageJpegDataWriter.java:92)
at mobac.program.atlascreators.tileprovider.ConvertedRawTileProvider.getTileData(ConvertedRawTileProvider.java:48)
at mobac.program.atlascreators.AlpineQuestMap.addLevelTiles(AlpineQuestMap.java:366)
... 4 more
According to http://stackoverflow.com/questions/3432388/imageio-not-able-to-write-a-jpeg-file this happens because you are using OpenJDK.
Please use SunJRE/JDK instead.