{"action":"created","issue":{"url":"https://api.github.com/repos/FasterXML/jackson-datatype-jsr310/issues/51","labels_url":"https://api.github.com/repos/FasterXML/jackson-datatype-jsr310/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/FasterXML/jackson-datatype-jsr310/issues/51/comments","events_url":"https://api.github.com/repos/FasterXML/jackson-datatype-jsr310/issues/51/events","html_url":"https://github.com/FasterXML/jackson-datatype-jsr310/issues/51","id":120226700,"number":51,"title":"Failed to deserialize simple long milliseconds, nano seconds are disabled.","user":{"login":"vanmyne","id":9342779,"avatar_url":"https://avatars.githubusercontent.com/u/9342779?v=3","gravatar_id":"","url":"https://api.github.com/users/vanmyne","html_url":"https://github.com/vanmyne","followers_url":"https://api.github.com/users/vanmyne/followers","following_url":"https://api.github.com/users/vanmyne/following{/other_user}","gists_url":"https://api.github.com/users/vanmyne/gists{/gist_id}","starred_url":"https://api.github.com/users/vanmyne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vanmyne/subscriptions","organizations_url":"https://api.github.com/users/vanmyne/orgs","repos_url":"https://api.github.com/users/vanmyne/repos","events_url":"https://api.github.com/users/vanmyne/events{/privacy}","received_events_url":"https://api.github.com/users/vanmyne/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-03T17:27:46Z","updated_at":"2015-12-03T19:39:03Z","closed_at":null,"body":"Mapper configuration:\r\n\r\n```java\r\n ObjectMapper mapper = new ObjectMapper();\r\n            mapper.setSerializationInclusion(Include.NON_NULL);\r\n            mapper.findAndRegisterModules();\r\n            mapper.disable(DeserializationFeature.READ_DATE_TIMESTAMPS_AS_NANOSECONDS);\r\n            mapper.disable(SerializationFeature.WRITE_DATE_TIMESTAMPS_AS_NANOSECONDS);\r\n\r\n            mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING);\r\n            mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING);\r\n```\r\n\r\nError Stack Trace:\r\n\r\n```\r\nCaused by: java.time.format.DateTimeParseException: Text '1449163142741' could not be parsed at index 0\r\n\tat java.time.format.DateTimeFormatter.parseResolved0(DateTimeFormatter.java:1947)\r\n\tat java.time.format.DateTimeFormatter.parse(DateTimeFormatter.java:1775)\r\n\tat com.fasterxml.jackson.datatype.jsr310.deser.InstantDeserializer.deserialize(InstantDeserializer.java:151)\r\n\tat com.fasterxml.jackson.datatype.jsr310.deser.InstantDeserializer.deserialize(InstantDeserializer.java:45)\r\n\tat com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:520)\r\n\tat com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:95)\r\n\tat com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:256)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/FasterXML/jackson-datatype-jsr310/issues/comments/161757584","html_url":"https://github.com/FasterXML/jackson-datatype-jsr310/issues/51#issuecomment-161757584","issue_url":"https://api.github.com/repos/FasterXML/jackson-datatype-jsr310/issues/51","id":161757584,"user":{"login":"vanmyne","id":9342779,"avatar_url":"https://avatars.githubusercontent.com/u/9342779?v=3","gravatar_id":"","url":"https://api.github.com/users/vanmyne","html_url":"https://github.com/vanmyne","followers_url":"https://api.github.com/users/vanmyne/followers","following_url":"https://api.github.com/users/vanmyne/following{/other_user}","gists_url":"https://api.github.com/users/vanmyne/gists{/gist_id}","starred_url":"https://api.github.com/users/vanmyne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vanmyne/subscriptions","organizations_url":"https://api.github.com/users/vanmyne/orgs","repos_url":"https://api.github.com/users/vanmyne/repos","events_url":"https://api.github.com/users/vanmyne/events{/privacy}","received_events_url":"https://api.github.com/users/vanmyne/received_events","type":"User","site_admin":false},"created_at":"2015-12-03T19:39:03Z","updated_at":"2015-12-03T19:39:03Z","body":"We were using \r\n<dependency>\r\n\t\t    <groupId>com.fasterxml.jackson.datatype</groupId>\r\n\t\t    <artifactId>jackson-datatype-jsr310</artifactId>\r\n\t\t    <version>2.6.1</version>\r\n</dependency>\r\n\r\nCode which is trying to read from mapper:\r\n            ObjectMapper mapper = new ObjectMapper();\r\n            mapper.setSerializationInclusion(Include.NON_NULL);\r\n            mapper.findAndRegisterModules();\r\n            mapper.disable(DeserializationFeature.READ_DATE_TIMESTAMPS_AS_NANOSECONDS);\r\n            mapper.disable(SerializationFeature.WRITE_DATE_TIMESTAMPS_AS_NANOSECONDS);\r\n\r\n            mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING);\r\n            mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING);\r\n\r\n            mapper.readValue(jsonString, <ClassType>);\r\n\r\nInput <jsonString> : \r\n \"processorConfirmation\": [\r\n                    {\r\n                        \"processorName\": \"PROCESSOR1\",\r\n                        \"proctxn\": \"aaea43b4402a4a589d36b35155d0447d\",\r\n                        \"procType\": \"TEST1\"\r\n                    },\r\n                    {\r\n                        \"confirmationCode\": \"RERQERR\",\r\n                        \"confirmationTime\": \"1449163142741\",\r\n                        \"processorName\": \"PROCESSOR2\",\r\n                        \"processorTransactionType\": \"TEST2\"\r\n                    }\r\n                ]\r\n            }\r\n\r\nIt is failing while trying to parse the element confirmationTime. \r\n\r\n"}}