Karaf
  1. Karaf
  2. KARAF-1220

o.p.karaf.management bundles must stop when its configured keystore is not available

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.5
    • Fix Version/s: 2.2.6, 3.0.0
    • Component/s: karaf-config
    • Labels:
      None
    • Environment:

      windows/Linux

      Description

      Currently karaf management bundle has a configurable timeout value to wait for karaf's keystore to initialize. However, this if fails karaf spins trying to initialize its SSL JMX connector. User also can not shutdown karaf (it hangs).

      Best to throw RuntimeException when timeout occurs and prevent the spin.

        Activity

        Hide
        Dan Tran added a comment -

        attached is a patch where GenericSecurity exception is thrown when the configured keytore and/or truststore after configurable time.

        Tested with my production to force a failure and also with a good case

        Show
        Dan Tran added a comment - attached is a patch where GenericSecurity exception is thrown when the configured keytore and/or truststore after configurable time. Tested with my production to force a failure and also with a good case
        Hide
        Andreas Pieber added a comment -

        please use spaces instead of tabs the next time. otherwise the patch looks good.

        +1 from my side

        Show
        Andreas Pieber added a comment - please use spaces instead of tabs the next time. otherwise the patch looks good. +1 from my side
        Hide
        Jean-Baptiste Onofré added a comment -

        FYI, I "fixed" some checkstyle issue (space, etc) and applied on karaf-2.2.x. I'm adapting it for trunk.

        Show
        Jean-Baptiste Onofré added a comment - FYI, I "fixed" some checkstyle issue (space, etc) and applied on karaf-2.2.x. I'm adapting it for trunk.
        Hide
        Dan Tran added a comment -

        thanks for the review and commit. I will be careful with the tab next time

        Show
        Dan Tran added a comment - thanks for the review and commit. I will be careful with the tab next time

          People

          • Assignee:
            Jean-Baptiste Onofré
            Reporter:
            Dan Tran
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development