Quantcast

Jython error- Please help

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Jython error- Please help

FMehran

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)

 

 

 

 

 


------------------------------------------------------------------------------
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
_______________________________________________
Grinder-development mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/grinder-development
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Jython error- Please help

Philip Aston-2
[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, [hidden email] 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)

 

 



------------------------------------------------------------------------------
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
_______________________________________________
Grinder-development mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/grinder-development
Loading...