I am trying to understand what exactly is going on when Zope returns an Error -5 page. Normally, this only happens on the left hand navigational menu but today it happened while I was expanding an xml document/tree object from the Examples package for the XML Document product. I've tried searching Google, the Zope site and the mailing list but to no avail. Could someone please explain what's going on here? Is it me? Is it Zope? How exactly do I prevent these errors from happening? Thanks, Error Type: zlib.error Error Value: Error -5 while decompressing data: [] Traceback (innermost last): File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/zope.old/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/zope.old/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: tree) File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: tree) File /usr/local/zope.old/lib/python/OFS/DTMLDocument.py, line 177, in __call__ (Object: tree) File /usr/local/zope.old/lib/python/DocumentTemplate/DT_String.py, line 528, in __call__ (Object: tree) File /usr/local/zope.old/lib/python/TreeDisplay/TreeTag.py, line 154, in render (Object: test[0]) File /usr/local/zope.old/lib/python/TreeDisplay/TreeTag.py, line 229, in tpRender (Object: Manageable) File /usr/local/zope.old/lib/python/TreeDisplay/TreeTag.py, line 637, in decode_seq zlib.error: (see above)
Aaron Straup Cope wrote:
I am trying to understand what exactly is going on when Zope returns an Error -5 page.
Normally, this only happens on the left hand navigational menu but today it happened while I was expanding an xml document/tree object from the Examples package for the XML Document product.
I've tried searching Google, the Zope site and the mailing list but to no avail. Could someone please explain what's going on here? Is it me? Is it Zope? How exactly do I prevent these errors from happening?
Here's my guess: you have a complex XML document. As you explore the document, Zope is setting a cookie that reflects the list of branches you have opened. After opening a large number of branches, you reach the limit on the size of a cookie (somewhere in the range of 1024 or 4096 bytes), making it so that the compressed data stored in the cookie gets truncated. zlib then emits this cryptic error message. Shane
Thanks,
Error Type: zlib.error Error Value: Error -5 while decompressing data: []
Traceback (innermost last): File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/zope.old/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/zope.old/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: tree) File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: tree) File /usr/local/zope.old/lib/python/OFS/DTMLDocument.py, line 177, in __call__ (Object: tree) File /usr/local/zope.old/lib/python/DocumentTemplate/DT_String.py, line 528, in __call__ (Object: tree) File /usr/local/zope.old/lib/python/TreeDisplay/TreeTag.py, line 154, in render (Object: test[0]) File /usr/local/zope.old/lib/python/TreeDisplay/TreeTag.py, line 229, in tpRender (Object: Manageable) File /usr/local/zope.old/lib/python/TreeDisplay/TreeTag.py, line 637, in decode_seq zlib.error: (see above)
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Oh yeah, cookies. Okay. Is there a workaround/Product that solves this problem? If it's just a cookie thing, I don't know what it would be but I figure it doesn't hurt to ask. On Thu, 9 Nov 2000, Shane Hathaway wrote:
Aaron Straup Cope wrote:
I am trying to understand what exactly is going on when Zope returns an Error -5 page.
Normally, this only happens on the left hand navigational menu but today it happened while I was expanding an xml document/tree object from the Examples package for the XML Document product.
I've tried searching Google, the Zope site and the mailing list but to no avail. Could someone please explain what's going on here? Is it me? Is it Zope? How exactly do I prevent these errors from happening?
Here's my guess: you have a complex XML document. As you explore the document, Zope is setting a cookie that reflects the list of branches you have opened. After opening a large number of branches, you reach the limit on the size of a cookie (somewhere in the range of 1024 or 4096 bytes), making it so that the compressed data stored in the cookie gets truncated. zlib then emits this cryptic error message.
Shane
Thanks,
Error Type: zlib.error Error Value: Error -5 while decompressing data: []
Traceback (innermost last): File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/zope.old/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/zope.old/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: tree) File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: tree) File /usr/local/zope.old/lib/python/OFS/DTMLDocument.py, line 177, in __call__ (Object: tree) File /usr/local/zope.old/lib/python/DocumentTemplate/DT_String.py, line 528, in __call__ (Object: tree) File /usr/local/zope.old/lib/python/TreeDisplay/TreeTag.py, line 154, in render (Object: test[0]) File /usr/local/zope.old/lib/python/TreeDisplay/TreeTag.py, line 229, in tpRender (Object: Manageable) File /usr/local/zope.old/lib/python/TreeDisplay/TreeTag.py, line 637, in decode_seq zlib.error: (see above)
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Shane Hathaway wrote:
Here's my guess: you have a complex XML document. As you explore the document, Zope is setting a cookie that reflects the list of branches you have opened. After opening a large number of branches, you reach the limit on the size of a cookie (somewhere in the range of 1024 or 4096 bytes), making it so that the compressed data stored in the cookie gets truncated. zlib then emits this cryptic error message.
Is this <dtml-tree> being bad again? If so, how the session information proposal/project getting along? Oh yeah, while I'm here, how's the HiperDOM project getting on? That stuff would be reeeeaally useful for a project here... cheers, Chris
Chris Withers wrote:
Shane Hathaway wrote:
Here's my guess: you have a complex XML document. As you explore the document, Zope is setting a cookie that reflects the list of branches you have opened. After opening a large number of branches, you reach the limit on the size of a cookie (somewhere in the range of 1024 or 4096 bytes), making it so that the compressed data stored in the cookie gets truncated. zlib then emits this cryptic error message.
Is this <dtml-tree> being bad again?
Assuming my diagnosis is correct, it's more of a browser thing.
If so, how the session information proposal/project getting along?
Oh yeah, while I'm here, how's the HiperDOM project getting on? That stuff would be reeeeaally useful for a project here...
The answer to these questions and more can be found at dev.zope.org. The fishbowl keeps better track of projects than any human. Shane
Shane Hathaway wrote:
The answer to these questions and more can be found at dev.zope.org. The fishbowl keeps better track of projects than any human.
The tempation to say "and the fishbowl confuses more humans than any project can keep track of" was to great ;-) It's not actually true, I guess, except for me. I went and had a look at the HiperDOM project and couldn't make heads or tails of what the status was. That put me off even looking for session tracking... wuss? me? probably... ;-) Chris
The answer to these questions and more can be found at dev.zope.org. The fishbowl keeps better track of projects than any human.
The tempation to say "and the fishbowl confuses more humans than any project can keep track of" was to great ;-)
It's not actually true, I guess, except for me. I went and had a look at the HiperDOM project and couldn't make heads or tails of what the status was. That put me off even looking for session tracking...
Note that the Fishbowl is still somewhat immature - the specific problem of finding out the status of things is something I'm working on (albeit slowly, unfortunately). Very Soon Now there will be some built-in support to help this. In the meantime, project leaders will need to go the extra mile to try to make it clear to readers where things stand. There is, after all, a "CurrentStatus" page dedicated to this. If the CurrentStatus is empty or clearly out of date, readers of the project should prod the project leader about that (their contact email should be in the project). Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com
On Fri, Nov 10, 2000 at 10:28:44AM +0000, Chris Withers wrote:
Oh yeah, while I'm here, how's the HiperDOM project getting on? That stuff would be reeeeaally useful for a project here...
HiperDom is usable right now; we've been quite quiet because we're working on documentation and unit testing (and to have unit testing, we had to have ZUnit). The low version number is because we're not very sure about the syntax and we wanted feedback on it from the community. However, that just isn't happening, and we're tempted to call the results of documentation and testing 1.0, then after feedback and possible syntax modifications work on a 2.0. Right now, we would "reeeeaally" encourage you to use HiperDom in your project, specially if the deployment schedule >= 2 months, and then pleeeeease send us that feedback :-) []s, |alo +---- -- Hack and Roll ( http://www.hackandroll.org ) News for, uh, whatever it is that we are. http://zope.gf.com.br/lalo mailto:lalo@hackandroll.org pgp key: http://zope.gf.com.br/lalo/pessoal/pgp Brazil of Darkness (RPG) --- http://zope.gf.com.br/BroDar
Lalo Martins wrote:
On Fri, Nov 10, 2000 at 10:28:44AM +0000, Chris Withers wrote:
Oh yeah, while I'm here, how's the HiperDOM project getting on? That stuff would be reeeeaally useful for a project here...
HiperDom is usable right now; we've been quite quiet because we're working on documentation and unit testing (and to have unit testing, we had to have ZUnit).
Right now, we would "reeeeaally" encourage you to use HiperDom in your project, specially if the deployment schedule >= 2 months, and then pleeeeease send us that feedback :-)
I'd love to, but it'd be 'reeeeaally' helpful to have some documentation and a download with some explanation/help for someone as brain dead as me on a Monday morning ;-) Is that available yet? cheers, Chris
Chris Withers wrote:
Lalo Martins wrote:
On Fri, Nov 10, 2000 at 10:28:44AM +0000, Chris Withers wrote:
Oh yeah, while I'm here, how's the HiperDOM project getting on? That stuff would be reeeeaally useful for a project here...
HiperDom is usable right now; we've been quite quiet because we're working on documentation and unit testing (and to have unit testing, we had to have ZUnit).
Right now, we would "reeeeaally" encourage you to use HiperDom in your project, specially if the deployment schedule >= 2 months, and then pleeeeease send us that feedback :-)
I'd love to, but it'd be 'reeeeaally' helpful to have some documentation and a download with some explanation/help for someone as brain dead as me on a Monday morning ;-)
Is that available yet?
I believe you should be able to import it and use the example document in the distribution (after you applied the patch also in the distribution and imported it into Zope). On the other hand: I did that, and Hiperdom would neither expand nor display, in both giving some xml Node exception. So in fact I thought it was still under construction. The 'patching' was on win32 and manual, so I probably did something wrong ;-(. However, in a python test setup the module did work (?) Rik
Rik Hoekstra wrote:
I believe you should be able to import it and use the example document in the distribution (after you applied the patch also in the distribution and imported it into Zope).
Hurgh? Where di you find all this out? Hwo do you use it when it is installed?
On the other hand: I did that, and Hiperdom would neither expand nor display, in both giving some xml Node exception. So in fact I thought it was still under construction. The 'patching' was on win32 and manual, so I probably did something wrong ;-(. However, in a python test setup the module did work (?)
Hmmm.... Chris
I believe you should be able to import it and use the example document in the distribution (after you applied the patch also in the distribution and imported it into Zope).
Hurgh? Where di you find all this out? Hwo do you use it when it is installed?
The patching is from the readme in the distribution. The download is/was(?) on http://www.zope.org/Members/lalo/Hiperdom The use of the thing is not quite clear, but there is a help included with it, including syntax help. i think I figured out the example template by myself, but I wouldn't describe that as hard ;-)
On the other hand: I did that, and Hiperdom would neither expand nor display, in both giving some xml Node exception. So in fact I thought it was still under construction. The 'patching' was on win32 and manual, so I probably did something wrong ;-(. However, in a python test setup the module did work (?)
Hmmm....
_I f_ you get it to dance for you, please mail me how you did it. I'd like to get this working as well Rik
On Mon, Nov 13, 2000 at 01:14:51PM +0100, Rik Hoekstra wrote:
On the other hand: I did that, and Hiperdom would neither expand nor display, in both giving some xml Node exception. So in fact I thought it was still under construction. The 'patching' was on win32 and manual, so I probably did something wrong ;-(. However, in a python test setup the module did work (?)
Which version of the XML-utils are you using? Please send me the traceback (privately), I'd like to see that. []s, |alo +---- -- Hack and Roll ( http://www.hackandroll.org ) News for, uh, whatever it is that we are. http://zope.gf.com.br/lalo mailto:lalo@hackandroll.org pgp key: http://zope.gf.com.br/lalo/pessoal/pgp Brazil of Darkness (RPG) --- http://zope.gf.com.br/BroDar
On Mon, Nov 13, 2000 at 10:03:06AM +0000, Chris Withers wrote:
Lalo Martins wrote:
HiperDom is usable right now; we've been quite quiet because we're working on documentation and unit testing (and to have unit testing, we had to have ZUnit).
Right now, we would "reeeeaally" encourage you to use HiperDom in your project, specially if the deployment schedule >= 2 months, and then pleeeeease send us that feedback :-)
I'd love to, but it'd be 'reeeeaally' helpful to have some documentation and a download with some explanation/help for someone as brain dead as me on a Monday morning ;-)
Is that available yet?
As I said, we're currently focusing on documentation and unit testing; there is some quite basic documentation in the HelpSys which explains the syntax, and there is an example in the webpage at zope.org, plus one more (more or less the same example, but with the text in Portuguese) in exemplo_pt.html in the distribution. Better documentation is in the works, you can check the "Projects" wiki on dev.zope.org. []s, |alo +---- -- Hack and Roll ( http://www.hackandroll.org ) News for, uh, whatever it is that we are. http://zope.gf.com.br/lalo mailto:lalo@hackandroll.org pgp key: http://zope.gf.com.br/lalo/pessoal/pgp Brazil of Darkness (RPG) --- http://zope.gf.com.br/BroDar
I made releases of both HiperDom and ZUnit yesterday. (Yes, yesterday, Tuesday. I just forgot to make the announcement. Duh.) The big news is that HiperDom is fully ZUnit-tested (which gives you an idea of its API if you check the source of HiperDomTests.py) and some buglets were fixed in the process; ZUnit benefited a lot from some practical use (writing the tests for HiperDom) and is now a lot more usable. You don't need ZUnit to run HiperDom, but if you want to run the tests, you do need the newest release of ZUnit (plus PyUnit on your Python path). Also: HiperDom represents the presentation layer. Python Methods are the ideal logic layer. So we figured we'd want an object for the data layer. Actually, the data layer usually resides on ZClasses or Python classes, but we wanted to have a "lightweight" data layer object, so we coded one up and included it (for now) in the HiperDom Product. Try it out. There's not a lot of documentation yet, but the addform tells you most of what you want to know. []s, |alo +---- -- Hack and Roll ( http://www.hackandroll.org ) News for, uh, whatever it is that we are. http://zope.gf.com.br/lalo mailto:lalo@hackandroll.org pgp key: http://zope.gf.com.br/lalo/pessoal/pgp Brazil of Darkness (RPG) --- http://zope.gf.com.br/BroDar
participants (6)
-
Aaron Straup Cope -
Brian Lloyd -
Chris Withers -
Lalo Martins -
Rik Hoekstra -
Shane Hathaway