Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception in thread "main" java.io.InvalidClassException: scala.collection.immutable.List$SerializationProxy; local class incompatible: stream classdesc serialVersionUID = 1, local class serialVersionUID = -7905219378619747021 #5

Open
FireFreedomK opened this issue Sep 28, 2021 · 0 comments

Comments

@FireFreedomK
Copy link

您好,我在windows10、 idea中创建test.scala并执行
val admin=determineAdmin(115.11632,40.604412,CoordinateSystem.WGS84,true)
println(admin.toString)
println(admin.city)
println(admin.cityCode)
println(admin.province)
println(admin.provinceCode)

得到了下面的异常

Exception in thread "main" java.io.InvalidClassException: scala.collection.immutable.List$SerializationProxy; local class incompatible: stream classdesc serialVersionUID = 1, local class serialVersionUID = -7905219378619747021
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:699)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:2001)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1848)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2158)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1665)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2403)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2327)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2185)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1665)
at java.io.ObjectInputStream.readArray(ObjectInputStream.java:2091)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1653)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:501)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:459)
at com.dengxq.lnglat2Geo.utils.ObjectSerializer$.deserialize(ObjectSerializer.scala:21)
at com.dengxq.lnglat2Geo.build.AdminDataProvider$AdminLoader$.loadAdminData(AdminDataProvider.scala:149)
at com.dengxq.lnglat2Geo.GeoTransImpl$.adminData$lzycompute(GeoTransImpl.scala:18)
at com.dengxq.lnglat2Geo.GeoTransImpl$.adminData(GeoTransImpl.scala:18)
at com.dengxq.lnglat2Geo.GeoTransImpl$.determineAdmin(GeoTransImpl.scala:54)
at com.dengxq.lnglat2Geo.GeoTrans$.determineAdmin(GeoTrans.scala:34)
at myspark.core.test$.main(test.scala:55)
at myspark.core.test.main(test.scala)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant