Problem: Data is not reflecting on server


Analysis Steps:

  • 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.

 

Refer following sample cases for further details:

 

SR No

Error message

Case: 1 

Error message in Debug logs seen with a particular error code

Case: 2

Error pop up generated on server

Case: 3

No error message or pop up, but still data not uploaded to SPCB

Case: 4

Zip files are not getting generated on location mentioned in Output driver

Case: 5

MPCB GLense output error message

 

Case: 1 

In Debug logs file, following error code is found (refer highlighted cell below)

mpcb1

 

 

The meanings of such errors are given below:

 

error

 

Root cause: 

According to different errors as above, different missing or wrong configurations are possible

Solution:

As per the reason, do corrections in the configuration by referring to the configuration SOP.

 

Case: 2

 

Instead of uploading data on state server, it is giving the following error pop up:

java.lang.NullPointerException: javaxcrypto.IllegalBlockSizeException: Input length not multiple of 16 bytes

Root Cause:

Aauthentication/encrypted site key is not multiple of 16 and less than or equal to 90 characters.

 

Solution:

In output driver configuration, Check size of authentication/encrypted site key.

Get correct key from SPCB.

 

 

Case: 3

 

We do not get any error message, we get success instead of failure but, still data does not get reflected on SPCB server.

 

{Fri Dec 06 14:35:56 IST 2019, Response String = {"status": "Success", "serverConfigLastUpdatedTime": "", "siteConfigUpdateFlag": "False", "serverCalibrationLastUpdatedTime": "", "RemoteCalibrationUpdateFlag": "False", "statusMessage": "1 files uploaded successfully.", "uploadedFileName": "site_775_BOILER_1_20191206143332.zip"}

Fri Dec 06 14:35:56 IST 2019, File uploaded Successfully!}

 

Root cause: 

Mismatch in configuration at EnviroConnect server side and SPCB server side.

 

Solution:

Send the following things to SPCB.

  • Success logs from debug file
  • Generated data file from the location as mentioned in output driver

 

SPCB will reply with required corrections or they may correct at their side.

 

Case: 4

Zip files are not getting generated on temp upload folder or location as mentioned in output driver 

 

Root cause:

Java security folder missing in Java folder

"UnlimitedJCEPolicyJDK7" folder missing in build.

 

Solution:

 

1. Check the "C:\Program Files\Java\jre7\lib\security" in that folder file size  for "local_policy.jar" & "US_export_policy.jar". It should be 3kb.

 

2. Check the "UnlimitedJCEPolicyJDK7" folder in our software build having path "C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\enviroconnect\UnlimitedJCEPolicyJDK7\UnlimitedJCEPolicy". In that folder check files present "local_policy.jar" & "US_export_policy.jar". It should be 3kb

 

Case: 5

Error in Exception log file as below:

Exception in MPCBGlensOutput:upload():aes.encryptHeader

 

Root cause:

Java is upgraded 

 

Solution:

Uninstall java and install earlier version of Java

For Tomcat 7 we require java 8

For Tomcat 6 we require java 7

 

Preventive Measure:

Go to control panel -> Java -> Update tab -> Uncheck the Check for Updates automatically -> Apply

 

java