{"action":"created","issue":{"url":"https://api.github.com/repos/haraldk/TwelveMonkeys/issues/107","labels_url":"https://api.github.com/repos/haraldk/TwelveMonkeys/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/haraldk/TwelveMonkeys/issues/107/comments","events_url":"https://api.github.com/repos/haraldk/TwelveMonkeys/issues/107/events","html_url":"https://github.com/haraldk/TwelveMonkeys/issues/107","id":60006985,"number":107,"title":"IndexOutOfBoundsException in reader.readRaster(0, null)","user":{"login":"THausherr","id":6665575,"avatar_url":"https://avatars.githubusercontent.com/u/6665575?v=3","gravatar_id":"","url":"https://api.github.com/users/THausherr","html_url":"https://github.com/THausherr","followers_url":"https://api.github.com/users/THausherr/followers","following_url":"https://api.github.com/users/THausherr/following{/other_user}","gists_url":"https://api.github.com/users/THausherr/gists{/gist_id}","starred_url":"https://api.github.com/users/THausherr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/THausherr/subscriptions","organizations_url":"https://api.github.com/users/THausherr/orgs","repos_url":"https://api.github.com/users/THausherr/repos","events_url":"https://api.github.com/users/THausherr/events{/privacy}","received_events_url":"https://api.github.com/users/THausherr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/haraldk/TwelveMonkeys/labels/Trouble-shooting","name":"Trouble-shooting","color":"5319e7"}],"state":"closed","locked":false,"assignee":{"login":"haraldk","id":110299,"avatar_url":"https://avatars.githubusercontent.com/u/110299?v=3","gravatar_id":"","url":"https://api.github.com/users/haraldk","html_url":"https://github.com/haraldk","followers_url":"https://api.github.com/users/haraldk/followers","following_url":"https://api.github.com/users/haraldk/following{/other_user}","gists_url":"https://api.github.com/users/haraldk/gists{/gist_id}","starred_url":"https://api.github.com/users/haraldk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haraldk/subscriptions","organizations_url":"https://api.github.com/users/haraldk/orgs","repos_url":"https://api.github.com/users/haraldk/repos","events_url":"https://api.github.com/users/haraldk/events{/privacy}","received_events_url":"https://api.github.com/users/haraldk/received_events","type":"User","site_admin":false},"milestone":null,"comments":11,"created_at":"2015-03-05T19:58:48Z","updated_at":"2015-03-07T20:43:39Z","closed_at":"2015-03-07T20:43:39Z","body":"I get this with the attached (broken) file:\r\n\r\n    java.lang.IndexOutOfBoundsException: Index: 2, Size: 2\r\n\t  at java.util.ArrayList.rangeCheck(ArrayList.java:635)\r\n\t  at java.util.ArrayList.get(ArrayList.java:411)\r\n\t  at com.twelvemonkeys.imageio.plugins.jpeg.JPEGSegmentImageInputStream.fetchSegment(Unknown Source)\r\n\t  at com.twelvemonkeys.imageio.plugins.jpeg.JPEGSegmentImageInputStream.repositionAsNecessary(Unknown Source)\r\n\t  at com.twelvemonkeys.imageio.plugins.jpeg.JPEGSegmentImageInputStream.read(Unknown Source)\r\n\t  at com.sun.imageio.plugins.jpeg.JPEGImageReader.readInputData(JPEGImageReader.java:307)\r\n\t  at com.sun.imageio.plugins.jpeg.JPEGImageReader.readImageHeader(Native Method)\r\n\t  at com.sun.imageio.plugins.jpeg.JPEGImageReader.readNativeHeader(JPEGImageReader.java:604)\r\n\t  at com.sun.imageio.plugins.jpeg.JPEGImageReader.checkTablesOnly(JPEGImageReader.java:342)\r\n\t  at com.sun.imageio.plugins.jpeg.JPEGImageReader.gotoImage(JPEGImageReader.java:476)\r\n\t  at com.sun.imageio.plugins.jpeg.JPEGImageReader.readHeader(JPEGImageReader.java:597)\r\n\t  at com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(JPEGImageReader.java:1054)\r\n\t  at com.sun.imageio.plugins.jpeg.JPEGImageReader.readRaster(JPEGImageReader.java:1453)\r\n\t  at com.twelvemonkeys.imageio.plugins.jpeg.JPEGImageReader.readRaster(Unknown Source)\r\n\r\n\r\nmy wish (as usual): an IIOException instead :-)\r\n\r\n![dct-1425584807450](https://cloud.githubusercontent.com/assets/6665575/6513311/59842196-c37a-11e4-965a-d92af587a8dd.jpg)\r\n"},"comment":{"url":"https://api.github.com/repos/haraldk/TwelveMonkeys/issues/comments/77709032","html_url":"https://github.com/haraldk/TwelveMonkeys/issues/107#issuecomment-77709032","issue_url":"https://api.github.com/repos/haraldk/TwelveMonkeys/issues/107","id":77709032,"user":{"login":"haraldk","id":110299,"avatar_url":"https://avatars.githubusercontent.com/u/110299?v=3","gravatar_id":"","url":"https://api.github.com/users/haraldk","html_url":"https://github.com/haraldk","followers_url":"https://api.github.com/users/haraldk/followers","following_url":"https://api.github.com/users/haraldk/following{/other_user}","gists_url":"https://api.github.com/users/haraldk/gists{/gist_id}","starred_url":"https://api.github.com/users/haraldk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haraldk/subscriptions","organizations_url":"https://api.github.com/users/haraldk/orgs","repos_url":"https://api.github.com/users/haraldk/repos","events_url":"https://api.github.com/users/haraldk/events{/privacy}","received_events_url":"https://api.github.com/users/haraldk/received_events","type":"User","site_admin":false},"created_at":"2015-03-07T20:43:39Z","updated_at":"2015-03-07T20:43:39Z","body":"You were spot on, the EOFException left the JPEGSegmentImageInputStream in a bad state. :-)\r\n\r\nFixed in 2b2dd2fb40bf6422e30f8a855882d3a359e6fbb7.\r\n\r\n-- \r\nHarald K"}}