{"action":"created","issue":{"url":"https://api.github.com/repos/katharsis-project/katharsis-core/issues/131","labels_url":"https://api.github.com/repos/katharsis-project/katharsis-core/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/katharsis-project/katharsis-core/issues/131/comments","events_url":"https://api.github.com/repos/katharsis-project/katharsis-core/issues/131/events","html_url":"https://github.com/katharsis-project/katharsis-core/issues/131","id":113262954,"number":131,"title":"Intermittent Resource of class not found: io.katharsis.response.LinkageContainer","user":{"login":"csetera","id":270739,"avatar_url":"https://avatars.githubusercontent.com/u/270739?v=3","gravatar_id":"","url":"https://api.github.com/users/csetera","html_url":"https://github.com/csetera","followers_url":"https://api.github.com/users/csetera/followers","following_url":"https://api.github.com/users/csetera/following{/other_user}","gists_url":"https://api.github.com/users/csetera/gists{/gist_id}","starred_url":"https://api.github.com/users/csetera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csetera/subscriptions","organizations_url":"https://api.github.com/users/csetera/orgs","repos_url":"https://api.github.com/users/csetera/repos","events_url":"https://api.github.com/users/csetera/events{/privacy}","received_events_url":"https://api.github.com/users/csetera/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-25T23:53:15Z","updated_at":"2015-10-26T10:02:22Z","closed_at":null,"body":"This is driving me crazy.... I'm building out a test harness for testing with and developing for Katharsis.  The test harness uses an embedded Jetty instance configured to use the katharsis-servlet support to configure Katharsis.  For resource repositories, things are working fine.  However, for relationship repositories, it seems that *most* of the time I see the attached errors, but not every time.  In fact, many times the act of trying to debug the issue results in things working fine.  Here are the stack traces:\r\n\r\n```java\r\nio.katharsis.invoker.KatharsisInvokerException: com.fasterxml.jackson.databind.JsonMappingException: Resource of class not found: io.katharsis.response.LinkageContainer\r\n\tat io.katharsis.invoker.KatharsisInvoker.invoke(KatharsisInvoker.java:73)\r\n\tat io.katharsis.servlet.AbstractKatharsisFilter.doFilter(AbstractKatharsisFilter.java:86)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1668)\r\n\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581)\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1158)\r\n\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1090)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)\r\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:119)\r\n\tat org.eclipse.jetty.server.Server.handle(Server.java:517)\r\n\tat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:306)\r\n\tat org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:242)\r\n\tat org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:261)\r\n\tat org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)\r\n\tat org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:75)\r\n\tat org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:213)\r\n\tat org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:147)\r\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654)\r\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nCaused by: com.fasterxml.jackson.databind.JsonMappingException: Resource of class not found: io.katharsis.response.LinkageContainer\r\n\tat com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:140)\r\n\tat com.fasterxml.jackson.databind.ObjectMapper._configAndWriteValue(ObjectMapper.java:3385)\r\n\tat com.fasterxml.jackson.databind.ObjectMapper.writeValue(ObjectMapper.java:2745)\r\n\tat io.katharsis.invoker.KatharsisInvoker.dispatchRequest(KatharsisInvoker.java:120)\r\n\tat io.katharsis.invoker.KatharsisInvoker.invoke(KatharsisInvoker.java:71)\r\n\t... 19 more\r\nCaused by: io.katharsis.resource.exception.init.ResourceNotFoundInitializationException: Resource of class not found: io.katharsis.response.LinkageContainer\r\n\tat io.katharsis.resource.registry.ResourceRegistry.getEntry(ResourceRegistry.java:43)\r\n\tat io.katharsis.jackson.serializer.IncludedRelationshipExtractor.getRelationshipFields(IncludedRelationshipExtractor.java:152)\r\n\tat io.katharsis.jackson.serializer.IncludedRelationshipExtractor.getIncludedByDefaultResources(IncludedRelationshipExtractor.java:61)\r\n\tat io.katharsis.jackson.serializer.IncludedRelationshipExtractor.extractDefaultIncludedFields(IncludedRelationshipExtractor.java:47)\r\n\tat io.katharsis.jackson.serializer.IncludedRelationshipExtractor.extractIncludedResources(IncludedRelationshipExtractor.java:35)\r\n\tat io.katharsis.jackson.serializer.BaseResponseSerializer.serializeResourceCollection(BaseResponseSerializer.java:81)\r\n\tat io.katharsis.jackson.serializer.BaseResponseSerializer.serialize(BaseResponseSerializer.java:44)\r\n\tat io.katharsis.jackson.serializer.BaseResponseSerializer.serialize(BaseResponseSerializer.java:21)\r\n\tat com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:129)\r\n\t... 23 more\r\n```\r\n\r\nThe fact that it works sometimes makes me believe that this isn't directly my code.  The fact that it is intermittent makes it seem to be either timing or asynchronous, however I've been unable to find anything to nail down the issue.  I could really use some suggestions.\r\n"},"comment":{"url":"https://api.github.com/repos/katharsis-project/katharsis-core/issues/comments/151087757","html_url":"https://github.com/katharsis-project/katharsis-core/issues/131#issuecomment-151087757","issue_url":"https://api.github.com/repos/katharsis-project/katharsis-core/issues/131","id":151087757,"user":{"login":"Sandmania","id":2654941,"avatar_url":"https://avatars.githubusercontent.com/u/2654941?v=3","gravatar_id":"","url":"https://api.github.com/users/Sandmania","html_url":"https://github.com/Sandmania","followers_url":"https://api.github.com/users/Sandmania/followers","following_url":"https://api.github.com/users/Sandmania/following{/other_user}","gists_url":"https://api.github.com/users/Sandmania/gists{/gist_id}","starred_url":"https://api.github.com/users/Sandmania/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sandmania/subscriptions","organizations_url":"https://api.github.com/users/Sandmania/orgs","repos_url":"https://api.github.com/users/Sandmania/repos","events_url":"https://api.github.com/users/Sandmania/events{/privacy}","received_events_url":"https://api.github.com/users/Sandmania/received_events","type":"User","site_admin":false},"created_at":"2015-10-26T10:02:22Z","updated_at":"2015-10-26T10:02:22Z","body":"I've encountered this same error quite a few times as well, with pretty much the same weird behaviour: when I start debugging it (say, attach a remote debugger), the problem disappears. Still haven't found a way to reliable reproduce this."}}