[Zope-CMF] setstate error/ZEO?

alan runyan alan runyan" <runyaga@runyaga.com
Wed, 19 Jun 2002 21:50:08 -0500


Hi.

I just tried to create a Plone site and I got this error.  I had thought
previously this was caused by something I was doing when I was updating
portal_actions._actions.  But I'm almost positive what I'm doing now when
manipulating them is kosher.  But I just had a idea... is this caused by
ZEO?
I created 1 Plone site and then created another Plone site and got this
error.  (NOTE: after construction on rendering a page)  When I restart
the ZEO Client I can add Plone sites again. Just added 3 of them. nows its
working... could ZEO cause something like this?  do you think its likely?

--snip--
  File
/home/zope/Zope-2.5.1-src/lib/python/Products/PageTemplates/PageTemplate.py,
line 86, in pt_render
    (Object: finish_portal_construction)
    (Info: {'container': <CMFSite instance at 8e7db70>,
 'here': <CMFSite instance at 8e7db70>,
 'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter
instance at 0x86c8fc4>,
 'nothing': None,
 'options': {'args': ()},
 'request': <h3>form</h3><table></table><h3>cookies</h3><table><tr
valign="top" align="left"><th>__ac_name</th><td>'runyaga'</td></tr><tr
valign="top" align="left"><th>dtpref_rows</th><td>'21'</td></tr><tr
valign="top" align="left"><th>dtpref_cols</th><td>'50'</td></tr><tr
valign="top"
align="left"><th>__cp</th><td>'x%DA%D3%60b%60%60%C8%04b%86hF%20%A1%C1%02%24%
8AA%DCbV%20Q%92Z%5CR%5C%0CR%92%94T%CC%05R%99%97%92Z%11%9FQ%92%9B%03%00%C2C%0
A%1C'</td></tr><tr valign="top"
align="left"><th>tree-s</th><td>'eJyLjlZ3hANPW3UdhWiEiE96KJpIljtQTSwYAAC2NA9
v'</td></tr></table><h3>lazy items</h3><table><tr valign="top"
align="left"><th>SESSION</th><td>&lt;Python Method object at
0x89b8ed0&gt;</td></tr></table><h3>other</h3><table><tr valign="top"
align="left"><th>dtpref_rows</th><td>'21'</td></tr><tr valign="top"
align="left"><th>BASE4</th><td>'http://pynchon.runyaga.com:8080/tests/tttt/f
inish_portal_construction'</td></tr><tr valign="top"
align="left"><th>__ac_name</th><td>'runyaga'</td></tr><tr valign="top"
align="left"><th>dtpref_cols</th><td>'50'</td></tr><tr valign="top"
align="left"><th>BASE3</th><td>'http://pynchon.runyaga.com:8080/tests/tttt'<
/td></tr><tr valign="top"
align="left"><th>URL2</th><td>'http://pynchon.runyaga.com:8080/tests'</td></
tr><tr valign="top"
align="left"><th>BASE1</th><td>'http://pynchon.runyaga.com:8080'</td></tr><t
r valign="top"
align="left"><th>BASE0</th><td>'http://pynchon.runyaga.com:8080'</td></tr><t
r valign="top"
align="left"><th>SERVER_URL</th><td>'http://pynchon.runyaga.com:8080'</td></
tr><tr valign="top"
align="left"><th>AUTHENTICATED_USER</th><td>runyaga</td></tr><tr
valign="top"
align="left"><th>TraversalRequestNameStack</th><td>[]</td></tr><tr
valign="top"
align="left"><th>tree-s</th><td>'eJyLjlZ3hANPW3UdhWiEiE96KJpIljtQTSwYAAC2NA9
v'</td></tr><tr valign="top"
align="left"><th>AUTHENTICATION_PATH</th><td>''</td></tr><tr valign="top"
align="left"><th>__cp</th><td>'x%DA%D3%60b%60%60%C8%04b%86hF%20%A1%C1%02%24%
8AA%DCbV%20Q%92Z%5CR%5C%0CR%92%94T%CC%05R%99%97%92Z%11%9FQ%92%9B%03%00%C2C%0
A%1C'</td></tr><tr valign="top"
align="left"><th>traverse_subpath</th><td>[]</td></tr><tr valign="top"
align="left"><th>URL3</th><td>'http://pynchon.runyaga.com:8080'</td></tr><tr
valign="top"
align="left"><th>URL0</th><td>'http://pynchon.runyaga.com:8080/tests/tttt/fi
nish_portal_construction'</td></tr><tr valign="top"
align="left"><th>URL1</th><td>'http://pynchon.runyaga.com:8080/tests/tttt'</
td></tr><tr valign="top"
align="left"><th>PUBLISHED</th><td>&lt;FSPageTemplate instance at
8f255b0&gt;</td></tr><tr valign="top"
align="left"><th>URL</th><td>'http://pynchon.runyaga.com:8080/tests/tttt/fin
ish_portal_construction'</td></tr><tr valign="top"
align="left"><th>BASE2</th><td>'http://pynchon.runyaga.com:8080/tests'</td><
/tr><tr valign="top"
align="left"><th>URL0</th><td>http://pynchon.runyaga.com:8080/tests/tttt/fin
ish_portal_construction</td></tr><tr valign="top"
align="left"><th>URL1</th><td>http://pynchon.runyaga.com:8080/tests/tttt</td
></tr><tr valign="top"
align="left"><th>URL2</th><td>http://pynchon.runyaga.com:8080/tests</td></tr
><tr valign="top"
align="left"><th>URL3</th><td>http://pynchon.runyaga.com:8080</td></tr><tr
valign="top"
align="left"><th>BASE0</th><td>http://pynchon.runyaga.com:8080</td></tr><tr
valign="top" align="left"><th>BASE1</th><td>http://pynchon.runyaga.com:8080<
/td></tr><tr valign="top"
align="left"><th>BASE2</th><td>http://pynchon.runyaga.com:8080/tests</td></t
r><tr valign="top"
align="left"><th>BASE3</th><td>http://pynchon.runyaga.com:8080/tests/tttt</t
d></tr><tr valign="top"
align="left"><th>BASE4</th><td>http://pynchon.runyaga.com:8080/tests/tttt/fi
nish_portal_construction</td></tr></table><h3>environ</h3><table><tr
valign="top" align="left"><th>HTTP_ACCEPT_ENCODING</th><td>'gzip,
deflate'</td></tr><tr valign="top"
align="left"><th>SERVER_PORT</th><td>'8080'</td></tr><tr valign="top"
align="left"><th>PATH_TRANSLATED</th><td>'/tests/tttt/finish_portal_construc
tion'</td></tr><tr valign="top"
align="left"><th>REMOTE_ADDR</th><td>'192.168.1.4'</td></tr><tr valign="top"
align="left"><th>HTTP_COOKIE</th><td>'dtpref_rows="21"; dtpref_cols="50";
tree-s="eJyLjlZ3hANPW3UdhWiEiE96KJpIljtQTSwYAAC2NA9v";
__cp="x%DA%D3%60b%60%60%C8%04b%86hF%20%A1%C1%02%24%8AA%DCbV%20Q%92Z%5CR%5C%0
CR%92%94T%CC%05R%99%97%92Z%11%9FQ%92%9B%03%00%C2C%0A%1C";
__ac_name="runyaga"'</td></tr><tr valign="top"
align="left"><th>HTTP_ACCEPT_LANGUAGE</th><td>'en-us'</td></tr><tr
valign="top"
align="left"><th>GATEWAY_INTERFACE</th><td>'CGI/1.1'</td></tr><tr
valign="top"
align="left"><th>SERVER_NAME</th><td>'pynchon.runyaga.com'</td></tr><tr
valign="top" align="left"><th>HTTP_USER_AGENT</th><td>'Mozilla/4.0
(compatible; MSIE 6.0; Windows NT 5.1; Q312461)'</td></tr><tr valign="top"
align="left"><th>HTTP_ACCEPT</th><td>'image/gif, image/x-xbitmap,
image/jpeg, image/pjpeg, */*'</td></tr><tr valign="top"
align="left"><th>STUPID_LOG_FILE</th><td>'/home/zope/InstanceHome/var/debug.
log'</td></tr><tr valign="top"
align="left"><th>channel.creation_time</th><td>1024541067</td></tr><tr
valign="top"
align="left"><th>SERVER_PROTOCOL</th><td>'HTTP/1.1'</td></tr><tr
valign="top"
align="left"><th>STUPID_FILE_LOG</th><td>'var/debug.log'</td></tr><tr
valign="top"
align="left"><th>PATH_INFO</th><td>'/tests/tttt/finish_portal_construction'<
/td></tr><tr valign="top"
align="left"><th>HTTP_HOST</th><td>'pynchon.runyaga.com:8080'</td></tr><tr
valign="top" align="left"><th>REQUEST_METHOD</th><td>'GET'</td></tr><tr
valign="top" align="left"><th>SCRIPT_NAME</th><td>''</td></tr><tr
valign="top" align="left"><th>SERVER_SOFTWARE</th><td>'Zope/(Zope 2.5.1
(source release, python 2.1, linux2), python 2.1.3, linux2)
ZServer/1.1b1'</td></tr><tr valign="top"
align="left"><th>HTTP_CACHE_CONTROL</th><td>'no-cache'</td></tr><tr
valign="top"
align="left"><th>CONNECTION_TYPE</th><td>'Keep-Alive'</td></tr><tr
valign="top"
align="left"><th>HTTP_REFERER</th><td>'http://pynchon.runyaga.com:8080/tests
/manage_addProduct/CMFPlone/addSite'</td></tr></table>,
 'root': <Application instance at 8ea4190>,
 'template': <FSPageTemplate instance at 8f255b0>,
 'traverse_subpath': [],
 'user': runyaga})
  File /home/zope/Zope-2.5.1-src/lib/python/TAL/TALInterpreter.py, line 158,
in __call__
  File /home/zope/Zope-2.5.1-src/lib/python/TAL/TALInterpreter.py, line 191,
in interpret
  File /home/zope/Zope-2.5.1-src/lib/python/TAL/TALInterpreter.py, line 523,
in do_useMacro
  File /home/zope/Zope-2.5.1-src/lib/python/TAL/TALInterpreter.py, line 191,
in interpret
  File /home/zope/Zope-2.5.1-src/lib/python/TAL/TALInterpreter.py, line 491,
in do_condition
  File /home/zope/Zope-2.5.1-src/lib/python/TAL/TALInterpreter.py, line 191,
in interpret
  File /home/zope/Zope-2.5.1-src/lib/python/TAL/TALInterpreter.py, line 345,
in do_optTag_tal
  File /home/zope/Zope-2.5.1-src/lib/python/TAL/TALInterpreter.py, line 330,
in do_optTag
  File /home/zope/Zope-2.5.1-src/lib/python/TAL/TALInterpreter.py, line 325,
in no_tag
  File /home/zope/Zope-2.5.1-src/lib/python/TAL/TALInterpreter.py, line 191,
in interpret
  File /home/zope/Zope-2.5.1-src/lib/python/TAL/TALInterpreter.py, line 406,
in do_setGlobal_tal
  File /home/zope/Zope-2.5.1-src/lib/python/Products/PageTemplates/TALES.py,
line 247, in evaluate
  File
/home/zope/Zope-2.5.1-src/lib/python/Products/PageTemplates/ZRPythonExpr.py,
line 49, in __call__
    (Info: here.portal_actions.listFilteredActionsFor(here))
  File Python expression "here.portal_actions.listFilteredActionsFor(here)",
line 2, in f
  File /home/zope/ZopeProducts/CMFCore/ActionsTool.py, line 197, in
listFilteredActionsFor
    (Object: portal_actions)
  File /home/zope/ZopeProducts/CMFCore/ActionsTool.py, line 166, in
_listActions
    (Object: portal_actions)
  File /home/zope/Zope-2.5.1-src/lib/python/ZODB/Connection.py, line 447, in
setstate
TALESError: exceptions.AttributeError on 'None' object has no attribute
'load' in '<PythonExpr here.portal_actions.listFilteredActionsFor(here)>',
at line 11, column 5