Re: Jython error- Please help
Philip Aston <[email protected]> Wed, 17 Oct 2012 21:22:42 +0100
| Newsgroups | gmane.comp.java.grinder.devel |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--===============7738803850942261854==
Content-Type: multipart/alternative;
boundary="------------010703070205000805040007"
This is a multi-part message in MIME format.
--------------010703070205000805040007
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[Redirecting to grinder-use by bcc. Please use grinder-use for usage
problems such as this one; grinder-development is for development of The
Grinder itself.]
I think the error is occurring after the code you've supplied.
I'm guessing you are using a regular expression search which is
returning a null ("None" in Jython) matcher, and then you are trying to
invoke group() on the matcher. If you supply the stack trace from the
error log, and the code to which it refers, we can tell you more.
- Phil
On 17/10/12 19:45, [email protected] wrote:
>
> Can you please help me with this? What does this error mean?
>
>
>
>
>
> I am getting this error in my error log:
>
>
>
> Aborted run due to Jython exception: AttributeError: 'NoneType' object
> has no attribute 'group' [calling TestRunner]
>
>
>
> This is from my output log:
>
>
>
>
>
> 10/17/12 11:08:25 AM (thread 4 run 0 test 2101):
> http://ccbdev1:6490/spl/search?service=CILCAIDS&ACCT_ID=0002901397&ALL_PREM_SW=true&SEARCH_TYPE=MN
> -> 200 OK, 86 bytes
>
> 10/17/12 11:08:25 AM (thread 3 run 0 test 2101):
> http://ccbdev1:6490/spl/search?service=CILCAIDS&ACCT_ID=0002901397&ALL_PREM_SW=true&SEARCH_TYPE=MN
> -> 200 OK, 86 bytes
>
> 10/17/12 11:08:25 AM (thread 0 run 0 test 2101):
> http://ccbdev1:6490/spl/search?service=CILCAIDS&ACCT_ID=0002901397&ALL_PREM_SW=true&SEARCH_TYPE=MN
> -> 200 OK, 86 bytes
>
> 10/17/12 11:08:25 AM (thread 4 run 0 test 2101): page21 CDx_response
> var cdxResponse = {resultCode: '', searchList: {header: {moreRows:
> false},list: []
>
> }};
>
> 10/17/12 11:08:25 AM (thread 0 run 0 test 2101): page21 CDx_response
> var cdxResponse = {resultCode: '', searchList: {header: {moreRows:
> false},list: []
>
> }};
>
> 10/17/12 11:08:25 AM (thread 3 run 0 test 2101): page21 CDx_response
> var cdxResponse = {resultCode: '', searchList: {header: {moreRows:
> false},list: []
>
> }};
>
> 10/17/12 11:08:25 AM (thread 2 run 0 test 2101):
> http://ccbdev1:6490/spl/search?service=CILCAIDS&ACCT_ID=0002901397&ALL_PREM_SW=true&SEARCH_TYPE=MN
> -> 200 OK, 86 bytes
>
> 10/17/12 11:08:25 AM (thread 2 run 0 test 2101): page21 CDx_response
> var cdxResponse = {resultCode: '', searchList: {header: {moreRows:
> false},list: []
>
> }};
>
> 10/17/12 11:08:25 AM (thread 4 run 0 test 2101): ERROR ("Aborted run
> due to J..."), see error log for details
>
> 10/17/12 11:08:25 AM (thread 3 run 0 test 2101): ERROR ("Aborted run
> due to J..."), see error log for details
>
> 10/17/12 11:08:25 AM (thread 2 run 0 test 2101): ERROR ("Aborted run
> due to J..."), see error log for details
>
> 10/17/12 11:08:25 AM (thread 0 run 0 test 2101): ERROR ("Aborted run
> due to J..."), see error log for details
>
> 10/17/12 11:08:25 AM (thread 1 run 0 test 2101):
> http://ccbdev1:6490/spl/search?service=CILCAIDS&ACCT_ID=0002901397&ALL_PREM_SW=true&SEARCH_TYPE=MN
> -> 200 OK, 86 bytes
>
> 10/17/12 11:08:25 AM (thread 1 run 0 test 2101): page21 CDx_response
> var cdxResponse = {resultCode: '', searchList: {header: {moreRows:
> false},list: []
>
> }};
>
> 10/17/12 11:08:25 AM (thread 1 run 0 test 2101): ERROR ("Aborted run
> due to J..."), see error log for details
>
>
>
>
>
>
>
> And this is my method in the script:
>
>
>
>
>
> def page21(self):
>
> """POST search (request 2101)."""
>
> self.token_service = \
>
> 'CILCAIDS'
>
> self.token_ACCT_ID = \
>
> Parm_Acct_Id ----------------------------------------à
> Parameter for passing account number from a file
>
> self.token_ALL_PREM_SW = \
>
> 'true'
>
> self.token_SEARCH_TYPE = \
>
> 'MN'
>
> result = request2101.POST('/spl/search' +
>
> '?service=' +
>
> self.token_service +
>
> '&ACCT_ID=' +
>
> self.token_ACCT_ID +
>
> '&ALL_PREM_SW=' +
>
> self.token_ALL_PREM_SW +
>
> '&SEARCH_TYPE=' +
>
> self.token_SEARCH_TYPE,
>
> ( NVPair('userProfileXML', '''<?xml version=\"1.0\"
> encoding=\"UTF-8\"?>
>
> <profile><homePage>CI0000001399</homePage><numberFormat>-1.1</numberFormat><numberGroupSeparator>,</numberGroupSeparator><moneyFormat>-1.1</moneyFormat><moneyDecimalDigits>2</moneyDecimalDigits><timeFormat>hh:mma</timeFormat><decimalSeparator>.</decimalSeparator><currencyCode>USD</currencyCode><dateDisplayFormat>MM-dd-yyyy</dateDisplayFormat><dashboardWidth>200</dashboardWidth><showAllPremises>Y</showAllPremises></profile>'''),
> ),
>
> ( NVPair('Content-Type', 'application/x-www-form-urlencoded;
> charset=UTF-8'), ))
>
>
>
>
>
> var_CDx_response = result.getText()
>
> log("page21 CDx_response %s " % var_CDx_response)
>
>
>
>
>
--------------010703070205000805040007
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">[Redirecting to grinder-use by bcc.
Please use grinder-use for usage problems such as this one;
grinder-development is for development of The Grinder itself.]<br>
<br>
I think the error is occurring after the code you've supplied.<br>
<br>
I'm guessing you are using a regular expression search which is
returning a null ("None" in Jython) matcher, and then you are
trying to invoke group() on the matcher. If you supply the stack
trace from the error log, and the code to which it refers, we can
tell you more.<br>
<br>
- Phil<br>
<br>
On 17/10/12 19:45, <a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a> wrote:<br>
</div>
<blockquote
cite="mid:C62373B26F83EA4F9606110ACA792D421DA78DD3-we4nw3bxX0uTEufo5x+bmqC0MeUe/[email protected]"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 12 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Can you please help me with this? What
does this error mean?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am getting this error in my error log:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Aborted run due to Jython exception:
AttributeError: 'NoneType' object has no attribute 'group'
[calling TestRunner]<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">This is from my output log:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">10/17/12 11:08:25 AM (thread 4 run 0 test
2101):
<a class="moz-txt-link-freetext" href="http://ccbdev1:6490/spl/search?service=CILCAIDS&ACCT_ID=0002901397&ALL_PREM_SW=true&SEARCH_TYPE=MN">http://ccbdev1:6490/spl/search?service=CILCAIDS&ACCT_ID=0002901397&ALL_PREM_SW=true&SEARCH_TYPE=MN</a>
-> 200 OK, 86 bytes<o:p></o:p></p>
<p class="MsoNormal">10/17/12 11:08:25 AM (thread 3 run 0 test
2101):
<a class="moz-txt-link-freetext" href="http://ccbdev1:6490/spl/search?service=CILCAIDS&ACCT_ID=0002901397&ALL_PREM_SW=true&SEARCH_TYPE=MN">http://ccbdev1:6490/spl/search?service=CILCAIDS&ACCT_ID=0002901397&ALL_PREM_SW=true&SEARCH_TYPE=MN</a>
-> 200 OK, 86 bytes<o:p></o:p></p>
<p class="MsoNormal">10/17/12 11:08:25 AM (thread 0 run 0 test
2101):
<a class="moz-txt-link-freetext" href="http://ccbdev1:6490/spl/search?service=CILCAIDS&ACCT_ID=0002901397&ALL_PREM_SW=true&SEARCH_TYPE=MN">http://ccbdev1:6490/spl/search?service=CILCAIDS&ACCT_ID=0002901397&ALL_PREM_SW=true&SEARCH_TYPE=MN</a>
-> 200 OK, 86 bytes<o:p></o:p></p>
<p class="MsoNormal">10/17/12 11:08:25 AM (thread 4 run 0 test
2101): page21 CDx_response var cdxResponse = {resultCode: '',
searchList: {header: {moreRows: false},list: []<o:p></o:p></p>
<p class="MsoNormal">}}; <o:p></o:p></p>
<p class="MsoNormal">10/17/12 11:08:25 AM (thread 0 run 0 test
2101): page21 CDx_response var cdxResponse = {resultCode: '',
searchList: {header: {moreRows: false},list: []<o:p></o:p></p>
<p class="MsoNormal">}}; <o:p></o:p></p>
<p class="MsoNormal">10/17/12 11:08:25 AM (thread 3 run 0 test
2101): page21 CDx_response var cdxResponse = {resultCode: '',
searchList: {header: {moreRows: false},list: []<o:p></o:p></p>
<p class="MsoNormal">}}; <o:p></o:p></p>
<p class="MsoNormal">10/17/12 11:08:25 AM (thread 2 run 0 test
2101):
<a class="moz-txt-link-freetext" href="http://ccbdev1:6490/spl/search?service=CILCAIDS&ACCT_ID=0002901397&ALL_PREM_SW=true&SEARCH_TYPE=MN">http://ccbdev1:6490/spl/search?service=CILCAIDS&ACCT_ID=0002901397&ALL_PREM_SW=true&SEARCH_TYPE=MN</a>
-> 200 OK, 86 bytes<o:p></o:p></p>
<p class="MsoNormal">10/17/12 11:08:25 AM (thread 2 run 0 test
2101): page21 CDx_response var cdxResponse = {resultCode: '',
searchList: {header: {moreRows: false},list: []<o:p></o:p></p>
<p class="MsoNormal">}}; <o:p></o:p></p>
<p class="MsoNormal">10/17/12 11:08:25 AM (thread 4 run 0 test
2101): ERROR ("Aborted run due to J..."), see error log for
details<o:p></o:p></p>
<p class="MsoNormal">10/17/12 11:08:25 AM (thread 3 run 0 test
2101): ERROR ("Aborted run due to J..."), see error log for
details<o:p></o:p></p>
<p class="MsoNormal">10/17/12 11:08:25 AM (thread 2 run 0 test
2101): ERROR ("Aborted run due to J..."), see error log for
details<o:p></o:p></p>
<p class="MsoNormal">10/17/12 11:08:25 AM (thread 0 run 0 test
2101): ERROR ("Aborted run due to J..."), see error log for
details<o:p></o:p></p>
<p class="MsoNormal">10/17/12 11:08:25 AM (thread 1 run 0 test
2101):
<a class="moz-txt-link-freetext" href="http://ccbdev1:6490/spl/search?service=CILCAIDS&ACCT_ID=0002901397&ALL_PREM_SW=true&SEARCH_TYPE=MN">http://ccbdev1:6490/spl/search?service=CILCAIDS&ACCT_ID=0002901397&ALL_PREM_SW=true&SEARCH_TYPE=MN</a>
-> 200 OK, 86 bytes<o:p></o:p></p>
<p class="MsoNormal">10/17/12 11:08:25 AM (thread 1 run 0 test
2101): page21 CDx_response var cdxResponse = {resultCode: '',
searchList: {header: {moreRows: false},list: []<o:p></o:p></p>
<p class="MsoNormal">}}; <o:p></o:p></p>
<p class="MsoNormal">10/17/12 11:08:25 AM (thread 1 run 0 test
2101): ERROR ("Aborted run due to J..."), see error log for
details<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">And this is my method in the script:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">def page21(self):<o:p></o:p></p>
<p class="MsoNormal"> """POST search (request 2101)."""<o:p></o:p></p>
<p class="MsoNormal"> self.token_service = \<o:p></o:p></p>
<p class="MsoNormal"> 'CILCAIDS'<o:p></o:p></p>
<p class="MsoNormal"> self.token_ACCT_ID = \<o:p></o:p></p>
<p class="MsoNormal"> <span
style="background:yellow;mso-highlight:yellow">Parm_Acct_Id</span>
----------------------------------------<span
style="font-family:Wingdings">à</span> Parameter for
passing account number from a file<o:p></o:p></p>
<p class="MsoNormal"> self.token_ALL_PREM_SW = \<o:p></o:p></p>
<p class="MsoNormal"> 'true'<o:p></o:p></p>
<p class="MsoNormal"> self.token_SEARCH_TYPE = \<o:p></o:p></p>
<p class="MsoNormal"> 'MN'<o:p></o:p></p>
<p class="MsoNormal"> result = request2101.POST('/spl/search'
+<o:p></o:p></p>
<p class="MsoNormal"> '?service=' +<o:p></o:p></p>
<p class="MsoNormal"> self.token_service +<o:p></o:p></p>
<p class="MsoNormal"> '&ACCT_ID=' +<o:p></o:p></p>
<p class="MsoNormal"> self.token_ACCT_ID +<o:p></o:p></p>
<p class="MsoNormal"> '&ALL_PREM_SW=' +<o:p></o:p></p>
<p class="MsoNormal"> self.token_ALL_PREM_SW +<o:p></o:p></p>
<p class="MsoNormal"> '&SEARCH_TYPE=' +<o:p></o:p></p>
<p class="MsoNormal"> self.token_SEARCH_TYPE,<o:p></o:p></p>
<p class="MsoNormal"> ( NVPair('userProfileXML',
'''<?xml version=\"1.0\" encoding=\"UTF-8\"?><o:p></o:p></p>
<p class="MsoNormal"><profile><homePage>CI0000001399</homePage><numberFormat>-1.1</numberFormat><numberGroupSeparator>,</numberGroupSeparator><moneyFormat>-1.1</moneyFormat><moneyDecimalDigits>2</moneyDecimalDigits><timeFormat>hh:mma</timeFormat><decimalSeparator>.</decimalSeparator><currencyCode>USD</currencyCode><dateDisplayFormat>MM-dd-yyyy</dateDisplayFormat><dashboardWidth>200</dashboardWidth><showAllPremises>Y</showAllPremises></profile>'''),
),<o:p></o:p></p>
<p class="MsoNormal"> ( NVPair('Content-Type',
'application/x-www-form-urlencoded; charset=UTF-8'), ))<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> var_CDx_response = result.getText()<o:p></o:p></p>
<p class="MsoNormal"> log("page21 CDx_response %s " %
var_CDx_response)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p><br>
</p>
</div>
</blockquote>
<br>
</body>
</html>
--------------010703070205000805040007--
--===============7738803850942261854==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
--===============7738803850942261854==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Grinder-development mailing list
Grinder-development-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/grinder-development
--===============7738803850942261854==--