Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 73039 invoked by uid 500); 29 Jan 2002 18:03:17 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 73028 invoked from network); 29 Jan 2002 18:03:16 -0000 Date: Tue, 29 Jan 2002 19:03:10 +0100 From: Jozsa Kristof To: cocoon-users@xml.apache.org Subject: Using Selectors the correct way? Message-ID: <20020129180310.GA11173@kami.vein.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.25i X-Operating-System: kami Linux 2.4.17 i686 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, I've wrote a very simple Selector class (a class similar to SessionAttributeSelector), which checks whether the user has an authenticated session or an anonymous one. It returns a true or a false value based on this. Now when I'm trying to call it from the sitemap, I get a 'Stylesheet directed terminator' fatal error, with this trace in the logs: java.lang.RuntimeException: Stylesheet directed termination at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1111) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.generateCode(LogicsheetCodeGenerator.java:130) at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generateCode(AbstractMarkupLanguage.java:275) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:309) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:271) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:188) at org.apache.cocoon.sitemap.Handler.run(Handler.java:208) at java.lang.Thread.run(Thread.java:498) -- ..which does not help much. The offending sitemap part is the following: -- -- If I comment this block out, the thing works, so something inside causes the error. The session-check selector is defined in the top of the sitemap of course: and it's placed inside a jar, between two, already working Action classes of mine. Anyone can enlighten me about what causes the error, or how should I correctly use my Selector class? tia, Christopher -- .Digital.Yearning.for.Networked.Assassination.and.Xenocide --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: