{"action":"created","issue":{"url":"https://api.github.com/repos/forcedotcom/ApexUnit/issues/11","labels_url":"https://api.github.com/repos/forcedotcom/ApexUnit/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/forcedotcom/ApexUnit/issues/11/comments","events_url":"https://api.github.com/repos/forcedotcom/ApexUnit/issues/11/events","html_url":"https://github.com/forcedotcom/ApexUnit/issues/11","id":118460560,"number":11,"title":"Connection exception brings testrun down","user":{"login":"13Rise","id":5990595,"avatar_url":"https://avatars.githubusercontent.com/u/5990595?v=3","gravatar_id":"","url":"https://api.github.com/users/13Rise","html_url":"https://github.com/13Rise","followers_url":"https://api.github.com/users/13Rise/followers","following_url":"https://api.github.com/users/13Rise/following{/other_user}","gists_url":"https://api.github.com/users/13Rise/gists{/gist_id}","starred_url":"https://api.github.com/users/13Rise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/13Rise/subscriptions","organizations_url":"https://api.github.com/users/13Rise/orgs","repos_url":"https://api.github.com/users/13Rise/repos","events_url":"https://api.github.com/users/13Rise/events{/privacy}","received_events_url":"https://api.github.com/users/13Rise/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/forcedotcom/ApexUnit/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-23T20:00:46Z","updated_at":"2016-01-08T16:51:21Z","closed_at":null,"body":"I startet a run with about 200 testclasses, after 134 the run stops with the following exception.\r\nTotal tests executed 134 , Remaining tests 66\r\n\r\n[com.sforce.cd.apexUnit.ApexUnitRunner.main()] ERROR com.sforce.cd.apexUnit.ApexUnitUtils - Connection exception encountered while executing query :Select Id, ApexClassId, ApexClass.Name, ExtendedStatus, ParentJobId, Status, SystemModstamp, CreatedDate From ApexTestQueueItem Where ParentJobId = '707L000000XPeYyIAL'\r\n[com.sforce.cd.apexUnit.ApexUnitRunner.main()] INFO com.sforce.cd.apexUnit.ApexUnitUtils - Shutting down ApexUnit\r\njava.lang.Exception: Stack trace\r\n        at java.lang.Thread.dumpStack(Thread.java:1365)\r\n        at com.sforce.cd.apexUnit.ApexUnitUtils.shutDownWithErrMsg(ApexUnitUtils.java:68)\r\n        at com.sforce.cd.apexUnit.ApexUnitUtils.shutDownWithDebugLog(ApexUnitUtils.java:53)\r\n        at com.sforce.cd.apexUnit.client.testEngine.TestStatusPollerAndResultHandler.waitForTestsToComplete(TestStatusPollerAndResultHandler.java:302)\r\n        at com.sforce.cd.apexUnit.client.testEngine.TestStatusPollerAndResultHandler.fetchResultsFromParentJobId(TestStatusPollerAndResultHandler.java:66)\r\n        at com.sforce.cd.apexUnit.client.testEngine.TestExecutor.testExecutionFlow(TestExecutor.java:68)\r\n        at com.sforce.cd.apexUnit.ApexUnitRunner.main(ApexUnitRunner.java:93)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n        at java.lang.reflect.Method.invoke(Method.java:606)\r\n        at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:297)\r\n        at java.lang.Thread.run(Thread.java:745)"},"comment":{"url":"https://api.github.com/repos/forcedotcom/ApexUnit/issues/comments/170053261","html_url":"https://github.com/forcedotcom/ApexUnit/issues/11#issuecomment-170053261","issue_url":"https://api.github.com/repos/forcedotcom/ApexUnit/issues/11","id":170053261,"user":{"login":"tfuda","id":1032721,"avatar_url":"https://avatars.githubusercontent.com/u/1032721?v=3","gravatar_id":"","url":"https://api.github.com/users/tfuda","html_url":"https://github.com/tfuda","followers_url":"https://api.github.com/users/tfuda/followers","following_url":"https://api.github.com/users/tfuda/following{/other_user}","gists_url":"https://api.github.com/users/tfuda/gists{/gist_id}","starred_url":"https://api.github.com/users/tfuda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tfuda/subscriptions","organizations_url":"https://api.github.com/users/tfuda/orgs","repos_url":"https://api.github.com/users/tfuda/repos","events_url":"https://api.github.com/users/tfuda/events{/privacy}","received_events_url":"https://api.github.com/users/tfuda/received_events","type":"User","site_admin":false},"created_at":"2016-01-08T16:51:21Z","updated_at":"2016-01-08T16:51:21Z","body":"@adarsh-ramakrishna-sfdc, @13Rise - I too am experiencing this error. The strange thing however, is that I am ONLY seeing it when running tests in a Developer Edition org on NA7. I am able to run the same suite of tests against the same source files in Developer Edition orgs on NA14 and NA16 without encountering this error. It happens EVERY time I run against my NA7 org. The org is not particularly slow (in fact, the tests seem to run significantly faster on NA7 than they do on NA14). This test suite consists of a total of 99 separate test classes. I'm observing that the tests run to completion without failure (observed via the Salesforce \"Apex Test Execution\" page), however, ApexUnit throws the Connection exception, and never really detects that the tests have finished."}}