If you get the message "server error", most likely you will see something in the webserver logs. The webserver logs are in
- <Tomcat>/logs
- <Liberty>/usr/servers/<yourserver>/logs
- <WAS>/profiles/<yourprofile>/logs (and its subdirectories)
If you use firewalls, IHS, load balancers etc., you should also check their logs, as the error can be there.
Device logs can be obtained from the device:
For iOS:
- Download iPhone Configuration Utility from Apple to your computer.
- Exit iTunes and Xcode before using.
- Open iPhone Configuration Utility
- Connect Device
For Android:
For BlackBerry until version 6:
- The log file can be downloaded from a USB-connected device with the JavaLoader.exe. (Command: JavaLoader.exe eventlog).
For Windows Phone 8, the situation is not optimal:
In those logs, you should see all REST communication (URLs) that is happening between the device and the webserver. I think a server error is most likely a REST Response 500 "Internal server error", which means there was an exception in the server that you should see in the server logs (or firewall logs etc).