From: SourceForge.net <no...@so...> - 2006-05-06 02:12:48
|
Bugs item #1460087, was opened at 2006-03-29 02:31 Message generated for change (Comment added) made by jdempsey You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=384719&aid=1460087&group_id=25576 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Import/Save Character Group: To be fixed For 5.10 >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Martijn Verburg (karianna) Assigned to: James Dempsey (jdempsey) Summary: Command Line parsing of pcg crashes Initial Comment: I have finally identified the source of my problems with Command Line PCGen (for html files at least, any news about the switches available, in particular for pdf output ?). If a .pcg file contains the following kind of tag: "ABILITY:[PROMPT:" For example in lines like: ======================================== CLASSABILITIESLEVEL:Fighter=4|HITPOINTS:6|ABILITY:[PROMPT:FEAT(TYPE=Fighter)|CHO\ \ ICE:Weapon Specialization(Longbow)]|PRESTAT:DEX=1|SKILLSGAINED:2 ======================================== CLASSABILITIESLEVEL:Wild Mage=1|HITPOINTS:2|ABILITY:[PROMPT:SPELLCASTER(Arcane)|CHOICE:Sorcerer]|SKILLSGA\ \ INED:3 ======================================== CLASSABILITIESLEVEL:Hexblade=5|HITPOINTS:5|ABILITY:[PROMPT:FEAT(Combat Casting,Greater Spell Focus (Enchantment),Greater Spell Focus (Necromancy),Greater Spell Focus (Transmutation),Greater Spell Penetration,Spell Focus (Enchantment),Spell Focus (Necromancy),Spell Focus (Transmutation),Spell Penetration)|CHOICE:Spell Focus(Enchantment)]|POSTSTAT:WIS=1|SKILLSGAINED:2 ======================================== Then, the command file PCGen crashes with the rather obscure following output: ======================================== 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:76) Caused by: java.lang.NullPointerException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at pcgen.util.chooser.ChooserFactory.getChooserInstance(ChooserFactory.java:52) at pcgen.core.LevelAbility.process(LevelAbility.java:121) at pcgen.io.PCGVer2Parser.parseLevelAbilityInfo(PCGVer2Parser.java:4454) at pcgen.io.PCGVer2Parser.parseClassAbilitiesLevelLine(PCGVer2Parser.java:1438) at pcgen.io.PCGVer2Parser.parseCachedLines(PCGVer2Parser.java:648) at pcgen.io.PCGVer2Parser.parsePCG(PCGVer2Parser.java:151) at pcgen.io.PCGIOHandler.read(PCGIOHandler.java:294) at pcgen.io.IOHandler.read(IOHandler.java:61) at pcgen.core.party.Party.loadPCFromFile(Party.java:277) at pcgen.core.party.Party.loadCharacterFiles(Party.java:262) at pcgen.core.party.Party.load(Party.java:141) at pcgen.gui.pcGenGUI.runNonGuiLoad(pcGenGUI.java:297) at pcgen.gui.pcGenGUI.runNonGui(pcGenGUI.java:240) at pcgen.gui.pcGenGUI.<init>(pcGenGUI.java:171) at pcgen.gui.pcGenGUI.main(pcGenGUI.java:404) ... 5 more ======================================== I hope that this will be enough for you to track this down to its conclusion, as it is a rather annoying bug. MOst high level characters have at least one such tag... ---------------------------------------------------------------------- >Comment By: James Dempsey (jdempsey) Date: 2006-05-06 12:12 Message: Logged In: YES user_id=558288 Rather than massive refactoring, I added in a stub chooser for non gui use only. This will allow the export to proceed correctly. Files changed in 5.10.x branch: http://svn.sourceforge.net/pcgen/?rev=954&view=rev Files changed in trunk: http://svn.sourceforge.net/pcgen/?rev=955&view=rev ---------------------------------------------------------------------- Comment By: James Dempsey (jdempsey) Date: 2006-04-27 16:21 Message: Logged In: YES user_id=558288 Fixing this bug will require refactoring of the LevelAbility classes to disassociate them from the Chooser and allow the LevelAbility to be processed on load without instantiating a chooser which uses GUI classes that are not present in commandline only installs of Java. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=384719&aid=1460087&group_id=25576 |