Announcement

Collapse
No announcement yet.

NullPointerException - Web Server Wont Start

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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!!!!

  • #2
    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.

    Comment


    • #3
      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

      Comment


      • #4
        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.

        Comment


        • #5
          Thanks Nick, getting a fresh config file and then clearing the java cache once more finally resolved the issue. I appreciate the help.

          Comment


          • #6
            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!

            Comment

            Working...
            X