On Wednesday 08 February 2006 17:48, Mamading Ceesay wrote:
>
> > Try:
> >
> > ${__BeanShell(return
> > java.net.URLEncoder.encode(vars.get("${viewstate}")\,"UTF-8"); )}
>
> Got the following error:
>
> 2006/02/08 17:41:01 ERROR - jmeter.util.BeanShellInterpreter: Error
> invoking bsh method eval
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at
etc.
After making some corrections to my Regular Expressions Extractor
configuration and lots of trial and error, I'm now getting the following error
which is a great improvement over that previously reported:
2006/02/09 00:02:08 INFO - jmeter.functions.BeanShell:
dDwyMDA3NTA3OTY5O3Q8cDxsPHJhbmRvbTs+O2w8bDxpPDE+O2k8ND47aTwzPjs+Oz4+O2w8aTwwPjs+O2w8dDw7bDxpPDE3Pjs+O2w8dDxwPHA8bDxUZXh0Oz47bDwxc3QsIDR0aCwgM3JkIFBJVyB2YWx1ZXM7Pj47Pjs7Pjs+Pjs+Pjs+GX+265peKzASOkHlZgj1g5PxAYM=
2006/02/09 00:02:08 INFO - jmeter.functions.BeanShell:
dDwyMDA3NTA3OTY5O3Q8cDxsPHJhbmRvbTs%2BO2w8bDxpPDE%2BO2k8ND47aTwzPjs%2BOz4%2BO2w8aTwwPjs%2BO2w8dDw7bDxpPDE3Pjs%2BO2w8dDxwPHA8bDxUZXh0Oz47bDwxc3QsIDR0aCwgM3JkIFBJVyB2YWx1ZXM7Pj47Pjs7Pjs%2BPjs%2BPjs%2BGX%2B265peKzASOkHlZgj1g5PxAYM%3D
2006/02/09 00:02:08 ERROR - jmeter.protocol.http.sampler.HTTPSampler:
java.io.IOException: Server returned HTTP response code: 500 for URL:
http://192.168.254.215/Login/Login.aspx
2006/02/09 00:02:08 ERROR - jmeter.protocol.http.sampler.HTTPSampler:
<html>
<head>
<title>Invalid character in a Base-64 string.</title>
<style>
body
{font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
p
{font-family:"Verdana";font-weight:normal;color:black;margin-top:
-5px}
b
{font-family:"Verdana";font-weight:bold;color:black;margin-top:
-5px}
H1
{ font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
H2
{ font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
pre {font-family:"Lucida Console";font-size: .9em}
.marker {font-weight: bold; color: black;text-decoration: none;}
.version {color: gray;}
.error {margin-bottom: 10px;}
.expandable { text-decoration:underline; font-weight:bold;
color:navy; cursor:hand; }
</style>
</head>
<body bgcolor="white">
<span><H1>Server Error in '/' Application.<hr width=100% size=1
color=silver></H1>
...
My BeanShell function currently looks as follows (some debug code in there):
${__BeanShell( vstate = "${viewstate}"; log.info( vstate); newVstate =
java.net.URLEncoder.encode(vstate\, "UTF-8"); log.info(newVstate); return
newVstate; )}
It seems that I'm almost there, but I'm missing one last thing, think I might
ditch the encode() for a simple String.replaceAll() of "+" with "%2B". If
that doesn't do it, I'll head for the hills!
--
Qmediastream http://qmediastream.com
design, commerce, hosting, streaming, multimedia
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]