{"action":"created","issue":{"url":"https://api.github.com/repos/jamesdbloom/mockserver/issues/279","repository_url":"https://api.github.com/repos/jamesdbloom/mockserver","labels_url":"https://api.github.com/repos/jamesdbloom/mockserver/issues/279/labels{/name}","comments_url":"https://api.github.com/repos/jamesdbloom/mockserver/issues/279/comments","events_url":"https://api.github.com/repos/jamesdbloom/mockserver/issues/279/events","html_url":"https://github.com/jamesdbloom/mockserver/issues/279","id":174055077,"number":279,"title":"NoClassDefFoundError when creating server","user":{"login":"khanh-nguyen","id":7800904,"avatar_url":"https://avatars.githubusercontent.com/u/7800904?v=3","gravatar_id":"","url":"https://api.github.com/users/khanh-nguyen","html_url":"https://github.com/khanh-nguyen","followers_url":"https://api.github.com/users/khanh-nguyen/followers","following_url":"https://api.github.com/users/khanh-nguyen/following{/other_user}","gists_url":"https://api.github.com/users/khanh-nguyen/gists{/gist_id}","starred_url":"https://api.github.com/users/khanh-nguyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khanh-nguyen/subscriptions","organizations_url":"https://api.github.com/users/khanh-nguyen/orgs","repos_url":"https://api.github.com/users/khanh-nguyen/repos","events_url":"https://api.github.com/users/khanh-nguyen/events{/privacy}","received_events_url":"https://api.github.com/users/khanh-nguyen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-30T15:45:38Z","updated_at":"2016-08-30T16:04:33Z","closed_at":"2016-08-30T16:01:54Z","body":"MockServer Version: 3.10.4\r\nI setup the test as in the doc\r\n```java\r\npublic class TestClient {\r\n    private ClientAndServer mockServer;\r\n    @Before\r\n    public void setup() {\r\n        mockServer = startClientAndServer(8099);\r\n        mockServer\r\n                .when(request().withPath(\"/some/path\"))\r\n                .respond(response().withStatusCode(200).withHeader(\"Content-Type\", \"application/json\"));\r\n    }\r\n\r\n    @Test\r\n    public void test() {\r\n        ...\r\n    }\r\n```\r\nHowever, I get error right the line `mockServer = startClientAndServer(8099);`\r\n```\r\njava.lang.NoClassDefFoundError: com/google/common/collect/EvictingQueue\r\n\r\n\tat org.mockserver.filters.RequestLogFilter.<init>(RequestLogFilter.java:27)\r\n\tat org.mockserver.mockserver.MockServer.<init>(MockServer.java:34)\r\n\tat org.mockserver.integration.ClientAndServer.<init>(ClientAndServer.java:20)\r\n\tat org.mockserver.integration.ClientAndServer.startClientAndServer(ClientAndServer.java:29)\r\n\tat com.opower.dyn.TestSendApi.setup(TestClient.java:49)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:606)\r\n\tat org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)\r\n\tat org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)\r\n\tat org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)\r\n\tat org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)\r\n\tat org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)\r\n\tat org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)\r\n\tat org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)\r\n\tat org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)\r\n\tat org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)\r\n\tat org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)\r\n\tat org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)\r\n\tat org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)\r\n\tat org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)\r\n\tat org.junit.runners.ParentRunner.run(ParentRunner.java:363)\r\n\tat org.junit.runner.JUnitCore.run(JUnitCore.java:137)\r\n\tat com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)\r\n\tat com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)\r\n\tat com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)\r\nCaused by: java.lang.ClassNotFoundException: com.google.common.collect.EvictingQueue\r\n\tat java.net.URLClassLoader$1.run(URLClassLoader.java:366)\r\n\tat java.net.URLClassLoader$1.run(URLClassLoader.java:355)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat java.net.URLClassLoader.findClass(URLClassLoader.java:354)\r\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:425)\r\n\tat sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)\r\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:358)\r\n\t... 27 more\r\n```"},"comment":{"url":"https://api.github.com/repos/jamesdbloom/mockserver/issues/comments/243490836","html_url":"https://github.com/jamesdbloom/mockserver/issues/279#issuecomment-243490836","issue_url":"https://api.github.com/repos/jamesdbloom/mockserver/issues/279","id":243490836,"user":{"login":"khanh-nguyen","id":7800904,"avatar_url":"https://avatars.githubusercontent.com/u/7800904?v=3","gravatar_id":"","url":"https://api.github.com/users/khanh-nguyen","html_url":"https://github.com/khanh-nguyen","followers_url":"https://api.github.com/users/khanh-nguyen/followers","following_url":"https://api.github.com/users/khanh-nguyen/following{/other_user}","gists_url":"https://api.github.com/users/khanh-nguyen/gists{/gist_id}","starred_url":"https://api.github.com/users/khanh-nguyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khanh-nguyen/subscriptions","organizations_url":"https://api.github.com/users/khanh-nguyen/orgs","repos_url":"https://api.github.com/users/khanh-nguyen/repos","events_url":"https://api.github.com/users/khanh-nguyen/events{/privacy}","received_events_url":"https://api.github.com/users/khanh-nguyen/received_events","type":"User","site_admin":false},"created_at":"2016-08-30T16:04:33Z","updated_at":"2016-08-30T16:04:33Z","body":"I've checked. Guava is actually listed as dependency for mockserver-netty. So I'm not sure what the issue was but adding guava solved my problem. "}}
{"actor":{"display_login":"khanh-nguyen"}}