{"action":"closed","issue":{"url":"https://api.github.com/repos/weblicht/wlfxb/issues/7","labels_url":"https://api.github.com/repos/weblicht/wlfxb/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/weblicht/wlfxb/issues/7/comments","events_url":"https://api.github.com/repos/weblicht/wlfxb/issues/7/events","html_url":"https://github.com/weblicht/wlfxb/issues/7","id":37508696,"number":7,"title":"Reading a non-TCF XML file may not throw a WLFormatException","user":{"login":"reckart","id":1410238,"avatar_url":"https://avatars.githubusercontent.com/u/1410238?v=3","gravatar_id":"","url":"https://api.github.com/users/reckart","html_url":"https://github.com/reckart","followers_url":"https://api.github.com/users/reckart/followers","following_url":"https://api.github.com/users/reckart/following{/other_user}","gists_url":"https://api.github.com/users/reckart/gists{/gist_id}","starred_url":"https://api.github.com/users/reckart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reckart/subscriptions","organizations_url":"https://api.github.com/users/reckart/orgs","repos_url":"https://api.github.com/users/reckart/repos","events_url":"https://api.github.com/users/reckart/events{/privacy}","received_events_url":"https://api.github.com/users/reckart/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2014-07-09T21:09:42Z","updated_at":"2015-02-12T12:39:39Z","closed_at":"2015-02-12T12:39:39Z","body":"The call\r\n\r\n```\r\nXMLEvent event = xmlEventReader.nextEvent();\r\n```\r\n\r\nthrows a java.util.NoElementException when trying to read a non-TCF XML file because no TextCorpusStored.XML_NAME can be found in the file. This exception should be caught and wrapped into a WLFormatException.\r\n\r\n```\r\nCaused by: java.util.NoSuchElementException\r\n\tat com.sun.xml.internal.stream.XMLEventReaderImpl.nextEvent(XMLEventReaderImpl.java:88)\r\n\tat eu.clarin.weblicht.wlfxb.io.TextCorpusStreamedWithReplaceableLayers.process(TextCorpusStreamedWithReplaceableLayers.java:139)\r\n\tat eu.clarin.weblicht.wlfxb.io.TextCorpusStreamedWithReplaceableLayers.<init>(TextCorpusStreamedWithReplaceableLayers.java:107)\r\n\tat de.tudarmstadt.ukp.clarin.webanno.tcf.TcfWriter.casToTcfWriter(TcfWriter.java:201)\r\n\tat de.tudarmstadt.ukp.clarin.webanno.tcf.TcfWriter.process(TcfWriter.java:121)\r\n\t... 103 more\r\n```\r\n\r\nThis problem may exist elsewhere in the library as well."}}