java.lang.IllegalArgumentException: Can't serialize object >>> of type class org.springframework.context.su >>> <http://org.springframework.context.su>pp* *ort.ClassPathXmlApplicationContext* at akka.cluster.protobuf.ClusterMessageSerializer.toBinary(Clus >>> terMessageSerializer.scala:74) at akka.serialization.Serialization$$anonfun$serialize$1.apply( >>> Serialization.scala:90) at akka.serialization.Serialization$$anonfun$serialize$1.apply( >>> Serialization.scala:90)

Google Groups | vipin mandloi | 4 months ago
  1. 0

    Akka configured seed nodes are leaving cluster and unreachable/reachable warning message is getting logged.

    Google Groups | 4 months ago | vipin mandloi
    java.lang.IllegalArgumentException: Can't serialize object >>> of type class org.springframework.context.su >>> <http://org.springframework.context.su>pp* *ort.ClassPathXmlApplicationContext* at akka.cluster.protobuf.ClusterMessageSerializer.toBinary(Clus >>> terMessageSerializer.scala:74) at akka.serialization.Serialization$$anonfun$serialize$1.apply( >>> Serialization.scala:90) at akka.serialization.Serialization$$anonfun$serialize$1.apply( >>> Serialization.scala:90)
  2. 0

    Akka configured seed nodes are leaving cluster and unreachable/reachable warning message is getting logged.

    Google Groups | 4 months ago | vipin mandloi
    java.lang.IllegalArgumentException: Can't serialize object of type class org.springframework.context.supp* *ort.ClassPathXmlApplicationContext*
  3. 0

    Akka configured seed nodes are leaving cluster and unreachable/reachable warning message is getting logged.

    Google Groups | 4 months ago | vipin mandloi
    java.lang.IllegalArgumentException: Can't serialize object of type class org.springframework.context.support.ClassPathXmlApplicationContext*
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Enums cannot be serialized without transforming them. I propose, that all java enums are serialized (and deserialized) using the name() method (or valueOf() method). Example (using QueryDSL): @Entity public enum Type { TYPE1, TYPE2 } public class MyObject { protected Type type; public Type getType() { } public void setType(Type type) { this.type = type; } } Usage: QMyObject.myObject.type.eq(Type.TYPE1); // ends in: java.lang.IllegalArgumentException: can't serialize class Type at org.bson.BSONEncoder._putObjectField(BSONEncoder.java:213) at org.bson.BSONEncoder.putObject(BSONEncoder.java:123) at org.bson.BSONEncoder._putObjectField(BSONEncoder.java:173) at org.bson.BSONEncoder.putObject(BSONEncoder.java:123) at org.bson.BSONEncoder.putObject(BSONEncoder.java:69) at com.mongodb.OutMessage.putObject(OutMessage.java:189) at com.mongodb.OutMessage._appendQuery(OutMessage.java:62) at com.mongodb.OutMessage.query(OutMessage.java:39) at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:293) at com.mongodb.DB.command(DB.java:152) at com.mongodb.DBCollection.getCount(DBCollection.java:760) at com.mongodb.DBCollection.getCount(DBCollection.java:731) at com.mongodb.DBCollection.count(DBCollection.java:697) at com.mysema.query.mongodb.MongodbQuery.count(MongodbQuery.java:184) at org.springframework.data.document.mongodb.repository.QueryDslMongoRepository.count(QueryDslMongoRepository.java:151) at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.springframework.data.repository.support.RepositoryFactorySupport$QueryExecuterMethodInterceptor.executeMethodOn(RepositoryFactorySupport.java:356) at org.springframework.data.repository.support.RepositoryFactorySupport$QueryExecuterMethodInterceptor.invoke(RepositoryFactorySupport.java:337) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy18.count(Unknown Source)

    JIRA | 6 years ago | Robert Stiller
    java.lang.IllegalArgumentException: can't serialize class Type
  6. 0

    Check argument type (from a variable length argument list) at runtime in Scala

    Stack Overflow | 4 years ago | Jeff
    java.lang.IllegalArgumentException: Incompatible argument type for [1]. Expected: int. Found: java.lang.Integer. at $anonfun$checkTypes$1.apply$mcVI$sp(&lt;console&gt;:20)

    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.IllegalArgumentException

      Can't serialize object >>> of type class org.springframework.context.su >>> <http://org.springframework.context.su>pp* *ort.ClassPathXmlApplicationContext* at akka.cluster.protobuf.ClusterMessageSerializer.toBinary(Clus >>> terMessageSerializer.scala:74) at akka.serialization.Serialization$$anonfun$serialize$1.apply( >>> Serialization.scala:90) at akka.serialization.Serialization$$anonfun$serialize$1.apply( >>> Serialization.scala:90)

      at scala.util.Try$.apply()
    2. Scala
      Try$.apply
      1. scala.util.Try$.apply(Try.scala:161)
      1 frame