Problem:
Data not uploading on HSPCB server
(Note: Data is sent to HSPCB by JSON request)
Analysis Steps:
- Check Exception logs in enviroconnect\log folder
Turn on Debug mode by following method:
Go to the folder ‘enviroconnect’
C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\enviroconnect\conf
(Note: Tomcat 7 folder may be in program files (x86))
Open PLS_WebServerConfig.PROPERTIES file in notepad
In the second line DebugMode=0, replace 0 by 2
Restart Apache Tomcat Service.
Now check the Debug file and Exception log file in the Enviroconnect -> log folder.
SR No | Error message |
Case 1 | Industry id, Station id or hspcb device id is null |
Case 2 | device is offline or in a delay state |
Case 3 | Values of some params are missing., DeviceId |
Case 4 | java.net.SocketException uploadData() Error while uploading data for, deviceId |
Case 1
In Debug logs file, following error is found
'Industry id, Station id or hspcb device id is null'
In this case JSON request also do not generates.
Root cause:
If any id like industry id, station id or hspcb device id is not configured, then this error occurs.
Solution:
Do corrections in the configuration by referring to the configuration SOP in Admin Help.
Case 2
In Debug logs file, following error is found
'device is offline or in a delay state'
Root cause:
If on enviroconnect server data is not uploading, or device is offline then this error occurs
Solution:
Check whether device is online or not
If not check the why data is not coming on Enviroconnect server by referring to the other FAQs.
Case 3
In Debug logs file, following error is found
'Values of some params are missing., DeviceId: 20 '
Root cause:
Some fields are missing in JSON request sent by EnviroConnect server. e.g. Unit, variables etc
Solution:
Check standard format mentioned in configuration SOP.
Check which field is missing and correct accordingly.
May need to take help from HSPCB, to check what is missing in JSON request.
Case 3
In Debug logs file, following error is found
java.net.SocketException;
uploadData() Error while uploading data for, deviceId: 20
Root cause:
URL of HSPCB server is not accessing from the customer's network where EnviroConnect is
installed. May due the reasons:
Internet is not proper
URL is blocked due to network security reason
Solution:
Get stable internet connectivity
Ask customer IT person to allow data flow to the HSPCB URL through their network.