{"action":"opened","issue":{"url":"https://api.github.com/repos/DozerMapper/dozer/issues/246","labels_url":"https://api.github.com/repos/DozerMapper/dozer/issues/246/labels{/name}","comments_url":"https://api.github.com/repos/DozerMapper/dozer/issues/246/comments","events_url":"https://api.github.com/repos/DozerMapper/dozer/issues/246/events","html_url":"https://github.com/DozerMapper/dozer/issues/246","id":82497358,"number":246,"title":"XmlBean to XmlBean throws","user":{"login":"SkySpiral7","id":7716584,"avatar_url":"https://avatars.githubusercontent.com/u/7716584?v=3","gravatar_id":"","url":"https://api.github.com/users/SkySpiral7","html_url":"https://github.com/SkySpiral7","followers_url":"https://api.github.com/users/SkySpiral7/followers","following_url":"https://api.github.com/users/SkySpiral7/following{/other_user}","gists_url":"https://api.github.com/users/SkySpiral7/gists{/gist_id}","starred_url":"https://api.github.com/users/SkySpiral7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SkySpiral7/subscriptions","organizations_url":"https://api.github.com/users/SkySpiral7/orgs","repos_url":"https://api.github.com/users/SkySpiral7/repos","events_url":"https://api.github.com/users/SkySpiral7/events{/privacy}","received_events_url":"https://api.github.com/users/SkySpiral7/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-29T16:37:26Z","updated_at":"2015-05-29T16:37:26Z","closed_at":null,"body":"Attempted to map from an already existing XmlBean to another will always throw: org.apache.xmlbeans.impl.values.XmlValueNotSupportedException: Could not get a Java Date type from a Schema complex type at org.apache.xmlbeans.impl.values.XmlObjectBase.getGDateValue(XmlObjectBase.java:1648). As demonstrated by this simple unit test:\r\n\r\n```Java\r\n  @Test\r\n  public void objectToObject() {\r\n    CarXml source = CarXml.Factory.newInstance();\r\n    source.setMake(\"Ford\");\r\n    CarXml destination = CarXml.Factory.newInstance();\r\n\r\n    new DozerBeanMapper().map(source, destination);\r\n    Assert.assertEquals(source.getMake(), destination.getMake());\r\n  }\r\n````\r\n\r\nwhich fails in Dozer 5.5.1 and 5.3.2. Dozer claims to support XmlBeans and mapping from source to destination concrete objects is basic functionality so this unit test should pass. Sample XSD not included because it fails for any 2 XmlBeans."}}