Error processing character sheet.

Description

Downloaded and installed 5.17.20-dev version (10/14/2012).

Datasets loaded:
Pathfinder CRB, APG, Bestiary I, Kingmaker players guide.

Loaded 6 PCs,
Went to Kabal, Looked at charcter sheet, then added Hero Point Template, Added temp bonus of 3 Hero Points, clicked on Character sheet and got the following message(s):
In the panel under character sheet:

Unable to process sheet
java.util.concurrent.ExecutionException: java.lang.ArrayIndexOutOfBoundsException: 16

And in the Dos panel:

12:53:08.763 INFO AWT-EventQueue-1 CharacterFacadeImpl:3867 Kabal Boarstooth: Adding template Hero Points
12:53:26.905 SEVERE AWT-EventQueue-1 CharacterSheetPanel:199 Unable to process sheet:
java.util.concurrent.ExecutionException: java.lang.ArrayIndexOutOfBoundsException: 16
at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at pcgen.gui2.csheet.CharacterSheetPanel$RefreshTask$1.run(CharacterSheetPanel.java:184)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at pcgen.gui.PCGen_Frame1$WaitCursorEventQueue.dispatchEvent(PCGen_Frame1.java:2934)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 16
at java.util.ArrayList.add(Unknown Source)
at pcgen.cdom.facet.AbstractListFacet.add(AbstractListFacet.java:65)
at pcgen.core.PlayerCharacter.applyAbility(PlayerCharacter.java:10106)
at pcgen.core.PlayerCharacter.processAbilityList(PlayerCharacter.java:10091)
at pcgen.core.PlayerCharacter.processAbilityListsOnAdd(PlayerCharacter.java:10040)
at pcgen.core.PlayerCharacter.processAddition(PlayerCharacter.java:11324)
at pcgen.cdom.facet.ObjectAdditionFacet.dataAdded(ObjectAdditionFacet.java:58)
at pcgen.cdom.facet.AbstractDataFacet.fireDataFacetChangeEvent(AbstractDataFacet.java:241)
at pcgen.cdom.facet.AbstractDataFacet.fireDataFacetChangeEvent(AbstractDataFacet.java:187)
at pcgen.cdom.facet.AbstractSourcedListFacet.add(AbstractSourcedListFacet.java:94)
at pcgen.cdom.facet.CDOMObjectConsolidationFacet.add(CDOMObjectConsolidationFacet.java:68)
at pcgen.cdom.facet.CDOMObjectConsolidationFacet.dataAdded(CDOMObjectConsolidationFacet.java:134)
at pcgen.cdom.facet.AbstractDataFacet.fireDataFacetChangeEvent(AbstractDataFacet.java:241)
at pcgen.cdom.facet.AbstractDataFacet.fireDataFacetChangeEvent(AbstractDataFacet.java:187)
at pcgen.cdom.facet.AbstractSourcedListFacet.add(AbstractSourcedListFacet.java:94)
at pcgen.cdom.facet.CharacterConsolidationFacet.dataAdded(CharacterConsolidationFacet.java:62)
at pcgen.cdom.facet.AbstractDataFacet.fireDataFacetChangeEvent(AbstractDataFacet.java:241)
at pcgen.cdom.facet.AbstractDataFacet.fireDataFacetChangeEvent(AbstractDataFacet.java:187)
at pcgen.cdom.facet.GrantedAbilityFacet.add(GrantedAbilityFacet.java:95)
at pcgen.cdom.facet.GrantedAbilityFacet.dataAdded(GrantedAbilityFacet.java:773)
at pcgen.cdom.facet.AbstractDataFacet.fireDataFacetChangeEvent(AbstractDataFacet.java:241)
at pcgen.cdom.facet.AbstractDataFacet.fireDataFacetChangeEvent(AbstractDataFacet.java:187)
at pcgen.cdom.facet.AbstractListFacet.add(AbstractListFacet.java:67)
at pcgen.cdom.facet.ConditionallyGrantedAbilityFacet.update(ConditionallyGrantedAbilityFacet.java:68)
at pcgen.core.PlayerCharacter.setDirty(PlayerCharacter.java:1019)
at pcgen.core.PlayerCharacter.getSpellList(PlayerCharacter.java:4594)
at pcgen.core.PlayerCharacter.preparePCForOutput(PlayerCharacter.java:8470)
at pcgen.io.ExportHandler.write(ExportHandler.java:204)
at pcgen.gui2.facade.CharacterFacadeImpl.export(CharacterFacadeImpl.java:2634)
at pcgen.gui2.csheet.CharacterSheetPanel$DocumentConstructor.call(CharacterSheetPanel.java:221)
at pcgen.gui2.csheet.CharacterSheetPanel$DocumentConstructor.call(CharacterSheetPanel.java:213)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

– david
Papa.DRB

ps. as an aside, the Darro character shows 4 instances of "Default Set" on the left side under Equipment sets.

Environment

Windows Vista

Activity

Show:
James Dempsey
October 15, 2012, 3:15 PM

See for the aside.

James Dempsey
October 16, 2012, 4:22 AM

I was not able to reproduce this but based on the stack trace I think it was caused by concurrent exports modifying the character. I have now moved the export prep into a shared method so it only happens once.

Fixed

Assignee

James Dempsey

Reporter

David Bender

Labels

None

Theme

None

Epic/Theme

None

Pending User Input

None

Fix versions

Affects versions

Priority

Major
Configure