{"action":"created","issue":{"url":"https://api.github.com/repos/kwon37xi/hibernate4-memcached/issues/20","labels_url":"https://api.github.com/repos/kwon37xi/hibernate4-memcached/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/kwon37xi/hibernate4-memcached/issues/20/comments","events_url":"https://api.github.com/repos/kwon37xi/hibernate4-memcached/issues/20/events","html_url":"https://github.com/kwon37xi/hibernate4-memcached/issues/20","id":81893397,"number":20,"title":"Classloader can't find my own classes","user":{"login":"alexanderkjall","id":647710,"avatar_url":"https://avatars.githubusercontent.com/u/647710?v=3","gravatar_id":"","url":"https://api.github.com/users/alexanderkjall","html_url":"https://github.com/alexanderkjall","followers_url":"https://api.github.com/users/alexanderkjall/followers","following_url":"https://api.github.com/users/alexanderkjall/following{/other_user}","gists_url":"https://api.github.com/users/alexanderkjall/gists{/gist_id}","starred_url":"https://api.github.com/users/alexanderkjall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexanderkjall/subscriptions","organizations_url":"https://api.github.com/users/alexanderkjall/orgs","repos_url":"https://api.github.com/users/alexanderkjall/repos","events_url":"https://api.github.com/users/alexanderkjall/events{/privacy}","received_events_url":"https://api.github.com/users/alexanderkjall/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-28T11:48:32Z","updated_at":"2015-11-14T10:45:51Z","closed_at":"2015-11-14T10:45:51Z","body":"Hi\r\n\r\nI upgraded my play framework application to use hibernate 4.2.15 and switched from the com.googlecode.xmemcached cache project to this one.\r\n\r\nWhen I'm doing a query I get a ClassNotFoundException inside your code.\r\n\r\nIt's pretty hard to find out if it's hibernate that creates a classloader that doesn't see my classes, or if it's play, or if it's your code that does it somehow. So this might not be an issue in this project.\r\n\r\nI'm attaching the stacktrace that I get when I try to do a JPA.em().createNamedQuery(namedQuery).getResultList().\r\n\r\n    play.exceptions.JavaExecutionException: models.common.retailer.RetailerTransportPoint class is not found.\r\n            at play.mvc.ActionInvoker.invoke(ActionInvoker.java:228)\r\n            at Invocation.HTTP Request(Play!)\r\n        Caused by: java.lang.IllegalArgumentException: models.common.retailer.RetailerTransportPoint class is not found.\r\n            at kr.pe.kwonnam.hibernate4memcached.regions.CacheItem.getSubclassName(CacheItem.java:83)\r\n            at kr.pe.kwonnam.hibernate4memcached.regions.CacheItem.parseTargetClass(CacheItem.java:57)\r\n            at kr.pe.kwonnam.hibernate4memcached.regions.CacheItem.<init>(CacheItem.java:53)\r\n            at kr.pe.kwonnam.hibernate4memcached.regions.GeneralDataMemcachedRegion.put(GeneralDataMemcachedRegion.java:80)\r\n            at kr.pe.kwonnam.hibernate4memcached.strategies.MemcachedRegionAccessStrategy.putFromLoad(MemcachedRegionAccessStrategy.java:52)\r\n            at org.hibernate.engine.internal.TwoPhaseLoad.doInitializeEntity(TwoPhaseLoad.java:219)\r\n            at org.hibernate.engine.internal.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:137)\r\n            at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:1112)\r\n            at org.hibernate.loader.Loader.processResultSet(Loader.java:969)\r\n            at org.hibernate.loader.Loader.doQuery(Loader.java:917)\r\n            at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:348)\r\n            at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:318)\r\n            at org.hibernate.loader.Loader.loadEntity(Loader.java:2145)\r\n            at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:82)\r\n            at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:72)\r\n            at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:3939)\r\n            at org.hibernate.event.internal.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:462)\r\n            at org.hibernate.event.internal.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:431)\r\n            at org.hibernate.event.internal.DefaultLoadEventListener.loadByDerivedIdentitySimplePkValue(DefaultLoadEventListener.java:179)\r\n            at org.hibernate.event.internal.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:124)\r\n            at org.hibernate.internal.SessionImpl.fireLoad(SessionImpl.java:1017)\r\n            at org.hibernate.internal.SessionImpl.internalLoad(SessionImpl.java:944)\r\n            at org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:714)\r\n            at org.hibernate.type.EntityType.resolve(EntityType.java:502)\r\n            at org.hibernate.engine.internal.TwoPhaseLoad.doInitializeEntity(TwoPhaseLoad.java:168)\r\n            at org.hibernate.engine.internal.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:137)\r\n            at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:1112)\r\n            at org.hibernate.loader.Loader.processResultSet(Loader.java:969)\r\n            at org.hibernate.loader.Loader.doQuery(Loader.java:917)\r\n            at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:348)\r\n            at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:318)\r\n            at org.hibernate.loader.Loader.loadEntity(Loader.java:2145)\r\n            at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:82)\r\n            at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:72)\r\n            at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:3939)\r\n            at org.hibernate.event.internal.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:462)\r\n            at org.hibernate.event.internal.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:431)\r\n            at org.hibernate.event.internal.DefaultLoadEventListener.load(DefaultLoadEventListener.java:208)\r\n            at org.hibernate.event.internal.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:264)\r\n            at org.hibernate.event.internal.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:152)\r\n            at org.hibernate.internal.SessionImpl.fireLoad(SessionImpl.java:1017)\r\n            at org.hibernate.internal.SessionImpl.internalLoad(SessionImpl.java:944)\r\n            at org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:714)\r\n            at org.hibernate.type.ManyToOneType.assemble(ManyToOneType.java:282)\r\n            at org.hibernate.cache.internal.StandardQueryCache.get(StandardQueryCache.java:170)\r\n            at org.hibernate.loader.Loader.getResultFromQueryCache(Loader.java:2477)\r\n            at org.hibernate.loader.Loader.listUsingQueryCache(Loader.java:2385)\r\n            at org.hibernate.loader.Loader.list(Loader.java:2358)\r\n            at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:495)\r\n            at org.hibernate.hql.internal.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:357)\r\n            at org.hibernate.engine.query.spi.HQLQueryPlan.performList(HQLQueryPlan.java:198)\r\n            at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1194)\r\n            at org.hibernate.internal.QueryImpl.list(QueryImpl.java:101)\r\n            at org.hibernate.ejb.QueryImpl.getSingleResult(QueryImpl.java:287)\r\n            at common.util.JPAWrapper.getQueryCachedSingleResultFromNamedQuery(JPAWrapper.java:363)\r\n            at controllers.retailer.Retailers.show(Retailers.java:1297)\r\n            at play.mvc.ActionInvoker.invokeWithContinuation(ActionInvoker.java:524)\r\n            at play.mvc.ActionInvoker.invoke(ActionInvoker.java:475)\r\n            at play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:451)\r\n            at play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:446)\r\n            at play.mvc.ActionInvoker.invoke(ActionInvoker.java:160)\r\n            ... 1 more\r\n        Caused by: java.lang.ClassNotFoundException: models.common.retailer.RetailerTransportPoint\r\n            at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\r\n            at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\r\n            at java.security.AccessController.doPrivileged(Native Method)\r\n            at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\r\n            at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\r\n            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)\r\n            at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\r\n            at java.lang.Class.forName0(Native Method)\r\n            at java.lang.Class.forName(Class.java:190)\r\n            at kr.pe.kwonnam.hibernate4memcached.regions.CacheItem.getSubclassName(CacheItem.java:81)\r\n            ... 61 more\r\n"},"comment":{"url":"https://api.github.com/repos/kwon37xi/hibernate4-memcached/issues/comments/156682510","html_url":"https://github.com/kwon37xi/hibernate4-memcached/issues/20#issuecomment-156682510","issue_url":"https://api.github.com/repos/kwon37xi/hibernate4-memcached/issues/20","id":156682510,"user":{"login":"kwon37xi","id":545649,"avatar_url":"https://avatars.githubusercontent.com/u/545649?v=3","gravatar_id":"","url":"https://api.github.com/users/kwon37xi","html_url":"https://github.com/kwon37xi","followers_url":"https://api.github.com/users/kwon37xi/followers","following_url":"https://api.github.com/users/kwon37xi/following{/other_user}","gists_url":"https://api.github.com/users/kwon37xi/gists{/gist_id}","starred_url":"https://api.github.com/users/kwon37xi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwon37xi/subscriptions","organizations_url":"https://api.github.com/users/kwon37xi/orgs","repos_url":"https://api.github.com/users/kwon37xi/repos","events_url":"https://api.github.com/users/kwon37xi/events{/privacy}","received_events_url":"https://api.github.com/users/kwon37xi/received_events","type":"User","site_admin":false},"created_at":"2015-11-14T10:45:51Z","updated_at":"2015-11-14T10:45:51Z","body":"No further information"}}