{"action":"closed","issue":{"url":"https://api.github.com/repos/FasterXML/jackson-databind/issues/1695","repository_url":"https://api.github.com/repos/FasterXML/jackson-databind","labels_url":"https://api.github.com/repos/FasterXML/jackson-databind/issues/1695/labels{/name}","comments_url":"https://api.github.com/repos/FasterXML/jackson-databind/issues/1695/comments","events_url":"https://api.github.com/repos/FasterXML/jackson-databind/issues/1695/events","html_url":"https://github.com/FasterXML/jackson-databind/issues/1695","id":241135185,"number":1695,"title":"Deserialization of `Exception` serialized as XML fails","user":{"login":"kmahara","id":4443732,"avatar_url":"https://avatars3.githubusercontent.com/u/4443732?v=3","gravatar_id":"","url":"https://api.github.com/users/kmahara","html_url":"https://github.com/kmahara","followers_url":"https://api.github.com/users/kmahara/followers","following_url":"https://api.github.com/users/kmahara/following{/other_user}","gists_url":"https://api.github.com/users/kmahara/gists{/gist_id}","starred_url":"https://api.github.com/users/kmahara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmahara/subscriptions","organizations_url":"https://api.github.com/users/kmahara/orgs","repos_url":"https://api.github.com/users/kmahara/repos","events_url":"https://api.github.com/users/kmahara/events{/privacy}","received_events_url":"https://api.github.com/users/kmahara/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-07-07T01:54:54Z","updated_at":"2017-07-12T05:21:55Z","closed_at":"2017-07-12T05:21:55Z","body":"Deserialize of Exception has failed.\r\nReproduce code is:\r\n```\r\nimport com.fasterxml.jackson.dataformat.xml.XmlMapper;\r\n\r\npublic class Test {\r\n\tpublic static void main(String[] args) throws Exception {\r\n\t\tException e = new Exception();\r\n\r\n\t\tXmlMapper mapper = new XmlMapper();\r\n\r\n\t\tString s = mapper.writeValueAsString(e);\r\n\t\tSystem.out.println(s);\r\n\r\n\t\tException e2 = mapper.readValue(s, Exception.class);\r\n\t\tString s2 = mapper.writeValueAsString(e2);\r\n\t\tSystem.out.println(s2);\r\n\t}\r\n}\r\n```\r\n\r\nError reports:\r\n```\r\nException in thread \"main\" com.fasterxml.jackson.databind.JsonMappingException: Non-numeric token (VALUE_STRING) for property 'lineNumber'\r\n at [Source: java.io.StringReader@38bc8ab5; line: 1, column: 116] (through reference chain: java.lang.Object[][0])\r\n\tat com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:270)\r\n\tat com.fasterxml.jackson.databind.DeserializationContext.reportMappingException(DeserializationContext.java:1234)\r\n\tat com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1122)\r\n\tat com.fasterxml.jackson.databind.deser.std.StackTraceElementDeserializer.deserialize(StackTraceElementDeserializer.java:40)\r\n\tat com.fasterxml.jackson.databind.deser.std.StackTraceElementDeserializer.deserialize(StackTraceElementDeserializer.java:11)\r\n\tat com.fasterxml.jackson.databind.deser.std.ObjectArrayDeserializer.deserialize(ObjectArrayDeserializer.java:196)\r\n\tat com.fasterxml.jackson.databind.deser.std.ObjectArrayDeserializer.deserialize(ObjectArrayDeserializer.java:20)\r\n\tat com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:504)\r\n\tat com.fasterxml.jackson.databind.deser.std.ThrowableDeserializer.deserializeFromObject(ThrowableDeserializer.java:103)\r\n\tat com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:148)\r\n\tat com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3814)\r\n\tat com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2858)\r\n\tat jp.mahara.tumblr.Test.main(Test.java:14)\r\n```\r\n\r\nMaven dependency is:\r\n```\r\n\t\t<dependency>\r\n\t\t\t<groupId>com.fasterxml.jackson.jaxrs</groupId>\r\n\t\t\t<artifactId>jackson-jaxrs-xml-provider</artifactId>\r\n\t\t\t<version>2.8.9</version>\r\n\t\t</dependency>\r\n```\r\n"}}
{"actor":{"display_login":"cowtowncoder"}}