I’m getting the error " HTTP Status 500 - Could not open Hibernate Session for transaction; nested exception is org.hibernate.service.UnknownServiceException: Unknown service requested [org.hibernate.engine.jdbc.connections.spi.ConnectionProvider]" when logging out.
This happened after I installed the following:
It would also be useful to know which exact version of that module is involved.
I think you would need to roll back a little here, start off a fresh Ref App 2.9.0-SNAPSHOT, add the actual “foreign” modules one by one and see which combination does produce the error upon logging out.
Alternatively you could debug CashierLogoutFilter right away to see if you can find out anything obvious (here I guess). But I’d say first try to identify what exact module or combination of modules does break the logout when added to Ref App 2.9.0-SNAPSHOT. In the unfortunate scenario of a faulty combination of modules then it could be that both LBAC and Cashier are part of it.
Just to provide an update this issue.
I restarted the server twice but still received the same issue. However, after restarting the computer and then restarting the server back up, I was able to log out without any issue.
The only difference that I can think of - and that might relate to those Hibernate errors - is that when restarting the whole computer you did also restart MySQL ; while when you restarted the “server” (which I read as being Tomcat) this didn’t happen.
Hello @jesplana! I am from the team that developed the OpenHMIS modules and would be curious if you run into this problem again. If you do, could you please post the full stack trace so that we can review it?
Wow… this is going back a while! We haven’t done much development on the OpenHMIS modules for around 5 years now so it’s unlikely that we will be able to devote much time to chasing down this issue. However, I can ensure that we do try to incorporate any pull requests that come in if someone else able to fix the issue. Please note that OpenHMIS has not been tested with the latest releases of OpenMRS and so I really don’t know if it is compatible at this point.
@insiderish - Is there anything you know about this that might help?
Yes, I agree that we haven’t tested and synced our modules with the latest platform. I suspect it could be the reason why the TimesheetService is not being registered. @anatoleabe if you’d be interested in looking at this (you can start by simply putting a Null Pointer check here) and creating a PR, we’ll be glad to help.