Any equiped item with custom ability modifier produces error

Description

Hi,

Steps to reproduce:
-Create or load any profile
-With Item Customizer create any item with ability modifier (for example ring of composite bow with strength modifier)
-Open Character Sheet

At any type you will see next error:

Unable to process sheet
java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Requested ScopeInstance for pcgen.core.EquipmentModifier Special Ability ~ Bonus Ability / Enhancement and reached a global parent, but have only reached Scope: EQUIPMENT

16:30:26.920 SEVERE AWT-EventQueue-0 CharacterSheetPanel:169 Unable to process sheet:
java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Requested ScopeInstance for pcgen.core.EquipmentModifier Special Ability ~ Bonus Ability / Enhancement and reached a global parent, but have only reached Scope: EQUIPMENT
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at pcgen.gui2.csheet.CharacterSheetPanel$RefreshTask.lambda$done$0(CharacterSheetPanel.java:159)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.lang.IllegalArgumentException: Requested ScopeInstance for pcgen.core.EquipmentModifier Special Ability ~ Bonus Ability / Enhancement and reached a global parent, but have only reached Scope: EQUIPMENT
at pcgen.base.formula.inst.SimpleScopeInstanceFactory.getMessaged(SimpleScopeInstanceFactory.java:161)
at pcgen.base.formula.inst.SimpleScopeInstanceFactory.getMessaged(SimpleScopeInstanceFactory.java:189)
at pcgen.base.formula.inst.SimpleScopeInstanceFactory.get(SimpleScopeInstanceFactory.java:125)
at pcgen.cdom.facet.ScopeFacet.get(ScopeFacet.java:68)
at pcgen.cdom.facet.ScopeFacet.get(ScopeFacet.java:84)
at pcgen.cdom.facet.GrantedVarFacet.dataRemoved(GrantedVarFacet.java:106)
at pcgen.cdom.facet.base.AbstractDataFacet.fireDataFacetChangeEvent(AbstractDataFacet.java:267)
at pcgen.cdom.facet.base.AbstractDataFacet.fireDataFacetChangeEvent(AbstractDataFacet.java:205)
at pcgen.cdom.facet.base.AbstractSourcedListFacet.processRemoval(AbstractSourcedListFacet.java:500)
at pcgen.cdom.facet.base.AbstractSourcedListFacet.remove(AbstractSourcedListFacet.java:147)
at pcgen.cdom.facet.CDOMObjectConsolidationFacet.remove(CDOMObjectConsolidationFacet.java:93)
at pcgen.cdom.facet.CDOMObjectConsolidationFacet.dataRemoved(CDOMObjectConsolidationFacet.java:160)
at pcgen.cdom.facet.base.AbstractDataFacet.fireDataFacetChangeEvent(AbstractDataFacet.java:267)
at pcgen.cdom.facet.base.AbstractDataFacet.fireDataFacetChangeEvent(AbstractDataFacet.java:205)
at pcgen.cdom.facet.base.AbstractSourcedListFacet.processRemoval(AbstractSourcedListFacet.java:500)
at pcgen.cdom.facet.base.AbstractSourcedListFacet.remove(AbstractSourcedListFacet.java:147)
at pcgen.cdom.facet.EquipmentConsolidationFacet.dataRemoved(EquipmentConsolidationFacet.java:89)
at pcgen.cdom.facet.base.AbstractDataFacet.fireDataFacetChangeEvent(AbstractDataFacet.java:267)
at pcgen.cdom.facet.base.AbstractDataFacet.fireDataFacetChangeEvent(AbstractDataFacet.java:205)
at pcgen.cdom.facet.base.AbstractSourcedListFacet.processRemoval(AbstractSourcedListFacet.java:500)
at pcgen.cdom.facet.base.AbstractSourcedListFacet.remove(AbstractSourcedListFacet.java:147)
at pcgen.cdom.facet.model.ActiveEqModFacet.dataRemoved(ActiveEqModFacet.java:54)
at pcgen.cdom.facet.base.AbstractDataFacet.fireDataFacetChangeEvent(AbstractDataFacet.java:267)
at pcgen.cdom.facet.base.AbstractDataFacet.fireDataFacetChangeEvent(AbstractDataFacet.java:205)
at pcgen.cdom.facet.base.AbstractSourcedListFacet.processRemoval(AbstractSourcedListFacet.java:500)
at pcgen.cdom.facet.base.AbstractSourcedListFacet.remove(AbstractSourcedListFacet.java:147)
at pcgen.cdom.facet.model.ActiveEqHeadFacet.dataRemoved(ActiveEqHeadFacet.java:50)
at pcgen.cdom.facet.base.AbstractDataFacet.fireDataFacetChangeEvent(AbstractDataFacet.java:267)
at pcgen.cdom.facet.base.AbstractDataFacet.fireDataFacetChangeEvent(AbstractDataFacet.java:205)
at pcgen.cdom.facet.base.AbstractSourcedListFacet.removeAll(AbstractSourcedListFacet.java:216)
at pcgen.core.PlayerCharacter.clone(PlayerCharacter.java:7257)
at pcgen.gui2.facade.CharacterFacadeImpl.getExportCharacter(CharacterFacadeImpl.java:2620)
at pcgen.gui2.facade.CharacterFacadeImpl.export(CharacterFacadeImpl.java:2651)
at pcgen.gui2.csheet.CharacterSheetPanel$DocumentConstructor.call(CharacterSheetPanel.java:190)
at pcgen.gui2.csheet.CharacterSheetPanel$DocumentConstructor.call(CharacterSheetPanel.java:184)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)

Environment

Windows 10, 64

Activity

Show:
Andrew Maitland
December 24, 2018, 6:52 PM

I believe this has been fixed in the most recent build….

Andrew Maitland
May 12, 2019, 12:40 AM

Fixed as part of other work.

Assignee

Tom Parker

Reporter

Oleg Pshenin

Labels

None

Epic/Theme

None

Pending User Input

No

Affects versions

Priority

Major
Configure