Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-6690

NullPointerException in KeyInSessionSunJceCryptFactory.<init>

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 8.5.0
    • 8.6.1, 7.15.0, 9.0.0-M3
    • wicket-core
    • None
    • Windows 8.1
      Oracle JDK 1.8.0_191

    Description

      Call Security.getProviders("Cipher." + cryptMethod).length == 0 causes NullPointerException when no suitable provider is found, because getProviders returns null.

      2019-07-22 07:22:37,604 - ERROR - [main,,,,,] - org.apache.wicket.protocol.http.WicketFilter - The initialization of an application with name 'wicket.cexi' has failed.
      java.lang.NullPointerException
          at org.apache.wicket.core.util.crypt.KeyInSessionSunJceCryptFactory.<init>(KeyInSessionSunJceCryptFactory.java:67)
      

      P.S.: I've noticed this when I tried init with PBEwithSHA256and256bitAES-CBC-BC

      Attachments

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            davesman David Rain
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: