{"action":"created","comment":{"url":"https://api.github.com/repos/openaire/iis/pulls/comments/42482974","id":42482974,"diff_hunk":"@@ -46,15 +85,29 @@ protected void map(AvroKey<DocumentText> key, NullWritable value, Context contex\n \t\t\t\tsaxParser.parse(new InputSource(\n \t\t\t\t\t\tnew StringReader(nlm.getText().toString())), \n \t\t\t\t\t\tpmcXmlHandler);\n-                context.write(new AvroKey<ExtractedDocumentMetadata>(output.build()), \n-                \t\tNullWritable.get());\n+\t\t\t\tmos.write(namedOutputMeta, \n+\t\t\t\t\t\tnew AvroKey<ExtractedDocumentMetadata>(output.build()));\n         \t } catch (ParserConfigurationException e) {\n-             \tthrow new IOException(\"Text extraction failed for id \" + nlm.getId() + \n-             \t\t\t\" and text: \" + nlm.getText(), e);\n+        \t\t Map<CharSequence, CharSequence> auditSupplementaryData = new HashMap<CharSequence, CharSequence>();\n+        \t\t\tauditSupplementaryData.put(FAULT_TEXT, nlm.getText());\n+        \t\t mos.write(namedOutputFault, \n+        \t\t\t\t new AvroKey<Fault>(FaultUtils.exceptionToFault(nlm.getId(), e, auditSupplementaryData)));\n         \t } catch (SAXException e) {\n- \t\t\t\tthrow new IOException(\"Text extraction failed for id \" + nlm.getId() + \n-             \t\t\t\" and text: \" + nlm.getText(), e);\n+\t\t\t\tMap<CharSequence, CharSequence> auditSupplementaryData = new HashMap<CharSequence, CharSequence>();","path":"iis-workflows/iis-workflows-ingest-pmc/src/main/java/eu/dnetlib/iis/workflows/ingest/pmc/metadata/MetadataImporter.java","position":86,"original_position":86,"commit_id":"734339ca526908245bd1b49a7830113300cdca6f","original_commit_id":"734339ca526908245bd1b49a7830113300cdca6f","user":{"login":"mkobos","id":1044091,"avatar_url":"https://avatars.githubusercontent.com/u/1044091?v=3","gravatar_id":"","url":"https://api.github.com/users/mkobos","html_url":"https://github.com/mkobos","followers_url":"https://api.github.com/users/mkobos/followers","following_url":"https://api.github.com/users/mkobos/following{/other_user}","gists_url":"https://api.github.com/users/mkobos/gists{/gist_id}","starred_url":"https://api.github.com/users/mkobos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkobos/subscriptions","organizations_url":"https://api.github.com/users/mkobos/orgs","repos_url":"https://api.github.com/users/mkobos/repos","events_url":"https://api.github.com/users/mkobos/events{/privacy}","received_events_url":"https://api.github.com/users/mkobos/received_events","type":"User","site_admin":false},"body":"The section starting here is the same one as in the previous `catch` block. The code should be reused.","created_at":"2015-10-20T11:22:10Z","updated_at":"2015-10-20T11:22:10Z","html_url":"https://github.com/openaire/iis/pull/58#discussion_r42482974","pull_request_url":"https://api.github.com/repos/openaire/iis/pulls/58","_links":{"self":{"href":"https://api.github.com/repos/openaire/iis/pulls/comments/42482974"},"html":{"href":"https://github.com/openaire/iis/pull/58#discussion_r42482974"},"pull_request":{"href":"https://api.github.com/repos/openaire/iis/pulls/58"}}},"pull_request":{"url":"https://api.github.com/repos/openaire/iis/pulls/58","id":47895849,"html_url":"https://github.com/openaire/iis/pull/58","diff_url":"https://github.com/openaire/iis/pull/58.diff","patch_url":"https://github.com/openaire/iis/pull/58.patch","issue_url":"https://api.github.com/repos/openaire/iis/issues/58","number":58,"state":"open","locked":false,"title":"marekhorst 52 fault support in epmc importer","user":{"login":"marekhorst","id":11537389,"avatar_url":"https://avatars.githubusercontent.com/u/11537389?v=3","gravatar_id":"","url":"https://api.github.com/users/marekhorst","html_url":"https://github.com/marekhorst","followers_url":"https://api.github.com/users/marekhorst/followers","following_url":"https://api.github.com/users/marekhorst/following{/other_user}","gists_url":"https://api.github.com/users/marekhorst/gists{/gist_id}","starred_url":"https://api.github.com/users/marekhorst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marekhorst/subscriptions","organizations_url":"https://api.github.com/users/marekhorst/orgs","repos_url":"https://api.github.com/users/marekhorst/repos","events_url":"https://api.github.com/users/marekhorst/events{/privacy}","received_events_url":"https://api.github.com/users/marekhorst/received_events","type":"User","site_admin":false},"body":"Related to #52 issue. Please review.","created_at":"2015-10-16T10:48:05Z","updated_at":"2015-10-20T11:22:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"891b47e690d49d3c9edab93e5edfee781f3bdb00","assignee":{"login":"mkobos","id":1044091,"avatar_url":"https://avatars.githubusercontent.com/u/1044091?v=3","gravatar_id":"","url":"https://api.github.com/users/mkobos","html_url":"https://github.com/mkobos","followers_url":"https://api.github.com/users/mkobos/followers","following_url":"https://api.github.com/users/mkobos/following{/other_user}","gists_url":"https://api.github.com/users/mkobos/gists{/gist_id}","starred_url":"https://api.github.com/users/mkobos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkobos/subscriptions","organizations_url":"https://api.github.com/users/mkobos/orgs","repos_url":"https://api.github.com/users/mkobos/repos","events_url":"https://api.github.com/users/mkobos/events{/privacy}","received_events_url":"https://api.github.com/users/mkobos/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/openaire/iis/pulls/58/commits","review_comments_url":"https://api.github.com/repos/openaire/iis/pulls/58/comments","review_comment_url":"https://api.github.com/repos/openaire/iis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openaire/iis/issues/58/comments","statuses_url":"https://api.github.com/repos/openaire/iis/statuses/734339ca526908245bd1b49a7830113300cdca6f","head":{"label":"openaire:marekhorst_52_fault_support_in_epmc_importer","ref":"marekhorst_52_fault_support_in_epmc_importer","sha":"734339ca526908245bd1b49a7830113300cdca6f","user":{"login":"openaire","id":10127536,"avatar_url":"https://avatars.githubusercontent.com/u/10127536?v=3","gravatar_id":"","url":"https://api.github.com/users/openaire","html_url":"https://github.com/openaire","followers_url":"https://api.github.com/users/openaire/followers","following_url":"https://api.github.com/users/openaire/following{/other_user}","gists_url":"https://api.github.com/users/openaire/gists{/gist_id}","starred_url":"https://api.github.com/users/openaire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openaire/subscriptions","organizations_url":"https://api.github.com/users/openaire/orgs","repos_url":"https://api.github.com/users/openaire/repos","events_url":"https://api.github.com/users/openaire/events{/privacy}","received_events_url":"https://api.github.com/users/openaire/received_events","type":"Organization","site_admin":false},"repo":{"id":42290369,"name":"iis","full_name":"openaire/iis","owner":{"login":"openaire","id":10127536,"avatar_url":"https://avatars.githubusercontent.com/u/10127536?v=3","gravatar_id":"","url":"https://api.github.com/users/openaire","html_url":"https://github.com/openaire","followers_url":"https://api.github.com/users/openaire/followers","following_url":"https://api.github.com/users/openaire/following{/other_user}","gists_url":"https://api.github.com/users/openaire/gists{/gist_id}","starred_url":"https://api.github.com/users/openaire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openaire/subscriptions","organizations_url":"https://api.github.com/users/openaire/orgs","repos_url":"https://api.github.com/users/openaire/repos","events_url":"https://api.github.com/users/openaire/events{/privacy}","received_events_url":"https://api.github.com/users/openaire/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openaire/iis","description":"Information Inference Service of the OpenAIRE system","fork":false,"url":"https://api.github.com/repos/openaire/iis","forks_url":"https://api.github.com/repos/openaire/iis/forks","keys_url":"https://api.github.com/repos/openaire/iis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openaire/iis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openaire/iis/teams","hooks_url":"https://api.github.com/repos/openaire/iis/hooks","issue_events_url":"https://api.github.com/repos/openaire/iis/issues/events{/number}","events_url":"https://api.github.com/repos/openaire/iis/events","assignees_url":"https://api.github.com/repos/openaire/iis/assignees{/user}","branches_url":"https://api.github.com/repos/openaire/iis/branches{/branch}","tags_url":"https://api.github.com/repos/openaire/iis/tags","blobs_url":"https://api.github.com/repos/openaire/iis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openaire/iis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openaire/iis/git/refs{/sha}","trees_url":"https://api.github.com/repos/openaire/iis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openaire/iis/statuses/{sha}","languages_url":"https://api.github.com/repos/openaire/iis/languages","stargazers_url":"https://api.github.com/repos/openaire/iis/stargazers","contributors_url":"https://api.github.com/repos/openaire/iis/contributors","subscribers_url":"https://api.github.com/repos/openaire/iis/subscribers","subscription_url":"https://api.github.com/repos/openaire/iis/subscription","commits_url":"https://api.github.com/repos/openaire/iis/commits{/sha}","git_commits_url":"https://api.github.com/repos/openaire/iis/git/commits{/sha}","comments_url":"https://api.github.com/repos/openaire/iis/comments{/number}","issue_comment_url":"https://api.github.com/repos/openaire/iis/issues/comments{/number}","contents_url":"https://api.github.com/repos/openaire/iis/contents/{+path}","compare_url":"https://api.github.com/repos/openaire/iis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openaire/iis/merges","archive_url":"https://api.github.com/repos/openaire/iis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openaire/iis/downloads","issues_url":"https://api.github.com/repos/openaire/iis/issues{/number}","pulls_url":"https://api.github.com/repos/openaire/iis/pulls{/number}","milestones_url":"https://api.github.com/repos/openaire/iis/milestones{/number}","notifications_url":"https://api.github.com/repos/openaire/iis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openaire/iis/labels{/name}","releases_url":"https://api.github.com/repos/openaire/iis/releases{/id}","created_at":"2015-09-11T05:55:08Z","updated_at":"2015-10-08T09:25:44Z","pushed_at":"2015-10-20T07:55:06Z","git_url":"git://github.com/openaire/iis.git","ssh_url":"git@github.com:openaire/iis.git","clone_url":"https://github.com/openaire/iis.git","svn_url":"https://github.com/openaire/iis","homepage":"","size":36012,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":16,"forks":0,"open_issues":16,"watchers":2,"default_branch":"master"}},"base":{"label":"openaire:master","ref":"master","sha":"8d826f0821ff5f0d529e6d2c2ae48ff559278856","user":{"login":"openaire","id":10127536,"avatar_url":"https://avatars.githubusercontent.com/u/10127536?v=3","gravatar_id":"","url":"https://api.github.com/users/openaire","html_url":"https://github.com/openaire","followers_url":"https://api.github.com/users/openaire/followers","following_url":"https://api.github.com/users/openaire/following{/other_user}","gists_url":"https://api.github.com/users/openaire/gists{/gist_id}","starred_url":"https://api.github.com/users/openaire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openaire/subscriptions","organizations_url":"https://api.github.com/users/openaire/orgs","repos_url":"https://api.github.com/users/openaire/repos","events_url":"https://api.github.com/users/openaire/events{/privacy}","received_events_url":"https://api.github.com/users/openaire/received_events","type":"Organization","site_admin":false},"repo":{"id":42290369,"name":"iis","full_name":"openaire/iis","owner":{"login":"openaire","id":10127536,"avatar_url":"https://avatars.githubusercontent.com/u/10127536?v=3","gravatar_id":"","url":"https://api.github.com/users/openaire","html_url":"https://github.com/openaire","followers_url":"https://api.github.com/users/openaire/followers","following_url":"https://api.github.com/users/openaire/following{/other_user}","gists_url":"https://api.github.com/users/openaire/gists{/gist_id}","starred_url":"https://api.github.com/users/openaire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openaire/subscriptions","organizations_url":"https://api.github.com/users/openaire/orgs","repos_url":"https://api.github.com/users/openaire/repos","events_url":"https://api.github.com/users/openaire/events{/privacy}","received_events_url":"https://api.github.com/users/openaire/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openaire/iis","description":"Information Inference Service of the OpenAIRE system","fork":false,"url":"https://api.github.com/repos/openaire/iis","forks_url":"https://api.github.com/repos/openaire/iis/forks","keys_url":"https://api.github.com/repos/openaire/iis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openaire/iis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openaire/iis/teams","hooks_url":"https://api.github.com/repos/openaire/iis/hooks","issue_events_url":"https://api.github.com/repos/openaire/iis/issues/events{/number}","events_url":"https://api.github.com/repos/openaire/iis/events","assignees_url":"https://api.github.com/repos/openaire/iis/assignees{/user}","branches_url":"https://api.github.com/repos/openaire/iis/branches{/branch}","tags_url":"https://api.github.com/repos/openaire/iis/tags","blobs_url":"https://api.github.com/repos/openaire/iis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openaire/iis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openaire/iis/git/refs{/sha}","trees_url":"https://api.github.com/repos/openaire/iis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openaire/iis/statuses/{sha}","languages_url":"https://api.github.com/repos/openaire/iis/languages","stargazers_url":"https://api.github.com/repos/openaire/iis/stargazers","contributors_url":"https://api.github.com/repos/openaire/iis/contributors","subscribers_url":"https://api.github.com/repos/openaire/iis/subscribers","subscription_url":"https://api.github.com/repos/openaire/iis/subscription","commits_url":"https://api.github.com/repos/openaire/iis/commits{/sha}","git_commits_url":"https://api.github.com/repos/openaire/iis/git/commits{/sha}","comments_url":"https://api.github.com/repos/openaire/iis/comments{/number}","issue_comment_url":"https://api.github.com/repos/openaire/iis/issues/comments{/number}","contents_url":"https://api.github.com/repos/openaire/iis/contents/{+path}","compare_url":"https://api.github.com/repos/openaire/iis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openaire/iis/merges","archive_url":"https://api.github.com/repos/openaire/iis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openaire/iis/downloads","issues_url":"https://api.github.com/repos/openaire/iis/issues{/number}","pulls_url":"https://api.github.com/repos/openaire/iis/pulls{/number}","milestones_url":"https://api.github.com/repos/openaire/iis/milestones{/number}","notifications_url":"https://api.github.com/repos/openaire/iis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openaire/iis/labels{/name}","releases_url":"https://api.github.com/repos/openaire/iis/releases{/id}","created_at":"2015-09-11T05:55:08Z","updated_at":"2015-10-08T09:25:44Z","pushed_at":"2015-10-20T07:55:06Z","git_url":"git://github.com/openaire/iis.git","ssh_url":"git@github.com:openaire/iis.git","clone_url":"https://github.com/openaire/iis.git","svn_url":"https://github.com/openaire/iis","homepage":"","size":36012,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":16,"forks":0,"open_issues":16,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openaire/iis/pulls/58"},"html":{"href":"https://github.com/openaire/iis/pull/58"},"issue":{"href":"https://api.github.com/repos/openaire/iis/issues/58"},"comments":{"href":"https://api.github.com/repos/openaire/iis/issues/58/comments"},"review_comments":{"href":"https://api.github.com/repos/openaire/iis/pulls/58/comments"},"review_comment":{"href":"https://api.github.com/repos/openaire/iis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openaire/iis/pulls/58/commits"},"statuses":{"href":"https://api.github.com/repos/openaire/iis/statuses/734339ca526908245bd1b49a7830113300cdca6f"}}}}