java.lang.NoClassDefFoundError: org/apache/spark/sql/expressions/UserDefinedFunction

GitHub | markyeh | 3 months ago
  1. 0

    GitHub comment 150#248313618

    GitHub | 3 months ago | markyeh
    java.lang.NoClassDefFoundError: org/apache/spark/sql/expressions/UserDefinedFunction
  2. 0

    Can't execute - Warning: killAfter is now deprecated

    GitHub | 2 years ago | Mikadily
    java.lang.NoClassDefFoundError: com/xeiam/xchange/ExchangeException
  3. 0

    org/parboiled/errors/ParserRuntimeException

    GitHub | 2 years ago | jhawkinsatgood
    java.lang.NoClassDefFoundError: org/parboiled/errors/ParserRuntimeException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Unable to run the test on an project created using the transport archetype. Getting this failure: java.lang.NoClassDefFoundError: org/junit/rules/TestRule at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) at java.lang.Class.getMethod0(Class.java:2670) at java.lang.Class.getMethod(Class.java:1603) at org.junit.internal.builders.SuiteMethodBuilder.hasSuiteMethod(SuiteMethodBuilder.java:20) at org.junit.internal.builders.SuiteMethodBuilder.runnerForClass(SuiteMethodBuilder.java:13) at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57) at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:29) at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57) at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:24) at org.apache.maven.surefire.junit4.JUnit4TestSet.<init>(JUnit4TestSet.java:45) at org.apache.maven.surefire.junit4.JUnit4DirectoryTestSuite.createTestSet(JUnit4DirectoryTestSuite.java:56) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(AbstractDirectoryTestSuite.java:96) at org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:209) at org.apache.maven.surefire.Surefire.run(Surefire.java:156) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009) Caused by: java.lang.ClassNotFoundException: org.junit.rules.TestRule at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) ... 21 more Steps to reproduce: _Create a project using the transport archetype. _ Run mvn test _ Check the surefire log to see the exception stack trace

    MuleSoft JIRA | 5 years ago | Pablo Kraan
    java.lang.NoClassDefFoundError: org/junit/rules/TestRule

  1. serious2monkeys 5 times, last 5 days ago
  2. Luka 4 times, last 2 months ago
  3. davidvanlaatum 14 times, last 6 months ago
29 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    org.apache.spark.sql.expressions.UserDefinedFunction

    at java.net.URLClassLoader$1.run()
  2. Java RT
    Class.getMethod
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    2. java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    3. java.security.AccessController.doPrivileged(Native Method)
    4. java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    5. java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    6. java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    7. java.lang.Class.getDeclaredMethods0(Native Method)
    8. java.lang.Class.privateGetDeclaredMethods(Class.java:2570)
    9. java.lang.Class.getMethod0(Class.java:2813)
    10. java.lang.Class.getMethod(Class.java:1663)
    10 frames
  3. Spark Project YARN Stable API
    ApplicationMaster$$anonfun$main$1.apply$mcV$sp
    1. org.apache.spark.deploy.yarn.ApplicationMaster.startUserApplication(ApplicationMaster.scala:537)
    2. org.apache.spark.deploy.yarn.ApplicationMaster.runDriver(ApplicationMaster.scala:319)
    3. org.apache.spark.deploy.yarn.ApplicationMaster.run(ApplicationMaster.scala:185)
    4. org.apache.spark.deploy.yarn.ApplicationMaster$$anonfun$main$1.apply$mcV$sp(ApplicationMaster.scala:653)
    4 frames
  4. Spark
    SparkHadoopUtil$$anon$1.run
    1. org.apache.spark.deploy.SparkHadoopUtil$$anon$1.run(SparkHadoopUtil.scala:69)
    2. org.apache.spark.deploy.SparkHadoopUtil$$anon$1.run(SparkHadoopUtil.scala:68)
    2 frames
  5. Java RT
    Subject.doAs
    1. java.security.AccessController.doPrivileged(Native Method)
    2. javax.security.auth.Subject.doAs(Subject.java:415)
    2 frames
  6. Hadoop
    UserGroupInformation.doAs
    1. org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)
    1 frame
  7. Spark
    SparkHadoopUtil.runAsSparkUser
    1. org.apache.spark.deploy.SparkHadoopUtil.runAsSparkUser(SparkHadoopUtil.scala:68)
    1 frame
  8. Spark Project YARN Stable API
    ApplicationMaster.main
    1. org.apache.spark.deploy.yarn.ApplicationMaster$.main(ApplicationMaster.scala:651)
    2. org.apache.spark.deploy.yarn.ApplicationMaster.main(ApplicationMaster.scala)
    2 frames