×

Discussion Board

Results 1 to 15 of 24

Hybrid View

  1. #1
    Registered User
    Join Date
    Feb 2008
    Posts
    209

    Lightbulb Getting error KErrAbort (error code -39) when creating ssl connection

    Hi Expert,
    I am getting error KErrAbort (error code -39) when creating ssl connection , am using WikiSecureSocketEx.zip example for reference .



    Please Help as soon as.

    Looking forward positive response.

  2. #2
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,140

    Re: Getting error KErrAbort (error code -39) when creating ssl connection

    in general, you should provide a link to the original source, that way somebody could actually try understanding what you are doing.

    Also, if you made any changes to any parts of code, you should really mention that.

    also which platform you are building, and with which tools.

    And you should mention whether you get this error in emulator, or in device (please also specify the device used)

    And also it might help, if you could specify the line of code which after you get this error.

  3. #3
    Registered User
    Join Date
    Feb 2008
    Posts
    209

    Re: Getting error KErrAbort (error code -39) when creating ssl connection

    Hey Yucca,

    I ma getting error at line User::LeaveIfError(iStatus.Int()); in below function called.

    void CSecureSocketCore::MakePageRequestL() KErrNone
    {
    // The secure connection has now been made.
    // Send a get request for the page.
    User::LeaveIfError(iStatus.Int());

  4. #4
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,140

    Re: Getting error KErrAbort (error code -39) when creating ssl connection

    that part of code does not make any sense really.. Basically you would need to undestand teh code first, I assume that you have active object there, and you make a reguest, and then your RunL gets called.

    when the RunL is called, then the iStatus.Int() would indicate possible error codes, so do see how you get to this function, and what is done there.

    Then again, what else would be in this particular function ?

  5. #5
    Registered User
    Join Date
    Feb 2008
    Posts
    209

    Re: Getting error KErrAbort (error code -39) when creating ssl connection

    Hi Yucca Thanks, i added iSecureSocket->SetOpt(KSoSSLDomainName, KSolInetSSL, serverName);
    after creating securesocket and now it is making connection and requesting for data but still
    not able to open the web page.
    iRcvBuffer.Length() is coming 0.
    void CSecureSocketCore::ReadServerResponseL()
    {
    // Any error other than KErrEof means the test is a failure
    if (iStatus!=KErrEof) User::LeaveIfError(iStatus.Int());

    // Put the received data in the output file & reset the receive buffer
    iTotalBytesRead += iRcvBuffer.Length();

    // Case 1: error is KErrEof (message complete) or no data received, so stop
    if ( ( iStatus==KErrEof ) || ( iRcvBuffer.Length() == 0 ) )
    {

    // Close the socket neatly
    iState = EStopping;
    iTimer.After( iStatus, 1000000 );
    return;
    }

  6. #6
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,140

    Re: Getting error KErrAbort (error code -39) when creating ssl connection

    Basically you would need to debug the codes, and see what is happening, and what is not. And as the problem is with data, so check that your other-end is indeed functioning OK as well, and the data is sent from there accordingly.

    Also you should descipe problems in more details, the code does not have any reference to Web Browsers, so saying but still not able to open the web page. sound a bit confusing to me.

  7. #7
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,566

    Re: Getting error KErrAbort (error code -39) when creating ssl connection

    Quote Originally Posted by soni_neeraj View Post
    Hi Yucca Thanks, i added iSecureSocket->SetOpt(KSoSSLDomainName, KSolInetSSL, serverName);
    That requires some elevated capability (perhaps WriteDeviceData) if I remember correctly. Have you checked its result code? Is it KErrNone?

  8. #8
    Registered User
    Join Date
    Feb 2012
    Posts
    8

    Re: Getting error KErrAbort (error code -39) when creating ssl connection

    Hello,

    I am also using CSecureSocket to communicate with server , the code just work fine on 3rd_ed_fp2 sdk , but when trying to use the same code on Symbian^3 ( belle, Anna) handshake failed with -39 KErrAbort error , what could be the reason ??

    thanks in advance for any help !

  9. #9
    Registered User
    Join Date
    Feb 2012
    Posts
    8

    Post SSL handshake error KErrAbort -39 on Symbian^3 belle Anna

    Hello All,

    I am also using CSecureSocket to communicate with server i have setOpt serverName , the code just work fine on 3rd_ed_fp2 sdk , but when trying to use the same code on Symbian^3 ( belle, Anna) handshake failed with -39 KErrAbort error , what could be the reason ??

    thanks in advance for any help !

  10. #10
    Registered User
    Join Date
    Feb 2008
    Posts
    209

    Re: SSL handshake error KErrAbort -39 on Symbian^3 belle Anna

    Hi , CSecureSocket is working fine in symbian 3 (belle N8)emulater but not working on device

    but working fine on symbian 3rd fp2 and 5th edition devices.

    pls help me why is it not working on N8?

    below is the api:

    iSecureSocket = CSecureSocket::NewL( iSocket, KTLSProtocol );

    #ifndef __SYMBIAN_3__
    TBuf8<50> domainName;
    domainName.Append( *iServerName );

    User::LeaveIfError(iSecureSocket->SetOpt(KSoSSLDomainName, KSolInetSSL, domainName ));

    User::LeaveIfError( iSecureSocket->SetDialogMode(EDialogModeAttended));

    // Clears any previous options
    iSecureSocket->FlushSessionCache();
    #endif
    iSecureSocket->StartClientHandshake(iStatus);

  11. #11
    Registered User
    Join Date
    Feb 2008
    Posts
    209

    Re: SSL handshake error KErrAbort -39 on Symbian^3 belle Anna

    Hi , CSecureSocket is working fine in symbian 3 (belle N8)emulater but not working on device

    but working fine on symbian 3rd fp2 and 5th edition devices.

    pls help me why is it not working on N8?

    below is the api:

    iSecureSocket = CSecureSocket::NewL( iSocket, KTLSProtocol );

    #ifndef __SYMBIAN_3__
    TBuf8<50> domainName;
    domainName.Append( *iServerName );

    User::LeaveIfError(iSecureSocket->SetOpt(KSoSSLDomainName, KSolInetSSL, domainName ));

    User::LeaveIfError( iSecureSocket->SetDialogMode(EDialogModeAttended));

    // Clears any previous options
    #endif
    iSecureSocket->FlushSessionCache();

    iSecureSocket->StartClientHandshake(iStatus);

Similar Threads

  1. Error in creating HTTP connection
    By akash_rawat in forum Mobile Java General
    Replies: 1
    Last Post: 2009-10-25, 13:10
  2. KErrAbort Error in UDP Socket
    By muaz111111 in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2008-02-19, 13:36
  3. where can I get the error code of socket connection?
    By robert_lzw in forum Symbian C++
    Replies: 2
    Last Post: 2007-02-09, 07:52
  4. Socket connection not returning error code!
    By jestyjames in forum Symbian C++
    Replies: 1
    Last Post: 2005-02-27, 11:15
  5. error when creating GPRS connection
    By kenny2304 in forum Nokia M2M
    Replies: 3
    Last Post: 2004-11-11, 05:36

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •