G GraemeW Member Licensed User Longtime User Nov 18, 2024 #1 Is there any reason why CLOUD KVS cannot be implemented in a receiver? In my app the ckvs class is initiated in the receiver and used for Put and Get methods for different situations. Autorefresh is not used. The types Item and Task are declared in B4XMainPage/Class_Globals (together with other types which are also used in the receiver). No changes to the ClientKVS or CallSubUtils modules. Server is my VPS. The receiver starts every few hours to check a third-party database. For testing purposes the receiver starts when the app starts. I can get the example app running but in my app I get <title>Error 500 java.lang.RuntimeException: java.lang.RuntimeException: java.lang.ClassNotFoundException: b4j.cloudkvs.server.b4xmainpage$_task</title> error response from the server after a Put request. Any clues? (Does it matter that the types are declared in B4XMainPage for the client and Main for the server?) Last edited: Nov 18, 2024
Is there any reason why CLOUD KVS cannot be implemented in a receiver? In my app the ckvs class is initiated in the receiver and used for Put and Get methods for different situations. Autorefresh is not used. The types Item and Task are declared in B4XMainPage/Class_Globals (together with other types which are also used in the receiver). No changes to the ClientKVS or CallSubUtils modules. Server is my VPS. The receiver starts every few hours to check a third-party database. For testing purposes the receiver starts when the app starts. I can get the example app running but in my app I get <title>Error 500 java.lang.RuntimeException: java.lang.RuntimeException: java.lang.ClassNotFoundException: b4j.cloudkvs.server.b4xmainpage$_task</title> error response from the server after a Put request. Any clues? (Does it matter that the types are declared in B4XMainPage for the client and Main for the server?)
Solution Erel Nov 18, 2024 1. Move the types declaration to the main module. 2. Don't assume that B4XMainPage was created when the receiver runs.
1. Move the types declaration to the main module. 2. Don't assume that B4XMainPage was created when the receiver runs.
Erel B4X founder Staff member Licensed User Longtime User Nov 18, 2024 #2 1. Move the types declaration to the main module. 2. Don't assume that B4XMainPage was created when the receiver runs. Upvote 0 Solution
1. Move the types declaration to the main module. 2. Don't assume that B4XMainPage was created when the receiver runs.
G GraemeW Member Licensed User Longtime User Nov 18, 2024 #3 Erel said: 1. Move the types declaration to the main module. 2. Don't assume that B4XMainPage was created when the receiver runs. Click to expand... That worked! Thank you Upvote 0
Erel said: 1. Move the types declaration to the main module. 2. Don't assume that B4XMainPage was created when the receiver runs. Click to expand... That worked! Thank you