Category Archives: MX.3

RMI local class incompatible

When loading external classes using RMI, it is key to compile against same jars as the ones used in target system. If not, RMi local class incompatible error can be thrown because class id between two jar compilations will be different. As such serialization and de serialization will not work properly, throwing this error. Re-mediation is to always fetch jars corresponding to the environment against which app is developed and place them in the classpath. sources http://craftingjava.blogspot.com.au/2012/06/javaioinvalidclassexception-local-class.html http://www.coderanch.com/t/571958/java/java/Invalid-Class-Exception-serialization http://docs.oracle.com/javase/tutorial/rmi/compiling.html