Uploaded image for project: 'Confluence'
  1. Confluence
  2. CONF-45296

If the scheme in your JDBC URL contains uppercase alphabets Synchrony won't start due to NPE

    Details

    • Symptom Severity:
      Major
    • Support reference count:
      1
    • Sprint:
      Enterprise is lovely
    • QA Demo Status:
      Not Needed
    • QA Kickoff Status:
      Not Needed

      Description

      In confluence.cfg.xml, if your JDBC URL's scheme contains any uppercase letters, a NullPointerException will appear in atlassian-synchrony.log and Synchrony won't be able to start up at all:

      {"synchrony":{"message":"synchrony.logging [error] uncaught exception","ns":"synchrony.logging","level":"error","throwable":"java.lang.NullPointerException\n\tat clojure.lang.Reflector.invokeNoArgInstanceMember(Reflector.java:301)\n\tat synchrony.querydsl.jdbc$make_jdbc_opts.invoke(jdbc.clj:41)\n\tat synchrony.systems$querydsl_system_STAR_.invoke(systems.clj:326)\n\tat synchrony.systems$querydsl_system.invoke(systems.clj:350)\n\tat synchrony.core$init_system_BANG_.invoke(core.clj:19)\n\tat synchrony.core$_main.doInvoke(core.clj:34)\n\tat clojure.lang.RestFn.applyTo(RestFn.java:137)\n\tat synchrony.core.main(Unknown Source)\n"},"message":"synchrony.logging [error] uncaught exception"}
      java.lang.NullPointerException
      	at clojure.lang.Reflector.invokeNoArgInstanceMember(Reflector.java:301)
      	at synchrony.querydsl.jdbc$make_jdbc_opts.invoke(jdbc.clj:41)
      	at synchrony.systems$querydsl_system_STAR_.invoke(systems.clj:326)
      	at synchrony.systems$querydsl_system.invoke(systems.clj:350)
      	at synchrony.core$init_system_BANG_.invoke(core.clj:19)
      	at synchrony.core$_main.doInvoke(core.clj:34)
      	at clojure.lang.RestFn.applyTo(RestFn.java:137)
      	at synchrony.core.main(Unknown Source)

      Examples that cause this issue:

      • JDBC:mysql://localhost/confluence_601
      • jdbc:mySQL://localhost/confluence_601
      • jdbc:jTDS:sqlserver://mysqlserver:1433/confluencedb

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Last commented:
                13 weeks, 3 days ago