Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-7873

NoSuchAlgorithmException when starting Smart router with HTTPS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.14.0.Final
    • 7.12.0.Final
    • KieServer
    • None
    • 2018 Week 42-44

    Description

      When Smart router is started with HTTPS enabled (keystore is passed together with configuration parameters) then this exception is thrown:

      Exception in thread "main" java.lang.RuntimeException: java.security.NoSuchAlgorithmException: SunX509 KeyManagerFactory not available
      	at org.kie.server.router.utils.SSLContextBuilder.build(SSLContextBuilder.java:123)
      	at org.kie.server.router.KieServerRouter.start(KieServerRouter.java:202)
      	at org.kie.server.router.KieServerRouter.main(KieServerRouter.java:111)
      Caused by: java.security.NoSuchAlgorithmException: SunX509 KeyManagerFactory not available
      	at sun.security.jca.GetInstance.getInstance(GetInstance.java:171)
      	at javax.net.ssl.KeyManagerFactory.getInstance(KeyManagerFactory.java:12)
      	at org.kie.server.router.utils.SSLContextBuilder.build(SSLContextBuilder.java:91)
      	... 2 more
      

      The problem is caused by hardcoded keystore algorithm. It could be fixed by retrieving default algorithm by this method.

      Attachments

        Issue Links

          Activity

            People

              rhn-support-tsurdilo Tihomir Surdilovic (Inactive)
              rhn-support-tsurdilo Tihomir Surdilovic (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: