From: James D. (JIRA) <ji...@pc...> - 2010-07-10 03:38:26
|
[ http://jira.pcgen.org/browse/CODE-164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=10603#action_10603 ] James Dempsey commented on CODE-164: ------------------------------------ This should be cleanly rejected at load time I think. The intended behaviour is unclear, and if the tag is desired in a PCC file it needs to be requested as a new feature and the function properly discussed. > ADD:FEAT in Campaign File causes program to crash at startup > ------------------------------------------------------------ > > Key: CODE-164 > URL: http://jira.pcgen.org/browse/CODE-164 > Project: Code > Issue Type: Bug > Components: Rules (LST) persistence > Affects Versions: 5.17.3 (Alpha) > Reporter: Tom Parker > > java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at pcgen.core.Main.main(Main.java:77) > Caused by: java.lang.UnsupportedOperationException: GameReferenceContext cannot construct objects > at pcgen.rules.context.GameReferenceContext.getManufacturer(GameReferenceContext.java:96) > at plugin.lsttokens.add.FeatToken.parseNonEmptyToken(FeatToken.java:117) > at plugin.lsttokens.add.FeatToken.parseNonEmptyToken(FeatToken.java:56) > at pcgen.rules.persistence.token.AbstractNonEmptyToken.parseToken(AbstractNonEmptyToken.java:43) > at pcgen.rules.persistence.TokenSupport.processSubToken(TokenSupport.java:122) > at pcgen.rules.context.LoadContext.processSubToken(LoadContext.java:243) > at plugin.lsttokens.AddLst.parseNonEmptyToken(AddLst.java:118) > at plugin.lsttokens.AddLst.parseNonEmptyToken(AddLst.java:37) > at pcgen.rules.persistence.token.AbstractNonEmptyToken.parseToken(AbstractNonEmptyToken.java:43) > at pcgen.rules.persistence.token.ErrorParsingWrapper.parseToken(ErrorParsingWrapper.java:31) > at pcgen.rules.persistence.token.AbstractNonEmptyToken.parse(AbstractNonEmptyToken.java:32) > at pcgen.rules.persistence.TokenSupport.processToken(TokenSupport.java:64) > at pcgen.rules.context.LoadContext.processToken(LoadContext.java:249) > at pcgen.persistence.lst.CampaignLoader.parseLine(CampaignLoader.java:114) > at pcgen.persistence.lst.LstLineFileLoader.loadLstString(LstLineFileLoader.java:109) > at pcgen.persistence.lst.LstLineFileLoader.loadLstFile(LstLineFileLoader.java:81) > at pcgen.persistence.lst.CampaignLoader.loadLstFile(CampaignLoader.java:88) > at pcgen.persistence.lst.LstSystemLoader$2.accept(LstSystemLoader.java:158) > at java.io.File.list(Unknown Source) > at pcgen.persistence.lst.LstSystemLoader.loadPCCFilesInDirectory(LstSystemLoader.java:1142) > at pcgen.persistence.lst.LstSystemLoader$2.accept(LstSystemLoader.java:172) > at java.io.File.list(Unknown Source) > at pcgen.persistence.lst.LstSystemLoader.loadPCCFilesInDirectory(LstSystemLoader.java:1142) > at pcgen.persistence.lst.LstSystemLoader$2.accept(LstSystemLoader.java:172) > at java.io.File.list(Unknown Source) > at pcgen.persistence.lst.LstSystemLoader.loadPCCFilesInDirectory(LstSystemLoader.java:1142) > at pcgen.persistence.lst.LstSystemLoader$2.accept(LstSystemLoader.java:172) > at java.io.File.list(Unknown Source) > at pcgen.persistence.lst.LstSystemLoader.loadPCCFilesInDirectory(LstSystemLoader.java:1137) > at pcgen.persistence.lst.LstSystemLoader.initialize(LstSystemLoader.java:395) > at pcgen.persistence.PersistenceManager.initialize(PersistenceManager.java:170) > at pcgen.core.SettingsHandler.initGameModes(SettingsHandler.java:1357) > at pcgen.gui.pcGenGUI.main(pcGenGUI.java:492) > ... 5 more -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.pcgen.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |