I see this below error/warning message when trying to call Backendless initApp using reflection. I wonder if this is just a warning because the application ran fine and it was able to connect to Backendless or this is something that I need to fix. I don’t remember I saw this error with my older version of backendless.jar
[WEBORB ERROR] Unable to find class for the client-server class mapping. Classname weborb.v3types.AsyncMessage. Mapped client class flex.messaging.messages.AsyncMessage
Here is the code:
Class<?> backendlessClass = dexClassLoader.loadClass(“com.backendless.Backendless”)
Method initAppMethod = backendlessClass .getDeclaredMethod(“initApp”, Object.class, String.class, String.class, String.class);
initAppMethod .invoke(null, context, applicationId, secreteKey, version);
I checked the jar and “weborb.v3types.AsyncMessage” is definitely in it. Please check if the class is available through your class loader? A simple forName check should do it.
If I only load “com.backendless.Backendless”, weborb.v3types.AsyncMessage is not available there. Does that mean that I have to load necessary weborbs classes for initApp to work properly?