Android Question B4xPages problem in KeyValueStore

marcick

Well-Known Member
Licensed User
Longtime User
I'm porting a B4A app to B4xPages version.
I see in KeyValueStore that the method "GetObject" has been replaced by "Get", but when I try in B4xPages to get an item in a KVS file generated with the old B4A app, I have an error

B4X:
Error occurred on line: 25 (KeyValueStore)
java.util.zip.ZipException: unknown compression method
    at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:184)
    at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:142)
    at java.io.DataInputStream.readByte(DataInputStream.java:273)
    at anywheresoftware.b4a.randomaccessfile.B4XSerializator.readByte(B4XSerializator.java:150)
    at anywheresoftware.b4a.randomaccessfile.B4XSerializator.readObject(B4XSerializator.java:318)
    at anywheresoftware.b4a.randomaccessfile.B4XSerializator.ReadObject(B4XSerializator.java:129)
    at anywheresoftware.b4a.randomaccessfile.B4XSerializator.ConvertBytesToObject(B4XSerializator.java:99)
    at it.elettronicablancato.bmap4e.keyvaluestore._get(keyvaluestore.java:126)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:348)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:157)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:201)
    at anywheresoftware.b4a.shell.DebugResumableSub$RemoteResumableSub.resume(DebugResumableSub.java:22)
    at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:275)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:150)
    at anywheresoftware.b4a.BA$1.run(BA.java:360)
    at android.os.Handler.handleCallback(Handler.java:955)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loopOnce(Looper.java:206)
    at android.os.Looper.loop(Looper.java:296)
    at android.app.ActivityThread.main(ActivityThread.java:8971)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:569)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:976)

Do I have to import the old KeyValueStore module, rename it and use instead of the new internal KeyValueStore library ?
 

marcick

Well-Known Member
Licensed User
Longtime User
You're right LucaMS, I was searching in the forum about KeyValueStore but forgot to search for the error ......
Thanks :)
 
Upvote 0
Top