{"action":"opened","issue":{"url":"https://api.github.com/repos/orika-mapper/orika/issues/299","repository_url":"https://api.github.com/repos/orika-mapper/orika","labels_url":"https://api.github.com/repos/orika-mapper/orika/issues/299/labels{/name}","comments_url":"https://api.github.com/repos/orika-mapper/orika/issues/299/comments","events_url":"https://api.github.com/repos/orika-mapper/orika/issues/299/events","html_url":"https://github.com/orika-mapper/orika/issues/299","id":388186370,"node_id":"MDU6SXNzdWUzODgxODYzNzA=","number":299,"title":"MappingException","user":{"login":"smogstate","id":11090508,"node_id":"MDQ6VXNlcjExMDkwNTA4","avatar_url":"https://avatars2.githubusercontent.com/u/11090508?v=4","gravatar_id":"","url":"https://api.github.com/users/smogstate","html_url":"https://github.com/smogstate","followers_url":"https://api.github.com/users/smogstate/followers","following_url":"https://api.github.com/users/smogstate/following{/other_user}","gists_url":"https://api.github.com/users/smogstate/gists{/gist_id}","starred_url":"https://api.github.com/users/smogstate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smogstate/subscriptions","organizations_url":"https://api.github.com/users/smogstate/orgs","repos_url":"https://api.github.com/users/smogstate/repos","events_url":"https://api.github.com/users/smogstate/events{/privacy}","received_events_url":"https://api.github.com/users/smogstate/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-06T12:11:00Z","updated_at":"2018-12-06T12:11:00Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nit seems we getting same kind of symptoms described here: 252 , 248. We got multiple MapperFactories and Mappers so they are not **singletones**. \r\n\r\nSometimes really wired exceptions happens like:\r\n`\r\nma.glasnost.orika.MappingException: exception while creating object factory for org.joda.time.chrono.ISOChronology at ma.glasnost.orika.impl.generator.ObjectFactoryGenerator.build(ObjectFactoryGenerator.java:104) at ma.glasnost.orika.impl.DefaultMapperFactory.lookupObjectFactory(DefaultMapperFactory.java:966) at ma.glasnost.orika.impl.MapperFacadeImpl.resolveMappingStrategy(MapperFacadeImpl.java:182) at ma.glasnost.orika.impl.DefaultBoundMapperFacade$BoundStrategyCache.getStrategy(DefaultBoundMapperFacade.java:259) at ma.glasnost.orika.impl.DefaultBoundMapperFacade.map(DefaultBoundMapperFacade.java:137) at ma.glasnost.orika.generated.DateTime_DateTime_ObjectFactory43244272000899444324688331862560$9984.create(DateTime_DateTime_ObjectFactory43244272000899444324688331862560$9984.java) `\r\n\r\nBut we defined DateTime as pass through why the mapper is generated?\r\n\r\n```\r\nMapperFactory mapperFactory = new DefaultMapperFactory.Builder()\r\n        .build();\r\n    mapperFactory\r\n        .getConverterFactory()\r\n        .registerConverter(\r\n            new PassThroughConverter(\r\n                LocalDateTime.class, DateTime.class, DateTimeZone.class, ISOChronology.class));\r\n    return mapperFactory;\r\n```\r\n\r\nI checked the implementation of JavassistCompilerStrategy there are couple questions:\r\n\r\n1) why **superClasses** map is static\r\n2) why in **registerClassLoader** function synchronization is done on parameter\r\n\r\n\r\nThose exception ofc happens only in production. i cant reproduce it locally even with high concurrent  simulation. Any ideas what can go wrong?\r\n"}}
{"actor":{"display_login":"smogstate"}}