Program: 30949
Project: 30949
Buggy source:
@BeforeClass public static void setUpClass() throws Exception {
  FACTORY_CONTAINER.getFactory().getConfiguration().exists("String_Node_Str");
  int xcount=100;
  int ycount=10;
  try (JournalWriter xw=FACTORY_CONTAINER.getFactory().writer(new JournalStructure("String_Node_Str").$ts().$sym("String_Node_Str").$double("String_Node_Str").$double("String_Node_Str").$str("String_Node_Str").$sym("String_Node_Str").$float("String_Node_Str").$short("String_Node_Str").$long("String_Node_Str").$bool("String_Node_Str").recordCountHint(xcount).$())){
    try (JournalWriter yw=FACTORY_CONTAINER.getFactory().writer(new JournalStructure("String_Node_Str").$ts().$sym("String_Node_Str").$double("String_Node_Str").$str("String_Node_Str").recordCountHint(ycount).$())){
      Rnd rnd=new Rnd();
      String[] ccy=new String[3];
      for (int i=0; i < ccy.length; i++) {
        ccy[i]=rnd.nextChars(6).toString();
      }
      long ts=DateFormatUtils.parseDateTime("String_Node_Str");
      for (int i=0; i < xcount; i++) {
        JournalEntryWriter w=xw.entryWriter();
        w.putDate(0,ts+=10000);
        w.putSym(1,ccy[rnd.nextPositiveInt() % ccy.length]);
        w.putDouble(2,rnd.nextDouble());
        w.putDouble(3,rnd.nextDouble());
        w.putStr(4,rnd.nextChars(rnd.nextPositiveInt() % 128));
        w.putSym(5,ccy[rnd.nextPositiveInt() % ccy.length]);
        w.putFloat(6,rnd.nextFloat());
        w.putShort(7,(short)rnd.nextInt());
        w.putLong(8,rnd.nextLong());
        w.putBool(9,rnd.nextBoolean());
        w.append();
      }
      xw.commit();
      ts=DateFormatUtils.parseDateTime("String_Node_Str");
      for (int i=0; i < ycount; i++) {
        JournalEntryWriter w=yw.entryWriter();
        w.putDate(0,ts+=60000);
        w.putSym(1,ccy[rnd.nextPositiveInt() % ccy.length]);
        w.putDouble(2,rnd.nextDouble());
        w.putStr(3,rnd.nextChars(rnd.nextPositiveInt() % 128));
        w.append();
      }
      yw.commit();
      try (JournalWriter jwa=FACTORY_CONTAINER.getFactory().writer(new JournalStructure("String_Node_Str").$ts().$sym("String_Node_Str").$double("String_Node_Str").$())){
        try (JournalWriter jwb=FACTORY_CONTAINER.getFactory().writer(new JournalStructure("String_Node_Str").$ts().$sym("String_Node_Str").$double("String_Node_Str").$())){
          JournalEntryWriter ewa;
          ewa=jwa.entryWriter();
          ewa.putDate(0,DateFormatUtils.parseDateTime("String_Node_Str"));
          ewa.putSym(1,"String_Node_Str");
          ewa.putDouble(2,0.538);
          ewa.append();
          ewa=jwa.entryWriter();
          ewa.putDate(0,DateFormatUtils.parseDateTime("String_Node_Str"));
          ewa.putSym(1,"String_Node_Str");
          ewa.putDouble(2,1.35);
          ewa.append();
          ewa=jwa.entryWriter();
          ewa.putDate(0,DateFormatUtils.parseDateTime("String_Node_Str"));
          ewa.putSym(1,"String_Node_Str");
          ewa.putDouble(2,1.41);
          ewa.append();
          ewa=jwa.entryWriter();
          ewa.putDate(0,DateFormatUtils.parseDateTime("String_Node_Str"));
          ewa.putSym(1,"String_Node_Str");
          ewa.putDouble(2,0.601);
          ewa.append();
          ewa=jwa.entryWriter();
          ewa.putDate(0,DateFormatUtils.parseDateTime("String_Node_Str"));
          ewa.putSym(1,"String_Node_Str");
          ewa.putDouble(2,1.26);
          ewa.append();
          ewa=jwa.entryWriter();
          ewa.putDate(0,DateFormatUtils.parseDateTime("String_Node_Str"));
          ewa.putSym(1,"String_Node_Str");
          ewa.putDouble(2,1.29);
          ewa.append();
          jwa.commit();
          JournalEntryWriter ewb;
          ewb=jwb.entryWriter();
          ewb.putDate(0,DateFormatUtils.parseDateTime("String_Node_Str"));
          ewb.putSym(1,"String_Node_Str");
          ewb.putDouble(2,1100);
          ewb.append();
          ewb=jwb.entryWriter();
          ewb.putDate(0,DateFormatUtils.parseDateTime("String_Node_Str"));
          ewb.putSym(1,"String_Node_Str");
          ewb.putDouble(2,1200);
          ewb.append();
          ewb=jwb.entryWriter();
          ewb.putDate(0,DateFormatUtils.parseDateTime("String_Node_Str"));
          ewb.putSym(1,"String_Node_Str");
          ewb.putDouble(2,1500);
          ewb.append();
          ewb=jwb.entryWriter();
          ewb.putDate(0,DateFormatUtils.parseDateTime("String_Node_Str"));
          ewb.putSym(1,"String_Node_Str");
          ewb.putDouble(2,130);
          ewb.append();
          ewb=jwb.entryWriter();
          ewb.putDate(0,DateFormatUtils.parseDateTime("String_Node_Str"));
          ewb.putSym(1,"String_Node_Str");
          ewb.putDouble(2,150);
          ewb.append();
          ewb=jwb.entryWriter();
          ewb.putDate(0,DateFormatUtils.parseDateTime("String_Node_Str"));
          ewb.putSym(1,"String_Node_Str");
          ewb.putDouble(2,12000);
          ewb.append();
          jwb.commit();
        }
       }
     }
   }
 }

Fixed version (ground truth):
@BeforeClass public static void setUpClass() throws Exception {
  FACTORY_CONTAINER.getFactory().getConfiguration().exists("String_Node_Str");
  int xcount=100;
  int ycount=10;
  try (JournalWriter xw=FACTORY_CONTAINER.getFactory().writer(new JournalStructure("String_Node_Str").$ts().$sym("String_Node_Str").$double("String_Node_Str").$double("String_Node_Str").$str("String_Node_Str").$sym("String_Node_Str").$float("String_Node_Str").$short("String_Node_Str").$long("String_Node_Str").$bool("String_Node_Str").recordCountHint(xcount).$())){
    try (JournalWriter yw=FACTORY_CONTAINER.getFactory().writer(new JournalStructure("String_Node_Str").$ts().$sym("String_Node_Str").$double("String_Node_Str").$str("String_Node_Str").recordCountHint(ycount).$())){
      Rnd rnd=new Rnd();
      String[] ccy=new String[3];
      for (int i=0; i < ccy.length; i++) {
        ccy[i]=rnd.nextChars(6).toString();
      }
      long ts=DateFormatUtils.parseDateTime("String_Node_Str");
      for (int i=0; i < xcount; i++) {
        JournalEntryWriter w=xw.entryWriter();
        w.putDate(0,ts+=10000);
        w.putSym(1,ccy[rnd.nextPositiveInt() % ccy.length]);
        w.putDouble(2,rnd.nextDouble());
        w.putDouble(3,rnd.nextDouble());
        if (rnd.nextBoolean()) {
          w.putStr(4,rnd.nextChars(rnd.nextPositiveInt() % 128));
        }
 else {
          w.putNull(4);
        }
        w.putSym(5,ccy[rnd.nextPositiveInt() % ccy.length]);
        w.putFloat(6,rnd.nextFloat());
        w.putShort(7,(short)rnd.nextInt());
        w.putLong(8,rnd.nextLong());
        w.putBool(9,rnd.nextBoolean());
        w.append();
      }
      xw.commit();
      ts=DateFormatUtils.parseDateTime("String_Node_Str");
      for (int i=0; i < ycount; i++) {
        JournalEntryWriter w=yw.entryWriter();
        w.putDate(0,ts+=60000);
        w.putSym(1,ccy[rnd.nextPositiveInt() % ccy.length]);
        w.putDouble(2,rnd.nextDouble());
        if (rnd.nextBoolean()) {
          w.putStr(3,rnd.nextChars(rnd.nextPositiveInt() % 128));
        }
 else {
          w.putNull(3);
        }
        w.append();
      }
      yw.commit();
      try (JournalWriter jwa=FACTORY_CONTAINER.getFactory().writer(new JournalStructure("String_Node_Str").$ts().$sym("String_Node_Str").$double("String_Node_Str").$())){
        try (JournalWriter jwb=FACTORY_CONTAINER.getFactory().writer(new JournalStructure("String_Node_Str").$ts().$sym("String_Node_Str").$double("String_Node_Str").$())){
          JournalEntryWriter ewa;
          ewa=jwa.entryWriter();
          ewa.putDate(0,DateFormatUtils.parseDateTime("String_Node_Str"));
          ewa.putSym(1,"String_Node_Str");
          ewa.putDouble(2,0.538);
          ewa.append();
          ewa=jwa.entryWriter();
          ewa.putDate(0,DateFormatUtils.parseDateTime("String_Node_Str"));
          ewa.putSym(1,"String_Node_Str");
          ewa.putDouble(2,1.35);
          ewa.append();
          ewa=jwa.entryWriter();
          ewa.putDate(0,DateFormatUtils.parseDateTime("String_Node_Str"));
          ewa.putSym(1,"String_Node_Str");
          ewa.putDouble(2,1.41);
          ewa.append();
          ewa=jwa.entryWriter();
          ewa.putDate(0,DateFormatUtils.parseDateTime("String_Node_Str"));
          ewa.putSym(1,"String_Node_Str");
          ewa.putDouble(2,0.601);
          ewa.append();
          ewa=jwa.entryWriter();
          ewa.putDate(0,DateFormatUtils.parseDateTime("String_Node_Str"));
          ewa.putSym(1,"String_Node_Str");
          ewa.putDouble(2,1.26);
          ewa.append();
          ewa=jwa.entryWriter();
          ewa.putDate(0,DateFormatUtils.parseDateTime("String_Node_Str"));
          ewa.putSym(1,"String_Node_Str");
          ewa.putDouble(2,1.29);
          ewa.append();
          jwa.commit();
          JournalEntryWriter ewb;
          ewb=jwb.entryWriter();
          ewb.putDate(0,DateFormatUtils.parseDateTime("String_Node_Str"));
          ewb.putSym(1,"String_Node_Str");
          ewb.putDouble(2,1100);
          ewb.append();
          ewb=jwb.entryWriter();
          ewb.putDate(0,DateFormatUtils.parseDateTime("String_Node_Str"));
          ewb.putSym(1,"String_Node_Str");
          ewb.putDouble(2,1200);
          ewb.append();
          ewb=jwb.entryWriter();
          ewb.putDate(0,DateFormatUtils.parseDateTime("String_Node_Str"));
          ewb.putSym(1,"String_Node_Str");
          ewb.putDouble(2,1500);
          ewb.append();
          ewb=jwb.entryWriter();
          ewb.putDate(0,DateFormatUtils.parseDateTime("String_Node_Str"));
          ewb.putSym(1,"String_Node_Str");
          ewb.putDouble(2,130);
          ewb.append();
          ewb=jwb.entryWriter();
          ewb.putDate(0,DateFormatUtils.parseDateTime("String_Node_Str"));
          ewb.putSym(1,"String_Node_Str");
          ewb.putDouble(2,150);
          ewb.append();
          ewb=jwb.entryWriter();
          ewb.putDate(0,DateFormatUtils.parseDateTime("String_Node_Str"));
          ewb.putSym(1,"String_Node_Str");
          ewb.putDouble(2,12000);
          ewb.append();
          jwb.commit();
        }
       }
     }
   }
 }