[ https://issues.apache.org/jira/browse/SPARK-14134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15228903#comment-15228903 ]
Marcelo Vanzin commented on SPARK-14134: ---------------------------------------- I'll reopen this since I'm running into it internally, even if jenkins is happy here. The fix doesn't affect users and is "more correct", so might as well get it in. > SQLListenerSuite fails on maven builds > -------------------------------------- > > Key: SPARK-14134 > URL: https://issues.apache.org/jira/browse/SPARK-14134 > Project: Spark > Issue Type: Bug > Components: Tests > Affects Versions: 2.0.0 > Reporter: Marcelo Vanzin > > While working on SPARK-13579 I noticed this test fails consistently in maven > builds. That's because it mocks {{SparkUI}}, and mockito fails when it sees a > shaded class named {{org/spark-project/jetty/servlet/ServletContextHandler}}; > the dash leads to this exception: > {noformat} > [31m Cause: java.lang.ClassFormatError: Method "detachHandler" in class > org/apache/spark/ui/SparkUI$$EnhancerByMockitoWithCGLIB$$62e86495 has illegal > signature "(Lorg/spark-project/jetty/servlet/ServletContextHandler;)V"[0m > [31m at java.lang.ClassLoader.defineClass1(Native Method)[0m > [31m at java.lang.ClassLoader.defineClass(ClassLoader.java:800)[0m > [31m at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[0m > [31m at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[0m > [31m at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[0m > [31m at java.lang.reflect.Method.invoke(Method.java:606)[0m > [31m at > org.mockito.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:385)[0m > [31m at > org.mockito.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:220)[0m > [31m at org.mockito.cglib.proxy.Enhancer.createHelper(Enhancer.java:378)[0m > [31m at org.mockito.cglib.proxy.Enhancer.createClass(Enhancer.java:318)[0m > {noformat} > Changing the shaded class name fixes the issue. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org