Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8650777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T13:54:14+00:00 2026-06-12T13:54:14+00:00

I am trying to send an email with javamail, on my local computer when

  • 0

I am trying to send an email with javamail,
on my local computer when I run my class the mail is well send.

On the production computer I get an error :

Caused by: javax.mail.MessagingException: Could not convert socket to TLS (java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl))
        at com.sun.mail.smtp.SMTPTransport.startTLS(SMTPTransport.java:1230)
        at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:378)
        at javax.mail.Service.connect(Service.java:271)
        at javax.mail.Service.connect(Service.java:91)
        at javax.mail.Service.connect(Service.java:76)
        at javax.mail.Transport.send(Transport.java:94)
        ... 8 more
Caused by: java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl)
        at javax.net.ssl.DefaultSSLSocketFactory.throwException(SSLSocketFactory.java:179)
        at javax.net.ssl.DefaultSSLSocketFactory.createSocket(SSLSocketFactory.java:199)
        at com.sun.mail.util.SocketFetcher.startTLS(SocketFetcher.java:249)
        at com.sun.mail.smtp.SMTPTransport.startTLS(SMTPTransport.java:1226)
        ... 13 more
Caused by: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl)
        at java.security.Provider$Service.newInstance(Provider.java:1245)
        at sun.security.jca.GetInstance.getInstance(GetInstance.java:220)
        at sun.security.jca.GetInstance.getInstance(GetInstance.java:147)
        at javax.net.ssl.SSLContext.getInstance(SSLContext.java:125)
        at javax.net.ssl.SSLContext.getDefault(SSLContext.java:68)
        at javax.net.ssl.SSLSocketFactory.getDefault(SSLSocketFactory.java:102)
        at com.sun.mail.util.SocketFetcher.startTLS(SocketFetcher.java:247)
        ... 14 more
Caused by: java.io.IOException: Invalid keystore format
        at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:633)
        at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:38)
        at java.security.KeyStore.load(KeyStore.java:1185)
        at com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl.getDefaultKeyManager(DefaultSSLContextImpl.java:150)
        at com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl.<init>(DefaultSSLContextImpl.java:40)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at java.lang.Class.newInstance0(Class.java:355)
        at java.lang.Class.newInstance(Class.java:308)
        at java.security.Provider$Service.newInstance(Provider.java:1221)
        ... 20 more

in the security path there is these files :

68595 Mar  9  2009 cacerts
 2221 Mar  9  2009 java.policy
 9937 Mar  9  2009 java.security
  132 Mar  9  2009 javaws.policy
 2940 Mar  9  2009 _local_policy.jar
 2481 Feb 28 12:54 local_policy.jar
 2469 Mar  9  2009 _US_export_policy.jar
 2465 Feb 28 12:54 US_export_policy.jar

no trusted.certs files.

the production use the jdk 1.6.0_13, is it possible that some file are too old ?
Anoter detail every thing was working well in production until last monday (7/30) nothing changed in the code, and now I am getting this error .

It is hard to figure out what is wrong because I don’t even know which file is problematic.
If you have any idea I take it !

thanks for help !

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T13:54:15+00:00Added an answer on June 12, 2026 at 1:54 pm

    Finaly the problem was that a custom keyStore was defined by the admin :

    -Djavax.net.ssl.keyStore=xxxxxxx.p12

    And it was missing this :

    -Djavax.net.ssl.keyStoreType=pkcs12

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to send email using PHP mail. I get the following error:
I am trying to send email using the following code and get the error
I'm using Grails Mail plugin and trying to send email and keep getting: Error
I am trying to send email via System.Net.Mail. On clicking send I am getting
I'm trying to send an email using JavaMail API. I have jdk 1.5 installed
im trying to send email with mail plugin in grails with the gmail account.
I am trying to send email using mail() in php. I need the message
I'm trying to do java mail and im getting an error Cant send command
I am trying to send an email (using Outlook mail) from a jsp page.
I receive the following Exception while trying to send an email (using Seam) Caused

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.