Mail service POC - connecting to GMAIL gives error "service is not available"

From webcenter Dev Guide, I followed steps to connect to gmail server using webcenter mail service.
Mail service connection info:
imap server : imap.gmail.com
imap port : 993
smtp server : smtp.gmail.com
smtp port : 465
imap secured : true
smtp secured : true
Test connection status : Success
external application info:
App Name: MyGmailApp
Display Name : My Gmail App
Login URL : https://mail.google.com/mail
Username field : Username
Password field : Password
Authentication Method : POST
Field Names : 'Email Address', 'Reply-To Address'. (Display to user true for both)
Shared credentials & public credentials entered are gmail credentials.
I dropped mail service on to a page & ran the portal.
The error I got was "The service is not available" , Log is given as below. what did i miss ??? Please help me out.
Error Log:
javax.mail.MessagingException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target;
  nested exception is:
  javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
  at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:571)
  at javax.mail.Service.connect(Service.java:288)
  at javax.mail.Service.connect(Service.java:169)
  at oracle.webcenter.collab.mail.MailSession$2.call(MailSession.java:1302)
  at oracle.webcenter.collab.mail.MailSession$2.call(MailSession.java:1276)
  at oracle.webcenter.concurrent.Submission$2.run(Submission.java:484)
  at java.security.AccessController.doPrivileged(Native Method)
  at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
  at oracle.webcenter.concurrent.Submission.runAsPrivileged(Submission.java:498)
  at oracle.webcenter.concurrent.Submission.run(Submission.java:424)
  at oracle.webcenter.concurrent.Submission$SubmissionFutureTask.run(Submission.java:888)
  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
  at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
  at java.util.concurrent.FutureTask.run(FutureTask.java:138)
  at oracle.webcenter.concurrent.ModifiedThreadPoolExecutor$Worker.runTask(ModifiedThreadPoolExecutor.java:657)
  at oracle.webcenter.concurrent.ModifiedThreadPoolExecutor$Worker.run(ModifiedThreadPoolExecutor.java:682)
  at java.lang.Thread.run(Thread.java:662)
Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
  at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174)
  at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1649)
  at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:241)
  at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:235)
  at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1206)
  at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:136)
  at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:593)
  at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:529)
  at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:893)
  at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1138)
  at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:753)
  at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)
  at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:110)
  at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
  at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
  at com.sun.mail.iap.ResponseInputStream.readResponse(ResponseInputStream.java:97)
  at com.sun.mail.iap.Response.<init>(Response.java:96)
  at com.sun.mail.imap.protocol.IMAPResponse.<init>(IMAPResponse.java:61)
  at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:135)
  at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:261)
  at com.sun.mail.iap.Protocol.<init>(Protocol.java:114)
  at com.sun.mail.imap.protocol.IMAPProtocol.<init>(IMAPProtocol.java:104)
  at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:538)
  ... 16 more
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
  at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:323)
  at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:217)
  at sun.security.validator.Validator.validate(Validator.java:218)
  at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:126)
  at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:209)
  at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:249)
  at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1185)
  ... 34 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
  at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:174)
  at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:238)
  at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:318)
  ... 40 more
<Submission> <run> Submission[id=1, service=oracle.webcenter.collab.mail, resource=null] caught exception running task
oracle.webcenter.collab.share.ConnectionFailedException: The service is unavailable.
  at oracle.webcenter.collab.mail.MailSession.acquireImapStore(MailSession.java:1374)
  at oracle.webcenter.collab.mail.MailSession.login(MailSession.java:462)
  at oracle.webcenter.collab.share.Session$1.call(Session.java:652)
  at oracle.webcenter.collab.share.Session$1.call(Session.java:646)
  at oracle.webcenter.concurrent.Submission$2.run(Submission.java:484)
  at java.security.AccessController.doPrivileged(Native Method)
  at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
  at oracle.webcenter.concurrent.Submission.runAsPrivileged(Submission.java:498)
  at oracle.webcenter.concurrent.Submission.run(Submission.java:424)
  at oracle.webcenter.concurrent.Submission$SubmissionFutureTask.run(Submission.java:888)
  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
  at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
  at java.util.concurrent.FutureTask.run(FutureTask.java:138)
  at oracle.webcenter.concurrent.ModifiedThreadPoolExecutor$Worker.runTask(ModifiedThreadPoolExecutor.java:657)
  at oracle.webcenter.concurrent.ModifiedThreadPoolExecutor$Worker.run(ModifiedThreadPoolExecutor.java:682)
  at java.lang.Thread.run(Thread.java:662)

Did you add Gmail's certificate to the trust store? Check this link: Configuring SSL

Similar Messages

  • IPhone Mail App cannot connect with gmail iMap server

    So my gmail address list or contacts seems to have been hacked and all my contacts who are still talking to me have told me so.
    So I changed my gmail password.
    No more complaints, and probably no more friends as contacts.
    But seriously, I have been able to get gmail (web) working with my new double authentication password(s). Also, my outlook for MAC is working using the special "generated App Password". (because Outlook cannot do the double authentication thingie)
    Ditto for the gmail app from google on my iPhone. (it works too)
    BUT
    I cannot get the iPhone Mail App to connect to Gmail.
    I have deleted (i thought) my existing gmail setup from my iPhone. When I try to re establish the gmail settings, using either the password generated by the MAC / iCloud keychain generator or the App password, I get the message "My Name" is already added.
    It looks to me that there is something in the iPhone that matches my gmail address, even though I deleted the account.
    Any suggestions before I call Apple for help?
    Thanks
    Barry

    I think so.
    Actually I think I need to get the App Password for Mail on my phone. It generates the app password and I enter it into the password in the gmail setup for mail.
    The problem is that when I hit next on that page, I get the message:
    "my name" is already added" and I cannot proceed.
    Before doing this setup I deleted my gmail account by tapping the email address and hitting delete in the Mail, Contact and Calendars setup..
    but, there is something hiding in my iPhone that remembers my old gmail password (I guess) and doesn't let me proceed.
    If I enter my gmail iChain password I get the same thing.
    If i do this in airplane mode (no connection to google) i also get the same.
    I talked to an apple care person who had me reset all my settings... still the same thing.
    I am trying to avoid a gull reset of the iPhone, but that may be in the cards.
    Going to go to the apple store and ask there, but i am not hopeful.
    Barry

  • I have a targus 4.0 bluetooth usb adapter and so i can pair my iphone 4s and ipad air wirelessly, it seems to pair ok but when i try to connect i get a error message or not compatible. can some one tell me if it i can use this

    i have a targus 4.0 bluetooth usb adapter and so i can pair my iphone 4s and ipad air wirelessly, it seems to pair ok but when i try to connect i get a error message or not compatible. can some one tell me if it i can use this bluetooth with my devices, thanks

    sos1der wrote:
    pairing the apple equipment is not a big deal just wanted to add songs from itunes wirelessly.
    You can only add songs to your iOS device from iTunes via Wi-Fi sync or via your cable, not Bluetooth.
    sos1der wrote:
    but i tried paring my LG bluetooth so i can listen to music on my computer wirelessly buy it gives me the same error message
    That's an entirely different issue, unrelated to your iOS devices.

  • Firefox 7.0 - Can not upload the file from local machine to server...gives "error 404 : file not found"

    firefox 7.0 - Can not upload the file from local machine to server...gives "error 404 : file not found"

    you have not understood my point
    how does this code will run on servlet when I want to upload a file from client's
    machine to server machine
    what I am doing is I am giving an option to the user that he/she can browse the file and then select any file and finally it's action is post in the jsp form for which I have sent the code
    All the computers are connected in LAN
    So how to upload a file from client's machine to server's machine
    Plz give me a solution

  • I rented Hotel Transylvania from iTunes two days ago to watch tonight on Apple TV. I get an error message about not available in U.S. and it won't play. What gives?

    I rented Hotel Transylvania from iTunes two days ago to watch tonight on Apple TV. I get an error message about not available in U.S. and it won't play. What gives?

    you may have inadvertantly purchased it from a non us itunes store section of itunes. go to expresslane.apple.com to get a refund and if you want to rent it again, on your computer itunes screen, scroll all the way to the bottom, and make sure the country indicator at the bottom right has the usa flag

  • Database Error: RSR0009: Resource not available for pool. Wait-time expired

    i am occassionally receiving the following error during database connections in my servlet:
    Database Error: RSR0009: Resource not available for pool [webAdvisorTestPool]. Wait-time expired
    i understand that this is a result of a connection leak from improper closure of my Connection object, but i thought that i was properly closing my connection.
    i can get the error if i do the following steps:
    1) access my login page and enter login credentials.
    2) submit the login which then hits the Authentication servlet.
    3) Authentication servlet authenticates and takes me to home page.
    4) hit the back button to get back to the login page.
    5) repeat this process until i hit the Max Pool Size (from web server).
    6) then i get the error message
    here are some details:
    i have an Authentication servlet; here is the pertinent code from that servlet:
    try {     // retrieve the user and add the User object to the session     DAO dao = new DAO();     Person authenticUser = dao.getPerson(userID, password);     session.setAttribute("validUser", authenticUser);     redirectPage = mapping.findForward("success"); }
    i also have a DAO object that handles all of my DB transactions (and you can see from my code above that the Authentication servlet is using that object); here is the pertinant code from that servlet:
    public DAO() {     datasource = "java:comp/env/jdbc/webAdvisorTest"; } public Person getPerson(String userID, String password)     throws ObjectNotFoundException {     // JDBC variables     DataSource ds = null;     Connection conn = null;     PreparedStatement stmt = null;     ResultSet results = null;     // User variables     Person validUser = null;     try     {         // Retrieve the DataSource from JNDI         InitialContext ctx = new InitialContext();         // if this statement fails, NamingException is thrown         ds = (DataSource)ctx.lookup(datasource);         // get DB connection and perform SQL operations         conn = ds.getConnection();         // User variables         String validUserID = null;         String validFName = null;         String validLName = null;         String validEmail = null;         // get DB connection and perform SQL operations         conn = ds.getConnection();         stmt = conn.prepareStatement(PERSON_QUERY);         stmt.setString(1, userID);         stmt.setString(2, password);         results = stmt.executeQuery();         // iterate through the results         if (results.next())         {             validUserID = results.getString("id");             validFName = results.getString("first_name");             validLName = results.getString("last_name");             validUser = new Person(validUserID, validFName, validLName);         }     }     // handle SQL errors     catch(SQLException e)     {         e.printStackTrace(System.err);         throw new RuntimeException("Database Error: " + e.getMessage());     }     // handle JNDI errors     catch(NamingException e)     {         throw new RuntimeException("JNDI Error: " + e.getMessage());     }     // clean up resources     finally     {         doClosure(results, stmt, conn);     }     // if the user was not found, throw ObjectNotFoundException     if(validUser == null)     {         throw new ObjectNotFoundException();     }     return validUser; } protected void doClosure(ResultSet results, PreparedStatement stmt,     Connection conn) {     if (results != null)     {         try { results.close(); }         catch (SQLException e) { e.printStackTrace(System.err); }     }     if (stmt != null)     {         try { stmt.close(); }         catch (SQLException e) { e.printStackTrace(System.err); }     }     if (conn != null)     {         try         {             System.out.println("R18Resources.conn before close: " + conn);             conn.close();             System.out.println("R18Resources.conn after close: " + conn);             System.out.println("R18Resources.conn is closed? " +                 conn.isClosed());         }         catch (SQLException e)         {             System.out.println("R18Resource conn close error: " +                 e.getMessage());         }     } }
    as you can see, i've added some print statements in my connection closure block. based on my output log, each connection is being properly closed and i am not encountering any errors during that closing block.
    any ideas???
    Message was edited by:
    millerand

    Please try the following code in your doClosure method. Replace your code with the following code.
    public void doClosure(ResultSet pResultSet, Statement pStmt, Connection pConn) throws Exception {
    try {
                   if (pResultSet != null) {
                        pResultSet.close();
                        pResultSet = null;
              } catch (SQLException se) {
              logger.error( se );
              } finally {
                   try {
                        if (pStmt != null) {
                             pStmt.close();
                             pStmt = null;
                   } catch (SQLException se) {
                   logger.error(se);
                   } finally {
                        try {
                             if (pConn != null) {
                                  pConn.close();
                                  pConn = null;
                        } catch (SQLException se) {
                        logger.error(se);
    And let me know if you still face this issue. What is the application server you are using?

  • Business Rule error: Accounts are not available in the rule table

    Hi everybody,
    I have a problem running the Business Rule for the profit/loss copy to the equity account.
    The Business Rule I set reads from all P&L accounts, P&L specific flow, acual category, all datasources and then it writes everything keeping the source settings apart from the account destination (the equity profit/loss account) and the flow destination (I write in two different flows, so the rule is made up of two equal lines differing only in the flow destination). "PROFIT" is the ID I chose.
    Then I created the related script logic (ID=CALCACCOUNT):
    *RUN_PROGRAM CALC_ACCOUNT
    CATEGORY_M = %CATEGORY_M_SET%
    CURRENCYLABEL = %CURRENCYLABEL_SET%
    TID_RA = %TIME_SET%
    CALC=PROFIT
    *ENDRUN_PROGRAM
    Finally, the prompt ( process chain: CPMB/RUNCALCACCOUNT):
    PROMPT(SELECTINPUT,,,,"CATEGORY_M,CURRENCYLABEL,TIME")
    TASK(/CPMB/RUNCALCACCOUNT_LOGIC,SUSER,%USER%)
    TASK(/CPMB/RUNCALCACCOUNT_LOGIC,SAPPSET,%APPSET%)
    TASK(/CPMB/RUNCALCACCOUNT_LOGIC,SAPP,%APP%)
    TASK(/CPMB/RUNCALCACCOUNT_LOGIC,SELECTION,%SELECTION%)
    TASK(/CPMB/RUNCALCACCOUNT_LOGIC,LOGICFILENAME,CALCACCOUNT.LGF)
    But anytime I run the package it fails giving me the message error: "Accounts are not available in the rule table".
    I tried every possible change but nothing; if someone could help me somehow I'd be really grateful!!
    Thanks
    Filippo

    Hi James,
    Thanks for your quick response. There is no currency dimension in the application... I've tested with the correct businessrule as CALC value, but this didn't do the trick.
    Any other suggestions?
    Regards,
    Vincent

  • Java.lang.InternalError: internal error: SHA-1 not available

    Hi All,
    When starting my j2ee & portal I get the following error:
    java.lang.InternalError: internal error: SHA-1 not available
    Does anybody have an idea about this error?
    Thanks
    Steven

    Hi All,
    When starting my j2ee & portal I get the following error:
    java.lang.InternalError: internal error: SHA-1 not available
    Does anybody have an idea about this error?
    Thanks
    Steven

  • HT3887 I m not able to found Bluetooth in my Macbook Pro. Error is Bluetooth : Not available.

    I am not able to found Bluetooth in my Macbook Pro. Found error is Bluetooth not available. Please inform me.

    Welcome to the Apple Support Communities
    Somehow, OS X doesn't detect Bluetooth in your computer. First, reset the PRAM and the SMC, and see if you can use Bluetooth then.
    If not, hold Command and R keys while your computer is starting to start in OS X Recovery, and reinstall OS X. If, after reinstalling OS X, you can't use Bluetooth, there's a hardware issue with your Mac, so take your Mac to an Apple Store or reseller

  • 3G.  I keep getting an error message "Network not available".

    3G.  I keep getting an error message "Network not available".  This is after turning data roaming ON, and even after turning phone off then back on, and having a 3G signal.  Help!

    I did ask my carrier - twice.  I also went into the Apple Store (45 miiles away), who checked it and assured me no hardware issues.
    I went back to the phone carrier - for the 3rd time.  The assistant rolled her eyes and said this happens all the time.  She changed the cellular data network settings on my phone from ideate to mobile.  Problem solved! 
    Carrier has also now offered a refund for the time without coverage - but I had to ask about that, and resist their attempts to change me to a more expensive contract.
    Hope this helps anyone else.  Thanks razmmee209

  • HT1386 I have iphone 4, and couldn't update to ios7.1.1 even though its downloaded, gives error message as not connected to internet, even though am connected

    I have iphone 4, and couldn't update to ios7.1.1 even though its downloaded, gives error message
    Unable to verify update
    ios 7.1.1 failed verification because you are no longer connected to the internet
    Close          Try again
    Event though I am connected to the net
    Tried repeatedly but frustrating. Am able to do the same in another iphone 4 which my brother has....Do not know what setting to change. Even cant update via itunes

    Hi GajaPsy,
    If you are getting errors or alert messages when you try to update your iPhone, you may find the troubleshooting steps outlined in the following article helpful:
    Apple Support: Resolve iOS update and restore errors in iTunes
    http://support.apple.com/kb/ts1275
    Regards,
    - Brenden

  • Apple mail won't connect to Gmail server!

    I am not sure exactly what has happened.  I have a year old MPB that is the glitchiest apple product I've had.  Mail slowly stopped connecting to the Gmail server and says my passwords are incorrect.  I have checked, rechecked, and even changed my passwords to ensure that the PW is not incorrect.  I have three gmail accounts and some of them worked up until today.  I cannot tell if this is a mac software issue or a gmail server issue.  I've been having some odd issues with my MBP so I would count that out as the culprit.  I double checked the files in Library/Preferences against an older backed up version and they seem to be intact.
    Any suggestions would be greatly appreciated. 

    Mine stopped wotking on the 9th, under the mail app on the left hand side, if you have triangles with ! marks in them, perform a left click and start "Mail Connection Doctor" This may help pinpoing the issue.
    Mine is failing at trying to connect on port 143.
    This worked for me, go the accounts settings window and in each gmail account enter the following info
    Advanced Tab
    IMAP Path Prefix enter [Gmail]
    If you then tick "Use SSL" this should make the port 993
    Authentication shold be set to "password"
    Then save these settings, finally email is received, hope this helps.
    Let is know how you get on.

  • Apple Mail won't connect to Gmail

    My Apple Mail 4.5 has been working fine up until a couple of weeks ago.  I don't know what happened, but now it won't connect to Gmail.  It says something like port 993 time out?  I've been searching online to find solutions, but none of them seems to work.  I can still log in thru webmail and I've already checked to see if my POP and IMAP are enabled in Gmail settings.  Please help Apple Geniuses.  Thanks.

    Anything here help?
    Routing gmail through Mail.app:
    imap-http://mail.google.com/support/bin/answer.py?answer=81379&topic=12814
    pop-http://mail.google.com/support/bin/answer.py?answer=13275&topic=12810

  • SSAS Tabular - Adding Column to a table gives error "Object reference not set to instance of object"

    If I make changes to a table in SSAS Tabular Visual Studio, the newly added column gives error as "Object
    reference not set to instance of object"

    Hi VikasJain13,
    According to your description, you get the "Object reference not set to instance of object" error when adding columns in Tabular. Right?
    Generally, it throws this error when the internal code is accessing the property of an empty object. As you mentioned it happens when you make changes on a table, mostly it means that table is already a empty object. Please re-process your tabular to see
    if this table is still existing. 
    If you have any question, please feel free to ask.
    Simon Hou
    TechNet Community Support

  • Ent 9 - Can't run mgmt console - admin.cwr gives Error 404: page not found

    Post Author: Alan Weiner
    CA Forum: Deployment
    We just did a fresh install of Crystal Enterprise 9.  When we try to run the Management console, we get an "Error 404: page not found"
      http://wdcwfc80/crystal/enterprise9/admin/en/admin.cwr
      Error 404: The page cannot be found

    Post Author: Alan Weiner
    CA Forum: Deployment
    From the server (although, it uses a browser to connect)
    colin mackenzie:
    Hi Alan Weiner.
    Do you get this message when you run this from the server? or just the workstation / client browser?

Maybe you are looking for

  • Error  in Creation of Group Account Number Through FS00 or ob_glacc11

    Hi Experts I am creating group account number in fs00 nothing but group chart of accounts that can be done individually in fs00 or through ob_glacc11. There is balance in all the G/L accounts but for some particular G/L accounts the system is through

  • Printing wireless via Macbook Pro but not via iPad

    I was able to install, print my HP Deskjet InkAdvantage 3515 from my Macbook Pro but when tried printing using my iPad, AirPrint printer not available.  How come? Did set-up wireless config in printer too.

  • Timecode on C100 II Mp-4 files

    A newbie question,  I've got a C100 Mark II and have some files on the MP-4 setting.  I can see the timecode in the viewer and it's running on all of the clips,  but when I import the files into FCP 7,  there's no timecode that's showing up.  I sent

  • Nokia E52 email issue since firmware upgrade (031....

    Hi guys, Yesterday i successfully upgraded my E52 to latest firmware - 031.012. After upgrade i removed all previous email accounts (1 MFE, 1 pop and 1 imap) and start a new setup. i have to mention, that i double checked that the email client versio

  • Horizontally centering a div with "auto" margins...

    I believe this is the first time I've ever encountered an instance where something works as intended in IE7, but won't in IE8+ or FF3. I am trying to horizontally center a 995px fixed (non-scrolling) div that stretches to 100% vertically. Here's the