java.lang.RuntimeException

by java.lang.NoClassDefFoundError: javassist/util/proxy/ProxyObject

Samebug tips4

A few things cause this exception: 1) Check if you have all jars and if they're in the correct path when running. 2) Your classpath might be broken, you can define it in the command line with "java -cp yourClassPath" or at your IDE if you're using one.

This might be an issue with the file location in the Spark submit command. Try it with "spark-submit --master spark://master:7077 hello_world_from_pyspark.py {file location}"

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web2058

  • via hivmr.com by Unknown author, 1 year ago
    by java.lang.NoClassDefFoundError: javassist/util/proxy/ProxyObject
  • by java.lang.NoClassDefFoundError: javassist/util/proxy/ProxyObject
  • by java.lang.NoClassDefFoundError: javassist/util/proxy/ProxyObject
  • Stack trace

    • java.lang.RuntimeException: by java.lang.NoClassDefFoundError: javassist/util/proxy/ProxyObject at javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:515) at javassist.util.proxy.ProxyFactory.createClass2(ProxyFactory.java:492) at javassist.util.proxy.ProxyFactory.createClass1(ProxyFactory.java:428) at javassist.util.proxy.ProxyFactory.createClass(ProxyFactory.java:400) at javassist.util.proxy.ProxyFactory.create(ProxyFactory.java:675) at javassist.util.proxy.ProxyFactory.create(ProxyFactory.java:660) at android.NativeFinder$.apply(NativeFinder.scala:40) at android.Tasks$$anonfun$31.apply(tasks.scala:406) at android.Tasks$$anonfun$31.apply(tasks.scala:405) at scala.Function6$$anonfun$tupled$1.apply(Function6.scala:35) at scala.Function6$$anonfun$tupled$1.apply(Function6.scala:34) at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47) at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40) at sbt.std.Transform$$anon$4.work(System.scala:63) at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228) at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228) at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17) at sbt.Execute.work(Execute.scala:237) at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228) at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228) at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159) at sbt.CompletionService$$anon$2.call(CompletionService.scala:28) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: javassist.CannotCompileException: by java.lang.NoClassDefFoundError: javassist/util/proxy/ProxyObject at javassist.util.proxy.FactoryHelper.toClass(FactoryHelper.java:170) at javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:507) ... 27 more Caused by: java.lang.NoClassDefFoundError: javassist/util/proxy/ProxyObject at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:760) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at javassist.util.proxy.FactoryHelper.toClass2(FactoryHelper.java:182) at javassist.util.proxy.FactoryHelper.toClass(FactoryHelper.java:164) ... 28 more Caused by: java.lang.ClassNotFoundException: javassist.util.proxy.ProxyObject at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 36 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    2 times, 1 hour ago
    4 times, 17 hours ago
    4 times, 17 hours ago
    26 times, 2 days ago
    2 times, 6 days ago
    1506 more bugmates