java.lang.UnsupportedOperationException: Cannot infer type for class spark.Request because it is not bean-compliant

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by User3
, 2 months ago
Cannot infer type for class spark.Request because it is not bean-compliant
via Stack Overflow by Maksym
, 5 months ago
Cannot infer type for class org.apache.spark.ml.linalg.VectorUDT because it is not bean-compliant
via GitHub by david-2012
, 7 months ago
Cannot infer type for class models.Station because it is not bean-compliant
java.lang.UnsupportedOperationException: Cannot infer type for class spark.Request because it is not bean-compliant
at org.apache.spark.sql.catalyst.JavaTypeInference$.org$apache$spark$sql$catalyst$JavaTypeInference$$serializerFor(JavaTypeInference.scala:437)
at org.apache.spark.sql.catalyst.JavaTypeInference$$anonfun$7.apply(JavaTypeInference.scala:431)
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:241)
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:241)
at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:186)
at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:241)
at org.apache.spark.sql.catalyst.JavaTypeInference$.org$apache$spark$sql$catalyst$JavaTypeInference$$serializerFor(JavaTypeInference.scala:424)
at org.apache.spark.sql.catalyst.encoders.ExpressionEncoder$.javaBean(ExpressionEncoder.scala:92)
at org.apache.spark.sql.Encoders$.bean(Encoders.scala:142)
at spark.fedskill.ml.platform.app.services.FederationPlatformService.startKafkaConsumerStream(FederationPlatformService.java:142)
at spark.fedskill.ml.platform.app.services.FederationPlatformService.start(FederationPlatformService.java:85)
at spark.fedskill.ml.platform.app.Main.main(Main.java:50)
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 org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:743)
at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:187)
at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:212)
at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:126)

Users with the same issue

3 times, 1 year ago

Know the solutions? Share your knowledge to help other developers to debug faster.