I have a table called Message. This table has two fields that are relationships (1:1) to the Users table. One field is called sender and the other recipient. My Users table has autload enabled to its related properties.
When I try to save the Message object to the server using android api calls, I get the following error
Server.Processing java.lang.RuntimeException: java.lang.ClassCastException: com.backendless.geo.model.GeoPoint cannot be cast to java.util.Map null
The code to set the Message properties and saving the object is the following
Message message = new Message();
message.setSender(loggedInUser); //set the sender to myeslf
message.setRecipient(loggedInUser)//also set the recipient to myself
message.saveAsync(new AsyncCallBack<Message> m){
}
This happens only if the Message table does not have any entries yet. If I do the same thing after storing some other message first with different sender and recipient, then this completes normally.
Please let me know how to resolve this issue.
Regards,
George
Hi again, any update on this issue?
Regards,
George
Hi George,
Could you please attach the source code for the Message class here?
Regards,
Mark
Hi George,
Seems some of your tables has a relation to GeoPoint table, isn’t it?
It would be perfect if you could export your schema and send it to support@backendless.com, I believe it would help us to reproduce this issue.
Regards,
Sergey
Hi Sergey and Mark,
I will try and export the tables sometime today, and e-mail it to the address above.
Regards,
George
Hi Sergey and Mark,
I have send you an e-mail as requested with a sample android project demonstrating the issue.
Regards,
George
created internal ticket BKNDLSS-12160
Thank you. Let me know if when it is resolved.
Regards,
George
Hi Sergey,
I noticed some test entries being generated on my console today, I guess you are testing to see the behavior and figure out what is causing it. Do you have an estimate of when this issue will be resolved?
Regards,
George
Hi George!
We will deploy these changes to production in a few days.
Hi kate,
Thank you for the update. Please update the status of this thread when you deploy the changes, so I can get notified and download the new version.
Regards,
George
Hi Kate,
Any update on this issue? I am actually waiting this to be corrected, so I can run my final tests and start moving my project to production. Thank you in advance.
Regards,
George
Hi George!
We updated production server. Could you try it again?
Hi Kate,
I will try and get back to you. Thank you in advance.
Regards,
George
Hi Kate,
I just run some tests, and seems to be working now. Thank you!
Regards,
George