Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-1576

NoSuchAlgorithmException when starting Smart router with HTTPS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 7.3.0.GA
    • 7.1.0.GA
    • Kie-Server
    • IBM JDK 8

    • CR2
    • CR1
    • Hide

      Start Smart router with HTTPS on IBM JDK 8.

      Show
      Start Smart router with HTTPS on IBM JDK 8.

    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)
              ksuta Karel Suta
              Karel Suta Karel Suta
              Karel Suta Karel Suta
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: