net.adamcin.recap icon indicating copy to clipboard operation
net.adamcin.recap copied to clipboard

Empty batch_size exception/error

Open paulrohrbeck opened this issue 10 years ago • 1 comments

Hey, thanks for putting this up on github!

In my logs I can see the following error:

POST ....graniteconsole.html HTTP/1.1] net.adamcin.recap.impl.RecapAdapterFactory 
failed to parse batch_size parameter:
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)

I only took a very quick look at the above mentioned file, but I'm wondering why the StringUtils.isNotBlank(rpBatchSize) does not catch the empty string? I did not specify the batch size so it shouldn't even go in there, right?

paulrohrbeck avatar Jun 11 '14 00:06 paulrohrbeck

I think the double quotes may actually have been in the parameter value. I'll take a look at it.

adamcin avatar Jun 12 '14 00:06 adamcin