I'd drop in a debug sampler before your beanshell sampler and just make sure your regex has extracted properly. You don't need to create the keyvals if the regex has done its job correctly, but I'd guess it didn't actually extract anything.
IIRC the regex processor will not create an array if you specify a default value like that and it assigns the default. It'll put "5000" in keyval, not keyval_1. -- Bruce Ide flyingrhenqu...@gmail.com