-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sync issue from local to server database. #30
Comments
Can you share logs?
|
I have sent the sync request to the server like this : This is my server URL : http://192.168.1.15:8086/amplisync-testnew/API3/Send Request is : Error : <!doctype html><title>HTTP Status 500 – Internal Server Error</title><style type="text/css">h1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} h2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} h3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} body {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} b {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} p {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;} a {color:black;} a.name {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style> HTTP Status 500 – Internal Server ErrorType Exception Report Message java.lang.NullPointerException Description The server encountered an unexpected condition that prevented it from fulfilling the request. Exception javax.servlet.ServletException: java.lang.NullPointerException Root Cause java.lang.NullPointerException Note The full stack trace of the root cause is available in the server logs. Apache Tomcat/9.0.27 |
I face the same error when using the android client. Server to sqlite synchronization works fine but the sqlite to server synchronization throws a similar exception.
|
Do you set TIMESTAMP_FORMAT? |
I have followed the documentation and the properties files has the following contents. Is there any other place to set the TIMESTAMP_FORMAT? DB_ENGINE = mysql |
You need to put it in sync.properties
DATE_FORMAT =yyyy-MM-dd HH:mm:ss
TIMESTAMP_FORMAT =yyyy-MM-dd HH:mm:ssZ
|
Thank you very much.Adding the timestamp solved the problem. |
I have successfully sync the data and get all the data in the local SQLite database but when I add a new record in local and try to sync on the server at that time, the new data is not reflating in the server database. Its creating one .dat file and the data is present in it in XML format.
I am using ionic 4 to send the data on the server database.
So can you please help to solve this issue?
The text was updated successfully, but these errors were encountered: