java.lang.RuntimeException

Unable to find proto buffer class: ch.myproject.protocol.SecurityProtocol$MobileLoginResponse

Samebug tips5

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}"

Check if you've set a name in Application -> Run. If you didn't, the generated XML is gonna have missing information and then this exception will be thrown.

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

Solutions on the web39906

  • via GitHub by frne
    , 10 months ago
    Unable to find proto buffer class: ch.myproject.protocol.SecurityProtocol$MobileLoginResponse
  • via Stack Overflow by Coinnigh
    , 7 months ago
    Unable to find proto buffer class
  • Unable to find proto buffer class
  • Stack trace

    • java.lang.RuntimeException: Unable to find proto buffer class: ch.myproject.protocol.SecurityProtocol$MobileLoginResponse at com.google.protobuf.GeneratedMessageLite$SerializedForm.readResolve(GeneratedMessageLite.java:1192) 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:498) at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:1148) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1817) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1353) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:373) at akka.serialization.JavaSerializer$$anonfun$1.apply(Serializer.scala:242) at scala.util.DynamicVariable.withValue(DynamicVariable.scala:58) at akka.serialization.JavaSerializer.fromBinary(Serializer.scala:242) at akka.serialization.Serialization$$anonfun$deserialize$2.apply(Serialization.scala:124) at scala.util.Try$.apply(Try.scala:192) at akka.serialization.Serialization.deserialize(Serialization.scala:114) at akka.remote.MessageSerializer$.deserialize(MessageSerializer.scala:24) at akka.remote.DefaultMessageDispatcher.payload$lzycompute$1(Endpoint.scala:57) at akka.remote.DefaultMessageDispatcher.payload$1(Endpoint.scala:57) at akka.remote.DefaultMessageDispatcher.dispatch(Endpoint.scala:75) at akka.remote.EndpointReader$$anonfun$receive$2.applyOrElse(Endpoint.scala:969) at akka.actor.Actor$class.aroundReceive(Actor.scala:484) at akka.remote.EndpointActor.aroundReceive(Endpoint.scala:439) at akka.actor.ActorCell.receiveMessage(ActorCell.scala:526) at akka.actor.ActorCell.invoke(ActorCell.scala:495) at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257) at akka.dispatch.Mailbox.run(Mailbox.scala:224) at akka.dispatch.Mailbox.exec(Mailbox.scala:234) at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107) Caused by: java.lang.ClassNotFoundException: ch.myproject.protocol.SecurityProtocol$MobileLoginResponse at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at com.google.protobuf.GeneratedMessageLite$SerializedForm.readResolve(GeneratedMessageLite.java:1183) ... 30 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

    4 times, 5 months ago
    Unknown user
    Once, 3 months ago
    2 times, 4 months ago
    3 times, 1 year ago
    Unknown user
    Once, 1 year ago
    1669 more bugmates