FTP Sender Channel error " java.lang.StringIndexOutOfBoundsException""

Dear All,
Scenario:File to IDOC
File Type: Fixed Length
I am getting below error in Sender Channel.
Error "Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR converting document line no. 2 according to structure 'Item':java.lang.StringIndexOutOfBoundsException"
Note:We are using header and Item.Header is not repating and Item should repeate N times.we are using the KeyField Name for both header and Item.
Kindly suggest me the Parameter to use for the sender channel.
Edited by: manikandansit on Jan 17, 2011 12:53 PM

Dear All,
Thanks for your suggestions.
the issues has been resolved.
there are so many spaces between the each field data in the source file and i was using the value as SPACE for the parameter Name.fieldSeparator and it taken each space as a data or something else. finally i had removed this parameter and Interfaces works fine now.
Thanks

Similar Messages

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

  • Loading Excel Error - java.lang.StringIndexOutOfBoundsException

    All,
    I want to load an excel(target) from two excel sheets(source).
    I have my staging as Oracle.
    But loading the Excel(target) ODI throws an exception java.lang.StringIndexOutOfBoundsException: String index out of range: 59
    Any help is much appreciated.
    Thanks

    I have resolved the problem.
    The problem was due to the special characters '(' ')' in the column name of the excel sheet.

  • File send adapter error : java.lang.NullPointerException

    Hi All,
    I have an issue on some of the file sender adapter communication channels .The channels are failing with the error :
    Error :"Attempt to process file failed with java.lang.NullPointerException"
    This issue is happening for couple of file sender channels.When I try to stop and start the channels couple of times the failed messages are getting processed.And after the processing of the failed file, the new files are successfully polling as usual.
    Please share your experiences as on why this issue is happening and what is the permanent fix for the issue ?
    Thanks in Advance !
    Thanks & Regards,
    Roni

    Hi Roni,
       Try with a J2EE restart of the PI server. Hope that will solve your problem.
    Thanks,
    Anudeep

  • Receiver FTP adapter java.lang.StringIndexOutOfBoundsException

    Hi,
    i'm getting the following error trying to reach an FTP server using a Receiver CC:
    Attempt to process file failed with Error occurred while connecting to the FTP server "xxxxxx:21": java.lang.StringIndexOutOfBoundsException
    Any help would be really appreciated
    Thanks
    Simona Milione

    Hi
    check the fixedFieldLength parameter for all the fields in you File COntent COnversion
    there is some field whose length is greater than what you specified in FCC
    regards
    krishna

  • Java.lang.StringIndexOutOfBoundsException: String index out of range: -99

    Hi.
    We are having a problem with the jstudio IDE Enterprise Edition.
    We are trying to create an CMP Bean using the IDE.
    The database table has 69 columns of various datatatypes. BUT as soon as i write the create method the following error is logged after all the 69 parameters are added in the create method
    PS : I have tried it on both Standard and Enterprise Edition .......They both give the same error.
    (Note this ocured when i had written all the 69 paramenters for the Database Table !)
    *********** Exception occurred ************ at Wed Sep 22 16:49:05 GMT+05:30 2004
    Annotation: Parser error
    java.lang.StringIndexOutOfBoundsException: String index out of range: -99
         at java.lang.String.<init>(String.java:192)
         at java.lang.String.copyValueOf(String.java:2185)
         at org.netbeans.modules.java.parser.DocumentModelBuilder.setBodyBounds(DocumentModelBuilder.java:105)
         at org.netbeans.modules.java.gj.V8TreeTranslator._case(V8TreeTranslator.java:437)
         at org.netbeans.lib.javac.v8.tree.Tree$MethodDef.visit(Tree.java:460)
         at org.netbeans.modules.java.gj.V8TreeTranslator._case(V8TreeTranslator.java:303)
         at org.netbeans.lib.javac.v8.tree.Tree$ClassDef.visit(Tree.java:407)
         at org.netbeans.modules.java.gj.V8TreeTranslator._case(V8TreeTranslator.java:188)
         at org.netbeans.lib.javac.v8.tree.Tree$TopLevel.visit(Tree.java:344)
         at org.netbeans.modules.java.gj.V8TreeTranslator.process(V8TreeTranslator.java:94)
         at org.netbeans.modules.java.gj.ParserEngine.completeRequest(ParserEngine.java:360)
         at org.netbeans.modules.java.gj.ParserEngine.parseObject(ParserEngine.java:176)
         at org.netbeans.modules.java.gj.JavaParserEngine.process(JavaParserEngine.java:72)
         at org.netbeans.modules.java.parser.ParsingSupport$Processor.process(ParsingSupport.java:711)
         at org.netbeans.modules.java.parser.ParsingSupport$Processor.parseLockModel(ParsingSupport.java:662)
    [catch] at org.netbeans.modules.java.parser.ParsingSupport$Processor.run(ParsingSupport.java:593)
         at org.openide.util.Task.run(Task.java:136)
         at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:328)
         at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:670)
    ==>
    WARNING - ErrorManager detected cyclic exception nesting:
         java.lang.StringIndexOutOfBoundsException: String index out of range: -99
    Be sure not to annotate an exception with itself, directly or indirectly.

    Hi
    Can you send me yoursample to me. I will check the code and let you know whats going wrong. mail your sample to [email protected]
    Thanks
    Vasu

  • Error occurred while sending query result: 'java.lang.NullPointerException'

    I am doing end to end scenario from SQL server to File
    JDBC --XI -- File
    I am getting the following Error while monitoring the sender CC in RWB
    "Error occurred while sending query result: 'java.lang.NullPointerException'
    Please Help !!

    Hi,
    To see the Adapter Error log, try:
    http://<XiServerHostName>:<J2EE-Port>/MessagingSystem
    Try viewing the Audit Log for each message (Newspaper Icon)
    Regards,
    Amitabha

  • Error  java.lang.Exception: Exception in sending Request :: null ..Kill Me

    i use windows XP and oracle10gR2 ,my database run well ,and when run the EM the error java.lang.Exception: Exception in sending Request :: null ,
    my TZ is: agentTZRegion=Asia/Baghdad ,in emd.properites file or SELECT SESSIONTIMEZONE FROM DUAL;
    SESSIONTIMEZONE
    +03:00
    and the OS TIME ZONE is (GMT +03:00) Baghdad
    and I run the Java Console
    but the error remain ,
    Can anybody solve this Error, Please
    Edited by: sabah on 09/07/2011 06:35 ص

    Hi Sabah,
    You are not the only one having this issue,
    check Oracle 10g R2 Enterprise Manager Web Interface doesn't see the database if it has the solution for you.
    Eric

  • Error    java.lang.Exception: IOException in sending Request :: No rou

    hi
    Error
    java.lang.Exception: IOException in sending Request :: No route to host: connect
    this error occur when i open the EM every time,
    all my dba_users accounts are unlocked
    & when i tried to get the monitoring configuration the no item found dislplays
    what i have to so now any point
    thanks

    user8664817 wrote:
    10.2.0.3.0 on win2008(VMWARE) also i have number of invalid objects under different schemas on first installation
    wndows firewall is off.Chances are the "invalid objects" are a diversion ... utlrp.sql and move along.
    No route to host seems to point to network. Ping? TNSPing? DHCP? Route?

  • Error in Customize AddItem (java.lang.StringIndexOutOfBoundsException)

    the code
    htp.formOpen(curl => 'cntsample.upload', cmethod => 'POST', cenctype => 'multipart/form-data');
    htp.p('<INPUT TYPE="FILE" NAME="name">');
    htp.formSubmit;
    htp.formClose;
    Produce this error
    Error: The servlet produced the following error stack. java.lang.StringIndexOutOfBoundsException: String index out of range: -303
         at java.lang.String.substring(String.java, Compiled Code)
         at oracle.webdb.page.PageBuilder.parseQuery(PageBuilder.java, Compiled Code)
         at oracle.webdb.page.PageBuilder.getMetaData(PageBuilder.java, Compiled Code)
         at oracle.webdb.page.PageBuilder.process(PageBuilder.java, Compiled Code)
         at oracle.webdb.page.ParallelServlet.doGet(ParallelServlet.java, Compiled Code)
         at oracle.webdb.page.ParallelServlet.doPost(ParallelServlet.java:140)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java, Compiled Code)
         at org.apache.jserv.JServConnection.run(JServConnection.java, Compiled Code)
         at java.lang.Thread.run(Thread.java, Compiled Code)
    or is posible this error too
    An Unhandled Exception has occurred. ORA-01403: no data found
    HELP, please
    Version Portal 3.0.9.8.0

    Was this working before? What changes have you done recently?
    Please run AutoConfig on the apps tier, and make sure it complete successfully.

  • Error -- java.lang.Exception: Exception in sending Request :: null

    I has a problem with database oracle 10g release 2...

    I am having the similar problem.
    CLASSPATH : C:\oracle\product\10.2.0\db_1\jdbc\lib
    classes12 and ojdbc14 files exist in above location.
    CODE:
    import java.sql.*;
    public class getOracleConnection
    public static void main(String[] args)
    DB db = new DB();
    Connection conn=db.dbConnect("jdbc:oracle:thin:@localhost:1521:orcl", "scott", "tiger");
    class DB
    public DB() {}
    public Connection dbConnect(String db_connect_string,
    String db_userid, String db_password)
    try
         Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection conn = DriverManager.getConnection(db_connect_string, db_userid, db_password);
    System.out.println("connected");
    return conn;
    catch (Exception e)
    e.printStackTrace();
    return null;
    I am getting following error:
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Unknown Source)
         at DB.dbConnect(getOracleConnection.java:25)
         at getOracleConnection.main(getOracleConnection.java:8)
    Could someone please help me figure out what is happening.
    Thanks
    MM.

  • Error in file-webservice- file (Error: java.lang.NullPointerException)

    Hi everybody,
    I have configured a file-webservice-file without BPM scenario...as explained by Bhavesh in the following thread:
    File - RFC - File without a BPM - Possible from SP 19.
    I have  used a soap adapter (for webservice) instead of rfc .My input file sends the date as request message and gets the sales order details from the webservice and then creates a file at my sender side.
    1 communication channel for sender file
    1 for receiver soap
    1 for receiver file
    Error: java.lang.NullPointerException
    What could be the reason for this error
    thanks a lot
    Ramya

    Hi Tanaya,
    I monitored the channels in the Runtime work bench and the error is in the sender ftp channel.The other 2 channel status is "not used" in RWB.
    1 sender ftp channel
    1 receiver soap channel
    1 receiver ftp channel.
    2009-12-16 15:02:00 Information Send binary file  "b.xml" from ftp server "10.58.201.122:/", size 194 bytes with QoS EO
    2009-12-16 15:02:00 Information MP: entering1
    2009-12-16 15:02:00 Information MP: processing local module localejbs/AF_Modules/RequestResponseBean
    2009-12-16 15:02:00 Information RRB: entering RequestResponseBean
    2009-12-16 15:02:00 Information RRB: suspending the transaction
    2009-12-16 15:02:00 Information RRB: passing through ...
    2009-12-16 15:02:00 Information RRB: leaving RequestResponseBean
    2009-12-16 15:02:00 Information MP: processing local module localejbs/CallSapAdapter
    2009-12-16 15:02:00 Information The application tries to send an XI message synchronously using connection File_http://sap.com/xi/XI/System.
    2009-12-16 15:02:00 Information Trying to put the message into the call queue.
    2009-12-16 15:02:00 Information Message successfully put into the queue.
    2009-12-16 15:02:00 Information The message was successfully retrieved from the call queue.
    2009-12-16 15:02:00 Information The message status was set to DLNG.
    2009-12-16 15:02:02 Error The message was successfully transmitted to endpoint com.sap.engine.interfaces.messaging.api.exception.MessagingException: Received HTTP response code 500 : Internal Server Error using connection File_http://sap.com/xi/XI/System.
    2009-12-16 15:02:02 Error The message status was set to FAIL.
    Now, the error is internal server error.What can I do about this?
    thanks a lot
    Ramya

  • FTP receiver channel error: No route to host

    Hello,
    I am using a ftp receiver channel and got the following error:
    java.lang.Exception: ftp access error: java.net.NoRouteToHostException: No route to host.
    The following steps are processed right:
    - Connection to FTP-Server "XXXX", Folder "/public_html/external/eh/"
    - Write to FTP-Server "XXXX", Folder "/public_html/external/eh/", file "xyz.xml"
    - Sending: Modus "TXT", Size XXX, Codepage UTF-8
    And then the error occurs.
    It seems that the channel could connect to the server and start sending the data, but then the error occurs.
    Did anybody know this problem?
    Thank you very much
    Thomas

    Hi Thomas -
    Is your FTP server configured for active or passive data connections?  If active, you need SP15.  Before SP15, only passive data connections are supported.
    Regards,
    Jin

  • File processing failed with java.lang.StringIndexOutOfBoundsException:

    Hi
    I´m reading and sending files to an FTP server using SAP PI. I use file content conversion.
    Everything has been working fine for months - but now the server was changes to a new host. The only thing changed was the host/user and pass.
    But sending too the server fails with this error:
    File processing failed with java.lang.StringIndexOutOfBoundsException: String index out of range: -27
    Any body who has a clue??
    Reading files works ok. And i can transfer files to the FTP server with FileZilla without problems.

    In the file transfer by ftp:
    2011-10-03 17:27:08     Information     Transfer: "BIN" mode, size 737 bytes, encoding -.
    2011-10-03 17:27:08     Error     File processing failed with java.lang.StringIndexOutOfBoundsException: String index out of range: -27
    2011-10-03 17:27:08     Error     Adapter Framework caught exception: String index out of range: -27
    2011-10-03 17:27:08     Error     Delivering the message to the application using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error occurred while connecting to the FTP server "nnn.nn.nnn.nnn:21": java.lang.StringIndexOutOfBoundsException: String index out of range: -27.
    Its on the adapter level. All mappings etc are fine. And as i write has been for months. The only thing changed are the FTP server

  • File Module Generation: Error: java.lang.NullPointerException in RWB.

    Hello XI Xpert's,
    I am following below SDN blog to generate file module...
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/da5675d1-0301-0010-9584-f6cb18c04805
    I have done all steps as mentioned using NWDS. We have sucessfully deployed same on J2EE engine using SDM. SDM logs shows that it is sucessfully deployed.
    I have configured Sender File adapter to call my customised module.( Called before standard file module).
    But when I checked in RWB, its gives me error :
    Sender Adapter v2703 for Party '', Service 'BS_DEV_XI_401_NA':
    Configured at 2007-08-27 12:28:14 EDT
    History:
    - 2007-08-27 12:32:04 EDT: Retry interval started. Length: 2.000 s
    - 2007-08-27 12:32:04 EDT: Error: java.lang.NullPointerException
    - 2007-08-27 12:32:04 EDT: An unknown error occured.
    - 2007-08-27 12:32:04 EDT: Processing started
    - 2007-08-27 12:32:02 EDT: Error: java.lang.NullPointerException
    If I do not put any file in respective folder status of Sender Communication channel shows as green...as soon as put any file in folder its getting red with above mention error.
    I have gone thru almost all SDN blogs/thread ..I also tried to debug code as mentioned in thread..Error in Module Processing- java.lang.NullPointerException
    But unfortunately it never goes to that point...hence never updates Log.
    In audit log I am getting same message..
    2007-08-27 12:42:50 Error Attempt to process file failed with null
    2007-08-27 12:42:50 Error Attempt to process file failed with java.lang.NullPointerException
    2007-08-27 12:42:52 Success Channel Sys_Dev_File_Client: Entire file content converted to XML format
    2007-08-27 12:42:52 Success Send text file "/usr/sap/tmp/ifATJmgs.csv", size 120436, character encoding ISO646-US with QoS EO
    2007-08-27 12:42:52 Error Attempt to process file failed with null
    2007-08-27 12:42:52 Error Attempt to process file failed with java.lang.NullPointerException
    But could not find my Custom Message... There is any way by which I can check if its calling my Custom Module itself?
    There is any setting / parameters which we need to do on J2EE engine in order to activate call to custome module?
    Any help would be really appreciated.
    Nilesh

    It is strange, but in that document of yours it never says anything about the JNDI name in the ejb-j2ee-engine.xml file.
    Check this doc here:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3bdc14e1-0901-0010-b5a9-a01e29d75a6a
    According to it, if you properly configure the ejb-j2ee-engine.xml file, then you'd call your module using "localejbs/<JNDIName>".
    Regards,
    Henrique.

Maybe you are looking for

  • Why is my Ipod touch 4 no longer charging?

    My sons IPod touch 4 is about one year old and the charger rarely connects properly so that battery will charge. It aslo seems that the original battery runs out of juice very quickly. Any advice or similar experience?

  • Getting a new Windows laptop to join my Mac network

    I have 2 macbooks (Mountain Lion) and a XP laptop  connected wirelessly to a time capsule...(the 2 macs  backup) and I get my wireless signal from the TC.  There is also an HP wireless printer which all three computers can print to.   I am replacing

  • PLS HELP I NEED NET!

    Hello.  Im not much of a computer person. I moved from Vancouver to calgary. My laptop was working fine with my router before I moved.  I moved into a house that already had cable internet so I thought I go just plug my router in and go! Which has no

  • HT4946 i locked my new ipod touch and cant it back open from the computer help.?:(

    i locked my new ipod touch and cant it back open from the computer help.?:

  • Photos on AppleTV

    For years i synched pictures from my iMac to my AppleTV for viewing without a problem. It was actually my favorite feature. Since upgrading to iTunes 10 this feature has become dysfunctional. iTunes doesn't know the correct number of pictures to sync