Below is a segment of my copybook that I am using to generate the java code from. I have downloaded the latest 1.5.3 libraries running on JDK 1.7.
01 DFHCOMMAREA.
05 ORDERUPDATE.
10 INT-H0SEGID PIC X(4).
10 INT-H0ORDCNT PIC 9(5).
10 INT-H001 OCCURS 99999 TIMES DEPENDING ON INT-H0ORDCNT.
15 INT-H1SEGID PIC X(4).
15 INT-H1TRANSCNTR PIC X(11).
15 INT-H1CHGTYPE PIC X(4).
15 INT-H1WAYBILL PIC X(10).
15 INT-H1SHPMTID PIC X(11).
15 INT-H1DLVAGENT PIC X(7).
15 INT-H1CONSNAME PIC X(30).
15 INT-H1CONSADR1 PIC X(30).
15 INT-H1CONSADR2 PIC X(30).
15 INT-H1CITY PIC X(20).
15 INT-H1STATE PIC X(2).
15 INT-H1ZIP PIC X(6).
15 INT-H1PRMYPHNO PIC X(20).
15 INT-H1ALTRPHNO PIC X(20).
15 INT-H1ALTREXTN PIC X(5).
15 INT-H1DLVTYP PIC X(2).
15 INT-SKURECCOUNT PIC 9(3).
15 INT-DTA OCCURS 999 TIMES DEPENDING ON INT-SKURECCOUNT.
25 INT-D1SEGID PIC X(4).
25 INT-D1TRANSCNTR PIC X(11).
25 INT-D1SEQNO PIC X(4).
25 INT-D1SKUID PIC X(15).
25 INT-D1SKUDESC PIC X(35).
25 INT-D1QTY PIC X(7).
25 INT-D1QTYUOM PIC X(2).
When I run a test with a fixed length file feed that matches the above copybook, I receive the following error when it tries to parse through the int-dta section:
Unexpected error while working iDirect feed: Cannot locate counter INT-SKURECCOUNT
com.legstar.coxb.transform.HostTransformException: Cannot locate counter INT-SKURECCOUNT
at com.legstar.coxb.transform.AbstractHostToJavaTransformer.transform(AbstractHostToJavaTransformer.java:266)
at com.legstar.coxb.transform.AbstractHostToJavaTransformer.transform(AbstractHostToJavaTransformer.java:190)
at com.legstar.coxb.transform.AbstractHostToJavaTransformer.transform(AbstractHostToJavaTransformer.java:147)
at com.legstar.coxb.transform.AbstractHostToJavaTransformer.transform(AbstractHostToJavaTransformer.java:114)
at com.legstar.coxb.transform.AbstractHostToJavaTransformer.transform(AbstractHostToJavaTransformer.java:99)
I have downloaded the source to see if I can determine what may be causing the issue, but it appears that the code that is in the trunk of svn is a bit outdated from the 1.5.3 release. When I get to the method in the debug for CComplexBinding.getCounterInChildren(ICobolComplexBinding parent, String cobolName) the source doesn't matchup with the runtime. From the source, it appears that it should be finding the skureccount element but I can't confirm that it is executing the line since the line numbers do not match. I need either 1 of 2 things: 1) should the 1.5.3 release handing nested occurs and if so, is there something wrong with the copybook that it cannot find the depending field or 2) where can I get the 1.6 build in order to step through the code and determine what it happening in the source to get it working appropriately (I tried to download the code and run maven locally, but there were junit test failing and api doc creations failing and I gave up, I will be willing to run the build myself if someone can provide me with build setup instructions so I can successfully do so)?
Thanks for your help!