|
From: SourceForge.net <no...@so...> - 2005-07-25 18:18:35
|
Bugs item #1194596, was opened at 2005-05-03 12:23 Message generated for change (Comment added) made by jerryvos You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101703&aid=1194596&group_id=1703 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: None Group: None >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: bobuse (bobuse) Assigned to: Nobody/Anonymous (nobody) Summary: slash in string parameters throws IOException Initial Comment: Hi I'm using RePastJ 3. My SimModelImpl have as a property a name of a file to load. I launch my repast-model, an in the model parameters box, I've a textfield with a button "Browse", OK. I click for choose my file, I'm on a GNU/Linux platform, and my filename is : /home/dumoulin/Documents/eclipse_workspace/SALGlassEel/data/SiAM3168.nc I save my parameters in a file. But, when I want load it, I've this exception : java.io.IOException: Illegally formatted parameter file at line: 3 Expected '}' at uchicago.src.sim.parameter.ParameterReader.parse(Unknown Source) at uchicago.src.sim.parameter.ParameterReader.read(Unknown Source) at uchicago.src.sim.parameter.ParameterReader.<init>(Unknown Source) at uchicago.src.sim.parameter.DefaultParameterSetter.init(Unknown Source) at uchicago.src.sim.parameter.ParameterSetterFactory.createParameterSetter(Unknown Source) at uchicago.src.sim.engine.SimInit.load(Unknown Source) at uchicago.src.sim.engine.SimInit.load(Unknown Source) at uchicago.src.sim.engine.SimInit.loadModel(Unknown Source) at fr.cemagref.glassEel.repast.GlassEelRepastSimulator.main(GlassEelRepastSimulator.java:169) Error reading parameter file See my parameters file attached. If I replace the slashes by backslashes, all is allright. So I conclude the problem is due to the slashes ! ---------------------------------------------------------------------- >Comment By: Jerry Vos (jerryvos) Date: 2005-07-25 13:18 Message: Logged In: YES user_id=1093815 Nick's committed some changes to the parameter reader that fix this issue. It was being caused by the parameter lexer considering '/' as a separator charactor instead of as part of a word. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101703&aid=1194596&group_id=1703 |