Output Sheets
  1. Output Sheets
  2. OS-193

Log error when exporting character wth ranged weapon

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 5.17.18
    • Fix Version/s: 5.17.19
    • Labels:
      None
    • Environment:
      csheet_fantasy_std_grey_light.xslt

      Description

      Exporting a Pathfinder character with a single dagger equipped gives the following output to the logs. The sheet still gets produced.

      16:29:10.720 SEVERE SwingWorker-pool-2-thread-9 ExportHandler:1997 Error replacing WEAPON.1.RANGELIST.5.TOTALHIT
      java.lang.IndexOutOfBoundsException: Index: 5, Size: 5
      at java.util.ArrayList.RangeCheck(ArrayList.java:547)
      at java.util.ArrayList.get(ArrayList.java:322)
      at pcgen.io.exporttoken.WeaponToken.getToHit(WeaponToken.java:2089)
      at pcgen.io.exporttoken.WeaponToken.getTotalHitToken(WeaponToken.java:1631)
      at pcgen.io.exporttoken.WeaponToken.getWeaponToken(WeaponToken.java:391)
      at pcgen.io.exporttoken.WeaponToken.getToken(WeaponToken.java:211)
      at pcgen.io.ExportHandler.replaceToken(ExportHandler.java:1964)
      at pcgen.io.ExportHandler.replaceLine(ExportHandler.java:1827)
      at pcgen.io.ExportHandler.processLoop(ExportHandler.java:1073)
      at pcgen.io.ExportHandler.loopFOR(ExportHandler.java:989)
      at pcgen.io.ExportHandler.evaluateIIFChildren(ExportHandler.java:930)
      at pcgen.io.ExportHandler.evaluateIIF(ExportHandler.java:869)
      at pcgen.io.ExportHandler.evaluateIIFChildren(ExportHandler.java:937)
      at pcgen.io.ExportHandler.evaluateIIF(ExportHandler.java:869)
      at pcgen.io.ExportHandler.evaluateIIFChildren(ExportHandler.java:937)
      at pcgen.io.ExportHandler.evaluateIIF(ExportHandler.java:869)
      at pcgen.io.ExportHandler.processLoop(ExportHandler.java:1052)
      at pcgen.io.ExportHandler.loopFOR(ExportHandler.java:989)
      at pcgen.io.ExportHandler.processLoop(ExportHandler.java:1046)
      at pcgen.io.ExportHandler.loopFOR(ExportHandler.java:989)
      at pcgen.io.ExportHandler.write(ExportHandler.java:242)
      at pcgen.gui2.facade.CharacterFacadeImpl.export(CharacterFacadeImpl.java:2598)
      at pcgen.system.BatchExporter.printToXMLFile(BatchExporter.java:482)
      at pcgen.system.BatchExporter.exportCharacterToPDF(BatchExporter.java:232)
      at pcgen.gui2.dialog.ExportDialog$PDFExporter.doInBackground(ExportDialog.java:568)
      at javax.swing.SwingWorker$1.call(SwingWorker.java:277)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at javax.swing.SwingWorker.run(SwingWorker.java:316)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)

      16:29:10.736 SEVERE SwingWorker-pool-2-thread-9 ExportHandler:1997 Error replacing WEAPON.1.RANGELIST.5.BASEHIT
      java.lang.IndexOutOfBoundsException: Index: 5, Size: 5
      at java.util.ArrayList.RangeCheck(ArrayList.java:547)
      at java.util.ArrayList.get(ArrayList.java:322)
      at pcgen.io.exporttoken.WeaponToken.getToHit(WeaponToken.java:2089)
      at pcgen.io.exporttoken.WeaponToken.getBaseHitToken(WeaponToken.java:1661)
      at pcgen.io.exporttoken.WeaponToken.getWeaponToken(WeaponToken.java:396)
      at pcgen.io.exporttoken.WeaponToken.getToken(WeaponToken.java:211)
      at pcgen.io.ExportHandler.replaceToken(ExportHandler.java:1964)
      at pcgen.io.ExportHandler.replaceLine(ExportHandler.java:1827)
      at pcgen.io.ExportHandler.processLoop(ExportHandler.java:1073)
      at pcgen.io.ExportHandler.loopFOR(ExportHandler.java:989)
      at pcgen.io.ExportHandler.evaluateIIFChildren(ExportHandler.java:930)
      at pcgen.io.ExportHandler.evaluateIIF(ExportHandler.java:869)
      at pcgen.io.ExportHandler.evaluateIIFChildren(ExportHandler.java:937)
      at pcgen.io.ExportHandler.evaluateIIF(ExportHandler.java:869)
      at pcgen.io.ExportHandler.evaluateIIFChildren(ExportHandler.java:937)
      at pcgen.io.ExportHandler.evaluateIIF(ExportHandler.java:869)
      at pcgen.io.ExportHandler.processLoop(ExportHandler.java:1052)
      at pcgen.io.ExportHandler.loopFOR(ExportHandler.java:989)
      at pcgen.io.ExportHandler.processLoop(ExportHandler.java:1046)
      at pcgen.io.ExportHandler.loopFOR(ExportHandler.java:989)
      at pcgen.io.ExportHandler.write(ExportHandler.java:242)
      at pcgen.gui2.facade.CharacterFacadeImpl.export(CharacterFacadeImpl.java:2598)
      at pcgen.system.BatchExporter.printToXMLFile(BatchExporter.java:482)
      at pcgen.system.BatchExporter.exportCharacterToPDF(BatchExporter.java:232)
      at pcgen.gui2.dialog.ExportDialog$PDFExporter.doInBackground(ExportDialog.java:568)
      at javax.swing.SwingWorker$1.call(SwingWorker.java:277)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at javax.swing.SwingWorker.run(SwingWorker.java:316)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)

      16:29:10.738 SEVERE SwingWorker-pool-2-thread-9 ExportHandler:1997 Error replacing WEAPON.1.RANGELIST.5.OHHIT
      java.lang.IndexOutOfBoundsException: Index: 5, Size: 5
      at java.util.ArrayList.RangeCheck(ArrayList.java:547)
      at java.util.ArrayList.get(ArrayList.java:322)
      at pcgen.io.exporttoken.WeaponToken.getToHit(WeaponToken.java:2089)
      at pcgen.io.exporttoken.WeaponToken.getOHHitToken(WeaponToken.java:1781)
      at pcgen.io.exporttoken.WeaponToken.getWeaponToken(WeaponToken.java:416)
      at pcgen.io.exporttoken.WeaponToken.getToken(WeaponToken.java:211)
      at pcgen.io.ExportHandler.replaceToken(ExportHandler.java:1964)
      at pcgen.io.ExportHandler.replaceLine(ExportHandler.java:1827)
      at pcgen.io.ExportHandler.processLoop(ExportHandler.java:1073)
      at pcgen.io.ExportHandler.loopFOR(ExportHandler.java:989)
      at pcgen.io.ExportHandler.evaluateIIFChildren(ExportHandler.java:930)
      at pcgen.io.ExportHandler.evaluateIIF(ExportHandler.java:869)
      at pcgen.io.ExportHandler.evaluateIIFChildren(ExportHandler.java:937)
      at pcgen.io.ExportHandler.evaluateIIF(ExportHandler.java:869)
      at pcgen.io.ExportHandler.evaluateIIFChildren(ExportHandler.java:937)
      at pcgen.io.ExportHandler.evaluateIIF(ExportHandler.java:869)
      at pcgen.io.ExportHandler.processLoop(ExportHandler.java:1052)
      at pcgen.io.ExportHandler.loopFOR(ExportHandler.java:989)
      at pcgen.io.ExportHandler.processLoop(ExportHandler.java:1046)
      at pcgen.io.ExportHandler.loopFOR(ExportHandler.java:989)
      at pcgen.io.ExportHandler.write(ExportHandler.java:242)
      at pcgen.gui2.facade.CharacterFacadeImpl.export(CharacterFacadeImpl.java:2598)
      at pcgen.system.BatchExporter.printToXMLFile(BatchExporter.java:482)
      at pcgen.system.BatchExporter.exportCharacterToPDF(BatchExporter.java:232)
      at pcgen.gui2.dialog.ExportDialog$PDFExporter.doInBackground(ExportDialog.java:568)
      at javax.swing.SwingWorker$1.call(SwingWorker.java:277)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at javax.swing.SwingWorker.run(SwingWorker.java:316)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)

      16:29:10.740 SEVERE SwingWorker-pool-2-thread-9 ExportHandler:1997 Error replacing WEAPON.1.RANGELIST.5.BASEHIT
      java.lang.IndexOutOfBoundsException: Index: 5, Size: 5
      at java.util.ArrayList.RangeCheck(ArrayList.java:547)
      at java.util.ArrayList.get(ArrayList.java:322)
      at pcgen.io.exporttoken.WeaponToken.getToHit(WeaponToken.java:2089)
      at pcgen.io.exporttoken.WeaponToken.getBaseHitToken(WeaponToken.java:1661)
      at pcgen.io.exporttoken.WeaponToken.getWeaponToken(WeaponToken.java:396)
      at pcgen.io.exporttoken.WeaponToken.getToken(WeaponToken.java:211)
      at pcgen.io.ExportHandler.replaceToken(ExportHandler.java:1964)
      at pcgen.io.ExportHandler.replaceLine(ExportHandler.java:1827)
      at pcgen.io.ExportHandler.processLoop(ExportHandler.java:1073)
      at pcgen.io.ExportHandler.loopFOR(ExportHandler.java:989)
      at pcgen.io.ExportHandler.evaluateIIFChildren(ExportHandler.java:930)
      at pcgen.io.ExportHandler.evaluateIIF(ExportHandler.java:869)
      at pcgen.io.ExportHandler.evaluateIIFChildren(ExportHandler.java:937)
      at pcgen.io.ExportHandler.evaluateIIF(ExportHandler.java:869)
      at pcgen.io.ExportHandler.evaluateIIFChildren(ExportHandler.java:937)
      at pcgen.io.ExportHandler.evaluateIIF(ExportHandler.java:869)
      at pcgen.io.ExportHandler.processLoop(ExportHandler.java:1052)
      at pcgen.io.ExportHandler.loopFOR(ExportHandler.java:989)
      at pcgen.io.ExportHandler.processLoop(ExportHandler.java:1046)
      at pcgen.io.ExportHandler.loopFOR(ExportHandler.java:989)
      at pcgen.io.ExportHandler.write(ExportHandler.java:242)
      at pcgen.gui2.facade.CharacterFacadeImpl.export(CharacterFacadeImpl.java:2598)
      at pcgen.system.BatchExporter.printToXMLFile(BatchExporter.java:482)
      at pcgen.system.BatchExporter.exportCharacterToPDF(BatchExporter.java:232)
      at pcgen.gui2.dialog.ExportDialog$PDFExporter.doInBackground(ExportDialog.java:568)
      at javax.swing.SwingWorker$1.call(SwingWorker.java:277)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at javax.swing.SwingWorker.run(SwingWorker.java:316)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)

      16:29:10.741 SEVERE SwingWorker-pool-2-thread-9 ExportHandler:1997 Error replacing WEAPON.1.RANGELIST.5.TWPHITH
      java.lang.IndexOutOfBoundsException: Index: 5, Size: 5
      at java.util.ArrayList.RangeCheck(ArrayList.java:547)
      at java.util.ArrayList.get(ArrayList.java:322)
      at pcgen.io.exporttoken.WeaponToken.getToHit(WeaponToken.java:2089)
      at pcgen.io.exporttoken.WeaponToken.getTwpHitHToken(WeaponToken.java:1691)
      at pcgen.io.exporttoken.WeaponToken.getWeaponToken(WeaponToken.java:401)
      at pcgen.io.exporttoken.WeaponToken.getToken(WeaponToken.java:211)
      at pcgen.io.ExportHandler.replaceToken(ExportHandler.java:1964)
      at pcgen.io.ExportHandler.replaceLine(ExportHandler.java:1827)
      at pcgen.io.ExportHandler.processLoop(ExportHandler.java:1073)
      at pcgen.io.ExportHandler.loopFOR(ExportHandler.java:989)
      at pcgen.io.ExportHandler.evaluateIIFChildren(ExportHandler.java:930)
      at pcgen.io.ExportHandler.evaluateIIF(ExportHandler.java:869)
      at pcgen.io.ExportHandler.evaluateIIFChildren(ExportHandler.java:937)
      at pcgen.io.ExportHandler.evaluateIIF(ExportHandler.java:869)
      at pcgen.io.ExportHandler.evaluateIIFChildren(ExportHandler.java:937)
      at pcgen.io.ExportHandler.evaluateIIF(ExportHandler.java:869)
      at pcgen.io.ExportHandler.processLoop(ExportHandler.java:1052)
      at pcgen.io.ExportHandler.loopFOR(ExportHandler.java:989)
      at pcgen.io.ExportHandler.processLoop(ExportHandler.java:1046)
      at pcgen.io.ExportHandler.loopFOR(ExportHandler.java:989)
      at pcgen.io.ExportHandler.write(ExportHandler.java:242)
      at pcgen.gui2.facade.CharacterFacadeImpl.export(CharacterFacadeImpl.java:2598)
      at pcgen.system.BatchExporter.printToXMLFile(BatchExporter.java:482)
      at pcgen.system.BatchExporter.exportCharacterToPDF(BatchExporter.java:232)
      at pcgen.gui2.dialog.ExportDialog$PDFExporter.doInBackground(ExportDialog.java:568)
      at javax.swing.SwingWorker$1.call(SwingWorker.java:277)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at javax.swing.SwingWorker.run(SwingWorker.java:316)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)

      16:29:10.743 SEVERE SwingWorker-pool-2-thread-9 ExportHandler:1997 Error replacing WEAPON.1.RANGELIST.5.TWPHITL
      java.lang.IndexOutOfBoundsException: Index: 5, Size: 5
      at java.util.ArrayList.RangeCheck(ArrayList.java:547)
      at java.util.ArrayList.get(ArrayList.java:322)
      at pcgen.io.exporttoken.WeaponToken.getToHit(WeaponToken.java:2089)
      at pcgen.io.exporttoken.WeaponToken.getTwpHitLToken(WeaponToken.java:1721)
      at pcgen.io.exporttoken.WeaponToken.getWeaponToken(WeaponToken.java:406)
      at pcgen.io.exporttoken.WeaponToken.getToken(WeaponToken.java:211)
      at pcgen.io.ExportHandler.replaceToken(ExportHandler.java:1964)
      at pcgen.io.ExportHandler.replaceLine(ExportHandler.java:1827)
      at pcgen.io.ExportHandler.processLoop(ExportHandler.java:1073)
      at pcgen.io.ExportHandler.loopFOR(ExportHandler.java:989)
      at pcgen.io.ExportHandler.evaluateIIFChildren(ExportHandler.java:930)
      at pcgen.io.ExportHandler.evaluateIIF(ExportHandler.java:869)
      at pcgen.io.ExportHandler.evaluateIIFChildren(ExportHandler.java:937)
      at pcgen.io.ExportHandler.evaluateIIF(ExportHandler.java:869)
      at pcgen.io.ExportHandler.evaluateIIFChildren(ExportHandler.java:937)
      at pcgen.io.ExportHandler.evaluateIIF(ExportHandler.java:869)
      at pcgen.io.ExportHandler.processLoop(ExportHandler.java:1052)
      at pcgen.io.ExportHandler.loopFOR(ExportHandler.java:989)
      at pcgen.io.ExportHandler.processLoop(ExportHandler.java:1046)
      at pcgen.io.ExportHandler.loopFOR(ExportHandler.java:989)
      at pcgen.io.ExportHandler.write(ExportHandler.java:242)
      at pcgen.gui2.facade.CharacterFacadeImpl.export(CharacterFacadeImpl.java:2598)
      at pcgen.system.BatchExporter.printToXMLFile(BatchExporter.java:482)
      at pcgen.system.BatchExporter.exportCharacterToPDF(BatchExporter.java:232)
      at pcgen.gui2.dialog.ExportDialog$PDFExporter.doInBackground(ExportDialog.java:568)
      at javax.swing.SwingWorker$1.call(SwingWorker.java:277)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at javax.swing.SwingWorker.run(SwingWorker.java:316)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)

      16:29:10.754 SEVERE SwingWorker-pool-2-thread-9 ExportHandler:1997 Error replacing WEAPON.1.RANGELIST.5.TWOHIT
      java.lang.IndexOutOfBoundsException: Index: 5, Size: 5
      at java.util.ArrayList.RangeCheck(ArrayList.java:547)
      at java.util.ArrayList.get(ArrayList.java:322)
      at pcgen.io.exporttoken.WeaponToken.getToHit(WeaponToken.java:2089)
      at pcgen.io.exporttoken.WeaponToken.getTwoHitToken(WeaponToken.java:1751)
      at pcgen.io.exporttoken.WeaponToken.getWeaponToken(WeaponToken.java:411)
      at pcgen.io.exporttoken.WeaponToken.getToken(WeaponToken.java:211)
      at pcgen.io.ExportHandler.replaceToken(ExportHandler.java:1964)
      at pcgen.io.ExportHandler.replaceLine(ExportHandler.java:1827)
      at pcgen.io.ExportHandler.processLoop(ExportHandler.java:1073)
      at pcgen.io.ExportHandler.loopFOR(ExportHandler.java:989)
      at pcgen.io.ExportHandler.evaluateIIFChildren(ExportHandler.java:930)
      at pcgen.io.ExportHandler.evaluateIIF(ExportHandler.java:869)
      at pcgen.io.ExportHandler.evaluateIIFChildren(ExportHandler.java:937)
      at pcgen.io.ExportHandler.evaluateIIF(ExportHandler.java:869)
      at pcgen.io.ExportHandler.evaluateIIFChildren(ExportHandler.java:937)
      at pcgen.io.ExportHandler.evaluateIIF(ExportHandler.java:869)
      at pcgen.io.ExportHandler.processLoop(ExportHandler.java:1052)
      at pcgen.io.ExportHandler.loopFOR(ExportHandler.java:989)
      at pcgen.io.ExportHandler.processLoop(ExportHandler.java:1046)
      at pcgen.io.ExportHandler.loopFOR(ExportHandler.java:989)
      at pcgen.io.ExportHandler.write(ExportHandler.java:242)
      at pcgen.gui2.facade.CharacterFacadeImpl.export(CharacterFacadeImpl.java:2598)
      at pcgen.system.BatchExporter.printToXMLFile(BatchExporter.java:482)
      at pcgen.system.BatchExporter.exportCharacterToPDF(BatchExporter.java:232)
      at pcgen.gui2.dialog.ExportDialog$PDFExporter.doInBackground(ExportDialog.java:568)
      at javax.swing.SwingWorker$1.call(SwingWorker.java:277)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at javax.swing.SwingWorker.run(SwingWorker.java:316)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)

        Activity

        Hide
        James Dempsey
        added a comment -

        Updated code to cope with a request for a range that does not exist.

        Show
        James Dempsey
        added a comment - Updated code to cope with a request for a range that does not exist.

          People

          • Assignee:
            James Dempsey
            Reporter:
            James Dempsey
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: