Open AnnaDKr opened 2 years ago
me too
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.reflect.Field.get(java.lang.Object)' on a null object reference at org.nustaq.serialization.FSTClazzInfo$FSTFieldInfo.getObjectValue(FSTClazzInfo.java:873) at org.nustaq.serialization.FSTObjectOutput.writeObjectFields(FSTObjectOutput.java:660) at org.nustaq.serialization.FSTObjectOutput$3.defaultWriteObject(FSTObjectOutput.java:916) at java.io.File.writeObject(File.java:2138) at java.lang.reflect.Method.invoke(Native Method) at org.nustaq.serialization.FSTObjectOutput.writeObjectCompatibleRecursive(FSTObjectOutput.java:566) at org.nustaq.serialization.FSTObjectOutput.writeObjectCompatible(FSTObjectOutput.java:554) at org.nustaq.serialization.FSTObjectOutput.writeObjectWithContext(FSTObjectOutput.java:450) at org.nustaq.serialization.FSTObjectOutput.writeObjectInternal(FSTObjectOutput.java:327) at org.nustaq.serialization.FSTObjectOutput.writeObject(FSTObjectOutput.java:294) at org.nustaq.serialization.FSTObjectOutput.writeObject(FSTObjectOutput.java:204) at org.nustaq.serialization.FSTConfiguration.asByteArray(FSTConfiguration.java:1182) at com.xsl.app.MainActivity.onCreate(MainActivity.java:48) at android.app.Activity.performCreate(Activity.java:8488) at android.app.Activity.performCreate(Activity.java:8461) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1343) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4602) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4842) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:113) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:149) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:103) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2928) at android.os.Handler.dispatchMessage(Handler.java:117) at android.os.Looper.loopOnce(Looper.java:205) at android.os.Looper.loop(Looper.java:293) at android.app.ActivityThread.main(ActivityThread.java:9596) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:586) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1204)
I suspect the later issue is the same as what I mention here https://github.com/RuedigerMoeller/fast-serialization/issues/288
Hi, while using version 2.57 I found that Class object and Timestamp object serialization does not work on Android runtime. Tested on Android 7-12.
Sample class that I want to serialize looks like:
And a test case:
It's working when I run it as a test, but in Android app it throws an exception:
Second case:
This time app threw exception: