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

Similar Messages

  • FTP Adapter : java.lang.NullPointerException

    Hi,
    I am getting a java.lang.NullPointerException when I try to use the FTP Adapter.
    The message monitor for the Adapter shows this:
    2006-02-27 16:48:57 Success File adapter receiver channel OMAF_PO_FTPS_Rcvr: start processing: party " ", service "OMAF"
    2006-02-27 16:48:57 Success Connect to FTP server "fintst", directory "/"
    2006-02-27 16:49:59 Error Attempt to process file failed with java.lang.NullPointerException
    2006-02-27 16:49:59 Error Exception caught by adapter framework: java.lang.NullPointerException
    2006-02-27 16:49:59 Error Delivery of the message to the application using connection AFW failed, due to: java.lang.NullPointerException.
    When I look at the J2EE logs, I don't see much more detail that might help me troubleshoot....
    #1.5#001185B7A4A7007500000BAC00002DB400040DC9804C00C5#1141058999161#/Applications/ExchangeInfrastructure/AdapterFramework/Services/ADAPTER/ADMIN/File#sap.com/com.sap.aii.af.app#com.sap.aii.adapter.file.XI2File.onInternalMessage(XMBMessage, String, IGUID, String)#J2EE_GUEST#0#SAP J2EE Engine JTA Transaction : [011ffffffc6320045b]###16a1e690a7b111da8272001185b7a4a7#XI AF XI2File[/OMAF/OMAF_PO_FTPS_Rcvr]##0#0#Error#1#com.sap.aii.adapter.file.XI2File#Plain###File processing failed with java.lang.NullPointerException#
    #1.5#001185B7A4A7007500000BAE00002DB400040DC9804C2276#1141058999161#/Applications/ExchangeInfrastructure/AdapterFramework/Services/ADAPTER/ADMIN/File#sap.com/com.sap.aii.af.app#com.sap.aii.adapter.file.XI2File.addAuditLog(PublicMessageKey, String, AuditLogStatus, String, String)#J2EE_GUEST#0#SAP J2EE Engine JTA Transaction : [011ffffffc6320045b]###16a1e690a7b111da8272001185b7a4a7#XI AF XI2File[/OMAF/OMAF_PO_FTPS_Rcvr]##0#0#Error#1#com.sap.aii.adapter.file.XI2File#Plain###FILE_ERR_211#
    Now, given the message monitor output, I assume that the adapter was able to connect successfully to the target FTP server, and that the error is occuring during the writing of the file to the folder (or the conversion of the XML to  flat file).
    I have checked the conversion parameters. The exact same ones  work if I use the comm protocol as File System rather than FTP.
    Any ideas?
    Thanks and Regards
    Manish

    Hi,
      Have you set the read write and modify properties for your local ftp server for the corrosponding path, i mean i use guildftp for unit testing, and i need to specify these in the ftp server locally.
    That may be a reason why you get this, as you donot specify the autorixation to read the folder under ftp root.
    Also refer the file adapter faq: 821267  oss note
    Regards,
    Anirban.

  • 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

  • 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

  • Dynamically generate terget directory in receiver FTP adapter

    Hi guys,
    I'm trying to set up a scenario where the file will be placed into a terget directiry based on values from the incoming message. I can't use variable substitution as my target message does not contain the needed value, so I'm trying to set up a dynamic configuration in an UDF. Unfortunately, this is not working.. Any ideas, what could be wrong? The receiver FTP adapter always just takes values from it's configuration. It doesn't help when I try to change it in mapping.
    This is the java map code in the UDF:
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "Directory");
    DynamicConfigurationKey key2 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "FileName");
    conf.put(key, a);
    conf.put(key2, "tfilename.txt");
    return "";
    Thanks a lot for any help,
    Olian

    Hi,
    use below code it will work fine
    DynamicConfiguration conf = (DynamicConfiguration) container
        .getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "FileName");
    DynamicConfigurationKey key1 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "Directory");
    String a=conf.get(key);
    String b=conf.get(key1);
    var1 = a+b; ;
    return var1;
    map this udf to root element of your receiver structure.
    Regards,
    Raj

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

    hi am having this error when running my application am in jdeveloper 11.1.1.6.0
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
         at java.lang.String.substring(String.java:1931)
         at car.deDeedandeSurvey.view.frameworkExt.CustomErrorHandler.displayProperly(CustomErrorHandler.java:66)
         at car.eDeedandeSurvey.view.frameworkExt.CustomErrorHandler.reportException(CustomErrorHandler.java:32)
         at oracle.adf.model.binding.DCBindingContainer.reportException(DCBindingContainer.java:423)
         at oracle.adf.model.binding.DCBindingContainer.reportException(DCBindingContainer.java:471)
         at oracle.adf.model.binding.DCIteratorBinding.getDataControl(DCIteratorBinding.java:2438)
         at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:3069)
         at oracle.adf.model.binding.DCBindingContainer.refreshControl(DCBindingContainer.java:2908)
         at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2894)
         at oracle.adfinternal.controller.util.model.DataBindingActivityImpl.beforeExecute(DataBindingActivityImpl.java:109)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.executeActivity(ControlFlowEngine.java:1015)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:921)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:820)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.invokeTaskFlow(ControlFlowEngine.java:243)
         at oracle.adfinternal.controller.state.ChildViewPortContextImpl.invokeTaskFlow(ChildViewPortContextImpl.java:104)
         at oracle.adfinternal.controller.state.ControllerState.createChildViewPort(ControllerState.java:1387)
         at oracle.adfinternal.controller.ControllerContextImpl.createChildViewPort(ControllerContextImpl.java:78)
         at oracle.adf.controller.internal.binding.DCTaskFlowBinding.createRegionViewPortContext(DCTaskFlowBinding.java:474)
         at oracle.adf.controller.internal.binding.DCTaskFlowBinding.getViewPort(DCTaskFlowBinding.java:392)
         at oracle.adf.controller.internal.binding.TaskFlowRegionModel.doProcessBeginRegion(TaskFlowRegionModel.java:164)
         at oracle.adf.controller.internal.binding.TaskFlowRegionModel.processBeginRegion(TaskFlowRegionModel.java:112)
         at oracle.adf.controller.internal.binding.TaskFlowRegionController.doRegionRefresh(TaskFlowRegionController.java:241)
         at oracle.adf.controller.internal.binding.TaskFlowRegionController.refreshRegion(TaskFlowRegionController.java:119)
         at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:3204)
         at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2876)
         at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:3195)
         at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2876)
         at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareModel(PageLifecycleImpl.java:115)
         at oracle.adf.controller.faces.lifecycle.FacesPageLifecycle.prepareModel(FacesPageLifecycle.java:359)
         at car.eDeedandeSurvey.view.frameworkExt.CustomLifeCycle.prepareModel(CustomLifeCycle.java:15)
         at oracle.adf.controller.v2.lifecycle.Lifecycle$2.execute(Lifecycle.java:137)
         at oracle.adfinternal.controller.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:197)
         at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.access$400(ADFPhaseListener.java:23)
         at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$PhaseInvokerImpl.startPageLifecycle(ADFPhaseListener.java:238)
         at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$1.after(ADFPhaseListener.java:274)
         at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:75)
         at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.afterPhase(ADFLifecyclePhaseListener.java:53)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:472)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.portlet.client.adapter.adf.ADFPortletFilter.doFilter(ADFPortletFilter.java:32)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.webcenter.framework.events.dispatcher.EventDispatcherFilter.doFilter(EventDispatcherFilter.java:44)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.wcps.client.PersonalizationFilter.doFilter(PersonalizationFilter.java:75)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.webcenter.content.integration.servlets.ContentServletFilter.doFilter(ContentServletFilter.java:168)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.webcenter.lifecycle.filter.LifecycleLockFilter.doFilter(LifecycleLockFilter.java:151)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:179)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

    The problem occurs at line 66 in class car.deDeedandeSurvey.view.frameworkExt.CustomErrorHandler, which is a non-ADF class, most probably it is a class of your own. Go to line 66 in this class and look at the source code. If it is not clear what happens there, set a breakpoint within the method car.deDeedandeSurvey.view.frameworkExt.CustomErrorHandler.displayProperly and debug it. If you do not have the original source code, then decompile this class and look at the source code. You can set a breakpoint at this line even if you do not have the source code.
    Dimitar

  • Retaining the FileName in the Receiver FTP adapter

    Hi experts,
    I have a situation here, were i need to retain the FileName in the message header in the receiver FTP adapter.
    I have tried using variable subtitution but seems the FileName is not supported in variable substitution.
    Please help
    Thanks

    Hello,
    if you need file name to be retained in the receiver adapter from the sender side. then u can do that by dynamic configuration using adapter specific message attributes, check this blog for details-
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    if you dont have a mapping in your interface to use dynamic configuration, then you can do it via adapter module also- have a look here, /people/sap.user72/blog/2005/07/15/copy-a-file-with-same-filename-using-xi
    regards,
    francis

  • Prerequisites for Sender and Receiver FTP adapter

    Hi Experts,
    I am new to PI and configuring simple file to file scenario. I need to know the prerequsites for sender and receiver FTP adapter. Scenario is System A -> XI -> System B .
    What I want to know is:
    1> What ports need to be opened?
    2> Any service that I need to activate?
    3> Do I need to install FTP server in any of the machine?
    If I have missed something, please add.
    Br,
    Nilz

    Hi,
    1> What ports need to be opened?
    mentioned in below link as said its 21.
    2> Any service that I need to activate?
    No
    3> Do I need to install FTP server in any of the machine?
    THere are two ways by which u can pick ur file.
    1) NFS by which u can put the file on XI appplication directory and pick up ur file.
    2) FTP u have to put ur file on FYP server and XI will pick up the file from there. U can use freeware FTP and install it on ur Desktop search on goolge u will get ti FTP installtion.
    refer the below configuration requirement for FIle adapter.
    http://help.sap.com/saphelp_nw04/helpdata/en/69/a6fb3fea9df028e10000000a1550b0/frameset.htm
    ALso refer the end to end file to file scenario.
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/flatFILETOFLATFILE&
    chirag

  • When to use "Use Temporary File" in receiver FTP adapter

    Hi Experts,
    I have nerver used "Use Temprary File" as the "Write Mode" in receiver ftp adapter.
    I want to knwo under what kind of requirment we should use this option?
    Thanks in advance.
    Best Regards,

    Hi Aditya
    Usually it's advisable to use "use temporary file" as write mode when you want to avoid your file to be picked up by receiver while PI channel is still writing it.
    Obviously larger the file, more chances you have that this issue could occur.
    If you select the "use temporary file", XI will write the content to a temporary file with another name of your choice and only once writing has finished it will rename it to the actual name setup in the "file name scheme".
    Regards,
    Giuseppe

  • Receiver FTP Adapter File Size Splitting

    Hi,
    I am receiving an IDoc from R/3 into XI.
    I then map this IDoc into an xml file and use a receiver ftp adapter to drop the files onto a ftp server.
    Is there anyway, that I can use the adapter to split the message interface into smaller files.  For example, if I were to ftp the message interface into 1 file, the file size would be 1MB.  I would like to split the 1 message interface into 4 x 250kb files without having to split the message interface?
    Thanks,
    Miguel

    Hi,
    If you split into 4 files each one should be a XML file right?
    This is possible without BPM.
    Go thro the blog:
    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
    Wat u need to do is make the target side 0..unbounded. If u have 100 records, Map some  25 records in first occurence, 25 in second and so on. This way u can reduce file size.
    Regards,
    P.Venkat

  • Java.lang.StringIndexOutOfBoundsException when executing query on Oracle 9i

    SQL Deverloper Build 1467
    Windows XP
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    I have the following query being executed in SQL Worksheet.
    select * from address
    where address_id in (1, 2, 3, .... 1000, 1001);
    If I have <= 1000 expressions, it executes but if it has > 1000, the query does not return this error "ORA-01795: maximum number of expressions in a list is 1000". When I ran this it in console, it gave me this error. In oracle 10G it works fine.
    java.lang.StringIndexOutOfBoundsException: String index out of range: 16058
    at java.lang.String.substring(String.java:1765)
    at oracle.dbtools.raptor.scriptrunner.SQL.run(SQL.java:73)
    at oracle.dbtools.raptor.scriptrunner.ScriptRunner.run(ScriptRunner.java:116)
    at oracle.dbtools.raptor.scriptrunner.ScriptRunner.run(ScriptRunner.java:186)
    I think this is a bug in the 9i module.
    -Nags

    Anil kumar wrote:
    Hi,
    Thanks for your reply. Could you please explain your solution in detail?Hi,
    I just have a try...
    create table t (id int,my_lob clob)
    begin
    insert into t values(101,'Oracle redwood shores USA');
    insert into t values (102,'HP palo alto USA');
    insert into t values(103,'Capgemini  FRANCE');;
    end;
    create index my_idx on t(my_lob) indextype is ctxsys.context
    select *
    from t
    where contains(my_lob,'USA',1)>0
    Output
    ID      MY_LOB
    101     Oracle redwood shores USA
    102     HP palo alto USA Hope it helps,
    CKLP

  • Java.lang.StringIndexOutOfBoundsException while deploying webapp

    Hi all,
    I'm trying to deploy an expanded webapp on WebLogic 6.0sp1. It's a
    migration from 5.1, some hundred JSPs, some servlets and custom tags in
    WEB-INF/classes and a few static pages. I placed the web-application
    folder in the applications folder and the server begins the deployment.
    During deployment I get a StringIndexOutOfBoundsException and the
    deployment stops (see log extract below). By the time when this happens,
    there is a new .ear file and a war file (seem to be the same) containing
    my web application. This is a real show-stopper for me, so I'd be glad
    for any recommendations.
    Thanks,
    Daniel
    [java] <14.03.2001 18:28:11 GMT+01:00> <Info> <Management>
    <MBean=(fbsdomain:Name=futuna,Type=Application) Attribute=(LastModified)
    modified from (0) to (984590891366).>
    [java] <14.03.2001 18:28:11 GMT+01:00> <Info> <Management>
    <MBean=(fbsdomain:Name=futuna,Type=WebAppComponent,Application=futuna)
    Attribute=(Application) modified from (null) to (fbsdomain:Name=f
    utuna,Type=Application).>
    [java] <14.03.2001 18:28:11 GMT+01:00> <Info> <Management>
    <MBean=(fbsdomain:Name=futuna,Type=WebAppComponent,Application=futuna)
    Attribute=(Application) modified from (fbsdomain:Name=futuna,Type
    =Application) to (fbsdomain:Name=futuna,Type=Application).>
    [java] <14.03.2001 18:28:11 GMT+01:00> <Info> <Management>
    <MBean=(fbsdomain:Name=futuna,Type=WebAppComponent,Application=futuna)
    Attribute=(URI) modified from (null) to (futuna).>
    [java] <14.03.2001 18:28:11 GMT+01:00> <Info> <Management>
    <MBean=(fbsdomain:Name=futuna,Type=WebAppComponent,Application=futuna)
    Attribute=(ContextPath) modified from (null) to (futuna).>
    [java] <14.03.2001 18:28:11 GMT+01:00> <Info> <Management>
    <MBean=(fbsdomain:Name=futuna,Type=Application) Attribute=(LoadError)
    modified from (null) to (null).>
    [java] <14.03.2001 18:28:16 GMT+01:00> <Info> <HTTP> <[HTTP
    fbsserver] Loading web app: futuna>
    [java] <14.03.2001 18:28:16 GMT+01:00> <Info> <HTTP> <[HTTP
    fbsserver] Loading futuna from WAR file:
    c:\dev\fbs\application\config\fbsdomain\applications\.wl_temp_do_not_del
    ete\wl_local_comp19242
    .war>
    [java] <14.03.2001 18:28:16 GMT+01:00> <Info> <HTTP> <[Default
    WebApp] extracting classfiles to
    c:\dev\fbs\application\config\fbsdomain\applications\.wl_temp_do_not_del
    ete\WEB-INF\_tmp_war_fbsser
    ver_fbsserver_futuna:>
    [java] <14.03.2001 18:28:17 GMT+01:00> <Info> <HTTP> <[Default
    WebApp] extracted classfiles successfully...>
    [java] <14.03.2001 18:28:17 GMT+01:00> <Debug> <HTTP> <Exception
    thrown while loading futuna: java.lang.StringIndexOutOfBoundsException:
    String index out of range: -1>
    [java] <14.03.2001 18:28:17 GMT+01:00> <Error> <J2EE> <Error
    deploying application futuna: Could not load futuna>
    [java] <14.03.2001 18:28:17 GMT+01:00> <Info> <Management>
    <MBean=(fbsdomain:Name=futuna,Type=Application) Attribute=(Deployed)
    modified from (true) to (true).>
    [java] <14.03.2001 18:28:36 GMT+01:00> <Error> <HTTP>
    <HttpServer(4062427,null default ctx,fbsserver) found no context for
    "GET /futuna HTTP/1.1". This should not happen unless the default contex
    t failed to deploy.>
    [java] <14.03.2001 18:28:45 GMT+01:00> <Error> <HTTP>
    <HttpServer(4062427,null default ctx,fbsserver) found no context for
    "GET /futuna/ HTTP/1.1". This should not happen unless the default conte
    xt failed to deploy.>
    [java] <14.03.2001 18:30:27 GMT+01:00> <Info> <HTTP>
    <[WebAppServletContext(4114264,console)] *.html: init>
    [java] <14.03.2001 18:30:27 GMT+01:00> <Info> <HTTP>
    <[WebAppServletContext(4114264,console)] *.html: Using standard I/O>

    Hi Kumar,
    thanks for the hint, but that did not solve the problem. I reworked
    web.xml and weblogic.xml (some 5.1 things inside) and now it works.
    Daniel
    -----Ursprüngliche Nachricht-----
    Von: Kumar Allamraju [mailto:[email protected]]
    Bereitgestellt: Mittwoch, 14. März 2001 22:35
    Bereitgestellt in: install
    Unterhaltung: java.lang.StringIndexOutOfBoundsException while deploying
    webapp
    Betreff: Re: java.lang.StringIndexOutOfBoundsException while deploying
    webapp
    It appears your default webapp failed to deploy.
    Add the following entry (red ink) in your config.xml (carefully) and see
    if you are able to deploy default webapp
    <Application
    Deployed="true"
    Name="DefaultWebApp_myserver"
    Path="./config/myserver/applications"
    >
    <WebAppComponent
    Name="DefaultWebApp_myserver"
    Targets="myserver"
    WebServers="myserver"
    URI="DefaultWebApp_myserver"
    />
    </Application>
    Daniel Hoppe wrote:
    Hi all,
    I'm trying to deploy an expanded webapp on WebLogic 6.0sp1. It's a
    migration from 5.1, some hundred JSPs, some servlets and custom tags in
    WEB-INF/classes and a few static pages. I placed the web-application
    folder in the applications folder and the server begins the deployment.
    During deployment I get a StringIndexOutOfBoundsException and the
    deployment stops (see log extract below). By the time when this happens,
    there is a new .ear file and a war file (seem to be the same) containing
    my web application. This is a real show-stopper for me, so I'd be glad
    for any recommendations.
    Thanks,
    Daniel
    [java] <14.03.2001 18:28:11 GMT+01:00> <Info> <Management>
    <MBean=(fbsdomain:Name=futuna,Type=Application) Attribute=(LastModified)
    modified from (0) to (984590891366).>
    [java] <14.03.2001 18:28:11 GMT+01:00> <Info> <Management>
    <MBean=(fbsdomain:Name=futuna,Type=WebAppComponent,Application=futuna)
    Attribute=(Application) modified from (null) to (fbsdomain:Name=f
    utuna,Type=Application).>
    [java] <14.03.2001 18:28:11 GMT+01:00> <Info> <Management>
    <MBean=(fbsdomain:Name=futuna,Type=WebAppComponent,Application=futuna)
    Attribute=(Application) modified from (fbsdomain:Name=futuna,Type
    =Application) to (fbsdomain:Name=futuna,Type=Application).>
    [java] <14.03.2001 18:28:11 GMT+01:00> <Info> <Management>
    <MBean=(fbsdomain:Name=futuna,Type=WebAppComponent,Application=futuna)
    Attribute=(URI) modified from (null) to (futuna).>
    [java] <14.03.2001 18:28:11 GMT+01:00> <Info> <Management>
    <MBean=(fbsdomain:Name=futuna,Type=WebAppComponent,Application=futuna)
    Attribute=(ContextPath) modified from (null) to (futuna).>
    [java] <14.03.2001 18:28:11 GMT+01:00> <Info> <Management>
    <MBean=(fbsdomain:Name=futuna,Type=Application) Attribute=(LoadError)
    modified from (null) to (null).>
    [java] <14.03.2001 18:28:16 GMT+01:00> <Info> <HTTP> <[HTTP
    fbsserver] Loading web app: futuna>
    [java] <14.03.2001 18:28:16 GMT+01:00> <Info> <HTTP> <[HTTP
    fbsserver] Loading futuna from WAR file:
    c:\dev\fbs\application\config\fbsdomain\applications\.wl_temp_do_not_del
    ete\wl_local_comp19242
    .war>
    [java] <14.03.2001 18:28:16 GMT+01:00> <Info> <HTTP> <[Default
    WebApp] extracting classfiles to
    c:\dev\fbs\application\config\fbsdomain\applications\.wl_temp_do_not_del
    ete\WEB-INF\_tmp_war_fbsser
    ver_fbsserver_futuna:>
    [java] <14.03.2001 18:28:17 GMT+01:00> <Info> <HTTP> <[Default
    WebApp] extracted classfiles successfully...>
    [java] <14.03.2001 18:28:17 GMT+01:00> <Debug> <HTTP> <Exception
    thrown while loading futuna: java.lang.StringIndexOutOfBoundsException:
    String index out of range: -1>
    [java] <14.03.2001 18:28:17 GMT+01:00> <Error> <J2EE> <Error
    deploying application futuna: Could not load futuna>
    [java] <14.03.2001 18:28:17 GMT+01:00> <Info> <Management>
    <MBean=(fbsdomain:Name=futuna,Type=Application) Attribute=(Deployed)
    modified from (true) to (true).>
    [java] <14.03.2001 18:28:36 GMT+01:00> <Error> <HTTP>
    <HttpServer(4062427,null default ctx,fbsserver) found no context for
    "GET /futuna HTTP/1.1". This should not happen unless the default contex
    t failed to deploy.>
    [java] <14.03.2001 18:28:45 GMT+01:00> <Error> <HTTP>
    <HttpServer(4062427,null default ctx,fbsserver) found no context for
    "GET /futuna/ HTTP/1.1". This should not happen unless the default conte
    xt failed to deploy.>
    [java] <14.03.2001 18:30:27 GMT+01:00> <Info> <HTTP>
    <[WebAppServletContext(4114264,console)] *.html: init>
    [java] <14.03.2001 18:30:27 GMT+01:00> <Info> <HTTP>
    <[WebAppServletContext(4114264,console)] *.html: Using standard I/O>

  • 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

  • Java.lang.StringIndexOutOfBoundsException: String index out of range: 8

    Hi Friends,
    I have a search window ,in one I/P Field i entered * and kept the default max hits to display as 100 records(This can be changed).
    Now when i click on Search i get 100 records being displayed,later when i change it to 150,200 Hits i am able to get them displayed(Records).
    But when i enter value greater than 200(i had entered 220) i am getting the following exception.
    java.lang.StringIndexOutOfBoundsException: String index out of range: 8
    Can anyone please help me out to resolve this issue.
    Thanks and regards,
    Chandrashekar.

    Hello Chandrashekar,
            It looks like in  the loop of number of records, you are fetching the record and processing the string either using charAt() method or subString method or any similar method.
    But in one of the record string after 200th record is having a string which when you are processing are having length less than 8.
    Say : String s = "Correct";
    will give StringIndexOutOfBoundsException: String index out of range: 8 as the length is only 7 and you are  cheking for char at position 8.
    Just check the processing you are doing within the record loop and also the records.
    Hope this helps.

  • Java.lang.StringIndexOutOfBoundsException: String index out of range: 3

    I have just downloaded Jdev (10.1.3.1) and am trying out the tutorial "Introduction to JavaServer Faces using JDeveloper".
    When I try to run the Welcome.jsp I get the following :
    java.lang.StringIndexOutOfBoundsException: String index out of range: 3
         at java.lang.String.substring(String.java:1765)
         at oracle.jdeveloper.compiler.OjcConfiguration.getSource(OjcConfiguration.java:276)
         at oracle.jdevimpl.runner.oc4j.Oc4jWorkspaceConfig.ensureJavaCompilerIsSet(Oc4jWorkspaceConfig.java:1081)
         at oracle.jdevimpl.runner.oc4j.Oc4jWorkspaceConfig.configureAll(Oc4jWorkspaceConfig.java:168)
         at oracle.jdevimpl.runner.oc4j.Oc4jStarter.preStart(Oc4jStarter.java:628)
         at oracle.jdevimpl.runner.oc4j.Oc4jStarter.start(Oc4jStarter.java:269)
         at oracle.ide.runner.RunProcess.startTarget(RunProcess.java:830)
         at oracle.jdeveloper.runner.JRunProcess.startTarget(JRunProcess.java:473)
         at oracle.jdevimpl.runner.run.RunningProcess.startTarget(RunningProcess.java:76)
         at oracle.ide.runner.RunProcess$2$1.run(RunProcess.java:768)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    #### Embedded OC4J Server could not be started up.
    What can I do to resolve this ?
    Thanks,
    K

    Found the problem.
    Solution : Do not install Jdev in a directory path which contains blanks spaces.

Maybe you are looking for