Could not generate conversation ID: INTERNAL_ERROR

I am getting the following error messsage from the trace file when attempting to sync with a 2.5 MI client SP13 with a was640 server updated to the sp13. 
Could not generate conversation ID: INTERNAL_ERROR
[20050902 13:49:18:801] E [MI/Core ] SecurityManager: The SSL support feature is not available (NoClassDefFoundError) (root cause: com/sun/net/ssl/internal/ssl/Provider [java.lang.NoClassDefFoundError]) 
[20050902 13:49:36:207] E [MI/Deployment ] ERROR_MESSAGES: Internal error 
[20050902 13:49:36:207] E [MI/Deployment ] ERROR_MESSAGES: Could not generate conversation ID: INTERNAL_ERROR 
[20050902 13:49:36:207] E [MI/Deployment ] ERROR_MESSAGES: Internal error 
[20050902 13:49:36:207] E [MI/Deployment ] ERROR_MESSAGES: Could not generate conversation ID: INTERNAL_ERROR 
I have checked the system option under client settings and it is set to WM2 which is the sapsid of the webas640.
I notice in the webconsole that the mobileengine jsp framework is only at sp04 if I read this correctly.  I presume I need to add the sp13 mobileengine_jsp as well?  I have downloaded the complete SP13 MI Client and there seems to be a core and tomcat folder.  Under the zipped folder of each there is an meengine.zip file.  Is this what I should upload to update the framework?
These are the JSP framework names that are present.
  MOBILEENGINE_JSP             250400
  MOBILEENGINE_JSP             250000
Any suggestions would be welcome.

I seem to be able to sync successfully now.  I had nopt added the user to the user group mesync as is suggested on page 16 of the MI2.5 SP13 install guide.  Once I did this the client appears to have synchronised correctly.

Similar Messages

  • Thread: Could not generate the XML in single thread mode

    Hi all,
    I have created a report using PLSQL Procedure method after submitting the request I am getting the following Error.Couldn't sort out why I am getting the error while running the report.
    Error in "Multi threaded or single threaded execution block" of XXRX_REPORT_OUTPUT_PKG.insert_into_nested_table procedure
    ERROR :ORA-20005: Could not generate the XML in single thread mode
    XXRXERROR: XXRX_REPORT_OUTPUT_PKG.run_report SQLERROR: ORA-20005: ORA-20005: Could not generate the XML in single thread mode
    Can someone help me out finding the issue
    Thanks in Advance

    Hi,
    Please read SQL and PL/SQL FAQ
    We cannot guess what is the error if you don't post any part of your code.
    Additionally when you put some code or output please enclose it between two lines starting with {noformat}{noformat}
    i.e.:
    {noformat}{noformat}
    SELECT ...
    {noformat}{noformat}
    Regards.
    Al                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Error creating AIR file: could not generate timestamp

    I have been getting this error the last few days.
    Error creating AIR file: could not generate timestamp:
    sun.security.validator.BalidatorException:PKIX path building failed:
    sun.security.provider.certpath.SunCertPathBuilderException: unable to find
    valid certificatio path to requested target.
    https://timestamp.geotrust.com/tsa
    I found one thread saying this url must be accessible but when I go there I get "404 -- page not found".
    Since this was working now it is not I'm looking for a direction.

    Hey Karthik,
    First of all, are you using ECLIPSE? What is your development
    Environment. I had run into same issue, after hours of trying
    different things, I installed the FLEX BUILDER and was able to
    create the application without any issues. I have also noticed that
    FLEX BUILDER works more smoothly than Eclipse and since then I have
    been developing within FB.
    Thanks.

  • Could not generate stub object - The element type "META" must be terminated by the matching end-tag "".

    I am getting the following error message when I try invoking
    a webservice.
    Could not generate stub objects for web service invocation.
    Name: ProgrammePrivilege. WSDL:
    https://clientaccweb.reseaudistinction.com/CardHolderInfo.asmx?WSDL.
    org.xml.sax.SAXException: Fatal Error: URI=null Line=11: The
    element type "META" must be terminated by the matching end-tag "".
    It is recommended that you use a web browser to retrieve and
    examine the requested WSDL document for correctness. If the
    requested WSDL document can't be retrieved or it is dynamically
    generated, it is likely that the target web service has programming
    errors.
    The problem is, the webservice is working fine, the
    application was working yesterday, the error message just appears
    after a couple of days and I have to refresh the service in the CF
    Administrator. Once I refresh it, everything starts working again.
    Anyone else got this problem? ANY help would be appreciated!
    If you guys need my code anyway, I can attach it but like I
    said, everything works for a couple of days, then, out of the blue,
    it stops working so I doubt that it's my CFINVOKE that's the
    problem...

    Similar kind of problems here - reported back to Adobe a
    couple of months ago, so let's wait and hope for the best. My
    problems have related to registering multiple web services and
    executing them. One problem is that, If I register two identical
    (and quite complex) web services, I can only execute either of
    them. After CF restart, either of them works, but invoking the
    other doesn't work.
    For example; CF_Restart -> Try A first, A works -> B
    doesn't. Also, CF_Restart -> Try B first, B works -> A
    doesn't.
    CFMX7.0.2, Apache 2.2, WinXP

  • LabVIEW could not generate code for the shared variable.You must open the VI in the project that contains the library where the shared variable resides

    HI
    When I put a network shared variable with fifo RT activated on my diagram, the arrow is broken.and I' ve got this message:
    ""LabVIEW could not generate code for the shared variable.You must open the VI in the project that contains the library where the shared variable resides""
    If I uncheck FIFO RT option for this variable the arrow isn't broken anymore.
    I 've no idea how to correct this weird error?
    Autodeploy is on, and I've check copy / delete in diagram in tool/options\diagram
    regards,
    james

    Hello,
    I don't reproduce this error.
    Could you send your VI?
    Regards
    VéroniqueD
    NI France

  • Adt.bat Could not generate timestamp: Cannot parse the response

    I am using the command line to build an air app as follows:
    adt.bat -package -storetype pkcs12 -keystore mycert.pfx
    -storepass xxx -tsa
    http://timestamp.verisign.com/scripts/timstamp.dll
    myApp.air myApp-app.xml myApp.swf
    However, I receive this error:
    Could not generate timestamp: Cannot parse the response
    I am using a Verisign issued Authenticode certificate. Has
    anyone got any idea why this might be happening?
    Thanks

    There is no previous thread running for this application
    (that's the first thing I checked out). As I said in the last
    message, I can successfully launch my app from within FlexBuilder3,
    but not from a generated .air file install.
    At your suggestion, I created a simple "Hello World" type of
    Flex application in FlexBuilder3. From within FlexBuilder3, I
    exported it to an AIR file and installed it. This simple
    application does indeed run on my system after being installed from
    the .air file.
    So there's something different about this new public release
    of the FlexSDK than the last bet release. I compared that simple
    project contents and layout to my project. The big difference is
    that all the source files for the simple project was automatically
    dropped/created in a child 'src' folder under the main project
    folder. I also noticed that when installed, there were files
    missing for my app, but not for the simple app. The big difference
    there being that only the files in the src folder were copied into
    the AIR installer to be installed. Nothing outside of that folder
    was part of the install codebase!
    I therefore refactored my code (yet again) to move all my
    source files (including my external config XML files) into a 'src'
    folder under the main project folder. After a lot of tweaking in
    FlexBuilder3 to get it all working again and running, I exported to
    an AIR file once again. This time all the files were included, when
    I ran the new installer. The application now launches successfully.
    The next step is to replicate this via the command-line ADT
    tool.
    It would have been nice to know the changes in this area (src
    folder) before going this far into the process. Unless they are
    documented in some obscure release note somewhere that I am not
    aware of yet.
    I'll let you know how the ADT run goes when I get the chance.
    Thanks for your help everyone.

  • CiscoWorks LMS 4.0.1 - Could not generate the report

    Hello,
    I am running CiscoWorks LMS 4.0.1 since 6 months and I wanted to generate today a report about the interface utilization on 2 Cisco switches (Catalyst 3750G). The corresponding job is created, it runs and then i get "succeeded with info" in the "Run Status" column. When I want to click then on the "View Report" link, I get the following error: "Could not generate the report. Either data is not available for the specified duration or the report job failed."
    I tried the same procedure with 2 other switches but I have got the same result.
    Does anybody has an idea of how I can fix this issue?
    Thanks a lot in advanced.
    Best regards,
    Marc Hoffmann

    Hi Marc,
    I have this problem too. I rebooted my Windows but no solved. You known the service name responsible for this error? You have any other sugestion?
    Thank you !!!

  • SQL2310N the utility could not generate statistics: error "-911"

    Hello,
    we have a 46c system with DB V.8.2.2. Everytime we planned over db13 the runstat_all we get an error message.
    Errormessage: Error -2310 in dmdb6upd.c(687):
    SQL2310N the utility could not generate statistics: error "-911"
    Regards,
    Alexander Türk

    Here some more information:
    07.01.2007 13:00:31 Ausführung des logischen Kommandos REORGCHK_ALL auf Rechner b0d0m102
    07.01.2007 13:00:31 Parameter: -t all -n PH0 -z 3600 -m b -l 1800
    07.01.2007 20:01:09 pct_long_lob has been set to 10 percent
    07.01.2007 20:01:09 Checking for old entries in db6treorg/db6ireorg ...
    07.01.2007 20:01:09 Reading table names for runstats ...
    07.01.2007 20:01:09 Tables to process: 26350 ...
    07.01.2007 20:01:09 ERRORMESSAGE: Error -2310 in dmdb6upd.c(687):
    07.01.2007 20:01:09 SQL2310N  The utility could not generate statistics.  Error "-911"
    07.01.2007 20:01:09 was returned.
    07.01.2007 20:01:09
    07.01.2007 20:01:09 table: SAPR3.DB6PMHT
    07.01.2007 20:01:09 ERRORMESSAGE: Error -2310 in dmdb6upd.c(687):
    07.01.2007 20:01:09 SQL2310N  The utility could not generate statistics.  Error "-911"
    07.01.2007 20:01:09 was returned.
    07.01.2007 20:01:09
    07.01.2007 20:01:09 table: SAPR3.DB6PMHT_HD

  • Could not generate timestamp: handshake alert:  unrecognized_name using JRE 1.7.7

    I'm new to this so I could be making some mistakes, but I'm learning Fireworks and I'm using an example from Chapter 13 of the Classroom In A Book for CS5.  It creates an AIR application, but when I try to generate the application I get the following error.
    Could not generate timestamp: handshake alert:  unrecognized_name
    In my searches I came across a Flash Builder Help question and answer that lead me to a Flex Bug and Issue Management System report (http://bugs.adobe.com/jira/browse/FB-33243) that suggest this is a bug that effects JRE 1.7.
    It suggest the following work around:
    Uncheck the Timestamp check box in Package settings wizard and click finish.Application is successfully exported to Signed AIR package.
    OK, what? Does this Settings wizard exhist in Fireworks? Is there a workaroung?
    If I go back to JRE 1.6 does it work?
    Thanks,
    Dan

    Chris,
    Fireworks is supposed to be able to make AIR files.  There is a Create AIR entry under the Commands menu.  I filled in the information for self certification and everything looks good until the last step.  When Fireworks tries to make the AIR files I get the error message.
    Thanks,
    Dan

  • Could not generate flash file.

    Hi all,
    Hoping you can assist!
    I'm experiencing the error message when trying to export my dahsboard - "Could not generate the Flash file (SWF); the cause is not known".
    Things to note:
    *Only occurs when using multiple series on a combination chart (I.e. exports fine when only using a single data series, as soon as a add a second, it won't export.
    *Doesn't occur when i copy/paste values over formula (suggests a formula related issue)
    Has anyone experienced a similiar error message before? If so, what did you do to fix the problem.
    Happy to provide the .XLF is required.
    Cheers,
    Chris

    HI,
    Yes, we've used several date formulas. I have remove the =today() however we still have quite a few day/month/year formulas. Still having the same issue.
    The date formulas a required as the user needs to have the ability to adjust the data they are looking at by period (daily/monthly etc).
    It seems to work okay when the number of cells the graph is reffering to are reduced (approx 20). I currently have it looking at 31 days of data which is a requirment.
    And no add-ins are currently installed. This issue is repeated on 2 other pc's.
    Any other ideas?
    Thanks!

  • Could not generate Codec class

    I am new to webservices.
    My build file looks as follows:
    <project name="buildWebservice" default="ear" basedir="..">
    <target name="ear">
    <servicegen
    destEar="${staging.application.dir}/${project.name}.ear"
    contextURI="IEC"
    warName="${project.name}.war">
    <classpath>
    <pathelement path="${staging.application.dir}/${project.name}.jar"/>
    <fileset dir="${lib.dir}">
    <include name="**/*.jar"/>
    <include name="**/*.zip"/>
    </fileset>
    <pathelement path="${weblogic.jar}"/>
    </classpath>
    <service
    ejbJar="${staging.application.dir}/ejb_${project.name}.jar"
    targetNamespace="http://www.bridgebuild.com/webservices/basic/statelesSession"
    serviceName="Controller"
    serviceURI="/Controller"
    generateTypes="True"
    expandMethods="True"
    style="rpc" >
    </service>
    </servicegen>
    </target>
    </project>
    I could not generate the ControllerCode class. I mean Seralizer and Deserializer
    factory.
    I keep getting following error:
    WARNINIG: Unable to find a javaType for the xmlType:['http://www.bridgebuild.com/webservices/basic/statelesSession']:Controller.
    Make sure that you have registered this xml type in the type mapping
    Using SOAPElement instead
    WARNINIG: Unable to find a javaType for the xmlType:['http://www.bridgebuild.com/webservices/basic/statelesSession']:Controller.
    Make sure that you have registered this xml type in the type mapping
    Using SOAPElement instead
    javax.xml.rpc.JAXRPCException: failed to invoke operation. Error in the soap layer
    (jaxm); nested exception is: Message[ failed to serialize xml:weblogic.xml.schema.binding.SerializationException:
    mapping lookup failure. class=interface javax.xml.soap.SOAPElement class context=TypedClassContext{schemaType=['http://www.brdigebuild.com/webservices/basic/statelesSession']:Controller}]StackTrace[
    javax.xml.soap.SOAPException: failed to serialize xml:weblogic.xml.schema.binding.SerializationException:
    mapping lookup failure. class=interface javax.xml.soap.SOAPElement class context=TypedClassContext{schemaType=['http://www.bridgebuild.com/webservices/basic/statelesSession']:Controller}
    Any help will be appreciated.
    Thanks
    ---Radhe

    Hi
    Looks like you are using a Dynamic client to invike the service. You have to
    register the codecs in the TypeMappingRegistry.
    Look at the example at http://manojc.com sample25
    Ajay
    "Radhe" <[email protected]> wrote in message
    news:[email protected]...
    >
    I am new to webservices.
    My build file looks as follows:
    <project name="buildWebservice" default="ear" basedir="..">
    <target name="ear">
    <servicegen
    destEar="${staging.application.dir}/${project.name}.ear"
    contextURI="IEC"
    warName="${project.name}.war">
    <classpath>
    <pathelementpath="${staging.application.dir}/${project.name}.jar"/>
    <fileset dir="${lib.dir}">
    <include name="**/*.jar"/>
    <include name="**/*.zip"/>
    </fileset>
    <pathelement path="${weblogic.jar}"/>
    </classpath>
    <service
    ejbJar="${staging.application.dir}/ejb_${project.name}.jar"
    targetNamespace="http://www.bridgebuild.com/webservices/basic/statelesSessio
    n"
    serviceName="Controller"
    serviceURI="/Controller"
    generateTypes="True"
    expandMethods="True"
    style="rpc" >
    </service>
    </servicegen>
    </target>
    </project>
    I could not generate the ControllerCode class. I mean Seralizer andDeserializer
    factory.
    I keep getting following error:
    WARNINIG: Unable to find a javaType for thexmlType:['http://www.bridgebuild.com/webservices/basic/statelesSession']:Con
    troller.
    Make sure that you have registered this xml type in the type mapping
    Using SOAPElement instead
    WARNINIG: Unable to find a javaType for thexmlType:['http://www.bridgebuild.com/webservices/basic/statelesSession']:Con
    troller.
    Make sure that you have registered this xml type in the type mapping
    Using SOAPElement instead
    javax.xml.rpc.JAXRPCException: failed to invoke operation. Error in thesoap layer
    (jaxm); nested exception is: Message[ failed to serializexml:weblogic.xml.schema.binding.SerializationException:
    mapping lookup failure. class=interface javax.xml.soap.SOAPElement classcontext=TypedClassContext{schemaType=['http://www.brdigebuild.com/webservice
    s/basic/statelesSession']:Controller}]StackTrace[
    >
    javax.xml.soap.SOAPException: failed to serializexml:weblogic.xml.schema.binding.SerializationException:
    mapping lookup failure. class=interface javax.xml.soap.SOAPElement classcontext=TypedClassContext{schemaType=['http://www.bridgebuild.com/webservice
    s/basic/statelesSession']:Controller}
    >
    >
    Any help will be appreciated.
    Thanks
    ---Radhe

  • Could not generate stub objects for web service invocation in ColdFusion

    I was able to call the services on the development box - windows server without any problem at all, everything was working fine but the moment i uploaded to a linux box production server I get this error. "Could not generate stub objects for web service invocation in ColdFusion"
    What could be the cause of this problem, i have googled a lot but no solution yet any ideas.

    Let me make it simple:
    1. Server A is our development server.- hosted inhouse with coldfusion installed.
    2. Server B is our production server - a linux server with coldfusion installed hosted on the internet
    3. Server C is a third party server containing the webservice - this is a windows server with .net
    coldfusion is installed on Server A, the code works here and can connect to server C without any problem. It gets the required respone
    but when the code was uploaded to server c it gives the error when we run it.
    now i tried just a simple code which works fine on server A below:
    <cfinvoke webservice="http://www.webservicex.net/CurrencyConvertor.asmx?WSDL" method="ConversionRate" returnvariable="ConversionRateResult">
        <cfinvokeargument name="FromCurrency" value="EUR" />
        <cfinvokeargument name="ToCurrency" value="USD" />
    </cfinvoke>
    <cfdump var="#ConversionRateResult#" />
    But when i uploaded it to server C: it returns the error
    Cannot generate stub objects for web service invocation.
    Name: http://www.webservicex.net/CurrencyConvertor.asmx?WSDL. WSDL: http://www.webservicex.net/CurrencyConvertor.asmx?WSDL. java.io.FileNotFoundException: /opt/coldfusion8/stubs/WS728929035/NET/webserviceX/www/Currency.java (No such file or directory) It is recommended that you use a web browser to retrieve and examine the requested WSDL document to ensure it is correct. If the requested WSDL document cannot be retrieved or is dynamically generated, it is likely that the target web service has programming errors.
    The error occurred in /home/works/public_html/currency.cfm: line 7
    5 :     <cfinvokeargument name="FromCurrency" value="EUR" />
    6 :
    7 :     <cfinvokeargument name="ToCurrency" value="USD" />
    8 :
    9 : </cfinvoke>
    Now if you try the preceeding code on a windows environment  it works fine but the moment you put in the in the linux environment it generates this error
    I feel that the error may actually be :
    java.io.FileNotFoundException: /opt/coldfusion8/stubs/WS728929035/NET/webserviceX/www/Currency.java (No such file or directory)
    but i am clueless as to what to do next
    Ok so I tried the wget command on the linux
    this is what i got
    -bash-3.2# wget http://www.webservicesx.net/CurrencyConvertor.asmx?WDSL
    --2011-07-02 23:23:42--  http://www.webservicesx.net/CurrencyConvertor.asmx?WDSL
    Resolving www.webservicesx.net... 216.8.179.25
    Connecting to www.webservicesx.net|216.8.179.25|:80... connected.
    HTTP request sent, awaiting response... 403 Forbidden
    2011-07-02 23:23:43 ERROR 403: Forbidden.

  • Java.sql.SQLException: Could not generate the DTD because..

    I am trying to reverse an XML file and running into the following exception:
    java.sql.SQLException: Could not generate the DTD because the file could not be created. Verify that you have write permission in the directory.
    I have permission to the directory, so I suspect something else is causing this. I saw in another thread that file name length sometimes caused this. I tried that approach and it did not help.
    I am trying to get data from an oracle table and put it in an XML file using an interface.
    I have my interface set to use an oracle source table and an XML target. My LKM is SQL to SQL and my IKM is SQL Control Append. I have staging area different from target set.
    My model (for the XML file) has technology set to XML, uses the SnpsXML jdbc driver and I use the following parameters in my file path: f, d, s, dp. This tests successfully.
    I am trying reverse the xml file using standard reverse.
    I am running this on a remote agent.
    I am using ODI 10.1.3.5.5
    Thank you for any help you can provide me.
    Edited by: user13279807 on Oct 19, 2010 11:44 AM

    The exact error message I recieved was the following:
    The Technology or the Driver used does not support Reverse Engineering.
    java.sql.SQLException: Could not generate the DTD because the file could not be created. Verify that you have write permission in the directory.
    Details:
    java.sql.SQLException: Could not generate the DTD because the file could not be created. Verify that you have write permission in the directory.
         at com.sunopsis.jdbc.driver.xml.bw.a(bw.java:810)
         at com.sunopsis.jdbc.driver.xml.bw.<init>(bw.java:450)
         at com.sunopsis.jdbc.driver.xml.bx.b(bx.java:292)
         at com.sunopsis.jdbc.driver.xml.bx.a(bx.java:270)
         at com.sunopsis.jdbc.driver.xml.SnpsXmlDriver.connect(SnpsXmlDriver.java:110)
         at com.sunopsis.sql.SnpsConnection.v(SnpsConnection.java)
         at com.sunopsis.sql.SnpsConnection.a(SnpsConnection.java)
         at com.sunopsis.sql.SnpsConnection.testConnection(SnpsConnection.java)
         at com.sunopsis.dwg.reverse.Reverse.a(Reverse.java)
         at com.sunopsis.dwg.reverse.Reverse.a(Reverse.java)
         at com.sunopsis.dwg.reverse.Reverse.a(Reverse.java)
         at com.sunopsis.dwg.reverse.Reverse.getMetaData(Reverse.java)
         at com.sunopsis.graphical.frame.a.ip.a(ip.java)
         at com.sunopsis.graphical.frame.a.ip.a(ip.java)
         at com.sunopsis.graphical.frame.a.hq.b(hq.java)
         at com.sunopsis.graphical.tools.utils.swingworker.v.call(v.java)
         at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)
         at com.sunopsis.graphical.tools.utils.swingworker.l.run(l.java)
         at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
         at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
         at java.lang.Thread.run(Thread.java:619)

  • Could not generate the flash file(SWF)

    Hi all,
    I am working with a Dashboard having a GMap plugin and it was working fine on BO server.
    But now the plugin has been changed from GMap to CMaps plugin. I am able to download the same dashboard from BO Server to my desktop.
    The snapshot of the warning I get while downloading the dashboard has been attached.
    When downloaded from server, in place of displaying map on GMap plugin I get a warning "Invalid request this request is invalid" but when i open its properties the warning goes and the map appears back.
    Then I tried to upload the same dashboard on BO Server and I get an error "Could not generate the flash file(SWF)...". The snapshot of the same has been attached.
    I am unable to do any modification on this Dashboard.
    Regards

    Hi,
    In your discussion,you have downloaded the dashboard file from the BO server to your desktop.
    You can export the dashboard to BO Server in SWF format.But how can you download the physical dashboard file from BO server.Is it possible?
    Do the changes in .xlf physical file and export the .xlf file to BO server as File-->Save to platform.
    Regards,
    Venkat P

  • Could not generate DH keypair error

    hi,
    My coding was running fine with JDK 1.41.3 but when i am trying to use jdk 1.5 its giving me an error
    "RuntimeException : Cound not generate DH keypair: in the method call sslSock.startHandshake();
    what could cause this ?

    Did you get any replies to this? If so, can you pass it along?
    We are having the same issue. Everything was fine with 1.4. With 1.5, on the server side, we get the following error:
    javax.net.ssl.SSLException: Received fatal alert: internal_error
    The server code is:
    SSLServerSocket ss = null;
    try {
    KeyManagerFactory kmf;
    KeyManager[] km;
    KeyStore ks;
    TrustManagerFactory tmf;
    TrustManager[] tm;
    SSLContext sslc;
    // Create a keystore that will read the JKS (Java KeyStore)
    // file format which was created by the keytool utility.
    ks = KeyStore.getInstance("JKS");
    // Load the keystore object with the binary keystore file and
    // a byte array representing its password.
    ks.load(url.openStream(), keystorepass);
    // Gives us a factory for key managers that will let
    // us handle the asymetric keys we created earlier.
    kmf = KeyManagerFactory.getInstance("sunx509");
    // Initialize the key manager factory with the keystore object,
    // again using the same password for security since it is going to
    // access the private key.
    kmf.init(ks, keystorepass);
    // Now we can get the key managers from the factory, since it knows
    // what type we are using now.
    km = kmf.getKeyManagers();
    // Next, create a trust manager factory using the same algorithm.
    // This is to avoid using the certificates in cacerts that
    // represent an authentication security risk.
    tmf = TrustManagerFactory.getInstance("sunx509");
    // ...then initialize it with the keystore object. This time we don't
    // need the keystore password. This is because trusted certificates
    // are not a sensitive element in the keystore, unlike the
    // private keys.
    tmf.init(ks);
    // Once that's initialized, get the trust managers from the factory.
    tm = tmf.getTrustManagers();
    // Almost done, we need a context object that will get our
    // server socket factory. We specify TLS to indicate that we will
    // need a server socket factory that supports SSL.
    sslc = SSLContext.getInstance("TLS");
    // Initialize the context object with the key managers and trust
    // managers we got earlier. The third parameter is an optional
    // SecureRandom object. By passing in null, we are letting the
    // context object create its own.
    sslc.init(km, tm, null);
    // Finally, we get the ordinary-looking server socket factory
    // from the context object.
    ServerSocketFactory ssf = sslc.getServerSocketFactory();
    SSLServerSocket serversocket = (SSLServerSocket)
    ssf.createServerSocket(port);
    serversocket.setNeedClientAuth(true);
    ss = serversocket;
    } catch (Exception e) {
    SeedServer._logger.error("Unable to create server socket:" + e.getMessage());
    System.exit(-1);
    while(true) {
    SSLSocket socket = null;
    try {
    socket = (SSLSocket) ss.accept();
    System.out.println("Accepted connection from " +
    socket.getInetAddress().getHostAddress() +
    ":" + socket.getPort());
    handleConnection(socket.getInputStream(), socket.getOutputStream());
    } catch (SocketTimeoutException ste) {
    // Error message
    } catch (SocketException se) {
    // Error message
    } catch (Exception e) {
    // Error message -- This is the one thats triggered
    } catch (Throwable t) {
    // Error message
    } finally {
    try {
    if (socket != null)
    socket.close();
    catch (Exception e) {
    The client code is:
    SSLSocketFactory ssf = null;
    try {
    KeyManagerFactory kmf;
    KeyStore ks;
    TrustManagerFactory tmf;
    SSLContext sslc;
    kmf = KeyManagerFactory.getInstance("sunx509");
    ks = KeyStore.getInstance( "JKS" );
    ks.load(url.openStream(), keystorepass);
    kmf.init(ks, keystorepass);
    tmf = TrustManagerFactory.getInstance("sunx509");
    tmf.init(ks);
    sslc = SSLContext.getInstance("TLS");
    sslc.init(kmf.getKeyManagers(), tmf.getTrustManagers(), null);
    // The process is different from here on the client. Instead of
    // getting a ServerSocketFactory, we ask for a SocketFactory from
    // the SSL context.
    ssf = sslc.getSocketFactory();
    } catch (Exception e) {
    System.out.println("Unable to initialize SSL parameters");
    System.exit(-1);
    }

Maybe you are looking for