SunTlsRsaPremasterSecret KeyGenerator not available

前端 未结 8 1809
逝去的感伤
逝去的感伤 2020-11-30 14:00

I encountered an error when my application tries to load a RSA Algorithm provider class from JAVA. The exception stack is as follow:

javax.jms.JMSException:          


        
8条回答
  •  感情败类
    2020-11-30 14:21

    Had to spend almost a day on this while trying to use JavaMail in Eclipse Luna. Tried all approaches suggested in various forums, but no luck.

    Digged into the complete flow and found the exception arising due to Class is on BootClassPath

    from KeyAgreement.getInstance()->JceSecurity.canUseProvider()->JceSecurity.getVerificationResult()->JarVerifier.verify()

    void verify() throws JarException, IOException { if (jarURL == null) { throw new JarException("Class is on the bootclasspath"); }.......

    I removed sunjce_provider jar from \ext\ folder and can send mail now. This might not be right but atleast a quick workaround.

    Refer Eclipse bug.

提交回复
热议问题