2 Replies Latest reply on Jul 8, 2011 6:18 AM by Edward Isakov

    Camel mail error

    Edward Isakov Newbie

      Hello!

      I am trying to receive mail using SSL (utilize apache camel mail, camel-version 2.6.0). When I try to get mail I get the folowing error:

       

      WARN | //hubXX.XXXX.XX | faultPollingConsumerPollStrategy | 68 - org.apache.camel.camel-core - 2.6.0.fuse-01-15 | Consumer Consumer imaps://hubXX.XXXX.XX?consumer.delay=60000&delete=false&password=XXXX&unseen=true&username=my_mail_box-- could not poll endpoint:

      imaps://hubXX.XXXX.XX?consumer.delay=60000&delete=false&password=XXXX&unseen=true&username=my_mail_box caused by: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

       

      My code is

       

      System.setProperty("javax.net.ssl.trustStore", "$JAVA_HOME/jre/lib/security/cacerts");

       

      from("imaps://hubXX.XXXX.XX?username=my_mail_box&password=XXXX"

      + "&delete=false&unseen=true&consumer.delay=60000")

       

       

      can someone help me?

      Thank you