{"action":"closed","issue":{"url":"https://api.github.com/repos/pantsbuild/pants/issues/3026","repository_url":"https://api.github.com/repos/pantsbuild/pants","labels_url":"https://api.github.com/repos/pantsbuild/pants/issues/3026/labels{/name}","comments_url":"https://api.github.com/repos/pantsbuild/pants/issues/3026/comments","events_url":"https://api.github.com/repos/pantsbuild/pants/issues/3026/events","html_url":"https://github.com/pantsbuild/pants/issues/3026","id":139589987,"number":3026,"title":"Why is zinc trying to classload our proto symbols?","user":{"login":"ericzundel","id":119728,"avatar_url":"https://avatars.githubusercontent.com/u/119728?v=3","gravatar_id":"","url":"https://api.github.com/users/ericzundel","html_url":"https://github.com/ericzundel","followers_url":"https://api.github.com/users/ericzundel/followers","following_url":"https://api.github.com/users/ericzundel/following{/other_user}","gists_url":"https://api.github.com/users/ericzundel/gists{/gist_id}","starred_url":"https://api.github.com/users/ericzundel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericzundel/subscriptions","organizations_url":"https://api.github.com/users/ericzundel/orgs","repos_url":"https://api.github.com/users/ericzundel/repos","events_url":"https://api.github.com/users/ericzundel/events{/privacy}","received_events_url":"https://api.github.com/users/ericzundel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-03-09T14:23:49Z","updated_at":"2016-04-04T21:06:16Z","closed_at":"2016-04-04T21:06:16Z","body":"We just upgraded to pants 0.0.75 yesterday. We are seeing intermittent errors from the compile.zinc task that indicates that zinc is trying to classload our generated protos.\r\n\r\n\r\n```\r\n09:17:09 01:31         [zinc]\r\n                       ==== stderr ====\r\n                       java.lang.NoClassDefFoundError: com/squareup/protos/xp/oauth/Service$LookupRegisterAPIAuthorizedClientsResponse (wrong name: com/squareup/protos/xp/oauth/Service$LookupRegisterApiAuthorizedClientsResponse)\r\n                       \tat java.lang.ClassLoader.defineClass1(Native Method)\r\n                       \tat java.lang.ClassLoader.defineClass(ClassLoader.java:760)\r\n                       \tat java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)\r\n                       \tat java.net.URLClassLoader.defineClass(URLClassLoader.java:467)\r\n                       \tat java.net.URLClassLoader.access$100(URLClassLoader.java:73)\r\n                       \tat java.net.URLClassLoader$1.run(URLClassLoader.java:368)\r\n                       \tat java.net.URLClassLoader$1.run(URLClassLoader.java:362)\r\n                       \tat java.security.AccessController.doPrivileged(Native Method)\r\n                       \tat java.net.URLClassLoader.findClass(URLClassLoader.java:361)\r\n                       \tat java.lang.ClassLoader.loadClass(ClassLoader.java:424)\r\n                       \tat java.lang.ClassLoader.loadClass(ClassLoader.java:357)\r\n                       \tat java.lang.Class.getDeclaringClass0(Native Method)\r\n                       \tat java.lang.Class.getDeclaringClass(Class.java:1235)\r\n                       \tat java.lang.Class.getEnclosingClass(Class.java:1277)\r\n                       \tat __shaded_by_pants__.sbt.ClassToAPI$.isTopLevel(ClassToAPI.scala:43)\r\n                       \tat __shaded_by_pants__.sbt.ClassToAPI$$anonfun$3.apply(ClassToAPI.scala:19)\r\n                       \tat __shaded_by_pants__.sbt.ClassToAPI$$anonfun$3.apply(ClassToAPI.scala:19)\r\n                       \tat scala.collection.TraversableLike$$anonfun$filter$1.apply(TraversableLike.scala:264)\r\n                       \tat scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)\r\n                       \tat scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:47)\r\n                       \tat scala.collection.TraversableLike$class.filter(TraversableLike.scala:263)\r\n                       \tat scala.collection.AbstractTraversable.filter(Traversable.scala:105)\r\n                       \tat __shaded_by_pants__.sbt.ClassToAPI$.process(ClassToAPI.scala:19)\r\n                       \tat __shaded_by_pants__.sbt.compiler.javac.AnalyzingJavaCompiler.sbt$compiler$javac$AnalyzingJavaCompiler$$readAPI$1(AnalyzingJavaCompiler.scala:76)\r\n                       \tat __shaded_by_pants__.sbt.compiler.javac.AnalyzingJavaCompiler$$anonfun$compile$2$$anonfun$apply$mcV$sp$2$$anonfun$apply$5.apply(AnalyzingJavaCompiler.scala:84)\r\n                       \tat __shaded_by_pants__.sbt.compiler.javac.AnalyzingJavaCompiler$$anonfun$compile$2$$anonfun$apply$mcV$sp$2$$anonfun$apply$5.apply(AnalyzingJavaCompiler.scala:84)\r\n                       \tat __shaded_by_pants__.sbt.classfile.Analyze$$anonfun$apply$9.apply(Analyze.scala:44)\r\n                       \tat __shaded_by_pants__.sbt.classfile.Analyze$$anonfun$apply$9.apply(Analyze.scala:43)\r\n                       \tat scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(TraversableLike.scala:772)\r\n                       \tat scala.collection.mutable.HashMap$$anonfun$foreach$1.apply(HashMap.scala:98)\r\n                       \tat scala.collection.mutable.HashMap$$anonfun$foreach$1.apply(HashMap.scala:98)\r\n                       \tat scala.collection.mutable.HashTable$class.foreachEntry(HashTable.scala:226)\r\n                       \tat scala.collection.mutable.HashMap.foreachEntry(HashMap.scala:39)\r\n                       \tat scala.collection.mutable.HashMap.foreach(HashMap.scala:98)\r\n                       \tat scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:771)\r\n                       \tat __shaded_by_pants__.sbt.classfile.Analyze$.apply(Analyze.scala:43)\r\n                       \tat __shaded_by_pants__.sbt.compiler.javac.AnalyzingJavaCompiler$$anonfun$compile$2$$anonfun$apply$mcV$sp$2.apply(AnalyzingJavaCompiler.scala:84)\r\n                       \tat __shaded_by_pants__.sbt.compiler.javac.AnalyzingJavaCompiler$$anonfun$compile$2$$anonfun$apply$mcV$sp$2.apply(AnalyzingJavaCompiler.scala:82)\r\n                       \tat scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(TraversableLike.scala:772)\r\n                       \tat scala.collection.immutable.List.foreach(List.scala:318)\r\n                       \tat scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:771)\r\n                       \tat __shaded_by_pants__.sbt.compiler.javac.AnalyzingJavaCompiler$$anonfun$compile$2.apply$mcV$sp(AnalyzingJavaCompiler.scala:82)\r\n                       \tat __shaded_by_pants__.sbt.compiler.javac.AnalyzingJavaCompiler$$anonfun$compile$2.apply(AnalyzingJavaCompiler.scala:82)\r\n                       \tat __shaded_by_pants__.sbt.compiler.javac.AnalyzingJavaCompiler$$anonfun$compile$2.apply(AnalyzingJavaCompiler.scala:82)\r\n                       \tat __shaded_by_pants__.sbt.compiler.javac.AnalyzingJavaCompiler.timed(AnalyzingJavaCompiler.scala:93)\r\n                       \tat __shaded_by_pants__.sbt.compiler.javac.AnalyzingJavaCompiler.compile(AnalyzingJavaCompiler.scala:81)\r\n                       \tat __shaded_by_pants__.sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileJava$1$1.apply$mcV$sp(MixedAnalyzingCompiler.scala:61)\r\n                       \tat __shaded_by_pants__.sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileJava$1$1.apply(MixedAnalyzingCompiler.scala:61)\r\n                       \tat __shaded_by_pants__.sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileJava$1$1.apply(MixedAnalyzingCompiler.scala:61)\r\n                       \tat __shaded_by_pants__.sbt.compiler.MixedAnalyzingCompiler.timed(MixedAnalyzingCompiler.scala:75)\r\n                       \tat __shaded_by_pants__.sbt.compiler.MixedAnalyzingCompiler.compileJava$1(MixedAnalyzingCompiler.scala:60)\r\n                       \tat __shaded_by_pants__.sbt.compiler.MixedAnalyzingCompiler.compile(MixedAnalyzingCompiler.scala:65)\r\n                       \tat __shaded_by_pants__.sbt.compiler.IC$$anonfun$compileInternal$1.apply(IncrementalCompiler.scala:160)\r\n                       \tat __shaded_by_pants__.sbt.compiler.IC$$anonfun$compileInternal$1.apply(IncrementalCompiler.scala:160)\r\n                       \tat __shaded_by_pants__.sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:66)\r\n                       \tat __shaded_by_pants__.sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:64)\r\n                       \tat __shaded_by_pants__.sbt.inc.IncrementalCommon.cycle(IncrementalCommon.scala:31)\r\n                       \tat __shaded_by_pants__.sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:62)\r\n                       \tat __shaded_by_pants__.sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:61)\r\n                       \tat __shaded_by_pants__.sbt.inc.Incremental$.manageClassfiles(Incremental.scala:89)\r\n                       \tat __shaded_by_pants__.sbt.inc.Incremental$.compile(Incremental.scala:61)\r\n                       \tat __shaded_by_pants__.sbt.inc.IncrementalCompile$.apply(Compile.scala:54)\r\n                       \tat __shaded_by_pants__.sbt.compiler.IC$.compileInternal(IncrementalCompiler.scala:160)\r\n                       \tat __shaded_by_pants__.sbt.compiler.IC$.incrementalCompile(IncrementalCompiler.scala:138)\r\n                       \tat org.pantsbuild.zinc.Compiler.compile(Compiler.scala:192)\r\n                       \tat org.pantsbuild.zinc.Main$.run(Main.scala:102)\r\n                       \tat org.pantsbuild.zinc.Main$.main(Main.scala:16)\r\n                       \tat org.pantsbuild.zinc.Main.main(Main.scala)\r\n                       \tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n                       \tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n                       \tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n                       \tat java.lang.reflect.Method.invoke(Method.java:497)\r\n                       \tat com.martiansoftware.nailgun.NGSession.run(NGSession.java:280)\r\n\r\n```"}}