IndexOutOfBoundsException in OTD

What does in mean when I get an IndexOutOfBoundsException in my OTD?
I'm trying to create an OTD using the MFS wizard. I get this error whenever there's a DO statement in the MFS file. Seems like the MFS wizard isn't doing it's job well.
Thanks.

What does in mean when I get an IndexOutOfBoundsException in my OTD?
I'm trying to create an OTD using the MFS wizard. I get this error whenever there's a DO statement in the MFS file. Seems like the MFS wizard isn't doing it's job well.
Thanks.

Similar Messages

  • XSD OTD compilefailure String literal not properly closed by double-quote

    Java CAPS 5.1.3
    I have created a XSD to describe a simple XML file. After this I created an OTD from the exported XSD file.
    This OTD is being used in a JCD. During the build of the Deployment Profile I get the error: :Compile failed: xsd.XSD_MB235401907.X_all_B: Line 69: String literal is not properly closed by a double-quote
    All steps have been preferformed within the same eDesigner and the same repository.
    I have verified the XSD file with netbeans and can not see a problem with the file itself.
    Any ideas to resolve this compile failure?
    The XSD is:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        xmlns:tns="http://ams1saa011:12000/repository/repository/Recieve/MessageBroker/WISE_WTE/repository1423024:117d46f486a:-8000/XSDDefinition1" targetNamespace="http://ams1saa011:12000/repository/repository/Recieve/MessageBroker/WISE_WTE/repository1423024:117d46f486a:-8000/XSDDefinition1">
        <xsd:element name="MessageBroker">
            <xsd:complexType>
                <xsd:sequence>
                    <xsd:element name="IN" maxOccurs="unbounded">
                        <xsd:complexType>
                            <xsd:all>
                                <xsd:element name="MSGFN" type="xsd:string" default="IN"/>
                                <xsd:element name="DIR" type="xsd:string" default="\"/>
                                <xsd:element name="FILEMASK"
                                    type="xsd:string" default="*.DAT"/>
                                <xsd:element name="MAPID" type="xsd:string" default="MS000"/>
                                <xsd:element name="RCVPRN" type="xsd:string"/>
                                <xsd:element name="RCVPRT" type="xsd:string"/>
                                <xsd:element name="RCVPFC" type="xsd:string"/>
                                <xsd:element name="SNDPRN" type="xsd:string"/>
                                <xsd:element name="SNDPRT" type="xsd:string"/>
                                <xsd:element name="MESTYP" type="xsd:string"/>
                                <xsd:element name="MESCOD" type="xsd:string"/>
                                <xsd:element name="MESFCT" type="xsd:string"/>
                                <xsd:element name="TEST" type="xsd:boolean" nillable="true"/>
                            </xsd:all>
                        </xsd:complexType>
                    </xsd:element>
                </xsd:sequence>
                <xsd:attribute name="dateTime" type="xsd:dateTime"/>
            </xsd:complexType>
        </xsd:element>
    </xsd:schema>The complete error stack trace is:
    com.stc.codegen.framework.model.CodeGenException: error generating otd for CMap1_jcdMB_Recieve_SAP_Inbound1:Compile failed: xsd.XSD_MB235401907.X_all_B: Line 69: String literal is not properly closed by a double-quote
         at com.stc.codegen.OTDImpl.model.OTDCodeletFactory$OTDCodelet.postFileGeneration(OTDCodeletFactory.java:767)
         at com.stc.codegen.frameworkImpl.model.CodeGenFrameworkImpl.processCodelets(CodeGenFrameworkImpl.java:653)
         at com.stc.codegen.frameworkImpl.model.CodeGenFrameworkImpl.process(CodeGenFrameworkImpl.java:1544)
         at com.stc.codegen.frameworkImpl.model.DeploymentVisitorImpl.process(DeploymentVisitorImpl.java:405)
         at com.stc.codegen.frameworkImpl.model.DeploymentVisitorImpl.process(DeploymentVisitorImpl.java:308)
         at com.stc.codegen.frameworkImpl.model.DeploymentVisitorImpl.traverseDeployment(DeploymentVisitorImpl.java:268)
         at com.stc.codegen.driver.module.DeploymentBuildAction.loadCodeGen(DeploymentBuildAction.java:923)
         at com.stc.codegen.driver.module.DeploymentBuildAction.access$1000(DeploymentBuildAction.java:174)
         at com.stc.codegen.driver.module.DeploymentBuildAction$1.run(DeploymentBuildAction.java:599)
         at org.openide.util.Task.run(Task.java:136)
         at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:599)
    Caused by: java.lang.RuntimeException: Compile failed: xsd.XSD_MB235401907.X_all_B: Line 69: String literal is not properly closed by a double-quote
         at com.stc.javac.Javac.compile(Javac.java:227)
         at com.stc.otd.codegen.BaseXsdDtdGenerator.compileFromJarfile(BaseXsdDtdGenerator.java:254)
         at com.stc.otd.codegen.BaseXsdDtdGenerator.compile(BaseXsdDtdGenerator.java:52)
         at com.stc.otd.xsd.codegen.XsdParserGenerator.compile(XsdParserGenerator.java:182)
         at com.stc.otd.codegen.BaseXsdDtdGenerator.generate(BaseXsdDtdGenerator.java:166)
         at com.stc.otd.codegen.BaseXsdDtdGenerator.generate(BaseXsdDtdGenerator.java:90)
         at com.stc.codegen.OTDImpl.model.CollabOTDGenerator.generateCollabOTDJavaFiles(CollabOTDGenerator.java:233)
         at com.stc.codegen.OTDImpl.model.OTDCodeletFactory$OTDCodelet.processOTDJars(OTDCodeletFactory.java:861)
         at com.stc.codegen.OTDImpl.model.OTDCodeletFactory$OTDCodelet.postFileGeneration(OTDCodeletFactory.java:666)
         ... 10 more

    You may need to escape the default slash "\\".
    I'd suggest importing the xsd into the jcaps xml schema editor and verifying that way and then creating the otd by node export.
    Regards,
    Rupert

  • No Connection btw JCAPS 5.1.2 and SAP ECC 6.0 whle creatining SAP/Bapi OTD

    Hello.
    We have the following problem trying to build SAP BAPI/RFC OTD.
    1) JCAPS 5.1.2. SAP ECC 6.0. Jco version 2.1.7 (also tried 2.1.8, 2.0.12 with the same result). All steps were done according to SAP BAPI/ALE eWays user guides and readmes
    2) SAP client already installed and worked ok on the same host as the JCAPS
    3) It looks like the problem is in JCo. It seems like doesn't react when we trying to connect to SAP during creation of BAPI/RFC OTDs at design time.
    Error message: partner not reached
    ERRNO 10060
    All ports are open and no restrictions imposed on JCAPS server. There are no connection log entries on SAP router host.
    4)We tried to run sample Project which goes with eway, and the following entries in logical host log file were found:
    [#|2007-06-12T11:35:13.171+0600|WARNING|IS5.1.2|STC.eWay.SAP.BAPI.com.stc.connector.sapbapiadapter.sapbapi.SAPConnector|_ThreadID=17; ThreadName=Worker: 5;|SAPConnector.isConnect(): JCO Client is null|#]
    [#|2007-06-12T11:35:13.296+0600|INFO|IS5.1.2|STC.eWay.framework.management.com.stc.connector.management.util.Alerter|_ThreadID=17; ThreadName=Worker: 5;|sendAlert(), connection info: ConnectionInfo [ collaboration: cmBAPIOutbound_jcdFlightGetList, project: prjBAPIOutbound, component: eaSAPBAPI, deployment: dpBAPIOutbound, environment: envTest, logicalhost: LogicalHost1, integration server: IntegrationSvr1 ], monitor: ObjectReference [ name: SeeBeyond:GUID={70010000-D247521E130100-AC14015A-01},Name=prjBAPIOutbounddpBAPIOutbound|prjBAPIOutbound|dpBAPIOutbound|cmBAPIOutbound_jcdFlightGetList_eaSAPBAPI ], alert message: No connection established to SAP R/3 for user $$$$$$ on host $$$$$.|#]
    [#|2007-06-12T11:35:13.312+0600|WARNING|IS5.1.2|STC.eWay.SAP.BAPI.com.stc.connector.sapbapiadapter.sapbapi.SAPConnector|_ThreadID=17; ThreadName=Worker: 5;|SAPConnector.isConnect(): JCO Client is not connected.|#]
    [#|2007-06-12T11:35:34.781+0600|INFO|IS5.1.2|STC.eWay.framework.management.com.stc.connector.management.util.Alerter|_ThreadID=17; ThreadName=Worker: 5;|sendAlert(), connection info: ConnectionInfo [ collaboration: cmBAPIOutbound_jcdFlightGetList, project: prjBAPIOutbound, component: eaSAPBAPI, deployment: dpBAPIOutbound, environment: envTest, logicalhost: LogicalHost1, integration server: IntegrationSvr1 ], monitor: ObjectReference [ name: SeeBeyond:GUID={70010000-D247521E130100-AC14015A-01},Name=prjBAPIOutbounddpBAPIOutbound|prjBAPIOutbound|dpBAPIOutbound|cmBAPIOutbound_jcdFlightGetList_eaSAPBAPI ], alert message: Connection to SAP R/3 failed for user $$$$$$ on host $$$$$$.|#]
    [#|2007-06-12T11:35:34.781+0600|SEVERE|IS5.1.2|STC.eWay.SAP.BAPI.com.stc.connector.sapbapiadapter.sapbapi.SAPConnector|_ThreadID=17; ThreadName=Worker: 5;|Unable to initialize SAP R/3 Client Connection|#]
    Any help is appreciated

    Hi Yermek.
    I guess you are placed and set all jars relates to bapi/rfc.
    You need to pass atleast one parameter from jcd which will initiates the BAPI connection.
    i.e atleast from jcd you need to send a request.
    Hope it will work...
    Thanks,
    M.P.Rao.

  • GENERIC_CODELET_GENERAL getting in jcaps 6 while building oracle otd

    getting the following error while oralce otd building. in jcaps 6..any inputs please...
    com.stc.codegen.framework.model.CodeGenException: Generic Oracle eway code generation error(ERROR_CODEGEN_GENERIC_CODELET_GENERAL)
         at com.stc.oracle.codegen.OracleEWayCodeletFactory$OracleEWayCodelet.generateFiles(OracleEWayCodeletFactory.java:1964)
         at com.stc.codegen.frameworkImpl.model.CodeGenFrameworkImpl.processCodelets(CodeGenFrameworkImpl.java:655)
         at com.stc.codegen.frameworkImpl.model.CodeGenFrameworkImpl.process(CodeGenFrameworkImpl.java:1608)
         at com.stc.codegen.frameworkImpl.model.DeploymentVisitorImpl.process(DeploymentVisitorImpl.java:409)
         at com.stc.codegen.frameworkImpl.model.DeploymentVisitorImpl.process(DeploymentVisitorImpl.java:312)
         at com.stc.codegen.frameworkImpl.model.DeploymentVisitorImpl.traverseDeployment(DeploymentVisitorImpl.java:272)
         at com.stc.codegen.driver.module.DeploymentBuildAction.loadCodeGen(DeploymentBuildAction.java:954)
         at com.stc.codegen.driver.module.DeploymentBuildAction.access$1100(DeploymentBuildAction.java:176)
         at com.stc.codegen.driver.module.DeploymentBuildAction$2.run(DeploymentBuildAction.java:630)
         at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
         at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)
    Caused by: com.stc.codegen.framework.model.CodeGenException: Exception when generating OTD code ...Exception: C:\DOCUME~1\KAKKIR~1\LOCALS~1\Temp\builds\dpINT65_Dev_Test\125269491597899\200909111448350978\Insert_Access_InfoPSInsertPSRequest.java:24720: code too large
    public void restore(DataInputStream dis) throws Exception {
    ^
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    1 error
    (ERROR_CREATE_OTD)
         at com.stc.oracle.codegen.OracleEWayCodeletFactory$OracleEWayCodelet.generateOtdJarFile(OracleEWayCodeletFactory.java:2152)
         at com.stc.oracle.codegen.OracleEWayCodeletFactory$OracleEWayCodelet.generateFiles(OracleEWayCodeletFactory.java:1854)
         ... 10 more

    hi...
    i too getting same problem..how did u reslove this...
    please help me out...
    thanks in advance
    KK

  • Simple java.lang.IndexOutOfBoundsException Question

    Hi, I'm trying to be able to put data into a vector or arraylist without filling the previous spots. Take this for example:
    ArrayList temp=new ArrayList(10);
    temp.ensureCapacity(10);
    temp.set(5, new Integer(5));
    I declaired the size to be 10 twice, why can't I input into the 5th element directly? Is there a way to? I would use normal arrays, but I need to be able to dynamically change the size. I'm having this exact same problem with vectors also. Any ideas? Thank you!

    according to the API specification, the set method of ArrayList:
    Throws:
    IndexOutOfBoundsException - if index out of range (index < 0 || index >= size()).
    size() is the number of elements already inserted.
    Size is not the same as capacity.
    With temp.ensureCapacity(10) you ensure that your ArrayList will be
    able to fit 10 elements without resizing the internal Array, but the
    actual size of the List remains as it was (in your case 0 because you
    haven't inserted anything yet).
    the set method is intended to allow you to change the element at the
    specified index, provided that it has already been inserted in the list.

  • IndexOutOfBoundsException

    Hello Every body,
    Iam getting IndexOutOfBoundsException, Is there any way to avoid this
    error other than using Iterator.
    I am using get() method.
    Thanks in advance for the responses....

    It might help if you tell us what you are doing, maybe post some code.
    I'm guessing you are Iterating over an ordered collection (List maybe).
    Now you could use the size() method, and check if you are past the end of the collection. But I'd use the Iterator (or in 1.5, new for loop, if you are not modifing the collection).

  • Error while unmarshalling the IDOC using an IDOC OTD in JCAPS

    Hi,
    I've created an OTD from SAP IDOC Type in SeeBeyond JCAPS 5.1.2. And when I'm trying to unmarshal the IDOC payload using OTD tester in eDesigner. And the same error is thrown at runtime also. I've tried with multiple IDOCs but no use. And when I navigate to the column number (shown in error message), always it shows stops at same segment. I don't know why. The error message thrown is
    "There was an error during unmarshal.
    less than 1 occurrences! Column Number [30289]"Can any one help me?
    Thanks in advance
    Satya Krishna

    It looks like the control data for the child segment is not getting populated. you have to find the code which populated the control data and see if it is doing what it should.

  • PreparedStatement problem in Oracle OTD(JCAPS 5.1.3)

    Hi,
    I encountered a problem with Oracle-eway-generated PreparedStatements when trying to build a project in enterprise designer . I know that without using any prepraredstatement, my project builds fine. Below is the text on the error pop-up window:
    java.lang.NullPointerException
    at com.stc.codegen.OTDImpl.model.OTDCodeletFactory$ArtifactKey.hashCode(OTDCodeletFactory.java:136)
    at java.util.HashMap.hash(HashMap.java:261)
    at java.util.HashMap.containsKey(HashMap.java:339)
    at com.stc.codegen.OTDImpl.model.OTDCodeletFactory.getOtdFromBuisnessProcess(OTDCodeletFactory.java:207)
    at com.stc.codegen.OTDImpl.model.OTDCodeletFactory.createCodelets(OTDCodeletFactory.java:285)
    at com.stc.codegen.frameworkImpl.model.DeploymentVisitorImpl.process(DeploymentVisitorImpl.java:382)
    at com.stc.codegen.frameworkImpl.model.DeploymentVisitorImpl.process(DeploymentVisitorImpl.java:308)
    at com.stc.codegen.frameworkImpl.model.DeploymentVisitorImpl.traverseDeployment(DeploymentVisitorImpl.java:268)
    at com.stc.codegen.driver.module.DeploymentBuildAction.loadCodeGen(DeploymentBuildAction.java:923)
    at com.stc.codegen.driver.module.DeploymentBuildAction.access$1000(DeploymentBuildAction.java:174)
    at com.stc.codegen.driver.module.DeploymentBuildAction$1.run(DeploymentBuildAction.java:599)
    at org.openide.util.Task.run(Task.java:136)
    [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:599)In order to isolate the problem, I have created a simplified project which just reads a text message and writes the message into the Oracle database with the help of a PreparedStatement. I had an error as well;
    "Oracle eway code generation error(ERROR_CODEGEN_BPEL_CODELET_GENERAL)"
    Caused by: com.stc.codegen.framwork.model.CodeGenException: Error when generating OTD code ...Exception: Invalid parameter type: Class: [TEST] Object: [Param1] Param Type: [VARCHAR].(ERROR_CODEGEN_DB)(ERROR_CREATE_OTD)I think that there is a conflict between the parameters in Oracle and the parameters in the code. Somehow, Oracle eway cannot get the parameter type from database correctly.
    Is there a solution for this? I couldn't find any patches/updates for Enterprise designer or eway. Can you point me to right direction if there is any.
    Thanks in advance,
    Mete

    Hi there,
    (I think) I have found the solution. When designing OTD, I have mapped VARCHAR2 column as CHAR. Somehow, JCAPS throws a code generation exception if the field is not mapped as a CHAR for a VARCHAR2 database column.

  • Error when using Oracle OTD wizard

    I'm getting this message when I try to create an OTD using the oracle otd wizard with Netbeans in Windows. Does anyone know how to resolve this issue?
    java.lang.NullPointerException
         at com.stc.oracle.wizard.TablesVisualPanel.isValid(TablesVisualPanel.java:133)
         at java.awt.Component.invalidateIfValid(Component.java:2787)
         at java.awt.Component.setLocale(Component.java:1857)
         at javax.swing.JComponent.<init>(JComponent.java:584)
         at javax.swing.JPanel.<init>(JPanel.java:65)
         at javax.swing.JPanel.<init>(JPanel.java:92)
         at javax.swing.JPanel.<init>(JPanel.java:100)
         at com.stc.oracle.wizard.TablesVisualPanel.<init>(TablesVisualPanel.java:61)
         at com.stc.oracle.wizard.TablesPanel.getComponent(TablesPanel.java:87)
         at com.stc.oracle.wizard.NewOtdIterator.initialize(NewOtdIterator.java:128)
         at org.openide.loaders.TemplateWizardIterImpl.setIterator(TemplateWizardIterImpl.java:100)
         at org.openide.loaders.TemplateWizardIteratorWrapper.setIterator(TemplateWizardIteratorWrapper.java:76)
         at org.openide.loaders.TemplateWizard.setTemplateImpl(TemplateWizard.java:193)
         at org.openide.loaders.TemplateWizard.setTemplate(TemplateWizard.java:211)
         at com.stc.otd.launcher.WizardSelectionPanel.storeSettings(WizardSelectionPanel.java:158)
         at org.openide.WizardDescriptor.setValueOpen(WizardDescriptor.java:1288)
         at org.openide.WizardDescriptor.setValue(WizardDescriptor.java:1266)
         at org.netbeans.core.windows.services.NbPresenter$ButtonListener.actionPerformed(NbPresenter.java:1131)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
         at java.awt.Component.processMouseEvent(Component.java:6267)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
         at java.awt.Component.processEvent(Component.java:6032)
         at java.awt.Container.processEvent(Container.java:2041)
         at java.awt.Component.dispatchEventImpl(Component.java:4630)
         at java.awt.Container.dispatchEventImpl(Container.java:2099)
         at java.awt.Component.dispatchEvent(Component.java:4460)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
         at java.awt.Container.dispatchEventImpl(Container.java:2085)
         at java.awt.Window.dispatchEventImpl(Window.java:2478)
         at java.awt.Component.dispatchEvent(Component.java:4460)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
         at java.awt.Dialog$1.run(Dialog.java:1046)
         at java.awt.Dialog$3.run(Dialog.java:1098)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.awt.Dialog.show(Dialog.java:1096)
         at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:867)
         at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:901)
         at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:889)
         at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:109)
         at org.openide.util.Mutex.doEventAccess(Mutex.java:1355)
         at org.openide.util.Mutex.readAccess(Mutex.java:268)
         at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:874)
         at java.awt.Component.show(Component.java:1563)
         at java.awt.Component.setVisible(Component.java:1515)
         at java.awt.Window.setVisible(Window.java:842)
         at java.awt.Dialog.setVisible(Dialog.java:986)
         at org.openide.loaders.TemplateWizard.instantiateImpl(TemplateWizard.java:495)
         at org.openide.loaders.TemplateWizard.instantiate(TemplateWizard.java:362)
         at com.stc.otd.launcher.WizardManager.showWizardSelectionDialog(WizardManager.java:75)
         at com.stc.otd.launcher.OTDWizardLauncherAction.createNewElement(OTDWizardLauncherAction.java:66)
         at com.stc.egate.toolbus.toolAction.BaseToolAction.actionPerformed(BaseToolAction.java:53)
         at com.stc.egate.gui.projectexplorer.BasicSubMenuAction$SubMenuModel.performActionAt(BasicSubMenuAction.java:264)
         at org.openide.awt.Actions$ISubActionListener.actionPerformed(Actions.java:1150)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1223)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1264)
         at java.awt.Component.processMouseEvent(Component.java:6267)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
         at java.awt.Component.processEvent(Component.java:6032)
         at java.awt.Container.processEvent(Container.java:2041)
         at java.awt.Component.dispatchEventImpl(Component.java:4630)
         at java.awt.Container.dispatchEventImpl(Container.java:2099)
         at java.awt.Component.dispatchEvent(Component.java:4460)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
         at java.awt.Container.dispatchEventImpl(Container.java:2085)
         at java.awt.Window.dispatchEventImpl(Window.java:2478)
         at java.awt.Component.dispatchEvent(Component.java:4460)
    [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

    I've had the same problem. The cause was, that i was using jdk version 1.6.0_19.
    After installing the highest supported version of the jdk (1.6.0_11) the problem was solved.
    s.a. http://docs.sun.com/app/docs/doc/821-0449/inst_support_jdk_r?a=view
    Hope this helps,
    Peter

  • Reading from text file gives IndexOutOfBoundsException error

    Dear All
    I really need your help in doing my assignment as soon as possible
    I am reading from a text file the following data
    4231781,Ali,AlAli
    4321790,Adnan,AlAli
    using two classes first one is
    public class Student
    private String studFName;
    private String studLName;
    private String studID;
    private double assignment1;
    private double assignment2;
    private double final_exam;
    private double total;
    public String getstudfName() {
    return studFName;
    public void setstudfName(String studFName) {
    this.studFName = studFName;
    public String getstudlName() {
    return studLName;
    public void setstudlName(String studLName) {
    this.studLName = studLName;
    public String getstudid() {
    return studID;
    public void setStudID(String studID){
    this.studID = studID;
    public double getAssignment1() {
    return assignment1;
    public void setAssignment1(double Assignment1) {
    this.assignment1 = assignment1;
    public double getAssignment2() {
    return assignment1;
    public void setAssignment2(double Assignment2) {
    this.assignment2 = assignment2;
    public double getFinal_exam() {
    return final_exam;
    public void setFinal_exam(double final_exam) {
    this.final_exam = final_exam;
    public double getTotal() {
    return total;
    public void setTotal(double total) {
    this.total = total;
    Student[] students = new Student[30];
    the second is manager one which is:
    import java.io.*;
    import java.io.IOException;
    import java.util.Arrays;
    import java.util.ArrayList;
    public class manager {
    public static Student[] students = new Student[30];
    public static void main(String args[]) {
    // We want to let the user specify which file we should open
    // on the command-line. E.g., 'java TextIO TextIO.java'.
    if(args.length != 1) {
    System.err.println("usage: java manager (file_name)");
    System.exit(1);
    // We're going to read lines from 'input', which will be attached
    // to a text-file opened for reading.
    BufferedReader input = null;
    try {
    FileReader file = new FileReader(args[0]); // Open the file.
    input = new BufferedReader(file); // Tie 'input' to this file.
    catch(FileNotFoundException x) { // The file may not exist.
    System.err.println("File not found: " + args[0]);
    System.exit(2);
    // Now we read the file, line by line, echoing each line to
    // the terminal.
    try {
    String line;
    // Student[] students = new Student[30];
    while( (line = input.readLine()) != null ) {
    // System.out.println(line);
    int m = line.indexOf(",");
    int j = line.lastIndexOf(",");
    String sID = line.substring(0,m);
    String sfn = line.substring(m+1,j) ;
    String sln = line.substring(j+1);
    int n = 0;
    students[n] = new Student();
    students[n].setStudID(sID);
    students[n].setstudfName(sfn);
    students[n].setstudlName(sln);
    students[n].setAssignment1(0.0);
    students[n].setAssignment2(0.0);
    students[n].setFinal_exam(0.0);
    students[n].setTotal(0.0);
                        ++n;
    catch(IOException x) {
    x.printStackTrace();
    // Arrays.sort(Student.students);
         int length = args.length;
    System.out.println();
    // System.out.println("Sorted by stuID");
    for (int i=0; i<length; i++) {
    System.out.print("Student ID "+students.getstudid() + "|||");
    System.out.print("Student Fname "+students[i].getstudfName() + "|||");
    System.out.print("Student name "+students[i].getstudlName());
    when I comile progrma it doesn't give any error but when I run it gives me the following exception:
    java.lang.String.substring. IndexOutOfBoundsException string index out of range : -1
    as can be seen from the manager class I form the read line from readline method as follows:
    int m = line.indexOf(",");
    int j = line.lastIndexOf(",");
    String sID = line.substring(0,m);
    String sfn = line.substring(m+1,j) ;
    String sln = line.substring(j+1);
    Therefore, student ID should be read from the beggining tel the character before the comma (,) then from the character after first comma tel that before second comma will be firstname, finally the rest after second comma will be last name.
    I want my program to read all lines in the text file and put them in order as above forming the array like database record and print them all.
    Could you please Help me in this matter friends as soon as possible.
    Regards,
    Java_Hobby

    please, format you code first (select your java code and hit the code button), then post all the error log message.

  • Publish to weblogic aborts with IndexOutOfBoundsException

    Hi,
    I'm having some trouble deploying OSB Configuration projects to my weblogic app server. Here's my scenário:
    I have two separate OSB Configuration projects (let's call them A and B). I currently have project A deployed on weblogic. When I try to undeploy (remove) project A I get the error described below. I get the same error when I try to deploy project B.
    I have tried cleaning, restarting and even removing and adding the server in eclipse but the error keeps re-ocurring.
    Error
    Runtime exception occurred during publish. The publish is aborted. Please report the bug with the stack trace. The stack can be found on the log and the Error Log view.
    Stack Trace
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
         at java.util.ArrayList.RangeCheck(ArrayList.java:547)
         at java.util.ArrayList.get(ArrayList.java:322)
         at com.bea.alsb.server.publish.ALSBPublishOperation.checkModuleStatus(Unknown Source)
         at com.bea.alsb.server.publish.ALSBPublishOperation.execute(Unknown Source)
         at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.performTasks(WeblogicServerBehaviour.java:1253)
         at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publishToServer(WeblogicServerBehaviour.java:804)
         at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publishOnce(WeblogicServerBehaviour.java:660)
         at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publish(WeblogicServerBehaviour.java:526)
         at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:708)
         at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:2731)
         at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:278)
         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
    Session Data
    eclipse.buildId=unknown
    java.version=1.6.0_17
    java.vendor=Oracle Corporation
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments: -os win32 -ws win32 -arch x86
    Further Details
    Eclipse
    Version: 3.5.2
    Build id: M20100211-1343
    Weblogic
    Oracle WebLogic Server 11gR1 PatchSet 2
    Any help is much appreciated.
    Thanks,
    Adel.

    I recreated the osb project, moved all projects from old osb project to new osb project. When I remove the old osb project from the server the error shows up. None-the-less I tried to deploy the new osb project and the error shows up again with a slight difference, Index and Size are 6 rather than 0. I have exactly 6 projects in my osb configuration project.
    Stack Trace
    java.lang.IndexOutOfBoundsException: Index: 6, Size: 6
    at java.util.ArrayList.RangeCheck(ArrayList.java:547)
    at java.util.ArrayList.get(ArrayList.java:322)
    at com.bea.alsb.server.publish.ALSBPublishOperation.checkModuleStatus(Unknown Source)
    at com.bea.alsb.server.publish.ALSBPublishOperation.execute(Unknown Source)
    at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.performTasks(WeblogicServerBehaviour.java:1253)
    at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publishToServer(WeblogicServerBehaviour.java:804)
    at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publishOnce(WeblogicServerBehaviour.java:660)
    at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publish(WeblogicServerBehaviour.java:526)
    at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:708)
    at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:2731)
    at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:278)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

  • IndexOutOfBoundsException with BPEL FTP adapter

    I am running SOA Suite 10.1.3.4 on WebLogic Server 9.2, and have deployed a simple test BPEL process that is using the FTP adapter to poll for files on a remote SFTP server, retrieve the opaque payload, then copy it to a destination file on another SFTP server. For small files this works fine. For larger files (e.g., a 3.5MB file with ~25000 fixed-length records) I get the following in my OracleSOAServer.log file:
    ===========================================
    java.lang.IndexOutOfBoundsException
         at java.io.ObjectInputStream.read(ObjectInputStream.java:822)
         at oracle.xml.comp.CXMLStream.ensureReadCapacity(CXMLStream.java:1673)
         at oracle.xml.comp.CXMLStream.readChars(CXMLStream.java:1324)
         at oracle.xml.comp.CXMLStream.readUTF(CXMLStream.java:870)
         at oracle.xml.parser.v2.XMLText.readExternal(XMLText.java:905)
         at oracle.xml.parser.v2.XMLNode.readChildNodes(XMLNode.java:2853)
         at oracle.xml.parser.v2.XMLNode.readChildNodes(XMLNode.java:2843)
         at oracle.xml.parser.v2.XMLDocument.readExternal(XMLDocument.java:3394)
         at com.collaxa.cube.xml.dom.SDOMHelper.loadCompressedNormalDom(SDOMHelper.java:345)
         at com.collaxa.cube.xml.dom.SDOMHelper.load(SDOMHelper.java:135)
         at com.collaxa.cube.xml.dom.DOMUtil.loadDocument(DOMUtil.java:2580)
         at com.collaxa.cube.engine.delivery.DeliveryHelper.loadParts(DeliveryHelper.java:933)
         at com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:526)
         at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:342)
         at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean_yt19iq_ELOImpl.handleInvoke(CubeDeliveryBean_yt19iq_ELOImpl.java:931)
         at com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:37)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:141)
         at com.collaxa.cube.engine.dispatch.BaseDispatchTask.run(BaseDispatchTask.java:58)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
         at java.lang.Thread.run(Thread.java:595)
    <2009-03-06 00:12:12,931> <ERROR> <default.collaxa.cube> <BaseCubeSessionBean::logError> Error while invoking bean "cube delivery": Exception not handled by the Collaxa Cube system.
    An unhandled exception has been thrown in the Collaxa Cube system. The exception reported is: "ORABPEL-09222
    Cannot deserialize DOM element.
    Failed to deserialize the DOM element from binary format, the document id c4ee9a6854f6381d:-649649f8:11fda9c39f2:-7fcb. The exception reported is
         at com.collaxa.cube.xml.dom.SDOMHelper.loadCompressedNormalDom(SDOMHelper.java:355)
         at com.collaxa.cube.xml.dom.SDOMHelper.load(SDOMHelper.java:135)
         at com.collaxa.cube.xml.dom.DOMUtil.loadDocument(DOMUtil.java:2580)
         at com.collaxa.cube.engine.delivery.DeliveryHelper.loadParts(DeliveryHelper.java:933)
         at com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:526)
         at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:342)
         at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean_yt19iq_ELOImpl.handleInvoke(CubeDeliveryBean_yt19iq_ELOImpl.java:931)
         at com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:37)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:141)
         at com.collaxa.cube.engine.dispatch.BaseDispatchTask.run(BaseDispatchTask.java:58)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
         at java.lang.Thread.run(Thread.java:595)
    Exception: ORABPEL-09222
    Cannot deserialize DOM element.
    Failed to deserialize the DOM element from binary format, the document id c4ee9a6854f6381d:-649649f8:11fda9c39f2:-7fcb. The exception reported is
    Handled As: com.collaxa.cube.CubeException
    ORABPEL-00000
    ===========================================
    This happens immediately after the polling FTP adapter picks up the file. The IndexOutOfBoundsException is particularly troubling...is this error solely a function of memory (no OutOfMemory exception is being thrown), or is some other factor at work here? Any insights are appreciated.
    Thanks,
    --Gary                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi Anirudh,
    Thanks for the response. To clarify: my BPEL process starts with a Receive activity (with "createInstance" set to "yes"), which is receiving from an FTP Adapter PartnerLink. This PartnerLink is polling for a file on an SFTP server. When this file is present, and is relatively small, the whole BPEL process completes successfully. When it is of a larger size, I get the error described in my original post. The cause of the indexOutOfBoundsException is what I'm trying to determine. Here is the source for my BPEL process:
    ===================================
    <?xml version = "1.0" encoding = "UTF-8" ?>
    <!--
    Oracle JDeveloper BPEL Designer
    Created: Tue Mar 03 17:01:11 GMT-07:00 2009
    Author: Gary
    Purpose: Empty BPEL Process
    -->
    <process name="KFS_CNV_OpaqueFileRouting"
    targetNamespace="http://xmlns.oracle.com/KFS_CNV_BPEL_OpaqueFileRouting"
    xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    queryLanguage="http://www.w3.org/TR/1999/REC-xpath-19991116"
    expressionLanguage="http://www.w3.org/TR/1999/REC-xpath-19991116"
    abstractProcess="no" enableInstanceCompensation="no"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:ns7="http://xmlns.oracle.com/pcbpel/adapter/ftp/ReceiveInputFile/"
    xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:ns5="http://xmlns.oracle.com/pcbpel/adapter/file/"
    xmlns:client="http://xmlns.oracle.com/KFS_CNV_BPEL_FileRouting"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:ns3="http://xmlns.oracle.com/pcbpel/adapter/ftp/"
    xmlns:ns2="http://xmlns.oracle.com/pcbpel/adapter/opaque/"
    xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
    xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
    xmlns:ns8="http://xmlns.oracle.com/pcbpel/adapter/ftp/WriteOutputFile/">
    <!--
    PARTNERLINKS
    List of services participating in this BPEL process
    -->
    <!--
    VARIABLES
    List of messages and XML documents used within this BPEL process
    -->
    <partnerLinks>
    <partnerLink myRole="GetFile_role" name="ReceiveInputFile"
    partnerLinkType="ns7:GetFile_plt"/>
    <partnerLink name="WriteOutputFile" partnerRole="PutFile_role"
    partnerLinkType="ns8:PutFile_plt"/>
    </partnerLinks>
    <variables>
    <variable name="ReceiveFileContents_GetFile_InputVariable"
    messageType="ns7:GetFile_msg"/>
    <variable name="FtpHeaderData" messageType="ns3:InboundHeader_msg"/>
    <variable name="DestFileHeader" messageType="ns3:OutboundHeader_msg"/>
    <variable name="OutboundFileContents" messageType="ns8:PutFile_msg"/>
    </variables>
    <!--
    ORCHESTRATION LOGIC
    Set of activities coordinating the flow of messages across the
    services integrated within this business process
    -->
    <sequence name="main">
    <receive name="ReceiveFileContents" partnerLink="ReceiveInputFile"
    portType="ns7:GetFile_ptt" operation="GetFile"
    variable="ReceiveFileContents_GetFile_InputVariable"
    createInstance="yes" bpelx:headerVariable="FtpHeaderData"/>
    <assign name="AssignDestFileHeader">
    <copy>
    <from variable="FtpHeaderData" part="inboundHeader"
    query="/ns3:InboundFTPHeaderType/ns3:fileName"/>
    <to variable="DestFileHeader" part="outboundHeader"
    query="/ns3:OutboundFTPHeaderType/ns3:fileName"/>
    </copy>
    </assign>
    <assign name="AssignDestFileContents">
    <copy>
    <from variable="ReceiveFileContents_GetFile_InputVariable" part="opaque"
    query="/ns2:opaqueElement"/>
    <to variable="OutboundFileContents" part="opaque"
    query="/ns2:opaqueElement"/>
    </copy>
    </assign>
    <invoke name="PushFileContents" partnerLink="WriteOutputFile"
    portType="ns8:PutFile_ptt" operation="PutFile"
    inputVariable="OutboundFileContents"/>
    </sequence>
    </process>
    ===================================
    Thanks,
    --Gary                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Unmarshal fails with OTD Tester

    Sorry to bother you again with another JCAPS-question, but I would like to know how to troubleshoot these kind of error messages. I tried to test my deployment dpData_Conversion_for_IP but it failed with an unmarshal error..now I have seen this error before and I know that other folks fixed it for me the last couple of times, but I'd like to learn on how to address an issue like this.
    When I ran the otdtester I receive an error message like:
    There was an error during unmarshal.
    "...00100001\r\n"<POS>"L113218807..." failed input match, after RecordGroup[1]: left over 3086 bytes at end of data
    When I enable Verbose Mode I get the following detailed output (see attachment) which basically tells me at te end that there are so many bytes of data left that could not be matched. Does it mean that my file I present to unmarshal contains more data than I told it to expect? How would you normally fix an issue like this? I looked at the source file and the otd and the field lengths do add up: the header ends at position 163 and the line items at position 125
    Do the line item lines need to be adjusted (the number of times they repeat?)
    My custom input otd used to work fine until last week then I made some changes to the EDI-mapping, but I didn't alter the field length, or the number of fields, so then it should not have any effect.
    Below you will find the output in Verbose Mode:
    [ parse #0 ]
    [ parse 'root', pos=0, end=292, mandatory  ]
    [ parse group, count=0, order=0, must ]
    [ parse #1 ]
    [ parse 'RecordGroup', pos=0, end=292, mandatory  ]
    [ parse group, count=0, order=0, must ]
    [ parse #2 ]
    [ parse 'Header', pos=0, end=292 ]
    [ parse group delim, Fog#25 ]
    [ - push local delim list ]
    [ - iteration #0 ]
    [ parse 'RecType', pos=0, end=292 ]
    [ parse fixed, Fog#3, count=0 ]
    [ - match EXACT "H1" ]
    [ - matched data 0 to 2: "H1" ]
    [ - parse: result=1 ]
    [ - parse: 'RecType' , done=false, pos=2, end=292, last=EOD ]
    [ parse 'PackListNumber', pos=2, end=292 ]
    [ parse fixed, Fog#4, count=0 ]
    [ - matched data 2 to 22: "5160448             " ]
    [ - parse: result=1 ]
    [ - parse: 'PackListNumber' , done=false, pos=22, end=292, last=EOD ]
    [ parse 'SequenceNumber', pos=22, end=292 ]
    [ parse fixed, Fog#5, count=0 ]
    [ - matched data 22 to 27: "00001" ]
    [ - parse: result=1 ]
    [ - parse: 'SequenceNumber' , done=false, pos=27, end=292, last=EOD ]
    [ parse 'StockNoticeNumber', pos=27, end=292 ]
    [ parse fixed, Fog#6, count=0 ]
    [ - matched data 27 to 47: "51604480000100000000" ]
    [ - parse: result=1 ]
    [ - parse: 'StockNoticeNumber' , done=false, pos=47, end=292, last=EOD ]
    [ parse 'CurrentDate', pos=47, end=292 ]
    [ parse fixed, Fog#7, count=0 ]
    [ - matched data 47 to 67: "                    " ]
    [ - parse: result=1 ]
    [ - parse: 'CurrentDate' , done=false, pos=67, end=292, last=EOD ]
    [ parse 'SequenceNumber2', pos=67, end=292 ]
    [ parse fixed, Fog#8, count=0 ]
    [ - matched data 67 to 72: "00001" ]
    [ - parse: result=1 ]
    [ - parse: 'SequenceNumber2' , done=false, pos=72, end=292, last=EOD ]
    [ parse 'RecvStoreNumber', pos=72, end=292 ]
    [ parse fixed, Fog#9, count=0 ]
    [ - matched data 72 to 89: "0000280942       " ]
    [ - parse: result=1 ]
    [ - parse: 'RecvStoreNumber' , done=false, pos=89, end=292, last=EOD ]
    [ parse 'SchedSendDate', pos=89, end=292 ]
    [ parse fixed, Fog#10, count=0 ]
    [ - matched data 89 to 98: "080808   " ]
    [ - parse: result=1 ]
    [ - parse: 'SchedSendDate' , done=false, pos=98, end=292, last=EOD ]
    [ parse 'CreationDate', pos=98, end=292 ]
    [ parse fixed, Fog#11, count=0 ]
    [ - matched data 98 to 107: "080808   " ]
    [ - parse: result=1 ]
    [ - parse: 'CreationDate' , done=false, pos=107, end=292, last=EOD ]
    [ parse 'CreationTime', pos=107, end=292 ]
    [ parse fixed, Fog#12, count=0 ]
    [ - matched data 107 to 113: "031229" ]
    [ - parse: result=1 ]
    [ - parse: 'CreationTime' , done=false, pos=113, end=292, last=EOD ]
    [ parse 'BillOfLadingNumber', pos=113, end=292 ]
    [ parse fixed, Fog#13, count=0 ]
    [ - matched data 113 to 133: "5160448             " ]
    [ - parse: result=1 ]
    [ - parse: 'BillOfLadingNumber' , done=false, pos=133, end=292, last=EOD ]
    [ parse 'ASN', pos=133, end=292 ]
    [ parse fixed, Fog#14, count=0 ]
    [ - matched data 133 to 136: "ASN" ]
    [ - parse: result=1 ]
    [ - parse: 'ASN' , done=false, pos=136, end=292, last=EOD ]
    [ parse 'TRANSACTION_ID', pos=136, end=292 ]
    [ parse fixed, Fog#15, count=0 ]
    [ - matched data 136 to 163: "ASN08080851604480..." ]
    [ - parse: result=1 ]
    [ - parse: 'TRANSACTION_ID' , done=false, pos=163, end=292, last=EOD ]
    [ - retry parent delimiter ]
    [ - retry failed: overshoot, del=164, pos=0 ]
    [ - parse: result=0 ]
    [ - for #2: count=-1 ]
    [ - parse: result=0 ]
    [ - parse: 'RecordGroup' , done=false, pos=0, end=292, last=EOD ]
    [ - for #1: count=0 ]
    [ - parse: result=1 ]
    [ - parse: 'root' , done=false, pos=0, end=292, last=EOD ]
    [ - for #0: count=1 ]

    Hey, I got some help from the open-esb users forum. See below.
    Mike,
    After modifying the xsd (adding match, removing scavenger, moving delimiter
    level to the top, removing 2 FILLER2 fields, etc.) and modifying the data a
    bit (padding spaces to each detail record to a total 392 bytes excluding
    CR&LF), I am able to parse the data. Please refer to the attached zip
    including input, xsd, output XML, and parse log.
    Any further questions, please let me know.
    Thanks!
    Lixin
    Open ESB Community
    http://open-esb.org
    -----Original Message-----
    From: [email protected] mailto:[email protected]
    Sent: Friday, October 17, 2008 2:05 PM
    To: [email protected]; 'Mike A Reynolds'
    Subject: RE: Custom Encoders Questions
    Mike,
    There are a number of problems I have found so far as I start looking into
    the provided xsd meta and input data:
    (1) The header element is also delimited by CR&LF. I see you have put
    delimiters for the detail and trailer elements, but the header element
    misses to be delimited.
    (2) CR&LF can be expressed as "\r\n" or "\x0D\x0A", but not "\n\r". I see
    you have "\n\r" in your xsd file which is wrong.
    (3) You said header record has 82 bytes, detail has 382 bytes and trailer
    has 91 bytes. But I've found a few mismatches:
    In your input data file, the header record has 80 bytes + CR+LF = 82
    bytes, but your xsd meta definition gives header total byte count of 81
    (without CR+LF), which mismatches the expected 82 bytes. You'll need to
    correct this in order for the parsing to work. (For me, I have to remove the
    "filler2" field in order to get the header parsed.)
    In your input data file, each detail record has 350+CR+LF = 352 bytes,
    which contradicts the expected 382 bytes. I haven't added up the total bytes
    in your xsd meta file, but I suspect they have mismatches.
    Similar mismatch may also exist for the detail record, but I haven't got
    chance to sum the total.
    (4) The header, detail and trailer records all have first byte ("H", "D" or
    "T") as record type. You must specify the "RECORD_TYPE" field to match the
    character "H", "D" or "T", respectively by putting the character in the
    "Match" field and selecting "Alignment" to "exact", meaning exact match.
    I see these characters were mistakenly put in the scavenger fields
    instead. Please correct this.
    After you modify your xsd meta encoding information based on above, you
    should be able to parse the input data.
    Let me know if there are any questions,
    Regards
    Lixin
    Open ESB Community
    http://open-esb.org
    -----Original Message-----
    From: [email protected]
    mailto:[email protected] On
    Behalf Of Mike A Reynolds
    Sent: Thursday, October 16, 2008 3:11 PM
    To: [email protected]
    Subject: Custom Encoders Questions
    I am trying to create a customer encoder for a batch file
    consistes of a header record of 82 bytes, several detail records of 382
    bytes and one trailer record of 91 bytes
    HACCUMULATED BENEFIT TRANSACTION FILE 20080801 20080825 0
    0
    D ar3531 ar3531 ar3531 ar3531000
    55887027260 30.000 30 5098765 20080804 000T114 120080806
    82820P30000001024511 25.00 0.00 25.00 0.00 25.00
    25.00 0.00 0.00 0.00 0.00 0.00T
    TACCUMULATED BENEFIT TRANSACTION FILE 20080801 20080825
    2894 0 0
    (See attached file: accumLoad.xsd)
    It seems to not like having multiple record formats and dies after reading
    the header. How can I tell the encoder to filter on the RECORD_TYPE so that
    it picks up the different formats.
    Best Regards,
    Michael Reynolds
    Senior Solutions Engineer - Architecture and Engineering

  • Problem with user defined OTD

    Hi,
    I can't quite figure out how to create an OTD to describe the following:
    [CMP DESC]
    field1=value1
    field2=value2
    field3=value3
    There are actually 41 fields in total in the file.
    Any suggestions on how to do this?
    Thanks,
    Richard

    See
    michaels>  select xmlquery('declare function local:test_function($namecmp as xs:string?, $inputtype as xs:string?) as xs:string?      
                        return {$inputtype}
                     local:test_function("1","2")' returning content) o from dual
    Error at line 5
    ORA-19114: error during parsing the XQuery expression:
    LPX-00801: XQuery syntax error at '{'
    3                       return {$inputtype}
    -                              ^
    michaels>  select xmlquery('declare function local:test_function($namecmp as xs:string?, $inputtype as xs:string?) as xs:string?      
                        $inputtype
                     local:test_function("1","2")' returning content) o from dual
    O   
    2   
    1 row selected.

  • Portal error : java.lang.IndexOutOfBoundsException: Index: 2, Size: 2

    Hi Experts,
    Through protal I am changing Other Bank details (IT0009 subtype 0001) for US employee.
    I get the error java.lang.IndexOutOfBoundsException: Index: 2, Size: 2  when I am edditing the other bank details.
    Please help me out in this.
    Prasad

    Hi,
    java.lang.IndexOutOfBoundsException occurs when the runtime environment tries to access the index of an array which doesn't exist. (Index 2 = third entry, you only seem to have 2 entries though).
    Are you certain, the Pernr's Infotype is maintained correctly?
    Could you post the entire error log from NWA so we can see the JAVA Stack? Maybe the error is nested.
    Check Notes 1356222 and 1359671 as well. They might solve your error right away.
    best regards, Lukas
    Edited by: Lukas Weigelt on Jul 14, 2011 9:36 AM

Maybe you are looking for

  • Closing stock as on 31st march 2008

    Hi, I need to take a closing stock report as on 31st march 2008 with quantity and value. Please do the needful Regards, narasiman

  • Period-wise sales

    Dear Gurus, Can anyboy explain the detail sale of a material period-wise. If any standard report, then appreciable. For example, <b>Material   Dec   Jan  Feb  Mar   Total   AB         5       4     8       7       24   BB        6        5     6     

  • Has the ability to add markers to a clip during capture been added to Premiere CS6?*

    I do live captures for video assist with PP5.5 and asked for the ability for markers to be added on the fly while capturing a while back. Just wondering if this has been added to PP6 or not. Use it all the time with Avid MC, and find it difficult to

  • How we get database data tohtml;select  in struts

    Hi, i need to populate the data from database to struts dropdown list(html:select). here i got error. tell the way to get database data to dropdown list.

  • Neuer Horizon 2 27" Touch geht nicht

    Hallo Bei meinem neuen Horizon 2 27"     geht Touch nicht. Ich denke im Gerätemanager wird es als OK angezeigt. Muss das was eingeschaltet werden ? oder was nach installiert ? Oder ist es einfach defekt ? Danke Euch. beste Grüße Mandi