web stats
NullPointerException - Web Server Wont Start - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 02-13-2017, 06:10 AM
kerb kerb is offline
What's HL7?
 
Join Date: May 2016
Posts: 3
kerb is on a distinguished road
Default NullPointerException - Web Server Wont Start

Hello!

For the last week I have been battling an issue with Mirth Connect administrator. Suddenly the Web Server wont start so I can't access Mirth Administrator. I have Mirth setup with a SQL 2008R2 Database. Java Version 1.8.

I have scoured the internet and this forum for the last week and the very few times I found somebody with this same issue, their resolution did not work (Yes, Java cache cleared, no other java versions running, no port conflicts)

Heres the error in the Mirth log when I try to Restart the Mirth Service to get web server to start. It seems like its trying to point to something for config settings and cant find it, but I can't figure out what and all the config files seem correct...



ERROR 2017-02-13 09:57:20,294 [Main Server Thread] com.mirth.connect.server.controllers.DefaultConfig urationController: Could not initialize security settings.
java.lang.NullPointerException
at java.io.File.<init>(Unknown Source)
at com.mirth.connect.server.controllers.DefaultConfig urationController.initializeSecuritySettings(Defau ltConfigurationController.java:938)
at com.mirth.connect.server.Mirth.startup(Mirth.java: 194)
at com.mirth.connect.server.Mirth.run(Mirth.java:140)
WARN 2017-02-13 09:57:23,289 [Main Server Thread] com.mirth.connect.server.Mirth: Could not start web server.
java.lang.NullPointerException
at java.io.File.<init>(Unknown Source)
at com.mirth.connect.server.MirthWebServer.createSSLC onnector(MirthWebServer.java:261)
at com.mirth.connect.server.MirthWebServer.<init>(Mir thWebServer.java:108)
at com.mirth.connect.server.Mirth.startWebServer(Mirt h.java:362)
at com.mirth.connect.server.Mirth.startup(Mirth.java: 239)
at com.mirth.connect.server.Mirth.run(Mirth.java:140)
INFO 2017-02-13 09:57:26,195 [Main Server Thread] com.mirth.connect.server.Mirth: Mirth Connect 3.4.0.8000 (Built on April 19, 2016) server successfully started.
INFO 2017-02-13 09:57:26,195 [Main Server Thread] com.mirth.connect.server.Mirth: This product was developed by Mirth Corporation (http://www.mirthcorp.com) and its contributors (c)2005-2017.
INFO 2017-02-13 09:57:26,195 [Main Server Thread] com.mirth.connect.server.Mirth: Running Java HotSpot(TM) 64-Bit Server VM 1.8.0_121 on Windows Server 2008 R2 (6.1, amd64), sqlserver, with charset windows-1252.



Any suggestions are appreciated. Thank you!!!!
Reply With Quote
  #2  
Old 02-13-2017, 06:37 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,111
narupley is on a distinguished road
Default

The web server looks at "keystore.path" in mirth.properties to get the keystore to use for the server certificate. Have you removed this?
__________________
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


- How do I foo?
- You just bar.
Reply With Quote
  #3  
Old 02-13-2017, 07:04 AM
kerb kerb is offline
What's HL7?
 
Join Date: May 2016
Posts: 3
kerb is on a distinguished road
Default

Nick,

I think somehow our Mirth config got screwed up. The issue started happening when I simply restarted the service one day because a user was having issues connecting to administrator. Something else had to have happened in there but I am not sure what. In any case - here is our mirth.properties file (with our db info removed) seems like it is missing any references for the keystore and possibly a few other things that I think should be present for the default config file.

If thats the case - whats the best way to get the config back to how it should be - just copy whats missing from a default I can find online? Or a reinstall? (not sure if I would lose my channels - I have a backup but its a bit out of date).
Attached Files
File Type: txt mirth.txt (32.0 KB, 6 views)
Reply With Quote
  #4  
Old 02-13-2017, 07:09 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,111
narupley is on a distinguished road
Default

Probably best to copy a known good properties file. You can find the default one for 3.4.2 here: https://svn.mirthcorp.com/connect/ta...rth.properties
__________________
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


- How do I foo?
- You just bar.
Reply With Quote
  #5  
Old 02-13-2017, 01:29 PM
kerb kerb is offline
What's HL7?
 
Join Date: May 2016
Posts: 3
kerb is on a distinguished road
Default

Thanks Nick, getting a fresh config file and then clearing the java cache once more finally resolved the issue. I appreciate the help.
Reply With Quote
  #6  
Old 08-30-2017, 02:02 AM
siddharth siddharth is offline
Mirth Guru
 
Join Date: Feb 2013
Posts: 832
siddharth is on a distinguished road
Default

Ah! It just happened all of a sudden last night that "somehow" my local install was compromised.

When I checked today morning, The details of ports and db were clean, like WTF.
Taking the lead from logs, I came to this thread, reloaded a fresh copy of mirth.properties for 3.5 version from svn, and voila! it worked like before.

+1
__________________
HL7v2.7 Certified Control Specialist!
Reply With Quote
Reply

Tags
administrator, java 1.8, nullpointerexception, server, sql 2008

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 05:31 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation