Code
  1. Code
  2. CODE-1287

Preview/Output sheet throwing Java error for EQTYPE Coin/Gem

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 5.17.10, 5.17.11
    • Fix Version/s: 5.17.12, 5.17 Cycle
    • Component/s: Export system
    • Labels:
      None

      Description

      Homebrew preview and output sheets. When I switch to the Character Sheet tab and select my homebrew preview sheet, the following error appears in the dos console:

      09:43:37.316 SEVERE Charater-Sheet-Refresher-Thread ExportHandler:1997 Error replacing %COUNT[EQTYPE.Coin.ADD.Gem]
      java.lang.UnsupportedOperationException
      at java.util.AbstractList.add(Unknown Source)
      at java.util.AbstractList.add(Unknown Source)
      at pcgen.core.PlayerCharacter.addEqType(PlayerCharacter.java:5379)
      at pcgen.core.term.PCCountEqTypeTermEvaluator.resolve(PCCountEqTypeTermEvaluator.java:121)
      at pcgen.core.term.BasePCTermEvaluator.evaluate(BasePCTermEvaluator.java:40)
      at pcgen.core.term.BasePCTermEvaluator.evaluate(BasePCTermEvaluator.java:44)
      at pcgen.core.term.BasePCTermEvaluator.resolve(BasePCTermEvaluator.java:57)
      at pcgen.core.VariableProcessorPC.getInternalVariable(VariableProcessorPC.java:74)
      at pcgen.core.VariableProcessor.lookupVariable(VariableProcessor.java:684)
      at pcgen.core.VariableProcessor.processBrokenParser(VariableProcessor.java:423)
      at pcgen.core.VariableProcessor.getVariableValue(VariableProcessor.java:146)
      at pcgen.core.PlayerCharacter.getVariableValue(PlayerCharacter.java:5014)
      at pcgen.core.PlayerCharacter.getVariableValue(PlayerCharacter.java:4988)
      at pcgen.io.ExportHandler.getVarValue(ExportHandler.java:404)
      at pcgen.io.ExportHandler.dealWithFilteredTokens(ExportHandler.java:2778)
      at pcgen.io.ExportHandler.replaceToken(ExportHandler.java:1897)
      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.write(ExportHandler.java:242)
      at pcgen.gui2.facade.CharacterFacadeImpl.export(CharacterFacadeImpl.java:2203)
      at pcgen.gui2.csheet.CharacterSheetPanel$DocumentConstructor.call(CharacterSheetPanel.java:217)
      at pcgen.gui2.csheet.CharacterSheetPanel$DocumentConstructor.call(CharacterSheetPanel.java:210)
      at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)

      – david
      Papa.DRB

        Activity

        Hide
        David R. Bender
        added a comment -

        Actually, I do NOT have this anywhere in my output sheets. Strange. Also, does not do this in 5.17.10, with the same sheets.

        Show
        David R. Bender
        added a comment - Actually, I do NOT have this anywhere in my output sheets. Strange. Also, does not do this in 5.17.10, with the same sheets.
        Hide
        David R. Bender
        added a comment -

        File \preview\d20\fantasy\preview.htm.
        Line 1064

        %COUNT[EQTYPE.Coin.ADD.Gem]

        No error in 5.17.10, throws the error in 5.17.11+

        Show
        David R. Bender
        added a comment - File \preview\d20\fantasy\preview.htm. Line 1064 %COUNT [EQTYPE.Coin.ADD.Gem] No error in 5.17.10, throws the error in 5.17.11+
        Hide
        James Dempsey
        added a comment -

        Could you attach you character please?

        Show
        James Dempsey
        added a comment - Could you attach you character please?
        Hide
        James Dempsey
        added a comment -

        Occurs when the character has no coins equipped but does have gems.

        Show
        James Dempsey
        added a comment - Occurs when the character has no coins equipped but does have gems.
        Hide
        James Dempsey
        added a comment -

        This one has been lurking arund since at least 2010! Fixed now.

        Show
        James Dempsey
        added a comment - This one has been lurking arund since at least 2010! Fixed now.
        Hide
        David R. Bender
        added a comment -

        Works great, with 2012/03/25 0800 ET download.

        Show
        David R. Bender
        added a comment - Works great, with 2012/03/25 0800 ET download.

          People

          • Assignee:
            James Dempsey
            Reporter:
            David R. Bender
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: