Message send failed: SSL implementation not available

Objective: to Jdev version 10.1.3 generate a client proxy for a given URL / wsdl and deploy to Oracle 10q
for use in PL \ SQL package. The problem it is necessary to establish an SSL connection.
After generating the client created AgentConnectClient class
/ / SSL
System.setProperty("ssl.SocketFactory.provider","oracle.security.ssl.OracleSSLSocketFactoryImpl");
System.setProperty("ssl.ServerSocketFactory.provider","oracle.security.ssl.OracleSSLServerSocketFactoryImpl");
System.setProperty("java.protocol.handler.pkgs","HTTPClient");
System.setProperty ("oracle.wallet.location", "/ etc / ORACLE / WALLETS / oracle");
System.setProperty ("oracle.wallet.password", "passw");
/ / Client
c = new AgentConnectClient ();
/ / end_point = "https:// ....";
c.setEndpoint (end_point);
CityListRequest requst = new CityListRequest ();
CityListResponse response = new CityListResponse ();
requst.setTimeStamp (Calendar.getInstance ());
requst.setApiVersion (apiVersion);
requst.setMaxRowsToReturn (new BigInteger (maxRowsToReturn.toString ()));
/ / request - response
response = c.cityList (requst);
Here there is a bug
; Nested exception is:
HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: SSL implementation not available
Can anyone help, any ideas welcome - thank you.
Edited by: tyoma on Oct 6, 2011 6:52 PM

I also have that error for days and still no answer from java people here. I don't think they don't know really what they are talking about even people from sun don't know how to solve this problem.

Similar Messages

  • SSL implementation not available ... Help!

    Using WLS 7.0 SP2 on HP-UX and when attempting to establish an outoing SSL connection
    I receive an "SSL implementation not available" exception.
    In the International version of WLS 7.0 I am able to establish the SSL connection,
    but when the same application is loaded into the same version of the Domestic
    WLS, it produces the exception.
    Usually I expect that exception when there is no appropriate CSP (Cryptographic
    Service Provider) entry in JAVA_HOME/jre/lib/security/java.security? How does
    one configure a Third Party CSP (Cryptographic Service Provider) for use in WLS?
    I am trying to use the Sun CSP.
    The code snippet that works on International WLS but not in Domestic WLS is below:
    String target = "https://localhost/testApp/NotificationServlet";
    URLConnection urlc = null;
    URL targetWebService;
    // load input file
    // Construct the URL using the HTTPS URL stream handler
    targetWebService = new URL(null, target, new Handler());
    java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
    urlc = targetWebService.openConnection();
    urlc.setRequestProperty("Content-Type" , "text/xml" ) ;
    ((HttpURLConnection)urlc).setRequestMethod("POST") ; // It's a post request
    urlc.setDoOutput(true);
    urlc.setDoInput(true);
    OutputStream os = urlc.getOutputStream() ;
    os.write ( buf ) ;
    os.flush() ;
    os.close() ;
    } catch (IOException ioex) {
    System.out.println("PBM_APPLICATION_0252 Unable to connect to " + target
    + " " + ioex.getMessage());
    } catch (Exception ex) {
    System.out.println("PBM_APPLICATION_0252 Unable to connect to " + target
    + " " + ex.getMessage());
    Thanks.

    In 7.0 SSL implementation used by weblogic tries to use JCE provider before defaulting
    to its own. So, you should be able to make it use Sun's provider by moving it
    in front in java.security file, or doing the same through api. In any case, even
    when no JCE provider is configured, it should not fail. One of the reasons it
    could fail, though, is if you do not have proper SSL license (i.e. trying to do
    domestic strength encryption while having export license), but I think the error
    message would be different in this case.
    Are you passing weblogic.net.https.Handler to URL constructor? If yes, you can
    try to set ssl debug flags on to get more info about the failure: -Dssl.debug=true
    -Dweblogic.StdoutDebugEnabled=true
    Pavel.
    "L Selleck" <[email protected]> wrote:
    >
    Using WLS 7.0 SP2 on HP-UX and when attempting to establish an outoing
    SSL connection
    I receive an "SSL implementation not available" exception.
    In the International version of WLS 7.0 I am able to establish the SSL
    connection,
    but when the same application is loaded into the same version of the
    Domestic
    WLS, it produces the exception.
    Usually I expect that exception when there is no appropriate CSP (Cryptographic
    Service Provider) entry in JAVA_HOME/jre/lib/security/java.security?
    How does
    one configure a Third Party CSP (Cryptographic Service Provider) for
    use in WLS?
    I am trying to use the Sun CSP.
    The code snippet that works on International WLS but not in Domestic
    WLS is below:
    String target = "https://localhost/testApp/NotificationServlet";
    URLConnection urlc = null;
    URL targetWebService;
    // load input file
    // Construct the URL using the HTTPS URL stream handler
    targetWebService = new URL(null, target, new Handler());
    java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
    urlc = targetWebService.openConnection();
    urlc.setRequestProperty("Content-Type" , "text/xml" ) ;
    ((HttpURLConnection)urlc).setRequestMethod("POST") ; // It's a
    post request
    urlc.setDoOutput(true);
    urlc.setDoInput(true);
    OutputStream os = urlc.getOutputStream() ;
    os.write ( buf ) ;
    os.flush() ;
    os.close() ;
    } catch (IOException ioex) {
    System.out.println("PBM_APPLICATION_0252 Unable to connect
    to " + target
    + " " + ioex.getMessage());
    } catch (Exception ex) {
    System.out.println("PBM_APPLICATION_0252 Unable to connect
    to " + target
    + " " + ex.getMessage());
    Thanks.

  • Secured webservice java net socketexception ssl implementation not avail

    Hi all,
    i am trying to call a secured webservice (which has authentication and trusted certificate) from plsql by using a java stub generated using JDeveloper 10.1.
    I called the java method using a wrapper procedure for the java class in plsql.
    While trying to call the webservice i am gettting the following exception
    SOAPException: faultCode=SOAP-ENV:Client; msg=Error opening socket: java.net.SocketException: SSL >>implementation not available; targetException=java.lang.IllegalArgumentException: Error opening socket: >>java.net.SocketException: SSL implementation not available
    *** 2010-02-06 18:32:14.155
    at org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:436)
    at org.apache.soap.messaging.Message.send(Message.java:125)
    The problem happens only when i call a secured webservice, whereas i can able to call the certificate less common webservices. Please provide a way to proceed.
    Thanks,
    Ramesh.R

    The name of this forum is "Database - General" not "Java and SOAP and stuff"
    Please change the subject to "Please Ignore" and post in the correct Java group.
    Thank you.

  • SocketException: SSL implementation not available

    Anyone every see this error? I have the three JSSE1.0.2 jar files in my classpath. Anyone know what I'm missing to get this error? I also get the same error running the Sample SSLSocketClient that comes with JSSE1.0.2

    even i am trying to invoke a servlet through java Client
    using an "https" protcol.i am using jsse 1.0.2 .i got all the three jar files installed in my classpath and my code all contains
    java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
         System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");
         System.setProperty("javax.net.ssl.trustStore","d:\\certificate");
    where d:\\certificate is the path where i have my client side certificate
    but i am getting the Error
    keyStore is :
    keyStore type is : jks
    init keystore
    init keymanager of type SunX509
    trustStore is: d:\certificate
    trustStore type is : jks
    default context init failed: java.security.PrivilegedActionException <<java.io.FileNotFoundExcepti
    on: d:\certificate (Access is denied)>>
    java.net.SocketException: SSL implementation not available
    at javax.net.ssl.DefaultSSLSocketFactory.createSocket([DashoPro-V1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.doConnect([DashoPro-V1.2-120198
    at com.sun.net.ssl.internal.www.protocol.https.NetworkClient.openServer([DashoPro-V1.2-120
    198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpClient.l([DashoPro-V1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpClient.<init>([DashoPro-V1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.<init>([DashoPro-V1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.connect([DashoPro-V1.2-1
    20198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.getOutputStream([DashoPr
    o-V1.2-120198])
    at JavaClient.main(JavaClient.java:57)
    can anybody help me out.
    I thank you guys for your help in advanced,
    Taimina

  • RE: SSL implementation not available (Https)

    I tried to use https from within a jsp with WLS 5.1
    using Suns JSSE but at least all i could produce
    was an SSL implementation not available exception.
    After converting the jsp to an application
    i get an:
    java.net.SocketException: Socket closed
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a
    Classpath and other installment procedures are the same,
    so i guess it has to do with wl environment.
    Besides:
    Does some support stuff read and care about this stuff?
    Or even anybody else?
    Bye, K

    You mean HTTPS from WLS to somewhere else?
    On your weblogic.policy file, add the following permissions ( the last
    two permissions shown below ):
    grant {
    // Permission "enableSubstitution" needed to run the WebLogic console
    permission java.io.SerializablePermission "enableSubstitution";
    // Permission "modifyThreadGroup" required to run the WebLogic Server
    < .... snip ..... >
    permission java.util.PropertyPermission "javax.net.ssl.trustStore",
    "read,write";
    permission java.util.PropertyPermission
    "java.protocol.handler.pkgs", "read,write";
    Then either dynamically or statically add the providers. I prefer the
    dynamic method:
    Security.addProvider(new sun.security.provider.Sun());
    Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
    Finally, enable HTTS:
    System.setProperty( "java.protocol.handler.pkgs",
    "com.sun.net.ssl.internal.www.protocol" );
    One more note. You can simply put all the jar files of JSSE within your
    WEB-INF/lib directory. No need to modify any CLASSPATH or any
    environment variables.
    John Salvo
    Klaas wrote:
    I tried to use https from within a jsp with WLS 5.1
    using Suns JSSE but at least all i could produce
    was an SSL implementation not available exception.
    After converting the jsp to an application
    i get an:
    java.net.SocketException: Socket closed
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a
    Classpath and other installment procedures are the same,
    so i guess it has to do with wl environment.
    Besides:
    Does some support stuff read and care about this stuff?
    Or even anybody else?
    Bye, K

  • SSL Implementation not available

    I am using JSSE1.0.2 and I am trying to create a URLConnection to a HTTPS Site. When I compile the application it throws an IO Exception that returns "SSL implementation not available". So far I have added the reference to the Security Provider in the java.security file, regenerated my keystore. Any Ideas?
    What I am trying to accomplish is a connection to a secured site and get the Response Code....sounds simple enough eh?

    you need to download a package for ssl support (jsse).
    follow the installation instructions( that will include how to make keys), and watch the examples, to see how to work with ssl sockets.

  • SSL implementation not available on WebSphere 4.0

    I am hitting a wall. I am trying to make an https connection from my servlet code on WebSphere 4.0 to another server. I've installed the jsse as an extension into the java/jre/lib/ext in the websphere directory. I've updated the java.security to the following:
    security.provider.1=sun.security.provider.Sun
    security.provider.2=com.sun.net.ssl.internal.ssl.Provider
    security.provider.3=com.ibm.crypto.provider.IBMJCE
    security.provider.4=com.ibm.jsse.JSSEProvider
    I have my cacerts configured with the cert for the other system imported. This is killing me because it works without a problem on ServletExec. The stack trace follows...
    java.net.SocketException: SSL implementation not available at javax.net.ssl.DefaultSSLSocketFactory.createSocket(Unknown Source) at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.doConnect([DashoPro-V1.2-120198]) at com.sun.net.ssl.internal.www.protocol.https.NetworkClient.openServer([DashoPro-V1.2-120198]) at com.sun.net.ssl.internal.www.protocol.https.HttpClient.l([DashoPro-V1.2-120198]) at com.sun.net.ssl.internal.www.protocol.https.HttpClient.([DashoPro-V1.2-120198]) at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.([DashoPro-V1.2-120198]) at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V1.2-120198]) at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V1.2-120198]) at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.connect([DashoPro-V1.2-120198]) at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.getOutputStream([DashoPro-V1.2-120198]) at testjsp_9._jspService(_test_jsp_9.java:100) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:142) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.servlet.dynacache.CacheHook.handleFragment(CacheHook.java:245) at com.ibm.servlet.dynacache.CacheHook.handleServlet(CacheHook.java:89) at com.ibm.servlet.dynacache.CacheManager.handleServlet(CacheManager.java:223) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:299) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:445) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:579) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:167) at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:297) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:110) at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472) at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012) at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:665) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:331) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:117) at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:124) at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:218) at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67) at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:122) at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:315) at com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:60) at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:323) at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252) at com.ibm.ws.util.CachedThread.run(ThreadPool.java:137)

    I think my problem is with the keystore/truststore....
    previous postings made it sound like you could do this programatically by pointing to truststore rather than adding certs to cacerts with keytool? In this case I a just running a main pgm from wsad-ide.
    Oh yeah, we are behind a firewall and use a proxy-server to get out. the settings provided were gotten from ie:tools:options:connections tab, lan settings; I am not sure if that is what is supposed to be supplied for https:proxyport and https:proxyhost parms.
    (I get the dreaded "untrusted server cert chain")
    thanks in advance for any help.
    -Rick V.
    public static void performTaskTest() {
    StringBuffer outXML = null;
    StringBuffer url = null;
    String responseString = null;
    StringBuffer responseSB = new StringBuffer();
    java.net.URL urlClass = null;
    com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection urlConn = null;
    java.io.DataOutputStream printout = null;
    java.io.DataInputStream input = null;
    try {
         responseSB = new StringBuffer();
         outXML = new StringBuffer();
         url = new StringBuffer();
         url.append("https://blah.com/blahServlet");
         System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");
         Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
         System.getProperties().put( "https.proxyHost", "www-proxy.myco.com" );
         System.getProperties().put( "https.proxyPort", "80" );
         System.setProperty("javax.net.ssl.trustStore","C:\\Program Files\\IBM\\Application Developer\\jre\\lib\\security\\cacerts");
         System.setProperty("javax.net.ssl.keyStorePassword","changeit");
         urlClass = new java.net.URL(url.toString());
         urlConn = (com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection) urlClass.openConnection();
         urlConn.setDoInput(true);
         urlConn.setDoOutput(true);
         urlConn.setUseCaches(false);
         urlConn.setRequestMethod("POST");
         urlConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
         printout = new java.io.DataOutputStream(urlConn.getOutputStream());
         StringBuffer content = new StringBuffer();
         content.append("?");
         content.append("&");
         content.append("XMLData");
         content.append("=");
         content.append(java.net.URLEncoder.encode("aaaaaaaaaa"));
         printout.writeBytes(content.toString());
         printout.flush();
         printout.close();
         java.io.BufferedReader outXMLBR =
                   new java.io.BufferedReader(
                        new java.io.InputStreamReader(urlConn.getInputStream()));
         String str;
         while (null != ((str = outXMLBR.readLine()))) {
              responseSB.append(str);
         outXMLBR.close();
              // the result!!!!
         System.out.println(responseSB);
    } catch (Throwable e) {
         System.out.println(e.getMessage());

  • SSL implementation not available on WebSphere 3.5.6

    with htttp datatransfer is successfully, with websphere url https: not. application use Sun jars.
    has this anywhere used under was 3.5.6 AE?

    with htttp datatransfer is successfully, with websphere url https: not. application use Sun jars.
    has this anywhere used under was 3.5.6 AE?

  • 6288 message sending failed. Sending not allowed.

    Hi,
    I have a 6288, and just recently it has been coming up with the message 'Message sending failed. Sending not allowed' randomly when I try to send a txt. (A similar msg appears if I try to make a call as well). All other functions appear to work normally. The only way to get the phone to send/call is to switch off then on again. I can receive txt/calls when the phone is like this. This morning it also said that 'sim card registration failed'. Any help will be appreciated.

    Have you tried updating your phone?
    If not I would recommend you to do so.
    Link here: http://europe.nokia.com/softwareupdate
    Before the update be sure you meet the system requirements to perform the action and don't forget to backup your data first.

  • HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: String index out of range: -7

    All -
    I'm new to consuming web services in JDeveloper. I'm using Oracle JDEV 10.1.3.3/OC4J.  I'm using this version since it is compatible with Oracle EBS 12.1.3.  My intent is to pull data from our third party recruitment app (Success Factors) and load that data into Oracle HRIS.  I'm already doing this through a .NET application.  I'm converting it to be a Java Concurrent Program in EBS.  The code listed below is a stub call to verify I'm on the right track. I created a JDeveloper Web Services proxy project.  I'm testing it locally on my windows desktop.  When I'm able to consume the service successfully, then I'll think about moving it to the EBS server.
    I'm getting the following error when I invoke the following service:
    HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: String index out of range: -7
    End point is: https://api4.successfactors.com/sfapi/v1/soap?wsdl
    Any help/assistance would be much appreciated. 
    Below is my code and output of my test:
    package emsc.oracle.apps.emscper.sfapi.proxy;
    import HTTPClient.HTTPConnection;
    import emsc.oracle.apps.emscper.sfapi.proxy.types.sfobject_sfapi_successfactors_com.IsValidSession;
    import emsc.oracle.apps.emscper.sfapi.proxy.types.sfobject_sfapi_successfactors_com.IsValidSessionResponse;
    import emsc.oracle.apps.emscper.sfapi.proxy.types.sfobject_sfapi_successfactors_com.Login;
    import emsc.oracle.apps.emscper.sfapi.proxy.types.sfobject_sfapi_successfactors_com.LoginResponse;
    import emsc.oracle.apps.emscper.sfapi.proxy.types.sfobject_sfapi_successfactors_com.LoginResult;
    import emsc.oracle.apps.emscper.sfapi.proxy.types.sfobject_sfapi_successfactors_com.Logout;
    import emsc.oracle.apps.emscper.sfapi.proxy.types.sfobject_sfapi_successfactors_com.LogoutResponse;
    import emsc.oracle.apps.emscper.sfapi.proxy.types.sfobject_sfapi_successfactors_com.SFCredential;
    import emsc.oracle.apps.emscper.sfapi.proxy.types.sfobject_sfapi_successfactors_com.SFParameter;
    import emsc.oracle.apps.emscper.sfapi.proxy.types.sfobject_sfapi_successfactors_com.Error;
    import java.io.File;
    import javax.xml.rpc.ServiceFactory;
    import java.util.ArrayList;
    import java.util.List;
    import java.util.Date;
    import javax.xml.ws.BindingProvider;
    import javax.xml.soap.SOAPException;
    import java.util.Map;
    import oracle.security.ssl.OracleSSLCredential;
    public class SFAPITest {
        // Declare members:      
        private String companyId;
        private String userName;
        private String password;
        private String developerKey;
        private Date   effDt;
        private String greaterThanEffDt;
        private String lessThanEffDt;
        // Declare constants:      
        final static private String breakLine = "+---------------------------------------------------------------------------+";
        final static private String format    = "yyyy-mm-dd";      
        private enum ReqId {
            PrimaryReq(25),
            PrimaryReqCEO(26),
            EmCarePrimary(27),
            RTI(28),
            EmCareClinical(29);
            private int reqId; 
            private ReqId() {
            private ReqId(int value) {
                reqId = value;
            public int getReqId() {
                return reqId;
        // Getters and Setters:  
        protected String getCompanyId() {
           return this.companyId;
        protected void setCompanyId(String value) {
           this.companyId = value;                 
        protected String getUserName() {
           return this.userName;
        protected void setUserName(String value) {
           this.userName = value;                 
        protected String getPassword() {
           return this.password;
        protected void setPassword(String value) {
           this.password = value;                 
        protected String getDeveloperKey() {
           return this.developerKey;
        protected void setDeveloperKey(String value) {
           this.developerKey = value;                 
        protected Date getEffDt() {
            return this.effDt;
        protected void setEffDt(Date value) {
            this.effDt = value;                 
        protected String getGreaterThanEffDt() {
           return this.greaterThanEffDt;
        protected void setGreaterThanEffDt(String value) {
           this.greaterThanEffDt = value;                 
        protected String getLessThanEffDt() {
           return this.lessThanEffDt;
        protected void setLessThanEffDt(String value) {
           this.lessThanEffDt = value;                 
        public void runProgram()
            SFAPIService mySFAPIService;
            String CompletionText = "";
            String effDtStr2 = null;
        /* Code your program logic here.
        * Use getJDBCConnection method to get the connection object for any
        * JDBC operations.
        * Use CpContext provided commit,rollback methods to commit/rollback
        * data base transactions.
        * Don't forget to release the connection before returning from this
        * method.
        /* Call setCompletion method to set the request completion status and
        * completion text.
        * Status values are ReqCompletion.NORMAL,ReqCompletion.WARNING,
        * ReqCompletion.ERROR.
        * Use Completion text message of length 240 characters. If it is more
        * than 240 then full string will appear in log file and truncated 240
        * characters will be used as request completion text.
        try
            ServiceFactory factory = ServiceFactory.newInstance();
            mySFAPIService = (emsc.oracle.apps.emscper.sfapi.proxy.SFAPIService)factory.loadService(emsc.oracle.apps.emscper.sfapi.proxy.SFAPIService.class);      
            SFAPI api = mySFAPIService.getSFAPI();
           /// SFAPI api = new SFAPI();
            //Map<String, Object> requestContext = ((BindingProvider) api).getRequestContext();
            //requestContext.put(BindingProvider.SESSION_MAINTAIN_PROPERTY, true);
            System.out.println("ServiceName => " + mySFAPIService.getServiceName().toString());
            System.out.println("End Point   => " + mySFAPIService.getServiceName().toString());
            System.out.println(breakLine);
            // Authentication: Login to SFAPI:
            SFCredential credential = new SFCredential();
            // Fake credentials being passed in for this post:   
            credential.setCompanyId("XXX");
            credential.setUsername("XXX");
            credential.setPassword("XXX");
            credential.setDeveloperKey("XXX");
            HTTPConnection httpsConnection = null;       
            OracleSSLCredential _credential = new OracleSSLCredential();      
            _credential.setWallet("\\\\\\C:\\Program Files\\Java\\jdk1.6.0_33\\jre\\lib\\security", "ParkEstes3");
            /*System.setProperty("javax.net.ssl.trustStore","C:\\\\\OraHome_1\\jdev\\jdevbin\\jdk\\jre\\lib\\security\\keystore");
            System.setProperty("javax.net.ssl.trustStorePassword","changeit");  
            System.out.println(System.getProperty("javax.net.ssl.trustStore"));*/
            // SFParameter: Define a generic SFParameter List.  This is a necessary parameter
            // to invoking calls in SFAPI:      
             /*System.setProperty("javax.net.ssl.keyStore",
             "file:\\\C:\\jdk1.4.1\\jre\\lib\\security\\client.keystore");
             System.setProperty("javax.net.ssl.keyStorePassword","welcome");         */
            /*  System.setProperty("oracle.net.wallet_location",
                          "(SOURCE=(METHOD=file)(METHOD_DATA=(DIRECTORY=\\\C:\Users\dparrish\Oracle\WALLETS)))");  // (2)                     */
            File kstore = new File("C:\\OraHome_1\\jdev\\jdevbin\\jdk\\jre\\lib\\security\\jssecacerts");
            boolean exists = kstore.exists();
            if (!exists) {
                System.out.println("Keystore does not exist");
            else {
                System.out.println("Keystore does exist");
            System.setProperty("javax.net.ssl.trustStore", kstore.getAbsolutePath());
            System.setProperty("javax.net.ssl.trustStorePassword", "changeit");
            //System.setProperty("proxySet", "false");
            //System.setProperty("http.proxyHost", "127.0.0.1");
            //System.setProperty("http.proxyPort", "8080");
            System.out.println(kstore.getAbsolutePath());
            List<SFParameter> lst = new ArrayList<SFParameter>();
            SFParameter param = new SFParameter();
            param.setName("");
            param.setValue("");
            lst.add(param);      
            SFParameter[] sfParam = lst.toArray(new SFParameter[lst.size()]);
            Login login = new Login();
            try {
                login.setCredential(credential);
                System.out.println("1");
                login.setParam(sfParam);
                System.out.println("2");
                LoginResponse loginResponse = new  LoginResponse();
                LoginResult loginResult = new LoginResult();
                try {
                     loginResponse = api.login(login);               
                catch (Exception e ) {
                    System.out.println(e.getMessage());
                System.out.println("3");
                try {               
                     loginResult = loginResponse.getResult();
                catch (Exception e ) {
                    System.out.println(e.getMessage());
                System.out.println("4");
                IsValidSession vs = new IsValidSession();                  
                IsValidSessionResponse isValidSessionResponse = api.isValidSession(vs);
                System.out.println("5");
                if (isValidSessionResponse.isResult()) {
                     System.out.println("Session is valid");
                     System.out.println("Result => " + loginResult.getSessionId());
                     System.out.println(breakLine);              
                    Logout logout = new Logout();
                    LogoutResponse logoutResponse = api.logout(logout);
                    if (logoutResponse.isResult()) {
                         System.out.println("Logout of SFAPI Successful");
                    else {
                        System.out.println("Logout of SFAPI Unsuccessful");
                else {
                     System.out.println("Session is invalid");
                    List<Error> errors = new ArrayList<Error>();
                    for (int i = 0; i < loginResult.getError().length;  i++) {
                        errors.add(loginResult.getError()[i]);
                    for (int i = 0; i < errors.size(); i++) {
                         System.out.println("Error Indice   => " + i);
                         System.out.println("Error Code:    => " + errors.get(i).getErrorCode());
                         System.out.println("Error Message: => " + errors.get(i).getErrorMessage());
                         System.out.println(breakLine);                                                          
                    } // end for loop of SFObject errors
                } // end InvalidSession
            catch (Exception e)
                 System.out.println("Session Credential Exception");
                 System.out.println("Exception => " + e.getMessage());
                 System.out.println(breakLine);                   
        catch (Exception e)
            System.out.println("Parameter List Exception");
            System.out.println("Exception => " + e.getMessage());
            System.out.println(breakLine);
        }   // end runProgram
        // Constructor:
        public SFAPITest()  {
        } // end constructor
        public static void main (String args[]) {
            try
                SFAPITest test = new SFAPITest();        
                test.runProgram();
            catch (Exception e) {
                System.out.println("main exception => " + e.getMessage());
    } // SFAPITest
    Here is the output with trace:
    WARNING: Unable to connect to URL: https://api4.successfactors.com:443/sfapi/v1/soap due to java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: String index out of range: -7
    Session Credential Exception
    Exception => ; nested exception is:
        HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: String index out of range: -7
    +---------------------------------------------------------------------------+
    Process exited with exit code 0.

    The other end is throwing back a programming error.
    That might be because you are sending incorrect data and the other end fails to validate it.
    You might be able to guess based on your C# code.  But, since you are using soap one generic solution is available to you.
    - Get an http proxy interceptor like wireshark.
    - Run it while your C# app runs, collect the http requests from that.
    - Run it while running your java code, collect the http requests from that.
    Compare the two.

  • Why do I get message "back up disc is not available" for Time Machine?  It

    why do I get message "back up disc is not available" for Time Machine?  It's plugged in.

    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Enter the word "Starting" (without the quotes) in the String Matching text field. You should now see log messages with the words "Starting * backup," where * represents any of the words "automatic," "manual," or "standard." Note the timestamp of the last such message that corresponds to a failed backup. Now
    CLEAR THE WORD "Starting" FROM THE TEXT FIELD
    so that all messages are showning, and scroll back in the log to the time you noted. Select the messages timestamped from then until the end of the backup, or the end of the log if that's not clear. Copy them (command-C) to the Clipboard. Paste (command-V) into a reply to this message.
    If all you see are messages that contain the word "Starting," you didn't clear the text field.
    If there are runs of repeated messages, post only one example of each. Don't post many repetitions of the same message.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Some personal information, such as the names of your files, may be included — anonymize before posting.

  • 6230 message sending failed

    Hi - on Saturday I sent some texts and on Sunday my phone just kept saying "message sending failed" and it still won't send them. I have deleted all inbox and sent messages, rung my free number for help, tried different sim cards/my sim card in a different phone, all to no avail.
    Can anyone help please? I can't find an option to change/check the message centre number which is what the helpline said.
    TIA, Scootie
    Message Edited by scootie on 03-Jul-2008 01:04 PM
    Solved!
    Go to Solution.

    Maybe this thread may be of some use to you.
    Message Centre Numbers
    My posts are my opinion and in no way the direct views of Nokia.
    If my posts are helpful, please give me some KUDOS using the green star on the left.

  • Send to Color is not available in FCP

    Hi,
    Last year I installed final cut studio 2, and have FCP 6.0 and Color 1.0 installed on the same computer. When I go to the Send command on FCP, the option to send to Color is not available.
    I'd like to mess around with Color, but can't get any clips on it..
    Anyone had this problem or knows how to fix it ?
    Thanks !

    Do you mean...
    COLOR is not there at all in the "Send To.." pulldown tab... or
    it is greyed out?
    Can't help much in the first instance because its not in my experience base... might be a prefs or install issue. If its not offered, but is named, then its a case of selecting the open sequence.
    It is also possible to open COLOR separately, name a project, SAVE it, and have it become active. You should be able to navigate to a media directory in the SETUP/Shots dialogue, and import clips from there. Be sure to set the project fps rate before importing any media... that is a project deal breaker from the getgo. There are very few after-the-fact "sequence setting" options. After adding media, it is not possible to change the frame rate of the timeline. It was the first thing to check off in Final Touch before proceeding with anything else.
    Kind of like setting frame dominance and interlace in SHAKE. Immediately.
    jPo
    Message was edited by: JP Owens

  • Nokia 100 - Message Sending Failed

    Newbie mobile user, with Nokia 100 on Orange PAYG in the UK.
    Trying to send my first text message, the display shows "Message Sending Failed". Not sure if it's just me still finding my way round and not getting something quite right, or if there's something wrong and I need to change some setting or other?
    I've looked around and it seems maybe it might be something to do with a message centre number? I saw an Orange support page here for Nokia
    http://help.orange.co.uk/orangeuk/support/personal/401305
    with some instructions, but I'm not seeing what they give in bold so maybe the Nokia 100 has different menu/options/settings, and it isn't included in the list to the right of the help topic. I've also scanned Nokia help topics but again haven't seen anything specific to the Nokia 100 for this error message. There also doesn't seem to be a comprehensive manual for the 100, only a fairly basic user guide -- for other models there's a lot more detail about errors and troubleshooting.
    Any help appreciated... and please keep it simple 
    Solved!
    Go to Solution.

    Many thanks puigchild, but this...
    Messaging > Message settings (or msg. settings) > Text messages > Message centres
    is what I don't seem to see.
    From the main Menu I have these choices:
    Messages, Contacts, Call register, Settings, Clock, Radio, Reminders, Games, Extras, Orange Plus.
    I've been two ways from there...
    (1) Messages, where the options are:
    Create Message, Inbox, Sent Items, Drafts,  Chat, Picture messages, Distribution lists , Screened messages, Delete messages, Message counter, Message settings, Service com. editor.
    The only possibility from these (and in line with what you suggested) seems to be Message settings, and the options there are:
    Templates, Smileys, Signature, Sending profile, Font size, Delivery Reports, Reply via same centre, Character support, No. screening.
    It doesn't seem clear where to go next from these choices... from what I've seen from looking around, and again from what you've said, there should be an option for Text Messages, but there doesn't seem to be
    The only reference to a "centre" anywhere is in the option for "Reply via same centre", but I don't know what that means!
    (2) Settings (from the main menu), and the options there are:
    Tone settings, Display settings, Profiles, Time settings, Call settings, Phone settings, Cost settings, Security settings, Go to settings, Restore factory settings.
    Again I haven't been sure where to go but have explored a few and haven't found anything yet about Message Centre or specifically about text messages.

  • Nokia 1200-Message sending failed

    My Nokia 1200 is not sending texts. When I push 'send' the note: "Message sending failed" pops up immediately. Pls if anyone knows how to fix this problem I'll be eternally greatful!!! TY.

    Hi,
    i'm encountering the same problem on my Nokia 1200 (Type: RH-99) bought in Austria in January 2008. It is a great phone - everything i expect from a mobile!
    However, suddenly the phone shows me the message "Message sending failed" when i want to send a text message. I could not find any other problem.
    Of course i did some research, i tried to use another SIM-Card from a different provider, exact same error. I tried to follow the advise from 'cjlim' to order the networksettings from (my local) Nokiapage.
    I tried this from my local one: http://www.nokia.at/A4266257
    → it does not have my model listed (started with N2600)
    I tried it from the european page: http://europe.nokia.com/A4577224
    → it says it does not have software for my type
    i also know this thread Re: Manual for 1200 says you have to set a message center number in order to be able to text.
    fact is, there is no such option in N1200 and it worked befor with a new mobile without any settings to be made.
    thank you in advance for any hint!
    yours,
    Flo
    Message Edited by flomar on 26-May-2008 07:16 PM

Maybe you are looking for

  • I pod Problem.

    Hello, On my i pod by mistakenly I press restore. Now I lost all my folder & music from the i pod & i tune playlist. How can I get back all those music again. Please help me.   Windows XP Pro  

  • Pdfs and screenshots opened in Photoshop are appearing pixelated, or not displaying at all.

    Hi. I'm on a new iMac system. (iMac 27" retina - Yosemite OS X 10.10). Whenever I take a screenshot and open it up in Photoshop by using File/Open and locating the screenshot, it is appearing pixelated. The same thing is occurring when I try to open

  • CAN Workflow items in KM appear in the UWL

    Hi We are looking the features of the Universal Worklist and have configured SAP Business Workflow to appear in the UWL. Can all your workflow items in KM (Document Management) be configured so that the end user and one place to see all workflow item

  • Multiple Image File Upload for Creating Weblogs

    Maybe I just like pretty pictures more than most webloggers; but it seems like I spend a heck of a lot of time uploading images for my weblogs to SDN.  It would great if there was an easier way to do this.  Perhaps something as simple as uploading mo

  • Changing country - changing iTunes account

    I need help to make sure which direction I should take. I live in Sweden and move to the UK. I have an iTunes account with credit card, which I would like to change to a UK account in order to keep my Apple ID and not to create a new one. I learned t