[WEBORB ERROR] Unable to find class for the client-server class mapping

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);

Thank you

Hi Key,

Where is backendless.jar coming from? (maven, website, github)?

Regards,
Mark

Hi Mark,

It’s from Website released 1.28.2016.

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?

weborb.v3types,AsynMessage

weborb.v3types.CommandMessage.
weborb.v3types.ReqMessage
weborb.v3types.AckMessage
weborb.v3types.ErrMessage
weborb.v3types.BodyHolder.

Does the class loading work for these classes individually?

Yes it does but the warning message is still.