Re: Problem viewing /WK/admin

Jesse Lawrence <lawrence_jesse-FFYn/[email protected]> Thu, 27 May 2004 19:59:05 -0300
Newsgroups gmane.comp.web.syncato.general
Message-ID <[email protected]>
darryl wrote:

>
>>
>> Still looking for clues.  Anyone?
>>
>> Thanks,
>>
>> Jesse Lawrence
>>
>>
> I dont' know crap about mac osx but when you run the appserver (webware)
> do you get output to the terminal?
>
> I've found watching what's going on there usually gives better 
> feedback then any tracebacks in the browser.
>
> If you are running from an interactive terminal see if you get more 
> informative error messages there, perhaps trouble parsing stylesheets 
> or something.
> -Darryl
>
Ok, I know this will be long, but here's what the terminal is showing.  
Startup looks good, then you can see that I called localhost/WK/blog, 
then localhost/WK/admin:

Jesse-Lawrences-Computer:~/software/syncato/webware jesselawrence$ 
./AppServer --webware-path=/Users/jesselawrence/downloads/Webware-0.8.1/ 
--working-path=/Users/jesselawrence/software/syncato/webwareWebKit 
AppServer 0.8.1
part of Webware for Python
Copyright 1999-2001 by Chuck Esterbrook. All Rights Reserved.
WebKit and Webware are open source.
Please visit:  http://webware.sourceforge.net

Process id is 501
Date/time is Thu May 27 19:51:07 2004

AutoReload             = 0
AutoReloadPollInterval = 1
CheckInterval          = 100
Host                   = 127.0.0.1
MaxServerThreads       = 20
MinServerThreads       = 5
PlugInDirs             = ['/Users/jesselawrence/downloads/Webware-0.8.1']
PlugIns                = []
Port                   = 8086
PrintConfigAtStartUp   = 1
StartServerThreads     = 10
Verbose                = 1

ActivityLogColumns              = ['request.remoteAddress', 
'request.method', 'request.uri', 'response.size', 'servlet.name', 
'request.timeStamp', 'transaction.duration', 'transaction.errorOccurred']
ActivityLogFilename             = 
/Users/jesselawrence/software/syncato/webware/Logs/Activity.csv
AdminPassword                   = ber$$bad
CacheServletClasses             = 1
CacheServletInstances           = 1
ClearPSPCacheOnStart            = 1
Contexts                        = {'blog': 
'../dist/servlets/restricted', 'default': '../dist/servlets/open', 
'admin': '../dist/servlets/closed'}
Debug                           = {'Sessions': 0}
DirectoryFile                   = ['index', 'Index', 'main', 'Main']
DynamicSessionTimeout           = 15
EmailErrorReportAsAttachment    = 0
EmailErrors                     = 0
ErrorEmailHeaders               = {'To': ['[email protected]'], 'Reply-to': 
'[email protected]', 'From': '[email protected]', 'Content-type': 'text/html', 'Subject': 
'[WebKit Error]'}
ErrorEmailServer                = mail.-.com
ErrorLogFilename                = 
/Users/jesselawrence/software/syncato/webware/Logs/Errors.csv
ErrorMessagesDir                = 
/Users/jesselawrence/software/syncato/webware/ErrorMsgs
ExtensionCascadeOrder           = ['.py', '.psp', '.html']
ExtensionsToIgnore              = ['.pyc', '.pyo', '.py~', '.psp~', 
'.html~', '.bak', '.tmpl']
ExtensionsToServe               = []
ExtraPathInfo                   = 1
FancyTracebackContext           = 5
FilesToHide                     = ['.*', '*~', '*.bak', '*.tmpl', 
'*.config', '__init__.*', '*.pyc', '*.pyo']
FilesToServe                    = []
IgnoreInvalidSession            = 1
IncludeFancyTraceback           = 0
LogActivity                     = 0
MaxDynamicMemorySessions        = 10000
MaxValueLengthInExceptionReport = 500
OldStyleActions                 = 0
PrintConfigAtStartUp            = 1
RPCExceptionReturn              = exception
ReportRPCExceptionsInWebKit     = 1
SaveErrorMessages               = 1
SessionPrefix                   = None
SessionStore                    = Dynamic
SessionTimeout                  = 60
ShowDebugInfoOnErrors           = 1
UnknownFileTypes                = {'CheckDate': 1, 'Technique': 
'serveContent', 'CacheContent': 0, 'ReuseServlets': 1}
UseAutomaticPathSessions        = 0
UseCascadingExtensions          = 1
UserErrorMessage                = 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!

Loading context: blog at 
/Users/jesselawrence/software/syncato/dist/servlets/restricted
Loading context: admin at 
/Users/jesselawrence/software/syncato/dist/servlets/closed
Loading context: default at 
/Users/jesselawrence/software/syncato/dist/servlets/open

Current directory: /Users/jesselawrence/software/syncato/webware
Session Sweeper started

Plug-ins list: /Users/jesselawrence/downloads/Webware-0.8.1/COMKit, 
/Users/jesselawrence/downloads/Webware-0.8.1/MiddleKit, 
/Users/jesselawrence/downloads/Webware-0.8.1/MiscUtils, 
/Users/jesselawrence/downloads/Webware-0.8.1/PSP, 
/Users/jesselawrence/downloads/Webware-0.8.1/TaskKit, 
/Users/jesselawrence/downloads/Webware-0.8.1/UserKit, 
/Users/jesselawrence/downloads/Webware-0.8.1/WebUtils
Loading plug-in: COMKit at 
/Users/jesselawrence/downloads/Webware-0.8.1/COMKit
    Plug-in /Users/jesselawrence/downloads/Webware-0.8.1/COMKit cannot 
be loaded because:
    Required op sys is ['nt'], but actual op sys is posix.
Loading plug-in: MiddleKit at 
/Users/jesselawrence/downloads/Webware-0.8.1/MiddleKit
Loading context: MKBrowser at 
/Users/jesselawrence/downloads/Webware-0.8.1/MiddleKit/WebBrowser
Loading plug-in: MiscUtils at 
/Users/jesselawrence/downloads/Webware-0.8.1/MiscUtils
Loading plug-in: PSP at /Users/jesselawrence/downloads/Webware-0.8.1/PSP
Loading plug-in: TaskKit at 
/Users/jesselawrence/downloads/Webware-0.8.1/TaskKit
Loading plug-in: UserKit at 
/Users/jesselawrence/downloads/Webware-0.8.1/UserKit
Loading plug-in: WebUtils at 
/Users/jesselawrence/downloads/Webware-0.8.1/WebUtils

Listening on ('127.0.0.1', 8086)
Creating 10 threads..........
Ready  (4.35 seconds after launch)

    1  2004-05-27 19:52:57  /WK/blog
    1  1.76 secs            /WK/blog

    2  2004-05-27 19:53:24  /WK/admin
DB Style Init called http://www.xmldatabases.org/dbxsl
DB Style Init called http://www.xmldatabases.org/weblog
Init 
called/Users/jesselawrence/software/syncato/dist/stylesheets/layout.xsl:1: 
error: Memory allocation failed
<xsl:stylesheet
             ^
/Users/jesselawrence/software/syncato/dist/stylesheets/layout.xsl:2: 
error: Extra content at the end of the document
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        ^
compilation error: file 
/Users/jesselawrence/software/syncato/dist/stylesheets/admin/edit.xsl 
element import
xsl:import : unable to load 
/Users/jesselawrence/software/syncato/dist/stylesheets/layout.xsl
style shutdown called[Thu May 27 19:53:24 2004] [error] WebKit: Error 
while executing script 
/Users/jesselawrence/software/syncato/dist/servlets/closed/Main.py
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 
"/Users/jesselawrence/software/syncato/dist/servlets/closed/Main.py", 
line 29, in respondToGet
    content = self.weblog.db.runTransform("<dummy/>", "admin/edit", "")
  File "../dist/scripts/lib/BaseDatabase.py", line 97, in runTransform
    style.freeStylesheet()
AttributeError: 'NoneType' object has no attribute 'freeStylesheet'
    2  0.96 secs            /WK/admin


It doesn't show any errors for /WK/blog.  I'm just not certain what's 
happening here.

Thanks,

Jesse Lawrence




-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click