You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Marcelo Vanzin (JIRA)" <ji...@apache.org> on 2016/03/29 01:23:25 UTC

[jira] [Resolved] (SPARK-14134) SQLListenerSuite fails on maven builds

     [ https://issues.apache.org/jira/browse/SPARK-14134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marcelo Vanzin resolved SPARK-14134.
------------------------------------
    Resolution: Cannot Reproduce

Tests are now passing again without the need to change this, so closing.

> 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}
>   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"
>   at java.lang.ClassLoader.defineClass1(Native Method)
>   at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>   at java.lang.reflect.Method.invoke(Method.java:606)
>   at org.mockito.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:385)
>   at org.mockito.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:220)
>   at org.mockito.cglib.proxy.Enhancer.createHelper(Enhancer.java:378)
>   at org.mockito.cglib.proxy.Enhancer.createClass(Enhancer.java:318)
> {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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org