gvSIG CE and SEXTANTE GIS Bug Tracker on MantisBT
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000380SEXTANTEAlgorithms (geoprocessing)public2013-05-06 12:132013-05-09 20:42
Reporterfpuga 
Assigned Tovolaya 
PrioritynormalSeverityminorReproducibilitysometimes
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version 
Target Version1.0.1Fixed in Version 
Summary0000380: Error in sextante.history file prevent use the toolbox
DescriptionSometimes, the sextante.history file is written malformed. I'm not sure if it only happens with the grid calculator algorithm or with more.

When trying to execute an algorithm from the toolbox, sextante tries to parse the history, an error is thrown, and the dialog is not opened.

java.lang.NumberFormatException: For input string: "", "#")"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
    at java.lang.Long.parseLong(Long.java:410)
    at java.lang.Long.parseLong(Long.java:468)
    at es.unex.sextante.gui.history.History.getHistory(History.java:131)
    at es.unex.sextante.gui.algorithm.AlgorithmDialog.retrievePreviouslyUsedParametersFromHistory(AlgorithmDialog.java:317)

There are two approachs here:

* Capture the exception and ignore it. (not so good)
* Fix the algorithm, but i'm not sure how this begin to happen.

I attach a real, malformed sextante.history file.
TagsNo tags attached.
Attached Files? file icon sextante.history [^] (3,570 bytes) 2013-05-06 12:13
patch file icon history_bug.patch [^] (746 bytes) 2013-05-06 12:47 [Show Content]

- Relationships

-  Notes
(0000223)
fpuga (reporter)
2013-05-06 12:49

I take another look to this issue. It seems to happen when the user introduce a new line in the "formula" text field of the grid calculator.

I attach a patch that removes all of the \n and/or \r that appears in user input. I didn't test it so match ...

If you think that can be another approach, please tell me, and i can make a new patch.
(0000227)
benducke (developer)
2013-05-09 09:44

Patch committed to SVN.
(0000230)
josecanalejo (administrator)
2013-05-09 20:42

Target Version 1.1 added.
Only tickets with an assigned target version will appear on the roadmap.

- Issue History
Date Modified Username Field Change
2013-05-06 12:13 fpuga New Issue
2013-05-06 12:13 fpuga Status new => assigned
2013-05-06 12:13 fpuga Assigned To => volaya
2013-05-06 12:13 fpuga File Added: sextante.history
2013-05-06 12:47 fpuga File Added: history_bug.patch
2013-05-06 12:49 fpuga Note Added: 0000223
2013-05-09 09:44 benducke Note Added: 0000227
2013-05-09 09:44 benducke Status assigned => resolved
2013-05-09 09:44 benducke Resolution open => fixed
2013-05-09 20:42 josecanalejo Note Added: 0000230
2013-05-09 20:42 josecanalejo Target Version => 1.0.1


Copyright © 2000 - 2011 MantisBT Group
Hosted by Sourceforge.netPowered by Mantis Bugtracker