You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2016/03/24 19:32:25 UTC
[jira] [Commented] (SPARK-14134) SQLListenerSuite fails on maven
builds
[ https://issues.apache.org/jira/browse/SPARK-14134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15210726#comment-15210726 ]
Sean Owen commented on SPARK-14134:
-----------------------------------
Related: https://issues.apache.org/jira/browse/SPARK-8815
I think I convinced myself that hyphens are allowed in package names as far as the language itself is concerned, but unsurprisingly, this might still cause problems in practice. There too the suggestion was to rename this package if possible.
> 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org