Getting error: RC-50004 String index out of range when running adclonectx.pl

Hi,
I'm trying to clone a RAC database on the same host. I'm using the MOS note:
Cloning Oracle E-Business Suite Release 12 RAC-Enabled Systems with Rapid Clone ( Doc ID 559518.1  )
I run the command from Step 5.1.3:
perl adclonectx.pl ......
But getting error:
"RC-50004: Error occurred in CloneContext:
String index out of range: 38
ERROR: context creation not completed successfully."
From the Clone Context logfile:
PROMPT :
Number of DATA_TOP's on the Target System [3]
ANSWER :
1
PROMPT :
Target System DATA_TOP Directory 1
ANSWER :
+DATA/prod/datafile
ASM Path, not Validating: +DATA/prod/datafile
Creating ../data/stage/addbhomtgt.xml which will contain Target system database mount points.
StackTrace:
java.lang.StringIndexOutOfBoundsException: String index out of range: 38
         at java.lang.String.substring(String.java:1765)
         at oracle.apps.ad.context.CloneContext.gen_iFile(CloneContext.java:6681)
         at oracle.apps.ad.context.CloneContext.getInputFromUsers(CloneContext.java:1114)
         at oracle.apps.ad.context.CloneContext.doClone(CloneContext.java:601)
         at oracle.apps.ad.context.CloneContext.main(CloneContext.java:5260)
RC-50004: Error occurred in CloneContext:
String index out of range: 38
Context file creation not succesful
And workaround/solution will be much appreciated. Thanks very much.

FYI, I'm cloning on the same host as target. This is 2 node EBS RAC setup.
PATH is OLD source for contextfile.xml
Latest clone patches applied.
Here is the complete output from the log file...
[oracle@PPDBS11 bin]$ cat /u01/app/oracle/product/11.2.0/dbhome_1/appsutil/clone/bin/CloneContext_0908210110.log  
Using admin directory: /u01/app/oracle/product/11.2.0/dbhome_1/appsutil/clone/bin
#------Log File time stamp: 0908210110------------
# $Header: CloneContext.java 120.92.12010000.26 2013/05/06 12:02:01 mmanku ship $
# Running on          - ppdbs11
# Source Host         - null
# Domain Name         - <xxxx.yyyy.zz>
# Context Location    - /u01/app/oracle/product/11.2.0/dbhome_1/appsutil/PREPROD1_ppdbs11.xml
# Context Type        - null
# Context Template    - /u01/app/oracle/product/11.2.0/dbhome_1/appsutil/template/adxdbctx.tmp
# Clone Stage Area    - null
# Pairs File          - /u01/app/oracle/product/11.2.0/dbhome_1/appsutil/clone/pairsfile.txt
# Destination Context - null
# Validation          - false
# Platform Migration  - false
# no prompt           - false
Variables extracted from pairsfile: /u01/app/oracle/product/11.2.0/dbhome_1/appsutil/clone/pairsfile.txt
****************************************************/n
   s_undo_tablespace  =  APPS_UNDOTS1
   s_dbClusterInst  =  2
   s_db_oh  =  /u01/app/oracle/product/11.2.0/dbhome_1
****************************************************   PROMPT :
Target System Hostname (virtual or normal) [ppdbs11]
ANSWER :
ppdbs11   PROMPT :
It is recommended that your inputs are validated by the program.
However you might choose not to validate them under following circumstances:           -If cloning a context on source system for a remote system.
         -If cloning a context on a machine where the ports are taken and
          you do not want to shutdown the services at this point.
         -If cloning a context but the database it needs to connect is not available.   Do you want the inputs to be validated (y/n) [n] ?
ANSWER :
n   PROMPT :
Target Instance is RAC (y/n) [y]
ANSWER :
y   PROMPT :
Target System Database Name
ANSWER :
PROD   PROMPT :
     Host name [ppdbs11]
ANSWER :
ppdbfmisscan   PROMPT :
     Virtual Host name [null]
ANSWER :
ppdbs11-vip   PROMPT :
     Instance number [1]
ANSWER :
1   PROMPT :
     Private interconnect name [ppdbs11]
ANSWER :
ppdbs11-priv   PROMPT :
Target System Base Directory
ANSWER :
/u01/app/oracle   PROMPT :
Oracle OS User [oracle]
ANSWER :
oracle   PROMPT :
Oracle OS Group [oinstall]
ANSWER :
oinstall   PROMPT :
Target System utl_file_dir Directory List
ANSWER :
/usr/tmp/PROD   PROMPT :
Number of DATA_TOP's on the Target System [3]
ANSWER :
1   PROMPT :
Target System DATA_TOP Directory 1
ANSWER :
+DATA/prod/datafile
ASM Path, not Validating: +DATA/prod/datafile
Creating ../data/stage/addbhomtgt.xml which will contain Target system database mount points.  
StackTrace:
java.lang.StringIndexOutOfBoundsException: String index out of range: 38
         at java.lang.String.substring(String.java:1765)
         at oracle.apps.ad.context.CloneContext.gen_iFile(CloneContext.java:6687)
         at oracle.apps.ad.context.CloneContext.getInputFromUsers(CloneContext.java:1120)
         at oracle.apps.ad.context.CloneContext.doClone(CloneContext.java:601)
         at oracle.apps.ad.context.CloneContext.main(CloneContext.java:5266)   RC-50004: Error occurred in CloneContext:
String index out of range: 38
Context file creation not succesful

Similar Messages

  • Workspace Error executing query: String index out of range: -39

    I am running a Financial Reporting Book.
    When running this book, I am receiving the following error.
    Error executing query: String index out of range: -39
    What does this mean?
    And how do I fix this?
    Thank you,
    Dan

    This is happening to a single Financial Reporting book.
    Oracle suggested changing the Data Query Optimization settings.
    I had checked on Essbase Queries Use MDX on all the reports being called into the book.
    Oracle suggested that I uncheck this box.
    This did not do the trick.
    I ran the reports individually, and they all worked.
    I am stumped.

  • Curve 8310 error Unc.Exception: string index out of range: 0

    I'm getting the following error message: "Uncaught Exception: string index out of range: 0" and no way to clear that message.
    Could someone help me to fix it? Actually the only way to get BB-8310 back working is remove the battery.
    Thanks in adavance
    Solved!
    Go to Solution.

    Hi and Welcome to the Community!!
    There's pretty much no diagnosing those -- they are the equivalent of the random errors in Windows for which tracing the root cause is fruitless. Basically, these are the last out in the programming code -- some event occurred for which there is no handler in the code. The fix is a code update that handles the event...but, again, knowing what the event is is pretty much impossible. So, there are a few things to try:
    Sometimes, the code simply becomes corrupt and needs to be refreshed -- just like a reboot:
    Anytime random strange behavior or sluggishness creeps in, the first thing to do is a battery pop reboot. With power ON, remove the back cover and pull out the battery. Wait about a minute then replace the battery and cover. Power up and wait patiently through the long reboot -- ~5 minutes. See if things have returned to good operation. Like all computing devices, BB's suffer from memory leaks and such...with a hard reboot being the best cure.
    If it won't boot up cleanly, then you may need to try Safe Mode:
    KB17877 How to start a BlackBerry smartphone in safe mode
    There might be an updated code set from the carrier -- check them via this portal:
     http://na.blackberry.com/eng/support/downloads/download_sites.jsp
    The toughest possible cause is a badly behaving app. To find it, there are a couple of options. One is to see if you can read the log file:
    Go to the home screen. Hold down the "alt" key and type 'lglg'. (You will not see anything while you type).This will bring up the log file. Scroll down (probably many pages) untill you see a line that says 'uncaught execption'. Click on this line. The name of the app will be in the info. Alternative methods for bringing up the logs are in this KB:
    KB05349How to enable, access, and extract the event logs on a BlackBerry smartphone
    The other method is to remove apps one at a time, waiting a while in between (I usually recommend a week), until the problem ceases...thereby discovering the offending app. Still another method is to reload the BB OS cleanly, leaving some time between adding other apps onto the BB so as to be able to determine exactly which one is the cause.
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Error Mapping XI:  String index out of range.

    Hi Experts,
    I have a problem with the mapping in XI. The transformation of data is very complex (see below) for field HBKID. I'm not having understanding the process of mapping is performed for the field HBKID. The creation of the transformation was performed using the graphical method for mapping in XI for this case. I think the person who created this data transformation didn't know that could be used USER DEFINED FUNCTION. Could you explain in more detail this MAPPING?
    In the test displays the message: RuntimeException in Message-Mapping transformation: Runtime exception during processing target field mapping /ns1:ZSD000TF01/ZVBAP/item[2]/HBKID.
    The message is: Exception:java.lang.StringIndexOutOfBoundsException: String index out of range: 3]
    Edited by: Rafael Sá on Feb 9, 2010 10:40 PM

    Hi Experts,
    So, I've done several tests on the tab of tests with various XML and I can't understand reason of the error in MAPPING.
    I'll detail a little more the problem:
    The processing of the interface is made by many items.
    MAPPING ERROR:
    When the interface processes a first item with the information below:
    CHAVE_BANCO = EMPTY
    MEIO_PGTO = D
    TP_CARTAO_CREDITO = EMPTY
    AND a second item with the information below:
    CHAVE_BANCO = 314/3705
    MEIO_PGTO = W
    TP_CARTAO_CREDITO = EMPTY
    The error occurs: The message is: Exception:java.lang.StringIndexOutOfBoundsException: String index out of range: 3]
    MAPPING OK:
    But when the processing is performed inversely, the MAPPING is done correctly.
    When the interface processes a first item with the information below:
    CHAVE_BANCO = 314/3705
    MEIO_PGTO = W
    TP_CARTAO_CREDITO = EMPTY
    AND a second item with the information below:
    CHAVE_BANCO = EMPTY
    MEIO_PGTO = D
    TP_CARTAO_CREDITO = EMPTY
    I don't understand logic mapping for the field HBKID.

  • Error "String index out of range:6" while opening Webi fromBI java Lauchpad

    Dear All,
    I have installed BO 4.0 recently. When I open BI Java Lauch Pad URL I can see Web Intelligence under the applications list. When I click it, a pop up getting opened with message " String index out of range: 6" When I click "Details" icon in the pop up, it is showing this description.
    Detected from bootclasspath: C:
    PROGRA~1
    Java
    jre7
    lib
    deploy.jar
    Java Plug-in 10.0.0.147
    Using JRE version 1.7.0-b147 Java HotSpot(TM) Client VM
    User home directory = C:\Users\RT89363
    c:   clear console window
    f:   finalize objects on finalization queue
    g:   garbage collect
    h:   display this help message
    l:   dump classloader list
    m:   print memory usage
    o:   trigger logging
    q:   hide console
    r:   reload policy configuration
    s:   dump system and deployment properties
    t:   dump thread list
    v:   dump thread stack
    x:   clear classloader cache
    0-5: set trace level to <n>
    I have tried this in a machine where i logged as a normal user. But when i open the same link from a machine where i logged as administrator, it is working fine.
    Could any one help me in sorting out the issue ??
    Thanks in advance.
    Regards
    Ravi.

    Hi Ravi,
    the error is due to the componet JAVA(TM) 7 which is not supported.
    Better to run JAVA 6, I'm running the update 33, you can download it from http://www.oracle.com/technetwork/java/javase/downloads/jre6-downloads-1637595.html
    Remeber to remove JAVA &
    Go to control panel --> add remove programs and remove JAVA (TM) 7.
    It will solve the problem.
    Ciao,
    Massimo

  • Getting error java.lang.StringIndexOutOfBoundsException: String index out of range:

    Hi,
    I have a project in jdev 3.2 and i have migrated to jdev 9i.
    Once i run the project,in some of the pages i am getting the below error..The application runs fine in jdev 3.2 without any errors..
    Where can be the problem..
    Any help will be appreciated..
    500 Internal Server Error
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
         java.lang.String java.lang.String.substring(int, int)
         int oracle.jbo.html.jsp.datatags.ApplicationModuleTag.doStartTag()
         void jspautomate_html._TkeyautomateView__Edit._jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         [JSPAutomate_html/TkeyautomateView_Edit.jsp]
         void com.orionserver[Oracle9iAS (9.0.2.0.0) Containers for J2EE].http.OrionHttpJspPage.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
         void oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
         boolean com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.ApplicationServerThread, com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.EvermindHttpServletRequest, com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
         void com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(java.lang.Thread)
         void com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util.ThreadPoolThread.run()

    Sorry for the late reply.
    It is problably a problem with the configname attribute of the ApplicationModule tag which is wrong.
    Can you try to open the JSP file with the problem and look at the ApplicationModule tag setting.
    If you create a new ApplicationModule tag under it using the Component Palette, it will give you a clue to what setting is espected for the configname. Make sure to keep the same value for the "id" property.
    Charles.

  • PI 7.31 (single stack) posting to RFC configuration gives this error: om.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: String index out of range: 0 (raised by system extern ...

    Getting cryptic error while trying to post to a custom RFC from PI 7.31 single stack.
    com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: String index out of range: 0 (raised by system <extern>|pidevhost)
    Does anyone recognize this error and/or know of detailed instructions for registering custom RFCs in PI 7.31. I could possibly have configured the target wrong but no error says so.
    This is a File-->PI-->RFC scenario. The file processing is super simple and a configuration I have used successfully before. I would assume I'd get a different error if it couldn't parse the file.
    Jody

    Not shure if you already did but try getting some details with XPI Inspector. Also increasing log level for this category might help. You also may wanna check authorization (even if this should show with a different error text) in ECC using ST01.
    My guts feeling is that there is something wrong with payload / signature of RFC.
    Cheers
    Jens

  • MP Error: StringIndexOutOfBoundsException: String index out of range: -1

    Hi All,
    We are using PI 7.1 EHP1, Where in we would like to see the capabilty of User-Module for Conversion of IDoc Messages Between Flat and XML Formats. Gone thru the blog (/people/sap.user72/blog/2005/07/04/get-into-the-zone - Part 2) and maintained the necessary NWA configurations and maintained the necessary module parameters (SAPRelease, SourceJRA, TargetDestination) in Sender File Adapter.
    Now the file is not been picked by file adapter upon checking the Comm Channel Monitoring below error:
    MP: exception caught with cause java.lang.StringIndexOutOfBoundsException: String index out of range -1
    Any help would be highly appreciated.
    Thanks in advance

    Hi Ramani,
    I hope you must have found a solution on this, if not then kindly consider changing your source files, as this error corresponds to only one thing: i.e. DATA Issue. You need to correct the data which you providing to the module for conversion.
    I faced this problem and corrected it by just correcting my test file.
    Regards,
    Nipun Shedhani

  • 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.

  • String index out of range: 0 error when sending to SOAP Receiver

    Hi experts,
    I have an interface
    IDOC -> XI -> SOAP
    Occasionally I will get this error message from RWB when sending to the SOAP service:
    Delivery of the message to the application using connection AFW failed, due to: String index out of range: 0
    To trace the soap message, I sent the message through a TCPMonitor, the error does not occur anymore.
    Has anyone met with this problem before?
    How do I resolve this?
    Thanks!
    Ron

    > Wee,
    >
    > The error states there is some problem in your
    > message mapping. Have you used any substring function
    > in your mapping. If yes can you check the message for
    > which you have got error in message mapping. For this
    > open sxmb_monin and open your message and then right
    > click and then view source. Then copy this source and
    > test in message mapping test tab. Then you will come
    > to know whether you have any mapping error or not?
    >
    > ---Satish
    I did not do any substring in the mappings.
    The strange thing is, with the same message, I can re-send without any error if I send this message through the SOAP TCP Monitor.

  • Image Manager : upload image - error message String index out of range

    Hello,
    i'm facing an issue with the upload functionality of 'Image Manager'.
    When i upload a file, systematicaly an error message pops up :
    "error message String index out of range : - XXX"
    Where XXX is a value as large as the size of the file.
    I have the feeling that the problem may come from the installation of VC.
    Did someone encountered this issue ?
    Thank you

    Hi,
    Plz check the below link
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bip/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do
    Govindu

  • What does error message on opening project in iPlanet Application Builder indicate? "String index out of range:-1"

    Hello,
    After creating a project I am inserting existing jsp files into the project. When I try to reopen the project in iab I get this message. "Unable to load file c:\.....\projectname.iab. String index out of range: -1". Has anyone encountered this problem? OS is Windows 2000, iaBuilder 6 sp1.

    Hello,
    After creating a project I am inserting existing jsp files into the project. When I try to reopen the project in iab I get this message. "Unable to load file c:\.....\projectname.iab. String index out of range: -1". Has anyone encountered this problem? OS is Windows 2000, iaBuilder 6 sp1.

  • FPM Error: An internal error occured: String index out of range -4

    Hi All,
    I have imported the SSA BP to my EP (7.0), however, when I tried to create a custom FPM view & FPM Application for my custom WD application....the system will just prompt the error message "An internal error occured: String index out of range -4".
    Can anyone advise what could be the problem? and how to resolve it?
    Thanks in advance!
    Best Regards,
    SY

    Hi,
    You are trying to call the index of the String whose length is 4., but in the code you may have called from 1 to 4.. which should be 0 to 3.
    If you can show the stack trace of the exception, we can pinpoint the code / line.
    Just check the WD code..!!
    Thanks,
    Raags

  • ERROR: String index out of range -1

    When I submit a form, CF throws an error:
    String index out of range: -1
    (Line 2)
    2 : <cfinsert datasource="Logbook" dbtype="odbc"
    tablename="Flights" formfields="*">
    3 : <cflocation url="index.cfm">
    Im not sure what the problem is. I checked the database to
    see if it was the content type, and everything checked out to be
    ok, I also checked the NAME attributes on the HTML on the origonal
    form. They all match. Please help.
    --Stephen

    I never use cfinsert, but formfields = "*" doesn't look
    right.

  • String index out of range 12348

    hI,
    While creating external datasource i am getting error string index out of range 12348
    thanks

    it looks like this may be posted to the incorrect forum.  This is a berkeley DB forum.
    thanks
    mike

Maybe you are looking for

  • How to populate the new field of R/3 in BW

    Hi, There was a requirement to modify the sap screen in the R/3. For the same a new field is created which populate the data via a table in R/3. Now I have to populate the same field in BW. I am working on 3.5 Version. In R/3 I have a data source and

  • Audio Issue

    So when I'm in a Skype call, the call plays through my earphones, no problem. However all my music/google chrome/youtube videos play through the speakers. How can I get it so they play through my earphones as well as the call?  Solved! Go to Solution

  • Execute a Grant in PL/SQL Procedure DBMS_SQL

    Trying to find a way to do a Grant in a PL/SQL procedure. We have done it in forms before using FORMS_DDL() to execute the command. I tried DBMS_SQL but the samples show cursors for queries and inserts. Can't seem to get it to work. Need to grant rol

  • How to customise the default business component wizard

    I Would like to customize the default Business component wizard for my application so that some of the option should be dissabled. (e.g when I associate my business component with several tables I see a window which shows insert '+', delete 'x' etc)

  • Can I send all WBS using CJAL and Distribution Model

    Greetings, I have setup the disribution model to send WBS between two systems as following: Object name          WorkBreakdownStruct Method name          SaveReplica Object type          BUS2054 Method               SAVEREPLICA Description          R