Downloads Documentation Community Contribute Demo

Modules Causing "SEVERE" Exception on Startup

Discussion of OpenMRS installation issues

Moderators: burke, paul, ben, ChrisS

Modules Causing "SEVERE" Exception on Startup

Postby enguyen on Sep Tue 11, 2007 5:06 pm

Hello, all. I'm piloting OpenMRS at a hospital in Goma, Congo, but I'm having a lot of problems getting it up and running. Any help would be much appreciated.

My current issue is that any modules I install seem to kill my installation of OpenMRS. For example, if I copy either formentry-2.5.omod or clinicalsummary-2.0.omod into my .../modules directory and restart Tomcat, then I get the following in the logs:

Code: Select all
  SEVERE: Exception sending context initialized event to listener instance of class org.openmrs.web.Listener
  java.lang.NullPointerException
   at org.openmrs.module.ModuleFileParser.parse(ModuleFileParser.java:192)
   at org.openmrs.module.ModuleFactory.getModuleFromFile(ModuleFactory.java:245)
   at org.openmrs.module.ModuleFactory.loadModule(ModuleFactory.java:71)
   at org.openmrs.module.ModuleFactory.loadModule(ModuleFactory.java:57)
   at org.openmrs.module.ModuleFactory.loadAndStartModules(ModuleFactory.java:118)
   ...


The same error comes up for both modules. At that point, visiting any URL within the app returns a 404. Any advice? I'm running OpenMRS v1.1.0 with the openmrs-demo-sql-1.1.0 loaded. The app comes up just fine without any modules added.

I'll have plenty of questions once the app is up and running, as well. But first things first...

Thanks for all your help, and for everyone who has contributed to this software.

Best,
Eric Nguyen

P.S. If anyone is interested in what I'm working on, here's a blog post/summary: http://mindtangle.net/2007/09/08/work-update/
enguyen
OpenMRS Forum Member
 
Posts: 16
Joined: Aug Fri 31, 2007 9:23 am

Re: Modules Causing "SEVERE" Exception on Startup

Postby ben on Sep Wed 12, 2007 10:01 am

The modules seem to be corrupted somehow. Have you tried redownload the modules? Perhaps building from source would do the trick.

How did you get your war file? The main download section, a nightly build, or a compilation from alpha source?

The main download comes with formentry module 2.4 I think. Look in Tomcat 5.5/webapps/openmrs/WEB-INF/coreModules. Try deleting that and restarting tomcat.
ben
OpenMRS Team Member
 
Posts: 574
Joined: Aug Mon 28, 2006 8:54 am
Location: Indianapolis

Re: Modules Causing "SEVERE" Exception on Startup

Postby enguyen on Sep Wed 12, 2007 10:35 am

Bingo! Corrupted module files. I'd downloaded these from the site (e.g. https://dev.openmrs.org/modules/view.js ... =formentry), and for some reason, the download had been signaled as completed even though it was not. I downloaded the same file a few times, and each time the file size was a bit different. The largest file of them all seems to be working :)

Note that with Firefox (which is what I'm using) the downloads window doesn't know how large the file is supposed to be, while it's downloading. It just pulls down the file without being able to display any sort of status bar.

Thanks, Ben, for pointing me in the right direction.
enguyen
OpenMRS Forum Member
 
Posts: 16
Joined: Aug Fri 31, 2007 9:23 am

Re: Modules Causing "SEVERE" Exception on Startup

Postby ben on Sep Wed 12, 2007 2:47 pm

Glad to hear things are moving forward again!

Thanks for the heads up. I corrected the module repository download screen. Try downloading another module and see if it will successfully complete on the first try.
ben
OpenMRS Team Member
 
Posts: 574
Joined: Aug Mon 28, 2006 8:54 am
Location: Indianapolis

Re: Modules Causing "SEVERE" Exception on Startup

Postby enguyen on Sep Thu 13, 2007 6:48 am

Works! The file size is displayed correctly and everything. Thanks, Ben.
enguyen
OpenMRS Forum Member
 
Posts: 16
Joined: Aug Fri 31, 2007 9:23 am


Return to Installation

Who is online

Users browsing this forum: No registered users and 1 guest

cron