https://bz.apache.org/bugzilla/show_bug.cgi?id=64651

--- Comment #5 from Andy <[email protected]> ---
Okay thank you Felix, That sounds good. Yesterday I was trying to add comments
but bugzilla was down. HI will try groovy function you sent me and see if it
works...



In beanshell , i am grabbing the JSON response like this.

vars.put("responseJSON2BSaved", prev.getResponseDataAsString().toString());

then, I am sending this parameter to the JDBC post processor like this 

${__V(responseJSON2BSaved)}


it complaints that input input arguments does not match with parameters. for
each request the difference of argument is a different number while its
processing each response. Indicating its splitting the JSON response which its
thinking that there are many parameters. 2020-08-07 11:47:07,592 WARN
o.a.j.p.j.p.AbstractJDBCProcessor: IO Problem in java.io.IOException: Cannot
have quote-char in plain field:[{"]: {}JDBC PostProcessor
2

as per your suggestion : "${jsonVar}". 
i tried like this "${__V(responseJSON2BSaved)}" at the jdbc parameter value,
keep on getting same error. 

2020-08-07 13:23:28,489 WARN o.a.j.p.j.p.AbstractJDBCProcessor: IO Problem in
java.io.IOException: Cannot have quote-char in plain field:['{"]: {}JDBC
PostProcessor
2020-08-07 13:23:28,960 INFO o.a.j.u.BeanShellTestElement: assertionValue: 0.97
2020-08-07 13:23:28,960 INFO o.a.j.u.BeanShellTestElement: assertionStatus:
Pass
2020-08-07 13:23:28,961 WARN o.a.j.p.j.p.AbstractJDBCProcessor: IO Problem in
java.io.IOException: Cannot have quote-char in plain field:['{"]: {}JDBC
PostProcessor
2020-08-07 13:23:29,293 INFO o.a.j.u.BeanShellTestElement: assertionValue:
Chairs
2020-08-07 13:23:29,293 INFO o.a.j.u.BeanShellTestElement: assertionStatus:
Pass
2020-08-07 13:23:29,294 WARN o.a.j.p.j.p.AbstractJDBCProcessor: IO Problem in
java.io.IOException: Cannot have quote-char in plain field:['{"]: {}JDBC
PostProcessor
2

problem seems to be in the happening before it can hit the jdbc layer to save
it.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to