{"action":"created","issue":{"url":"https://api.github.com/repos/whisklabs/docker-it-scala/issues/63","repository_url":"https://api.github.com/repos/whisklabs/docker-it-scala","labels_url":"https://api.github.com/repos/whisklabs/docker-it-scala/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/whisklabs/docker-it-scala/issues/63/comments","events_url":"https://api.github.com/repos/whisklabs/docker-it-scala/issues/63/events","html_url":"https://github.com/whisklabs/docker-it-scala/issues/63","id":192987573,"number":63,"title":"Existing release stopped working unexpectedly with NullPointerException","user":{"login":"giftig","id":2862039,"avatar_url":"https://avatars.githubusercontent.com/u/2862039?v=3","gravatar_id":"","url":"https://api.github.com/users/giftig","html_url":"https://github.com/giftig","followers_url":"https://api.github.com/users/giftig/followers","following_url":"https://api.github.com/users/giftig/following{/other_user}","gists_url":"https://api.github.com/users/giftig/gists{/gist_id}","starred_url":"https://api.github.com/users/giftig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giftig/subscriptions","organizations_url":"https://api.github.com/users/giftig/orgs","repos_url":"https://api.github.com/users/giftig/repos","events_url":"https://api.github.com/users/giftig/events{/privacy}","received_events_url":"https://api.github.com/users/giftig/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-12-01T23:03:52Z","updated_at":"2016-12-09T09:00:57Z","closed_at":null,"body":"It's taken me a while to follow up on this but docker-it-scala has been causing my test suite serious problems. Since the last issue I raised a while ago, I managed to upgrade to 0.9.0-M2 and my tests were working, but at some indeterminate point after that they stopped working again, while still on 0.9.0-M2. Here's the error I'm getting:\r\n\r\n```\r\nException encountered when invoking run on a nested suite. *** ABORTED ***\r\n  java.lang.NullPointerException:\r\n  at scala.collection.mutable.WrappedArray$ofRef.length(WrappedArray.scala:125)\r\n  at scala.collection.mutable.ArrayBuffer.$plus$plus$eq(ArrayBuffer.scala:97)\r\n  at scala.collection.mutable.ArrayBuffer.$plus$plus$eq(ArrayBuffer.scala:47)\r\n  at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251)\r\n  at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251)\r\n  at scala.collection.Iterator$class.foreach(Iterator.scala:727)\r\n  at scala.collection.AbstractIterator.foreach(Iterator.scala:1157)\r\n  at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)\r\n  at scala.collection.AbstractIterable.foreach(Iterable.scala:54)\r\n  at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:251)\r\n  at scala.collection.AbstractTraversable.flatMap(Traversable.scala:105)\r\n  at com.whisk.docker.DockerJavaExecutor$$anonfun$listImages$1.apply(DockerJavaExecutor.scala:118)\r\n  at com.whisk.docker.DockerJavaExecutor$$anonfun$listImages$1.apply(DockerJavaExecutor.scala:118)\r\n  at scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)\r\n  at scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24)\r\n  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n  at java.lang.Thread.run(Thread.java:745)\r\n```\r\nI've also tried updating to 0.9.0-M10 today, which, aside from being incompatible with M2 because of the introduction of the dockerFactory method in the DockerTestKit trait, and requiring an additional dependency without warning, failed with the same issue once I figured out where the dependency lived and what I had to do to fix the incompatibility issue (using the dockerjava impl).\r\n\r\nI also tried the spotify impl, which gave me a different issue - NoClassDefErrors:\r\n\r\n```\r\nException in thread \"pool-2-thread-2\" java.lang.NoClassDefFoundError: com/spotify/docker/client/DockerClient$RemoveContainerParam\r\n\tat com.whisk.docker.impl.spotify.SpotifyDockerCommandExecutor$$anonfun$remove$1.apply$mcV$sp(SpotifyDockerCommandExecutor.scala:146)\r\n\tat com.whisk.docker.impl.spotify.SpotifyDockerCommandExecutor$$anonfun$remove$1.apply(SpotifyDockerCommandExecutor.scala:146)\r\n\tat com.whisk.docker.impl.spotify.SpotifyDockerCommandExecutor$$anonfun$remove$1.apply(SpotifyDockerCommandExecutor.scala:146)\r\n\tat scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)\r\n\tat scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n```\r\n\r\nI checked the docker daemon logs, which showed no docker activity in the period in which I was trying to run these tests, which suggests that the library broke before it got as far as instructing docker to do anything.\r\n\r\nAny idea why this is happening? I'm fairly sure I'm not doing anything special or different here, which suggests it simply isn't working. I'm going to have a hunt through the stack trace and see if I can identify where that null is coming from now, but you'll note the stack trace is entirely within the library.\r\n\r\nThe spotify issue, being a NoClassDefFound issue, suggests a bad release? I notice you just released RC1, but it's so recent I wasn't able to fetch it from the central repository.\r\n\r\nI'm on docker version ```1.12.3```, running natively in 64-bit fedora."},"comment":{"url":"https://api.github.com/repos/whisklabs/docker-it-scala/issues/comments/265965531","html_url":"https://github.com/whisklabs/docker-it-scala/issues/63#issuecomment-265965531","issue_url":"https://api.github.com/repos/whisklabs/docker-it-scala/issues/63","id":265965531,"user":{"login":"giftig","id":2862039,"avatar_url":"https://avatars.githubusercontent.com/u/2862039?v=3","gravatar_id":"","url":"https://api.github.com/users/giftig","html_url":"https://github.com/giftig","followers_url":"https://api.github.com/users/giftig/followers","following_url":"https://api.github.com/users/giftig/following{/other_user}","gists_url":"https://api.github.com/users/giftig/gists{/gist_id}","starred_url":"https://api.github.com/users/giftig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giftig/subscriptions","organizations_url":"https://api.github.com/users/giftig/orgs","repos_url":"https://api.github.com/users/giftig/repos","events_url":"https://api.github.com/users/giftig/events{/privacy}","received_events_url":"https://api.github.com/users/giftig/received_events","type":"User","site_admin":false},"created_at":"2016-12-09T09:00:57Z","updated_at":"2016-12-09T09:00:57Z","body":"Alas, I still get a NullPointerException. When I get chance I'll try it in a completely fresh environment, but clearly there's a pretty nasty bug in that method if it makes image lookup so fragile. Can't really blame that one on whisk, though, so I'll go raise a bug with docker-java when I have a moment. I'd be interested in figuring out what the NoClassDefErrors with the spotify driver are about though, since that'd at least get around the issue by using the alternative driver."}}
{"actor":{"display_login":"giftig"}}