[Geoserver-devel] [jira] (GEOS-6037) [geoserver.flow] - Error occurerd during flow controllers reconfiguration

CHRISTIAN PICONE created BugGEOS-6037
[geoserver.flow] - Error occurerd during flow controllers reconfiguration

Issue Type:

BugBug

Affects Versions:

2.3.5

Assignee:

Andrea Aime

Components:

Control-flow

Created:

13/Sep/13 9:56 AM

Description:

Adding the following parameter to the “controlflow.properties” file:
ip.blacklist=192.168.1.2,192.168.1.3
Geoserver log show the following error messages:
ERROR [flow.config] - Rules should be assigned just a queue size, instead ip.blacklist is associated to 192.168.1.2,192.168.1.3
ERROR [geoserver.flow] - Error occurerd during flow controllers reconfiguration

Analyzing the source code of buildFlowControllers method in DefaultControlFlowConfigurator class, the error seems caused by the conversion to integer (parseInt) of tokens obtained using the comma delimiter (IP address values).

int queueSize = 0;
StringTokenizer tokenizer = new StringTokenizer(value, “,”);
try {
if (tokenizer.countTokens() == 1)

{ queueSize = Integer.parseInt(value); }

else

{ queueSize = Integer.parseInt(tokenizer.nextToken()); }

} catch (NumberFormatException e)

{ LOGGER.severe("Rules should be assigned just a queue size, instead " + okey + " is associated to " + value); continue; }

Environment:

Red Hat 5.8 with Geoserver 2.3.5 and Control-Flow 2.3.5

Project:

GeoServer

Priority:

MajorMajor

Reporter:

CHRISTIAN PICONE

This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: [http://www.atlassian.com/software/jira](http://www.atlassian.com/software/jira)