am Creating Classes that Migrate existing diagnosis data captured via the emrapi module. and added a link o the Admin page that triggers the migration . as far as i ithink, i have instatiated all the objects . but am getting a java.nullPointer exception
here is the error log.
https://hastebin.com/regemefaya.coffeescript
your Actually ryt. ive seen another post which has the same error exactly as i have , and its reletaed to the database Character Set Encoding. all tables should have UTF8 CharSet …that wat ive tried to understand
ive deleted the database, and am trying to run the server again to rebuild the database , but its now giving me an error
java.lang.RuntimeException: Error occurred while trying to get the updates needed for the database. Unable to get a connection to the database. Please check your openmrs runtime properties file and make sure you have the correct connection.username and connection.password set
at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:630)
at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:587)
at org.openmrs.util.DatabaseUpdater.updatesRequired(DatabaseUpdater.java:252)
at org.openmrs.web.Listener.setupNeeded(Listener.java:217)
at org.openmrs.web.Listener.contextInitialized(Listener.java:179)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5077)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5591)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1574)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1564)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.Exception: Unable to get a connection to the database. Please check your openmrs runtime properties file and make sure you have the correct connection.username and connection.password set