Maximum recursion depth

S

Sujit Marar

When I run on Webware(Python application Server),
there is a web Page that has a "Cancel" button , When
I press the Cancel button , I get the following error
based on the following code snippet

def Cancel(self):
"""
Cancel the current page
"""
log.debug("cancel()")
self.forward("Display")


Traceback (most recent call last):
File "WebKit\Application.py", line 415, in
dispatchRequest
File "WebKit\Application.py", line 567, in
handleGoodURL
File "WebKit\Application.py", line 776, in respond
File "WebKit\Transaction.py", line 105, in respond
File "WebKit\HTTPServlet.py", line 38, in respond
File "WebKit\Page.py", line 38, in respondToPost
File "WebKit\Page.py", line 70, in _respond
File "WebKit\Page.py", line 265, in handleAction
File "C:\agents\context\pageedit\Display.py", line
140, in Cancel
self.forward("Display")
File "WebKit\Page.py", line 335, in forward
File "WebKit\Application.py", line 652, in forward
File "WebKit\Application.py", line 430, in
dispatchRequest
File "WebKit\Application.py", line 1076, in
handleExceptionInTransaction
File "WebKit\ExceptionHandler.py", line 104, in
__init__
File "WebKit\ExceptionHandler.py", line 136, in
work
File "WebKit\ExceptionHandler.py", line 168, in
logExceptionToConsole
File "D:\Python23\lib\traceback.py", line 210, in
print_exc
print_exception(etype, value, tb, limit, file)
File "D:\Python23\lib\traceback.py", line 123, in
print_exception
print_tb(tb, limit, file)
File "D:\Python23\lib\traceback.py", line 68, in
print_tb
line = linecache.getline(filename, lineno)
File "D:\Python23\lib\linecache.py", line 14, in
getline
lines = getlines(filename)
File "D:\Python23\lib\linecache.py", line 40, in
getlines
return updatecache(filename)
RuntimeError: maximum recursion depth exceeded
This eems not a problem with Webware, but with
Python2.3 KIt
Can anyone tell me

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
 
I

Istvan Albert

Sujit Marar wrote:

This eems not a problem with Webware, but with
Python2.3 KIt
Can anyone tell me

import sys
print sys.getrecursionlimit()

will tell you this limit. On my system is 1000.
You can set it with:

sys.setrecursionlimit(new_limit)

But you need to wonder why you Webware exceeded it
in the first place...

Istvan
 
J

Jeff Epler

But you need to wonder why you Webware exceeded it
in the first place...

If the OP included the full traceback, one has to wonder why webware
made the recursion depth so small -- there are only a few dozen frames
there.

Jeff

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFA9SxFJd01MZaTXX0RAoy4AJ4xF5A0bHGoOIhuud+k+jeeBkKkmQCdFC22
RPBVMUtCfGnuhqYwf5Hdts4=
=VazD
-----END PGP SIGNATURE-----
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top