Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Error - The trustAnchors parameter must be non-empty  RSS feed

 
Sa Ali
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi to all,
i have a send mail program in jsf. it is working fine from command prompt. however, when i run this in Jdeveloper 11g "the trustAnchors parameter must be non-empty" error is coming. i know this is because java couldnot locate 'TrustStore'. but how i resolve this don't know. can anyone help me?
or it is because of some other reason? if yes, how to resolve it?

i am using jdk 6 update 16 & weblogic server 11g(10.3.2).

C:\Middleware11g2\jdk160_14_R27.6.5-32\bin\javaw.exe -client -classpath C:\JDeveloper\mywork\MyTestApp\classes;C:\JDeveloper\mywork\WorkFlow\javamail-1.4.3\javamail-1.4.3\mail.jar "-Djavax.net.ssl.trustStore=D:\Middleware11g 2\wlserver_10.3\server\lib\DemoTrust.jks" com.company.jsf.TestSmtp
javax.mail.MessagingException: Could not convert socket to TLS;
nested exception is:
javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty.


----source code---------------------
 
l whoami
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sa Ali wrote:hi to all,
i have a send mail program in jsf. it is working fine from command prompt. however, when i run this in Jdeveloper 11g "the trustAnchors parameter must be non-empty" error is coming. i know this is because java couldnot locate 'TrustStore'. but how i resolve this don't know. can anyone help me?
or it is because of some other reason? if yes, how to resolve it?

i am using jdk 6 update 16 & weblogic server 11g(10.3.2).

C:\Middleware11g2\jdk160_14_R27.6.5-32\bin\javaw.exe -client -classpath C:\JDeveloper\mywork\MyTestApp\classes;C:\JDeveloper\mywork\WorkFlow\javamail-1.4.3\javamail-1.4.3\mail.jar "-Djavax.net.ssl.trustStore=D:\Middleware11g 2\wlserver_10.3\server\lib\DemoTrust.jks" com.company.jsf.TestSmtp
javax.mail.MessagingException: Could not convert socket to TLS;
nested exception is:
javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty.


----source code---------------------



I have the same problem when I integrate acegi and cas-server.....
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!