Forum OpenACS Development: XoTcl Request Monitor

Collapse
Posted by Nima Mazloumi on
I've been using the new request monitor now for quite a while and it's really great.

Every once in a while I get this error message in the log though. Any idea?

11/Dec/2005:11:21:48
Error: No argument to switch -package_id No argument to switch -package_id
while executing
"get_community_id_not_cached__arg_parser"
(procedure "dotlrn_community::get_community_id_not_cached" line 1)
invoked from within
"dotlrn_community::get_community_id_not_cached -package_id "
("eval" body line 1)
invoked from within
"eval $script"
invoked from within
"ns_cache eval util_memoize $script {
list $current_time [eval $script]
}"
(procedure "util_memoize" line 20)
invoked from within
"util_memoize "dotlrn_community::get_community_id_not_cached -package_id $package_id""
(procedure "dotlrn_community::get_community_id" line 7)
invoked from within
"dotlrn_community::get_community_id -package_id [ad_conn package_id]"
(procedure "get_context" line 12)
::throttle->get_context
invoked from within
"my get_context"
(procedure "trace" line 7)
::throttle->trace
invoked from within
"throttle trace"
Notice: ns_pam:conv_response:Password:

11/Dec/2005:11:46:09
Error: No argument to switch -package_id No argument to switch -package_id
while executing
"get_community_id_not_cached__arg_parser"
(procedure "dotlrn_community::get_community_id_not_cached" line 1)
invoked from within
"dotlrn_community::get_community_id_not_cached -package_id "
("eval" body line 1)
invoked from within
"eval $script"
invoked from within
"ns_cache eval util_memoize $script {
list $current_time [eval $script]
}"
(procedure "util_memoize" line 20)
invoked from within
"util_memoize "dotlrn_community::get_community_id_not_cached -package_id $package_id""
(procedure "dotlrn_community::get_community_id" line 7)
invoked from within
"dotlrn_community::get_community_id -package_id [ad_conn package_id]"
(procedure "get_context" line 12)
::throttle->get_context
invoked from within
"my get_context"
(procedure "trace" line 7)
::throttle->trace
invoked from within
"throttle trace"

Collapse
2: Re: XoTcl Request Monitor (response to 1)
Posted by Gustaf Neumann on
I could reproduce the error in a connection with a redirect. Surprisingly, the error seems to make no harm. The problem seems to be that the request processor sets the package id after the redirect branch, therefore the package id cannot be obtained from ad_conn. The new version of the request monitor queries additionally whether ad_conn package_id returns a non-empty result before calling dotlrn_community::get_community_id.

http://media.wu-wien.ac.at/download/xowiki-doc/xotcl-apm.html