Skip to Content
author's profile photo Former Member
Former Member

java.lang.StringIndexOutOfBoundsException in inbound fileadapter XI2.0

When I want to presess a message in my inbound fileadapter (XI 2.0), I get the following error :

Exception in XML Renderer (format problem?)

java.lang.Exception: ERROR converting document line no. 1 :

java.lang.StringIndexOutOfBoundsException: String index out of range: 369

What I think, is that the record structure does not match the structure as expected.

How can I find out what is wrong (like the 369 position in the errormessage, what does that tell me ?)

below the (partial) adapterconfiguration.

xml.processFieldNames=fromConfiguration

xml.fieldNames=BSYSTEM,INTERFACEID,LOCSOC,LONLOT,LONPIE,LONLIG,LOCJOU,LODAAC,LODMMC,LODJJC,LOTPIE,LOCDEV,LOCOUR,LOLECR,LODAAP,LODMMP,LODJJP,LODAAV,LODMMV,LODJJV,LOTYPC,LONCPT,LONEXT,LONTFF,LOMTDV,LOSECR,LOSTAP,LOSTAT,LOQTES,LOTCEN,LONCEN,LOCTVA,LOTNTE,LOCNTE,LOVTA1,LOTDS1,LOCDS1,LOVTA2,LOTDS2,LOCDS2,LOVTCR,LOCNPI,LOCRLT,LOCNLT,LOMREG,LODAAE,LODMME,LODJJE,LOFLG3,LOCEXT,LOVTLT,LOLNPI,LOLRLT,LOLNLT,LOLEXT,LONLGT,LONGRP,LOMJ00,LOMJ01,LOMJ02,LOMJ03,LOMJ04,LOMJ05,LOMJ06,LOMJ07,LOMJ08,LOMJ09,LOMJ10,LOMJ11,LOMJ12,LOMJ13,LDMJ14,LOMJ15,LOMJ16,LOMJ17,LOMJ18,LOMJ19,LOMJ20,LOANUL,LOTCCP,LONCCP,LOMJ21,LOMJ22,LOMJ23,LOMJ24,LOMJ25,LOMJ26,LOMJ27,LORDAS,LOMJ28,LOMJ29,LOMJ70,LOMJ71,LOMJ72,LOMJ73,LOMJ74,LOMJ75,LOSERV,LOSTC1,LOSTC2,LOSTC3,LOSTC4,LOSTC5,LOSTC6,LOFIL2

xml.fieldFixedLengths=15,3,2,4,9,5,2,2,2,2,3,3,15,30,2,2,2,2,2,2,1,8,10,15,15,1,5,16,15,1,8,1,1,8,1,1,8,1,1,8,1,9,9,9,1,2,2,2,1,1,1,9,9,9,1,3,9,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,8,3,3,3,1,1,1,1,2,1,1,1,1,1,1,1,1,3,2,3,4,6,8,10,10

xml.lastFieldsOptional=yes

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 16, 2004 at 12:42 PM

    Hi Jan,

    If your last field is 10 long make sure that it is exactly 10 characters long. It could be that your last field is less than this amount, if so add whitespaces until the field length is 10 chars long. Hope this helps,

    Regards,

    Achmed

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Jan,

      Check how long your string is, it should be as long as you have given in your configuration. if the adapter configuration thinks there are 369 chars but there are only 368 ...it produces this error.You are still using fields of fixed length, your last field should be your last 10 chars (as given in your config).

      Regards,

      Achmed

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.