Sorry I don’t have the solution - I am just glad to see that you managed to install the module in a 0.92 vagrant-based Bahmni instance. Which installation guide are you using? I am following this one and I am not succeding. The installation package is not openable and yum complains that it’s not a valid rpm.
Did you end up finding a solution to the errors?
National University of Lesotho
Thank you much for the response - highly appreciated.
I eventually managed to install the package by building it from scratch.
I then followed the configuration steps on the link you shared.
However, when I attempt to load the module, it fails with a “Down for maintenance” error message. I have restarted the service several times and checked my configuration settings multiple times to no avail. I even removed the package and re-installed and re-configured but it still doesn’t load the module home page as I see it did for you.
I am attaching (please see below) the following screenshot for your information:
Maintenance error screen
May I kindly ask you to show me your similar settings?
Did you have to manually deploy the dhis-integration webapp in the root folder (/dhis-integration) or it was automatically deployed during installation? That is, copy the web page files into the folder? I manually copied the web pages from the repo into the root folder and this way, the service’s web UI loads successfully (see screenshot below) but quickly logs out with a “not authenticated” error message.
I am testing the service on a local instance that lacks a valid ssl certificate. However, all the URLs I am using to access the external DHIS2 server are https. Do you think this could be part of the problem?
I haven’t setup this module myself, but looking at your httpd logs, it seems your use of “localhost.localdomain” aren’t being resolved correctly. Maybe you can change the dhis-integration.yml configs to use “192.168.33.53” (your local machine IP) to try.
Please check the urls mentioned in dhis-integration.yml are all actually accessible from the machine running this service (maybe use curl, or telnet, etc to validate).
Both the DHIS2 server and my instance are secured. The server uses a standard ssl certificate and my instance uses a self-signed certificate.
The domain resolution issues were addressed. Plugin is now able to make connection to Bahmni services.
I have attached the following for your reference:
screenshot showing nature of the error ( MissingFormatArgumentException: looks exactly like what you once reported here)
NB: It seems like a formatting issue to me. Makes me think it has something to do with the incompatibility of calendars. My local instance is using the standard Gregorian calendar and the dhis-integration plugin is pre-built to use the Nepali calendar.
In your case there is some DB exception that is occuring, but the code is throwing a String.format( ) %s exception on this line (DatabaseDriver.java: 112):
If you see this line, the code on it is incorrect - because the format method bracket has been closed before the exception string was passed, and therefore format() method is throwing an error:
throw new DHISIntegratorException(String.format(Messages.SQL_EXECUTION_EXCEPTION), e);
This exception will get thrown (format error) ANY TIME someone has a DB exception, and the original exception won’t be visible.
I would request you to modify this line of code with this:
throw new DHISIntegratorException ("DB Exception occurred "+ e.getMessage(), e);
Rebuild the jar, and redeploy. Then you should be able to see the DB exception which is actually being caused.
Note: I think Possible team should also fix this minor bug because it will help people in future in debugging the issue when a DB exception arises. This error exists in next line of code also. Wherever String.format has been called with %s without a supporting parameter.