From nolan@peaceworks.ca Sat Feb 4 01:32:56 2006 Return-path: Envelope-to: jason@opensky.ca Delivery-date: Sat, 04 Feb 2006 01:32:56 -0600 Received: from [209.162.233.151] (helo=earthmover.stcf.peaceworks.ca) by www.opensky.ca with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.50) id 1F5Hue-0005IK-Av for jason@opensky.ca; Sat, 04 Feb 2006 01:32:56 -0600 Received: from [172.16.254.50] (helo=[172.16.254.50]) by earthmover.stcf.peaceworks.ca with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.50) id 1F5Hwv-0007ue-KZ for jason@peaceworks.ca; Sat, 04 Feb 2006 02:35:16 -0500 Message-ID: <43E4587B.6050406@peaceworks.ca> Date: Sat, 04 Feb 2006 02:32:11 -0500 From: Nolan Andres User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: jason@peaceworks.ca Subject: getting close... Content-Type: multipart/mixed; boundary="------------080905040704050004040308" X-Spam-Score: -2.8 X-Evolution-Source: imap://jdhildeb@localhost/ This is a multi-part message in MIME format. --------------080905040704050004040308 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit My environment is this: Apache 2.0.52 mod_webkit Python 2.4 Python 2.4 Win32 Extensions I created itworks.bat, which looks like this: ---------- set WEBWAREDIR=c:\data\users\nolan\development\itworks\Webware set APPDIR=c:\data\users\nolan\development\itworks set PYTHONPATH=%WEBWAREDIR%;%APPDIR%\Lib;%APPDIR%\Components set DB=MySQL set STATIC_URL=/ittracker set DBUSER=root set MIDDLEMODEL=ITTracker set MK_STORE_INIT='' set UNIXUSER=jdhildeb python Launch.py ThreadedAppServer $* ------------- ...which seems to work...It runs as follows: AutoReload Monitor started, polling every 1 seconds Creating 10 threads.......... Listening on ('127.0.0.1', 8091) Ready (0.42 seconds after launch) ...and so I go to: http://localhost/itworks/Login...and the browser just sits there waiting... ...in the DOS window, where the AppServer is running, I get this: 1 2006-02-04 02:24:13 /itworks/Login > c:\data\users\nolan\development\itworks\webware\webkit\urlparser.py(234)parse() -> trans.request()._serverSideContextPath = self._contexts[contextName] (Pdb) ...and it just hangs there. When I break it (Ctrl-C), the attached response comes up in my browser. I'm not asking you to put any time into this, really...Just to look at the attached file and let me know if you see anything that to you is obvious. I haven't even looked at it much. I got the error, decided to email it to you and go to bed. I'll look at it more later (maybe tomorrow) peace, Nolan --------------080905040704050004040308 Content-Type: text/html; name="Login.htm" Content-Disposition: inline; filename="Login.htm" Content-Transfer-Encoding: 8bit Error


Error

The site is having technical difficulties with this page. An error has been logged, and the problem will be fixed as soon as possible. Sorry!


Traceback

None
Traceback (most recent call last):
  File "c:\data\users\nolan\development\itworks\Webware\WebKit\Application.py", line 436, in dispatchRawRequest [edit]
    self.runTransaction(trans)
  File "c:\data\users\nolan\development\itworks\Webware\WebKit\Application.py", line 486, in runTransaction [edit]
    servlet = self._rootURLParser.findServletForTransaction(trans)
  File "c:\data\users\nolan\development\itworks\Webware\WebKit\URLParser.py", line 66, in findServletForTransaction [edit]
    return self.parse(trans, trans.request().urlPath())
  File "c:\data\users\nolan\development\itworks\Webware\WebKit\URLParser.py", line 234, in parse [edit]
    trans.request()._serverSideContextPath = self._contexts[contextName]
KeyError: 'default'


MiscInfo
filename None  
os.getcwd() C:\Data\Users\Nolan\development\itworks  
sys.path ['', 'c:\\data\\users\\nolan\\development\\itworks\\Webware', 'C:\\Data\\Users\\Nolan\\development\\itworks', 'c:\\data\\users\\nolan\\development\\itworks\\Webware', 'c:\\data\\users\\nolan\\development\\itworks\\Lib', 'c:\\data\\users\\nolan\\development\\itworks\\Components', 'C:\\WINDOWS\\system32\\python24.zip', 'C:\\Data\\Users\\Nolan\\development\\itworks', 'c:\\program files\\python24\\DLLs', 'c:\\program files\\python24\\lib', 'c:\\program files\\python24\\lib\\plat-win', 'c:\\program f...  
time Sat Feb 04 02:31:49 2006  


Transaction
attr value
application <WebKit.Application.Application instance at 0x009ED990>
request <WebKit.HTTPRequest.HTTPRequest instance at 0x011B01E8>
response <WebKit.HTTPResponse.HTTPResponse instance at 0x011B02D8>
session None
servlet None


HTTPRequest
attr value
args
uri '/itworks/Login'
servletPath '/itworks'
serverSidePath "(exception during method call: AttributeError: HTTPRequest instance has no attribute '_serverSidePath')"
pathInfo None
pathTranslated 'C:\\Program Files\\vtigerCRM4_2\\apache\\htdocs\\vtigerCRM\\Login'
queryString ''
method 'GET'
sessionId None
parents []
fields
cookies
PHPSESSID a874b383a2a6fdb5b3839bb49288b6cf  
environ
COMSPEC C:\WINDOWS\system32\cmd.exe  
DOCUMENT_ROOT C:/Program Files/vtigerCRM4_2/apache/htdocs/vtigerCRM  
GATEWAY_INTERFACE CGI/1.1  
HTTP_ACCEPT text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5  
HTTP_ACCEPT_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7  
HTTP_ACCEPT_ENCODING gzip,deflate  
HTTP_ACCEPT_LANGUAGE en-us,en;q=0.5  
HTTP_CONNECTION keep-alive  
HTTP_COOKIE PHPSESSID=a874b383a2a6fdb5b3839bb49288b6cf  
HTTP_HOST localhost  
HTTP_KEEP_ALIVE 300  
HTTP_USER_AGENT Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1  
PATH C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;c:\bin;c:\usr\local\wbin;C:\Program Files\Common Files\GTK\2.0\bin  
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH  
PATH_INFO /Login  
PATH_TRANSLATED C:\Program Files\vtigerCRM4_2\apache\htdocs\vtigerCRM\Login  
QUERY_STRING  
REMOTE_ADDR 127.0.0.1  
REMOTE_PORT 1665  
REQUEST_METHOD GET  
REQUEST_URI /itworks/Login  
SCRIPT_FILENAME C:/Program Files/vtigerCRM4_2/apache/htdocs/vtigerCRM/itworks  
SCRIPT_NAME /itworks  
SERVER_ADDR 127.0.0.1  
SERVER_ADMIN nolan@peaceworks.ca  
SERVER_NAME localhost  
SERVER_PORT 80  
SERVER_PROTOCOL HTTP/1.1  
SERVER_SIGNATURE <address>Apache/2.0.52 (Win32) mod_webkit2/0.5 Server at localhost Port 80</address>  
SERVER_SOFTWARE Apache/2.0.52 (Win32) mod_webkit2/0.5  
SystemRoot C:\WINDOWS  
WINDIR C:\WINDOWS  


HTTPResponse
attr value
args
endTime 1139038309.539
committed 0
headers
content-type text/html  
cookies


Environment
ALLUSERSPROFILE C:\Documents and Settings\All Users  
APPDATA C:\Documents and Settings\nolan.PEACEWORKS\Application Data  
APPDIR c:\data\users\nolan\development\itworks  
COMMONPROGRAMFILES C:\Program Files\Common Files  
COMPUTERNAME ARGO  
COMSPEC C:\WINDOWS\system32\cmd.exe  
DB MySQL  
DBUSER root  
FP_NO_HOST_CHECK NO  
HOMEDIR C:\Program Files\mbone  
HOMEDRIVE C:  
HOMEPATH \Documents and Settings\nolan.PEACEWORKS  
HOMESHARE \\forklift\nolan  
INCLUDE C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\include\  
LANG en_CA  
LIB C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Lib\  
LOGONSERVER \\FORKLIFT  
MIDDLEMODEL ITTracker  
MK_STORE_INIT ''  
NUMBER_OF_PROCESSORS 1  
OS Windows_NT  
PATH C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;c:\bin;c:\usr\local\wbin;C:\Program Files\Common Files\GTK\2.0\bin;;c:\program files\python24;C:\Program Files\mbone;;C:\Program Files\OpenVPN\bin;c:\bin;c:\usr\local\wbin;c:\program files\python24  
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH  
PROCESSOR_ARCHITECTURE x86  
PROCESSOR_IDENTIFIER x86 Family 6 Model 9 Stepping 5, GenuineIntel  
PROCESSOR_LEVEL 6  
PROCESSOR_REVISION 0905  
PROGRAMFILES C:\Program Files  
PROMPT $P$G  
PYTHONPATH c:\data\users\nolan\development\itworks\Webware;c:\data\users\nolan\development\itworks\Lib;c:\data\users\nolan\development\itworks\Components  
SESSIONNAME Console  
STATIC_URL /ittracker  
SYSTEMDRIVE C:  
SYSTEMROOT C:\WINDOWS  
TEMP C:\DOCUME~1\NOLAN~1.PEA\LOCALS~1\Temp  
TMP C:\DOCUME~1\NOLAN~1.PEA\LOCALS~1\Temp  
UNIXUSER jdhildeb  
USERDOMAIN PEACEWORKS  
USERNAME nolan  
USERPROFILE C:\Documents and Settings\nolan.PEACEWORKS  
VS71COMNTOOLS C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\  
WEBWAREDIR c:\data\users\nolan\development\itworks\Webware  
WINDIR C:\WINDOWS  


Ids
name value
getpid 1804


Fancy Traceback
KeyError: 'default'URLParser:  234
URLParser:   66
Application:  492
Application:  445

A problem occurred while running a Python script. Here is the sequence of function calls leading up to the error, with the most recent (innermost) call first.

c:\data\users\nolan\development\itworks\Webware\WebKit\URLParser in parse(self=<WebKit.URLParser.ContextParser instance>, trans=<Transaction application=<WebKit.Application.App...B02D8> session=None servlet=None errorOccurred=1> (complete), requestPath='/Login')
  232                         contextName = self._defaultContext
  233                         rest = requestPath
  234                 trans.request()._serverSideContextPath = self._contexts[contextName]
       trans = <Transaction application=<WebKit.Application.App...B02D8> session=None servlet=None errorOccurred=1> (complete), self._contexts = {'Admin': r'c:\data\users\nolan\development\itworks\Webware\WebKit/Admin', 'DAVKitExamples': r'c:\data\users\nolan\development\itworks\Webware\DAVKit\Examples', 'Examples': r'c:\data\users\nolan\development\itworks\Webware\WebKit/Examples', 'FunFormKitExamples': r'c:\data\users\nolan\development\itworks\Webware\FunFormKit\Examples', 'MKBrowser': r'c:\data\users\nolan\development\itworks\Webware\MiddleKit\WebBrowser', 'PSPExamples': r'c:\data\users\nolan\development\itworks\Webware\PSP\Examples', 'Testing': r'c:\data\users\nolan\development\itworks\Webware\WebKit/Testing'} (complete), contextName = 'default'
  235                 trans.request()._contextName = contextName
  236                 fpp = FileParser(self._contexts[contextName])

c:\data\users\nolan\development\itworks\Webware\WebKit\URLParser in findServletForTransaction(self=<WebKit.URLParser.ContextParser instance>, trans=<Transaction application=<WebKit.Application.App...B02D8> session=None servlet=None errorOccurred=1> (complete))
   64                 top-level entry point, below it `parse` is used.
   65                 """
   66                 return self.parse(trans, trans.request().urlPath())
       trans = <Transaction application=<WebKit.Application.App...B02D8> session=None servlet=None errorOccurred=1> (complete)
   67 
   68 class ContextParser(URLParser):

c:\data\users\nolan\development\itworks\Webware\WebKit\Application in runTransaction(self=<WebKit.Application.Application instance>, trans=<Transaction application=<WebKit.Application.App...B02D8> session=None servlet=None errorOccurred=1> (complete))
  490                         trans.response().displayError(err)
  491                 except EndResponse:
  492                         pass
  493                 if servlet:
  494                         # Return the servlet to its pool

c:\data\users\nolan\development\itworks\Webware\WebKit\Application in dispatchRawRequest(self=<WebKit.Application.Application instance>, requestDict={'environ': {'COMSPEC': r'C:\WINDOWS\system32\cmd.exe', 'DOCUMENT_ROOT': 'C:/Program Files/vtigerCRM4_2/apache/htdocs/vtigerCRM', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'PHPSESSID=a874b383a2a6fdb5b3839bb49288b6cf', 'HTTP_HOST': 'localhost', ...}, 'format': 'CGI', 'input': <socket._fileobject object>, 'requestID': 1, 'time': 1139038305} (complete), strmOut=<WebKit.ThreadedAppServer.TASASStreamOut instance>)
  443                                 pdb.post_mortem(sys.exc_info()[2])
  444 
  445                         self.handleExceptionInTransaction(sys.exc_info(), trans)
       global sys = <module 'sys' (built-in)>, global sys.exc_info = <built-in function exc_info>, trans = <Transaction application=<WebKit.Application.App...B02D8> session=None servlet=None errorOccurred=1> (complete)
  446                         trans.response().deliver()
  447                         

KeyError: 'default'
      __doc__ = 'Mapping key not found.'
      __getitem__ = <bound method KeyError.__getitem__ of <exceptions.KeyError instance>>
      __init__ = <bound method KeyError.__init__ of <exceptions.KeyError instance>>
      __module__ = 'exceptions'
      __str__ = <bound method KeyError.__str__ of <exceptions.KeyError instance>>
      args = ('default',) --------------080905040704050004040308--