Hotsync: Fatal alert

I got a handheld from a friend.  When I try to hotsync, I get a message "Fatal alert" with a button to reset.  No hotsync.
Post relates to: Tungsten E2

Hello pegchicago and welcome to the Palm forums.
What version of Windows are you using?  Is a 32-bit or 64-bit operating system?  What version of Palm Desktop is installed?  Is the fatal alert crashing Windows with a blue screen with white text?  When you installed Palm Desktop on your computer, did your Windows user account have the administrator security role applied to it?
More information is required to help you.
Alan G

Similar Messages

  • Fatal Alerts when hotsync'ing

    My T-E2 has suddenly started throwing fatal alerts doing a hotsync. Here are the 2 its throwing:
    This one happens during a hotsync: fatal alert Datamgr.c, Line:11444 Index out of range
    When the palm is running and I tap the calendar icon I get this one: Fatal alert DateAgenda.c,Line:3704, session cannot be opened
    I've tried restting w/o any change. I've tried hard resetting but it won't reset.
    I've tried the DbFixlt, but that finds no errors in the standard PIM Databases.
    Post relates to: Tungsten E2

    I have a program called Epocrates, which is a medical drug calculating program for about 8 months, never had a problem with it. I have just figured out how to remove it and will do that soon.
    Also: DataViz- Documents to go. That's been installed since I've had the TE2.
    Post relates to: Tungsten E2

  • Palm IIIxe - Fatal Alert after HotSync; [Reset] soft button doesn't; Paper Clip just returns Fatal Alert

    I'd done a HotSync and left Palm in cradle; went to work without it so called wife to have her check something for me.   She reported a MEMORY EXCEPTION error, which I've seen before, so I told her hit the soft [Reset] button offered. 
    She did, and it came back after the "Palm Powered" splash screen with a Fatal Alert and another soft [Reset] button.   No amount of clicking this button will reset it.
    Using the paper clip reset, I loop thru the splash screen and another Fatal Alert.   Beyond that, nothing.
    Here at the office, desperately needed to see some data which was on the Palm, so brought up the Palm Desktop (v4.1.0).   And was confronted with a Windows XP exception -- do you want to send an error report?     Downloaded and installed v4.1.4 from the website and Palm Desktop works again.
    Makes me wonder if there's some kind of date/time issue, that would have triggerd sometime between 11/28 and 11/30, that affected both Palm Desktop v4.1.0 AND the Palm OS that I'd been running on Palm IIIxe unit (the most recent version that WOULD run on IIIxe,
    insofar as far as I can tell now, with not being able to get past this Fatal Alert).
    Looked for the various cited tinyurl links in this forum that point to reset documentation (hoping for the least destructive; since my last backups would have been done likely in the hotsync that was aborted), yet those links all apparently point to hosts that cannot be reached.
    I LOVE my IIIxe and do NOT want to have to upgrade hardware and software for something I have to cradle and sync in order to recharge.  Give me a machine that I can replace the batteries at any 7-Eleven or Wal-Mart no matter where I travel.
    Post relates to: Palm IIIxe

    Not sure what caused this but with the fatal alert message you typically need to hard reset the handheld.
    If you had Palm desktop open while Windows, virus software or any apps that do updates did an update and caused the error.
    Are you still getting the fatal alert message? You need to hard reset the handheld if you are.
    Click on the following link to the kb.palm.com webpage for the article regarding reset procedures.
    http://www.palm.com/cgi-bin/cso_kbURL.cgi?ID=887
    The best way to preserve your data is to export the data in each category in Palm Desktop to a seperate folder on your PC.
    Create a new folder on your PC somewhere that is convenient. Name it something like Palm Desktop Data. Click on the link below and follow the instructions on that page for the export procedure.
    http://www.palm.com/cgi-bin/cso_kbURL.cgi?ID=28734
    Make sure you select all for the range in the export window.
    With the data saved in the folder you created, make a copy of that folder and save to a flash drive, cd-rw or external hard drive.
    Anytime you make a change in Palm Desktop, export the data that was changed to that folder and save again to the external media.
    With this process you can always import the data back into Palm Desktop anytime you have a problem with the data in Palm Desktop or if your computer/hard drive/device crashes.
    For reference purposes, click on the following link for the support page for your device on the kb.palm.com webpage.
    http://www.palm.com/us/support/palm3xe/
    There are links on the page to the user guide, troubleshooting, how to's, downloads, etc.
    Post relates to: Palm i705

  • Fatal Alert memorymgr.c, line:3751,free handle after hotsync

    I have just reloaded my palm software and now I keep getting fatal alert memorymgr.c, line:3751,free handle after I hotsync.  which is causing me to soft reset after hotsyncing.
    I deleted add-it and reloaded, did the same with documents to go and yet I'm still having the error - Any ideas????!!!
    Thanks....
    Post relates to: Tungsten E2

     - try to do a hard reset on the hh..
     - look for your BACKUP folder and rename it to lets say, BACKUP1...backup folder is located at C: <program files <palm < USERNAME <backup....
     - hotsync again..
    hope it will solve your problem...

  • HELP received a FATAL ALERT

    I've just did a sync on my palm I was adding an excel file and first it came up as a locked file. I removed said filed and attempted to add a modified version of this said file. (was told some formula's were not supported)
    So after doing the second sync. I went to my documents on my Palm Tungsten E2 and now I get a black boxs
    Fatal Alert
    MemoryMgr.c,Line:3751, Free handle
    I've done a few soft reset. And will remove said warning but the minute I try to go into the documents it freezes.
    Even now I dd yet another sync to remove all the files I added today, and still get the same warning.
    Post relates to: Tungsten E2

    Are you sync'ing the excel file over to the handheld again? This may be causing the error.
    The next step is to hard reset and rename the backup folder on your PC.
    Go to http://www.palm.com/cgi-bin/cso_kbURL.cgi?ID=887 and follow the directions to do a hard reset. Next before you hotsync your data back over you will need to rename your backup folder, to do that go here;
    XP
    C:\program files\palm or palm one\[hotsync username]\ and rename your backup
    folder to backup.old
    Vista
    Start-->documents\Palm OS Desktop\[hotsync username]\ and rename your backup
    folder to backup.old
    Then hotsync to your current hotsync name and all your contacts, calendar,
    tasks, and memos will come back over.
    Show file extensions for XP or Vista
    XP
    If you can not view file extensions on your PC I would like you to open a
    folder go to Tools-->Folder Options--> View (tab) and under show hidden
    files and folders uncheck hide file extensions for known file types.
    Vista
    Open control Panel go to Folder Options--> View (tab) and under show hidden
    files and folders uncheck hide file extensions for known file types.

  • Help ! Fatal Alert !

    I own a Tungsten E2. My Operating system is Windows 2000.
    This morning, my Tungsten would not start : total black-out.
    I pressed the reset button, and got the following message, and everything is blocked :
    Fatal Alert
    MemoryMgr.c, Line:3732, NULL handle
    Can anyone tell me how to restart ?
    Thanks in adavance.
    Xavier
    Post relates to: Tungsten E2

    Sounds like you're going to have to Hard Reset the unit.  Unfortunately, this will erase all the data from it, and it will reinstall all the programs that it came with "out of the box".
    Hopefully you have been doing regular HotSyncs to your computer and been backing up your data.
    To perform a Hard Reset: (Palm Knowledgebase article #887)
    While pressing and holding the Power button down, tap and release the Reset button in back and continue to hold the Power button down. When the grey Palm logo appears, you can release the Power button.
    You should now see the warning page in about 5 languages. Press the UP direction on the 5-way pad to complete the task. Your Palm will reset itself several times as it re-installs the original programs and erases all your previous data.
    WyreNut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • Lifedrive Simulator Fatal Alert MemoryMgr

    Hi,
    I came back to my old Lifedrive simulator which Rom file was : Brahma_Release_Sim_efigsp.rom.
    This soft has worked fine some months ago and I used it for a couple of hours as usual with or without Nsbasic.
    Finally, when restarting it after some work, I got a Fatal Alert with this message : MemoryMgr.c, Line:3752, NULL handle.
    I checked other simulators (ie NTFull_enUS.rom) and they were working fine.
    Rebooting, removing all the stuff, cleaning registry, reinstalling, I got the same result.
    After downloading a fresh simulator from Palm with the same Brahma_Release_Sim_efigsp.rom, I can't escape to this Fatal Alert. 
    Thank you for helping me.
    Post relates to: LifeDrive

     - try to do a hard reset on the hh..
     - look for your BACKUP folder and rename it to lets say, BACKUP1...backup folder is located at C: <program files <palm < USERNAME <backup....
     - hotsync again..
    hope it will solve your problem...

  • I always get FATAL ALERT: Fatal Exception everytime i try to hot sync

    i am trying to sync my tungsten E2 which i just bought refurbished. i installed my own software since my last tungsten E2 went kaput ( so i previously owned a tungsten E2 ). i always get FATAL ALERT: Fatal Exception everytime i try to hot sync. what is wrong? thank you.
    Post relates to: Tungsten E2

    As with most problems that occur on a Palm PDA, it is either software or hardware related and we have to determine which one.
    If your device is not locked up, the best method is to first make a complete backup of your unit to your SD card using the free "NVBackup" (available from http://www.freewarepalm.com) After the backup is complete, Hard Reset the unit, then test to see if full functionality returns.
    To perform a Hard Reset:
    While pressing and holding the Power button down, tap and release the Reset button in back and continue to hold the Power button down. When the grey Palm logo appears, you can release the Power button.
    You should now see the warning page in about 5 languages. Press the UP direction on the 5-way pad to complete the task. Your Palm will reset itself several times as it re-installs the original programs and erases all your previous data.
    DO NOT HOTSYNC YET! Test the unit before reinstalling any software. If the unit works correctly, your problem is being caused by a "drug interaction" of software - maybe one rogue program, or a combination of several. You'll have to reinstall the third-party programs one or a few at a time to find the problem one. To avoid re-installing a software issue, rename your /Backup directory in your Palm folder (on a PC it's found here: C/Program Files/Palm(One)/"your HotSync ID name truncated"/Backup) to something like "/BackupOLD". Now perform the HotSync, choose your HotSync name you've been using, and all your PIM data will return, but not the third-party programs. Test for functionality again. If all is good, start installing the old programs from your /BackupOLD directory one (or a few if brave) at a time.
    If the unit does not work after a Hard Reset is performed correctly, then it may be Hardware-related. (If it's a connection problem via either BlueTooth or Wifi, be sure nothing has changed on the unit you're trying to connect to!)
    Hope this has helped,
    Wyrenut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • Fatal alert line 7399 Zire 31

    I have a Zire 31. For some reason averytime I try to do anything the Fatal Alert Data Mgr.c, Line 7399 pops up. I have done both soft and hard reset. didn't do any good. I'm going nuts!
    Anybody have a solution???
    Thanks
    Post relates to: Zire 31

    As with most problems that occur on a Palm PDA, it is either software or hardware related and we have to determine which one.
    Best method is to first make a complete backup of your unit to your SD card using the free "NVBackup" (available from http://www.freewarepalm.com) After the backup is complete, Hard Reset the unit, then test to see if full functionality returns.
    To perform a Hard Reset:
    While pressing and holding the Power button down, tap and release the Reset button in back and continue to hold the Power button down. When the grey Palm logo appears, you can release the Power button.
    You should now see the warning page in about 5 languages. Press the UP direction on the 5-way pad to complete the task. Your Palm will reset itself several times as it re-installs the original programs and erases all your previous data.
    DO NOT HOTSYNC YET! Test the unit before reinstalling any software. If the unit works correctly, your problem is being caused by a "drug interaction" of software - maybe one rogue program, or a combination of several. You'll have to reinstall the third-party programs one or a few at a time to find the problem one. To avoid re-installing a software issue, rename your /Backup directory in your Palm folder (on a PC it's found here: C/Program Files/Palm(One)/"your HotSync ID name truncated"/Backup) to something like "/BackupOLD". Now perform the HotSync, choose your HotSync name you've been using, and all your PIM data will return, but not the third-party programs. Test for functionality again. If all is good, start installing the old programs from your /BackupOLD directory one (or a few if brave) at a time.
    If the unit does not work after a Hard Reset is performed correctly, then it may be Hardware-related. (If it's a connection problem via either BlueTooth or Wifi, be sure nothing has changed on the unit you're trying to connect to!)
    Hope this has helped,
    Wyrenut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • Https Issue:SSLHandshakeException:Received fatal alert:bad_certificate

    hi experts,
      My scenario is Proxy to AS2. In AS2 receiver I have https protocol. I have put SSL Certificate(keystore) value.
    Let say
    View-  x
    Certificate name-  cer
    then I  have given
    TRUSTED\x\cer
    in SSL Certificate(keystore) field of AS2 receiver channel.
    Let me know weather it is correct.
    Second field in Communication channel is "Private key for Client Authentication".  I have kept it as blank.
    I am getting an error in AS2 Receiver Channel saying:-
    Message processing failed. Cause: javax.resource.ResourceException: Fatal exception: com.sap.aii.af.ra.cci.XIRecoverableException: SEEBURGER AS2: javax.net.ssl.SSLHandshakeException: Received fatal alert: bad_certificate # , SEEBURGER AS2: javax.net.ssl.SSLHandshakeException: Received fatal alert: bad_certificate #
    My certificate has not expired yet.
    Please help me in this matter.
    Thanks
    Jaideep

    hi experts,
    Please look into the below  matter and help me to resolve it.
    Thanks
    Jaideep

  • SSL: Received fatal alert: certificate_unknown Problem

    Hi all, first I read this thread http://forums.sun.com/thread.jspa?threadID=5385002 but I didnt help me so i startad a new one.
    I´m doing a client, server and thread implementation with ssl, i copied certifcates and keystores on the directories and so on.
    Here is the error on the server, just when a client conects:
    javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_unknown
         at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
         at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(Unknown Source)
         at com.sun.net.ssl.internal.ssl.AppInputStream.read(Unknown Source)
         at java.io.ObjectInputStream$PeekInputStream.read(Unknown Source)
         at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)
         at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source)
         at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
         at java.io.ObjectInputStream.<init>(Unknown Source)
         at org.tockit.comunication.ServerThread.run(ServerThread.java:55)
         at java.lang.Thread.run(Unknown Source)Here is the code of the client, server and server thread, i cant find the error as i follow some tutorials and it worked:
    import java.io.BufferedReader;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.io.ObjectInputStream;
    import java.io.ObjectOutputStream;
    import java.net.Socket;
    import java.net.UnknownHostException;
    import java.util.ArrayList;
    import javax.net.ssl.SSLSocket;
    import javax.net.ssl.SSLSocketFactory;
    import citic.android.remoteir.ComConstants;
    import citic.android.remoteir.SendMessage;
    public class Client {
             public static void main(String[] args)
                 // Se crea el cliente y se le manda pedir el fichero.
                 Client cf = new Client();
                 BufferedReader in = null;
                 BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));
                 String userInput;
                 cf.pide("rup", "localhost", 27960, 0, 20);
             public void pide(String query, String servidor, int puerto, int startIndex, int count)
                 try
                     // Se abre el socket.
                      SSLSocketFactory sslsocketfactory = (SSLSocketFactory)SSLSocketFactory.getDefault();
                        SSLSocket socket = (SSLSocket)sslsocketfactory.createSocket(servidor,puerto);
                     ObjectOutputStream oos = new ObjectOutputStream(socket
                             .getOutputStream());
                     SendMessage mensaje = new SendMessage();
                     mensaje.queryTerms = query;
                     mensaje.startIndex = startIndex;
                     mensaje.count = count;
                     oos.writeObject(mensaje);
                     ObjectInputStream ois = new ObjectInputStream(socket
                             .getInputStream());
                     ComConstants mensajeRecibido;
                     Object mensajeAux;
                     String mensa = null;
                     do
                         mensajeAux = ois.readObject();
                         // Si es del tipo esperado, se trata
                         if (mensajeAux instanceof ComConstants)
                             mensajeRecibido = (ComConstants) mensajeAux;
                             System.out.println("Client has Search Results");
                             String test;
                             test = new String(
                                     mensajeRecibido.fileContent, 0,
                                     mensajeRecibido.okBytes);
                             if (mensa == null) {
                                  mensa = test;
                             else {
                                    mensa += test;
                             System.out.println("client mierda" + test);
                         } else
                             System.err.println("Mensaje no esperado "
                                     + mensajeAux.getClass().getName());
                             break;
                     } while (!mensajeRecibido.lastMessage);
                     SaxParser sap = new SaxParser(mensa);
                     ois.close();
                     socket.close();
                 } catch (Exception e)
                     e.printStackTrace();
    package org.tockit.comunication;
    import java.io.*;
    import java.net.*;
    import java.security.KeyStore;
    import javax.net.ssl.KeyManager;
    import javax.net.ssl.KeyManagerFactory;
    import javax.net.ssl.SSLContext;
    import javax.net.ssl.SSLServerSocket;
    import javax.net.ssl.SSLServerSocketFactory;
    import javax.net.ssl.SSLSocket;
    public class Server {
         public static void main(String[] args) throws IOException {
                 ServerSocket serverSocket = null;
                 boolean listening = true;
                 System.out.println("Indroduzca valor del puerto");
                 InputStreamReader isr = new InputStreamReader(System.in);
                 BufferedReader br = new BufferedReader (isr);
                 int port;
                 try
                      String texto = br.readLine();
                      int valor = Integer.parseInt(texto);
                      port = valor;
                      try {
                           System.setProperty("javax.net.ssl.keyStore","C:\\Program Files\\Java\\jre6\\bin\\remoteir.ks");
                             System.setProperty("javax.net.ssl.keyStorePassword","aquabona");
                             SSLServerSocketFactory sslServerSocketfactory = (SSLServerSocketFactory)SSLServerSocketFactory.getDefault();
                             SSLServerSocket sslServerSocket = (SSLServerSocket)sslServerSocketfactory.createServerSocket(port);
                             System.out.println("Arracando servidor en " + port);
                          while (listening){
                                  SSLSocket cliente = (SSLSocket)sslServerSocket.accept();
                               System.out.println("Aceptado cliente");
                                Runnable nuevoServer = new ServerThread(cliente);
                                Thread hilo = new Thread(nuevoServer);
                                hilo.start();
                      } catch (IOException e) {
                          System.err.println("Could not listen on port:" + port);
                          System.exit(-1);
                 catch (Exception e)
                     e.printStackTrace();
    }The line at at org.tockit.comunication.ServerThread.run(ServerThread.java:55) is marked with ERRRROOOOOORRRRR and serverThread cod is posted on the fisrt reply post.
    All this code works in absence of SSL (regular sockets).
    I have another question related to the SSLSockets in the method of the serverThread, will my SSLSockets in the serverThread´s methods work to comunicate with other servers as i try to do?
    Thanks!

    And this is a method like the ones i asked on #1, sorry about this but i cant post more than 7500 characters
        private void enviaFicheroMultiple(String query, ObjectOutputStream oos, int startIndex, int count, ArrayList<String> ips, ArrayList<String> ports, SearcherValue value)
            try
                 String finalString = "";
                String tempFinal = "";
                 QueryWithResult[] outputLine;
                 QueryWithResult[] finalResults = new QueryWithResult[1];
                 Operations op = new Operations();
                boolean enviadoUltimo=false;
                ComConstants mensaje = new ComConstants();
                mensaje.queryTerms = query;
                outputLine = op.processInput(query, value);
                       int i = 0;
                       boolean firstRun = true;
                       while (i < ips.size()) {
                            String ip = ips.get(i);
                            int port = Integer.parseInt(ports.get(i));
                       try
                       SSLSocketFactory sslsocketfactory = (SSLSocketFactory)SSLSocketFactory.getDefault();
                   SSLSocket socket = (SSLSocket)sslsocketfactory.createSocket(ip,port);
                     ObjectOutputStream ooos = new ObjectOutputStream(socket
                             .getOutputStream());
                     SendMessage message = new SendMessage();
                     message.numDoc = value.numDoc;
                     message.docFreq = value.docFreq;
                     message.queryTerms = query;
                     message.startIndex = startIndex;
                     message.count = count;
                     message.multiple = false;
                     message.ips = null;
                     message.ports = null;
                     message.value = true;
                     message.docFreq = value.docFreq;
                     message.numDoc = value.numDoc;
                     ooos.writeObject(message);
                     ObjectInputStream ois = new ObjectInputStream(socket
                             .getInputStream());
                     QueryWithResult[] qwr = (QueryWithResult[]) ois.readObject();
                     int size = qwr.length;
                     int num=0;
                     boolean kk = true;
                     int pos = 0;
                     if(firstRun) {
                          finalResults = new QueryWithResult[size];
                        finalResults = qwr;
                        System.out.println("lenght" + finalResults.length);
                    } else {
                         QueryWithResult[] old = finalResults;
                         finalResults = new QueryWithResult[old.length + size];
                         int y =0;
                         while(y < old.length){
                              finalResults[y] = old[y];
                              y++;
                         int l = old.length;
                         int k = qwr.length;
                         while(l < finalResults.length){
                              finalResults[l] = qwr[0];
                              l++;
                     firstRun = false;
                     ois.close();
                     socket.close();
                 } catch (Exception e)
                     e.printStackTrace();
                 i++;
                 QueryWithResult[] old = finalResults;
              finalResults = new QueryWithResult[old.length + outputLine.length];
              int y =0;
              while(y < old.length){
                   finalResults[y] = old[y];
                   y++;
              int l = old.length;
              int k = outputLine.length;
              while(l < finalResults.length){
                   finalResults[l] = outputLine[0];
                   l++;
                       XmlConverter xce = new XmlConverter(finalResults, startIndex, count);
                    String serialized = xce.runConverter();
                       finalString = serialized + tempFinal;
                       finalString = finalString.trim();
                       System.out.println("Final String " + finalString);
                       byte mybytearray[] = finalString.getBytes();
                       ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(mybytearray);
                      BufferedInputStream bis = new BufferedInputStream(byteArrayInputStream);
                int readed = bis.read(mensaje.fileContent,0,4000);
                while (readed > -1)
                    mensaje.okBytes = readed;
                    if (readed < ComConstants.MAX_LENGTH)
                        mensaje.lastMessage = true;
                        enviadoUltimo=true;
                    else
                        mensaje.lastMessage = false;
                    oos.writeObject(mensaje);
                    if (mensaje.lastMessage)
                        break;
                    mensaje = new ComConstants();
                    mensaje.queryTerms = query;
                    readed = bis.read(mensaje.fileContent);
                if (enviadoUltimo==false)
                    mensaje.lastMessage=true;
                    mensaje.okBytes=0;
                    oos.writeObject(mensaje);
                oos.close();
            } catch (Exception e)
                e.printStackTrace();
        }

  • Received fatal alert: handshake_failure!!

    Hi all,
    I have to connect with a server via mutual authentication. I have to received a server certificate and send my client certificate, which I have stored in cacerts.
    This certificate is a class 3 certificate from verisign.
    If I try to connect from IE directly as:
    https://195.235.160.165/GPP/WLServer
    I have no problem, but when I try to connect from my servlet
    MY CODE
    com.sun.net.ssl.SSLContext ctx = com.sun.net.ssl.SSLContext.getInstance("SSL");
    URL url = new URL("https://195.235.160.165/GPP/WLServer");
    HttpURLConnection conn = (HttpURLConnection) url.openConnection();
    com.sun.net.ssl.HttpsURLConnection urlConn = (com.sun.net.ssl.HttpsURLConnection) conn;
    urlConn.setDoOutput(true);
    com.sun.net.ssl.KeyManagerFactory _kmFactory = null;;
    com.sun.net.ssl.TrustManagerFactory _tmFactory = null;
    //Establecemos los certificados
    //Cliente
    String _clientCertStoreFile = "C:\\certificados\\cacerts.jks";
    String _serverCertStoreFile = "C:\\certificados\\keystore.jks";
    String _clientCertStorePswd = "changeit";
    String _serverCertStorePswd = "changeit";
    InputStream _clientCertInputStream = null;
    InputStream _serverCertInputStream = null;
    String TRUST_STORE = "javax.net.ssl.trustStore";
    String TRUST_STORE_PASSWORD = "javax.net.ssl.trustStorePassword";
    String KEY_STORE = "javax.net.ssl.keyStore";
    String KEY_STORE_PASSWORD = "javax.net.ssl.keyStorePassword";
    log.debug("set client side cert ...");
    if (_clientCertStoreFile != null)
    InputStream retInputStream = null;
    try{
    retInputStream = new FileInputStream(_clientCertStoreFile);
    catch (FileNotFoundException fnfe)
    retInputStream = this.getClass().getResourceAsStream(_clientCertSto reFile);
    log.debug("The input stream is: " + retInputStream);
    _clientCertInputStream = retInputStream;
    try
    if (_clientCertInputStream != null)
    log.debug("setting client side cert ...");
    KeyStore clientCertKeyStore = KeyStore.getInstance(KeyStore.getDefaultType());
    clientCertKeyStore.load(_clientCertInputStream, _clientCertStorePswd.toCharArray());
    _kmFactory = com.sun.net.ssl.KeyManagerFactory.getInstance(com. sun.net.ssl.KeyManagerFactory.getDefaultAlgorithm( ));
    kmFactory.init(clientCertKeyStore, clientCertStorePswd.toCharArray());
    else
    log.debug("nothing to set for the client cert!");
    catch (IOException ioe)
    ioe.printStackTrace();
    catch (KeyStoreException kse)
    kse.printStackTrace();
    catch (NoSuchAlgorithmException nsae)
    nsae.printStackTrace();
    catch (java.security.cert.CertificateException ce)
    ce.printStackTrace();
    catch (UnrecoverableKeyException uke)
    uke.printStackTrace();
    //Servidor
    log.debug("set server side cert ...");
    if (_serverCertStoreFile != null)
    log.debug("read server side cert ...");
    InputStream retInputStream = null;
    try{
    retInputStream = new FileInputStream(_serverCertStoreFile);
    catch (FileNotFoundException fnfe)
    retInputStream = this.getClass().getResourceAsStream(_serverCertSto reFile);
    _serverCertInputStream = retInputStream;
    if (_serverCertInputStream != null)
    try
    log.debug("setting server side cert ...");
    KeyStore trustStore = KeyStore.getInstance(KeyStore.getDefaultType());
    trustStore.load(_serverCertInputStream, _serverCertStorePswd.toCharArray());
    _tmFactory = com.sun.net.ssl.TrustManagerFactory.getInstance(co m.sun.net.ssl.TrustManagerFactory.getDefaultAlgori thm());
    _tmFactory.init(trustStore);
    catch (IOException ioe)
    ioe.printStackTrace();
    catch (KeyStoreException kse)
    kse.printStackTrace();
    instance");
    catch (NoSuchAlgorithmException nsae)
    nsae.printStackTrace();
    catch (java.security.cert.CertificateException ce)
    ce.printStackTrace();
    else
    log.debug("Nothing to set for the server cert");
    if (_kmFactory != null){
    if (_tmFactory != null){
    //ctx.init(_kmFactory.getKeyManagers(), _tmFactory.getTrustManagers(), null);
    ctx.init(new com.sun.net.ssl.X509KeyManager[]{}, trustAllCerts, new java.security.SecureRandom());
    else{
    ctx.init(_kmFactory.getKeyManagers(), null, null);
    else{
    if (_tmFactory != null){
    ctx.init(null, _tmFactory.getTrustManagers(), null);
    else{
    return;
    urlConn.setHostnameVerifier(new HostnameVerifier() {
    public boolean verify(String hostname, String session)
    // I don't care if the certificate doesn't match host name
    System.out.println("hotname: "+hostname);
    return true;
    urlConn.setSSLSocketFactory(ctx.getSocketFactory() );
    urlConn.setDefaultSSLSocketFactory(ctx.getSocketFa ctory());
    BufferedReader in = new BufferedReader(
    new InputStreamReader(
    urlConn.getInputStream()));
    //Creates a writer with the encoding parameter as "UTF-8"
    Writer out_ = new OutputStreamWriter(response.getOutputStream(), "UTF-8" );
    log.debug("Creating writer");
    String inputLine;
    String fichero_in = "";
    while ((inputLine = in.readLine()) != null){
    if(inputLine.length()!=0){
    System.out.println(inputLine);
    fichero_in = inputLine;
    out_.write(inputLine);
    in.close();
    //Sets the Content-Type header
    response.setContentType("application/xml; charset=utf-8");
    //response.setContentType("text/html; charset=UTF-8");
    //Sends the response XML to the client
    out_.write(fichero_in);
    out_.flush();
    response.sendRedirect(response.encodeRedirectURL("out_"));

    Sorry for not to be clearer and not to use formatting tips (I didn�t know about it) and finally sorry for my bad English!!
    As regards the errors:
    [LocationServlet] Error: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure : com.deimos.dat.servlet.LocationServlet.processRequest(LocationServlet.java:397)
    It appears when the servlet try to getInputStream from the HttpsUrlConnection because the handshake hasn�t been done properly.
            BufferedReader in = new BufferedReader(
                 new InputStreamReader(
                 urlConn.getInputStream())
            Thanks in advance!!

  • SSLHandShakeException's fatal alert certificate_unknown

    Trying to connect RMI SSL Client with RMI non-SSL Server with and getting following exception. How should i check SSLHandShakeException's fatal alert certificate_unknown in the code ? Also I am setting SSL properties(keystore, truststore, passwords) using System.setPropertiy()
    *** ServerHelloDone
    RMI TCP Connection(11)-10.229.194.39, WRITE: TLSv1 Handshake, length = 659
    RMI TCP Connection(11)-10.229.194.39, READ: TLSv1 Alert, length = 2
    RMI TCP Connection(11)-10.229.194.39, RECV TLSv1 ALERT: fatal, certificate_unknown
    RMI TCP Connection(11)-10.229.194.39, called closeSocket()
    RMI TCP Connection(11)-10.229.194.39, handling exception: javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_unknown
    RMI TCP Connection(11)-10.229.194.39, called close()
    RMI TCP Connection(11)-10.229.194.39, called closeInternal(true)
    Allow unsafe renegotiation: false
    Allow legacy hello messages: true
    Is initial handshake: true
    Is secure renegotiation: false
    Allow unsafe renegotiation: false
    Allow legacy hello messages: true
    Is initial handshake: true
    Is secure renegotiation: false
    RMI TCP Connection(12)-10.229.194.39, setSoTimeout(7200000) called
    RMI TCP Connection(12)-10.229.194.39, READ: SSL v2, contentType = Handshake, translated length = 73
    *** ClientHello, TLSv1
    RandomCookie: GMT: 1360739234 bytes = { 103, 192, 214, 126, 21, 70, 8, 98, 28, 38, 177, 79, 93, 98, 219, 3, 14, 199, 232, 12, 186, 102, 148, 116, 240, 107, 25, 14 }
    Session ID: {}

    890918 wrote:
    Trying to connect RMI SSL Client with RMI non-SSL Server with and getting following exception.What you have posted is not an exception, it is an SSL debug trace, and you could not possibly have got it by connecting to a non-SSL server.

  • Received fatal alert: certificate_unknown

    i am making a SSL client server application.
    i got this exception
    javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_unknown
            at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174)
            at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:136)
            at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1657)
            at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:932)
            at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1096)
            at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:623)
            at com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:59)
    how can i solve it?

    thanks my all helpers..
    i made new certificate.
    some more details are under
    1.  SSLServerSocketFactory sslserversocketfactory = (SSLServerSocketFactory) SLServerSocketFactory.getDefault();
    2.  SSLServerSocket server= null;
    3.  server= (SSLServerSocket) sslserversocketfactory.createServerSocket(4444);
    4.  SSLSocket socket = (SSLSocket) server.accept();
    5.  System.out.print(socket.getInetAddress().getLocalHost());
    6.  ObjectOutputStream out = new ObjectOutputStream(socket.getOutputStream());Exception through at *6* line from server side
    complete stack trace
    javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_unknown
            at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174)
            at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:136)
            at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1657)
            at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:932)
            at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1096)
            at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:623)
            at com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:59)
            at java.io.ObjectOutputStream$BlockDataOutputStream.drain(ObjectOutputStream.java:1838)
            at java.io.ObjectOutputStream$BlockDataOutputStream.setBlockDataMode(ObjectOutputStream.java:1747)
            at java.io.ObjectOutputStream.<init>(ObjectOutputStream.java:226)
            at NPBClientGUI.Connect.ConnectMe(Connect.java:87)
            at NPBClientGUI.Connect.btnConnectActionPerformed(Connect.java:226)
            at NPBClientGUI.Connect.access$200(Connect.java:42)
            at NPBClientGUI.Connect$2.actionPerformed(Connect.java:175)
            at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
            at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
            at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
            at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
            at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
            at java.awt.Component.processMouseEvent(Component.java:6134)
            at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
            at java.awt.Component.processEvent(Component.java:5899)
            at java.awt.Container.processEvent(Container.java:2023)
            at java.awt.Component.dispatchEventImpl(Component.java:4501)
            at java.awt.Container.dispatchEventImpl(Container.java:2081)
            at java.awt.Component.dispatchEvent(Component.java:4331)
            at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4301)
            at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3965)
            at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3895)
            at java.awt.Container.dispatchEventImpl(Container.java:2067)
            at java.awt.Window.dispatchEventImpl(Window.java:2458)
            at java.awt.Component.dispatchEvent(Component.java:4331)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
            at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
            at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
            at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)Edited by: Muneer_Ahmed on May 8, 2009 12:27 PM

  • Webcenter Spaces Events Service configuration: FATAL Alert BAD CERTIFICATE

    Hello,
    I have a simple requirement to connect the events taskflow from an exchange server that is https and has a confirmed security certificate. I use the wsdl path for the events service and add it to my webcenter spaces service configuration -> Personal Events configuration.
    Then I ran into this error.
    javax.net.ssl.SSLKeyException: FATAL Alert:BAD_CERTIFICATE - A corrupt or unuseable certificate was received.
    So, I downloaded the .crt file from Chrome (in per format) and used the keytool to upload the certificate exception into the cacerts file inside jdk and jrocket folders. I restart the managed server running WebCenter Spaces. This had no effect on the error.
    Is there anything else that I should do?
    Thanks,
    Pradyumna

    I have the same problem. Did You resolve it?

Maybe you are looking for

  • Yosemite 10.10.3 and Photoshop Elements 13

    I upgraded my Mac OS to Yosemite 10.10.3 two days ago, uninstalled and reinstalled photoshop elements 13,  updated all of the elements updates, and installed the java for OSx 2014-001.  Nothing has fixed this problem.  When I go to open a photo in El

  • Weird Pacman behavior [Solved]

    The weirdest thing is happening.  I reformatted and installed Duke.  When I run pacman -Syu, everything goes really slow.  Not the download speed, that is fast, but it pauses for about 30 seconds after every event.  So it will download an update, the

  • Query on variant configuration

    Hi, i have a variant SEATING and the values are 41-Standard 36P- 36 seats + 1 pantry 36B - 36 seats + 1 berth. the vehicles are of only two models can i use a selection condition for these?One type of seating shud be selected while configuration. Nex

  • How do I save with iLife preview??

    The first time I saved a track it asked me if I wanted to save with iLife preview and I said no. Now I have a track that I NEED to save with iLife preview and I can't figure out how! PLEASE help asap this project is due very soon.

  • Cannot find the "Import Designs" option in BPM Studio/JDev 11.1.1.3

    Dear All, I'm using JDeveloper 11.1.1.3 and the corresponding BPM studio. I cannot see the option to "Import Designs" as described here: How to import XPDL