svn 8266 Exception java.lang.NumberFormatException

Tried testing my Space Empires module out online. When either player attempted to “claim” a piece, which does what I listed below, this error message popped up. This only happened the very first time each player attempted to use the claim function. The claim function worked perfectly other than this message and there was no loss of functionality. The error only occured once, the first time claim was executed.

-User hits claim key combo, executes trigger
-trigger 1 of 4 possible other triggers. 3 of the possible triggers will be restricted based on the user’s team (blue/green/yellow/red).
-The fired trigger then sets a dynamic property that corresponds to a layer.
-The layer represents the “flag” of the team that hit the claim combo.

We’re in 3.2.0-svn8266, this error did not happen in the last release I tested in whcih was 8221. Like I said this does not harm the claim funciton at all, it just throws the below error.

2012-08-09 19:22:53,776 [0-main] INFO VASSAL.launch.StartUp - Starting
2012-08-09 19:22:53,776 [0-main] INFO VASSAL.launch.StartUp - OS Windows 7
2012-08-09 19:22:53,776 [0-main] INFO VASSAL.launch.StartUp - Java version 1.6.0_33
2012-08-09 19:22:53,776 [0-main] INFO VASSAL.launch.StartUp - VASSAL version 3.2.0-svn8266
2012-08-09 19:22:53,906 [0-AWT-EventQueue-0] INFO VASSAL.launch.ModuleManager - Manager
2012-08-09 19:22:59,710 [0-SwingWorker-pool-817212460-thread-1] INFO VASSAL.launch.AbstractLaunchAction - Loading module file C:\Users\Bob\Documents\Space Empires\Vassal\Modules\se4x-close-encounters-2beta.vmod
2012-08-09 19:23:12,938 [0-SwingWorker-pool-817212460-thread-1] INFO VASSAL.launch.TilingHandler - No images to tile.
2012-08-09 19:23:12,938 [0-SwingWorker-pool-817212460-thread-1] INFO VASSAL.launch.AbstractLaunchAction - Loading module Space Empires 4x Close Encounters
2012-08-09 19:23:12,985 [0-SwingWorker-pool-817212460-thread-1] INFO VASSAL.tools.io.ProcessLauncher - launching C:\Program Files\Java\jre6\bin\java -Xms256M -Xmx512M -DVASSAL.id=1 -DVASSAL.port=50169 -Duser.home=C:\Users\Bob -cp lib\Vengine.jar VASSAL.launch.Player --load – C:\Users\Bob\Documents\Space Empires\Vassal\Modules\se4x-close-encounters-2beta.vmod
2012-08-09 19:23:14,483 [1-main] INFO VASSAL.launch.StartUp - Starting
2012-08-09 19:23:14,483 [1-main] INFO VASSAL.launch.StartUp - OS Windows 7
2012-08-09 19:23:14,483 [1-main] INFO VASSAL.launch.StartUp - Java version 1.6.0_33
2012-08-09 19:23:14,483 [1-main] INFO VASSAL.launch.StartUp - VASSAL version 3.2.0-svn8266
2012-08-09 19:23:14,483 [1-main] INFO VASSAL.launch.Launcher - Player
2012-08-09 19:23:20,578 [1-AWT-EventQueue-0] WARN VASSAL.launch.BasicModule - Space Empires 4x Close Encounters version 2.0beta
2012-08-09 19:28:54,046 [1-AWT-EventQueue-0] INFO VASSAL.script.ExpressionInterpreter - Attempting to load /VASSAL/script/init_expression.bsh URI generated=jar:file:/C:/Program%20Files%20(x86)/VASSAL-3.2.0-svn8266/lib/Vengine.jar!/VASSAL/script/init_expression.bsh
2012-08-09 19:44:02,494 [1-AWT-EventQueue-0] WARN VASSAL.tools.ErrorDialog - (Green) UN-1 [Layer - shipCounter] - Numeric field contains a non-number: followProperty[numbShips]=
2012-08-09 19:44:02,506 [1-AWT-EventQueue-0] ERROR VASSAL.tools.ErrorDialog -
java.lang.NumberFormatException: For input string: “”
at java.lang.NumberFormatException.forInputString(Unknown Source) ~[na:1.6.0_33]
at java.lang.Integer.parseInt(Unknown Source) ~[na:1.6.0_33]
at java.lang.Integer.parseInt(Unknown Source) ~[na:1.6.0_33]
at VASSAL.counters.Embellishment.checkPropertyLevel(Embellishment.java:498) [Vengine.jar:na]
at VASSAL.counters.Embellishment.getName(Embellishment.java:347) [Vengine.jar:na]
at VASSAL.counters.Embellishment.getName(Embellishment.java:343) [Vengine.jar:na]
at VASSAL.counters.CalculatedProperty.getName(CalculatedProperty.java:79) [Vengine.jar:na]
at VASSAL.counters.DynamicProperty.getName(DynamicProperty.java:129) [Vengine.jar:na]
at VASSAL.counters.Labeler.setLabel(Labeler.java:381) [Vengine.jar:na]
at VASSAL.counters.Labeler.mySetState(Labeler.java:198) [Vengine.jar:na]
at VASSAL.counters.Decorator.setState(Decorator.java:157) [Vengine.jar:na]
at VASSAL.counters.Decorator.setState(Decorator.java:159) [Vengine.jar:na]
at VASSAL.counters.Decorator.setState(Decorator.java:159) [Vengine.jar:na]
at VASSAL.counters.Decorator.setState(Decorator.java:159) [Vengine.jar:na]
at VASSAL.counters.Decorator.setState(Decorator.java:159) [Vengine.jar:na]
at VASSAL.counters.Decorator.setState(Decorator.java:159) [Vengine.jar:na]
at VASSAL.counters.Decorator.setState(Decorator.java:159) [Vengine.jar:na]
at VASSAL.counters.Decorator.setState(Decorator.java:159) [Vengine.jar:na]
at VASSAL.counters.Decorator.setState(Decorator.java:159) [Vengine.jar:na]
at VASSAL.counters.Decorator.setState(Decorator.java:159) [Vengine.jar:na]
at VASSAL.counters.Decorator.setState(Decorator.java:159) [Vengine.jar:na]
at VASSAL.counters.Decorator.setState(Decorator.java:159) [Vengine.jar:na]
at VASSAL.counters.Decorator.setState(Decorator.java:159) [Vengine.jar:na]
at VASSAL.counters.Decorator.setState(Decorator.java:159) [Vengine.jar:na]
at VASSAL.counters.Decorator.setState(Decorator.java:159) [Vengine.jar:na]
at VASSAL.counters.Decorator.setState(Decorator.java:159) [Vengine.jar:na]
at VASSAL.counters.Decorator.setState(Decorator.java:159) [Vengine.jar:na]
at VASSAL.counters.Decorator.setState(Decorator.java:159) [Vengine.jar:na]
at VASSAL.counters.Decorator.setState(Decorator.java:159) [Vengine.jar:na]
at VASSAL.counters.Decorator.setState(Decorator.java:159) [Vengine.jar:na]
at VASSAL.counters.Decorator.setState(Decorator.java:159) [Vengine.jar:na]
at VASSAL.counters.Decorator.setState(Decorator.java:159) [Vengine.jar:na]
at VASSAL.counters.Decorator.setState(Decorator.java:159) [Vengine.jar:na]
at VASSAL.counters.Decorator.setState(Decorator.java:159) [Vengine.jar:na]
at VASSAL.counters.Decorator.setState(Decorator.java:159) [Vengine.jar:na]
at VASSAL.counters.Decorator.setState(Decorator.java:159) [Vengine.jar:na]
at VASSAL.counters.Decorator.setState(Decorator.java:159) [Vengine.jar:na]
at VASSAL.counters.Decorator.setState(Decorator.java:159) [Vengine.jar:na]
at VASSAL.counters.Decorator.setState(Decorator.java:159) [Vengine.jar:na]
at VASSAL.counters.Decorator.setState(Decorator.java:159) [Vengine.jar:na]
at VASSAL.counters.Decorator.setState(Decorator.java:159) [Vengine.jar:na]
at VASSAL.counters.Decorator.setState(Decorator.java:159) [Vengine.jar:na]
at VASSAL.counters.Decorator.setState(Decorator.java:159) [Vengine.jar:na]
at VASSAL.counters.Decorator.setState(Decorator.java:159) [Vengine.jar:na]
at VASSAL.counters.Decorator.setState(Decorator.java:159) [Vengine.jar:na]
at VASSAL.counters.Decorator.setState(Decorator.java:159) [Vengine.jar:na]
at VASSAL.command.AddPiece.executeCommand(AddPiece.java:53) [Vengine.jar:na]
at VASSAL.command.Command.execute(Command.java:54) [Vengine.jar:na]
at VASSAL.chat.CommandDecoder$1.run(CommandDecoder.java:40) [Vengine.jar:na]
at java.awt.event.InvocationEvent.dispatch(Unknown Source) [na:1.6.0_33]
at java.awt.EventQueue.dispatchEventImpl(Unknown Source) [na:1.6.0_33]
at java.awt.EventQueue.access$000(Unknown Source) [na:1.6.0_33]
at java.awt.EventQueue$1.run(Unknown Source) [na:1.6.0_33]
at java.awt.EventQueue$1.run(Unknown Source) [na:1.6.0_33]
at java.security.AccessController.doPrivileged(Native Method) [na:1.6.0_33]
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source) [na:1.6.0_33]
at java.awt.EventQueue.dispatchEvent(Unknown Source) [na:1.6.0_33]
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [na:1.6.0_33]
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [na:1.6.0_33]
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [na:1.6.0_33]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [na:1.6.0_33]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [na:1.6.0_33]
at java.awt.EventDispatchThread.run(Unknown Source) [na:1.6.0_33]
2012-08-09 19:50:06,956 [1-AWT-EventQueue-0] ERROR VASSAL.tools.ErrorDialog -
java.lang.StackOverflowError: null
at java.lang.String.indexOf(Unknown Source) ~[na:1.6.0_33]
at VASSAL.tools.SequenceEncoder.appendEscapedString(SequenceEncoder.java:141) ~[Vengine.jar:na]
at VASSAL.tools.SequenceEncoder.append(SequenceEncoder.java:88) ~[Vengine.jar:na]
at VASSAL.build.module.BasicCommandEncoder.encode(BasicCommandEncoder.java:465) ~[Vengine.jar:na]
at VASSAL.launch.BasicModule.encodeSubCommand(BasicModule.java:263) ~[Vengine.jar:na]
at VASSAL.launch.BasicModule.encode(BasicModule.java:244) ~[Vengine.jar:na]
at VASSAL.launch.BasicModule.encode(BasicModule.java:250) ~[Vengine.jar:na]
at VASSAL.launch.BasicModule.encode(BasicModule.java:250) ~[Vengine.jar:na]
----- THIS REPEATS HUNDREDS OF TIMES–

How have you set the initial value of the numbShips property? Is it 0 or blank?

Is this claim functionality in the version of the module that is on the vassal site? I can’t find. Can you send me a link to this version? I can’t debug a module that I don’t have access to.
Thx,
brent.

Hi,
Got the module, thanks. Could you please run me through the procedure to do a claim and trigger the error.
Thanks.

Sure, hit the button that looks like a cardboard box-

-click on any team color’s tab
-hit the drop down and select Space Markers
-drag a Mineral 5 marker out to the map
-Right click → Claim or CTRL-C

Should stick whatever team you joined as flag onto the marker (among changing some properties). It still does this but also throws the exception. The prototype is “Mineral” as well if you want to see the Layer property that might be throwing it.