> From: Dirk Reiss [mailto:[EMAIL PROTECTED]] > > hello, > > what we try to do is parsing several files hierarchically, which means that > we got one 'starting file' which contains a link that is processed wia > xsp-logicsheet. The link points to an cocoon: -ressource which shall be > included using <cinclude include... >. > > when we try to access and include the cocoon: -ressource we get the following > error: > > Cocoon 2 - Internal server error > > message Failed to execute pipeline. > > description org.apache.cocoon.ProcessingException: Failed to execute > pipeline.: org.apache.cocoon.ProcessingException: Could not get sitemap > source http://somePath/SOME_FILE.xsp: java.lang.NullPointerException
While processing cocoon: source, NullPointerException occurred. Can't say much without stacktrace of this NullPointerException. > this path is resolved correctly and should be matched by sitemap, but it > doesnt. The cocoon: URI you are trying to include, try accessing it first from the browser. Vadim > what does 'could not get sitemap source' mean? where could be the error? does > anybody has any solution for our problem? > > many thanks in advance > > dirk > > > > relevant parts of the affected files: > > ---- sitemap ------ > > <map:pipeline> > <map:match pattern="processed/**.xsp"> > <map:generate type="serverpages" src="somePath/{1}.xsp"/> > <map:transform type="cinclude"/> > <!-- <map:serialize type="xml"/> --> > <!-- doesn't work with or without serializer --> > </map:match> > > <map:match pattern="processed/**.xml"> > <map:generate type="serverpages" src="somePath/{1}.xml"/> > <map:transform type="cinclude"/> > <!-- <map:serialize type="xml"/> --> > </map:match> > > <map:match pattern="example.xsp"> > <map:generate type="serverpages" src="somePath/example.xsp"/> > <!-- <map:transform src="somePath/some_stylesheet.xsl"> > <map:parameter name="view-source" > value="somePath/example.xsp"/> > </map:transform> --> > <map:transform type="cinclude" /> > <map:transform src="somePath/some_stylesheet.xsl"/> > <map:serialize/> > </map:match> > </map:pipeline> > > > ----- example.xsp ---- > > <xsp:page > language="java" > xmlns:xsp="http://apache.org/xsp" > xmlns:ownnamespace="http://www.ownnamespace.org/xsl" > xmlns:util="http://www.apache.org/xsp/util/2.0" > xmlns:cinclude="http://apache.org/cocoon/include/1.0" > > > <ownnamespace:header/> > <page> > <ownnamespace:link identifier="SOME_IDENTIFIER"/> > </page> > </xsp:page> > > ------ example.xsl ----- which is the logicsheet ---- > > <xsl:stylesheet version="1.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:xsp="http://apache.org/xsp" > xmlns:ownnamespace="http://www.ownnamespace.org/xsl" > xmlns:cinclude="http://apache.org/cocoon/include/1.0" > > > > <xsl:template match="vormsexample:header"> > <xsp:structure> > <xsp:include>DBInterface</xsp:include> > </xsp:structure> > > <xsp:logic> > public synchronized String getURI(String identifier) > { > DBInterface dbinterface = new DBInterface(); > dbinterface.establishConnection("jdbc:mysql....","....","...."); > > String msg = "cocoon:processed/" + dbinterface.getURIForLM(identifier); > return msg; > } > </xsp:logic> > <xsl:apply-templates/> > </xsl:template> > > > <xsl:template match="ownnamespace:link"> > <cinclude:include> > <xsp:attribute name="src"> > <!-- this would be replaced by <xsp:expr> to get the > uri --> > <xsp:text>cocoon:processed/somePath/someFile.xsp</xsp:text> > </xsp:attribute> > </cinclude:include> > <xsl:apply-templates/> > </xsl:template> > > <xsl:template match="@*|node()" priority="-1"> > <xsl:copy> > <xsl:apply-templates select="@*|node()"/> > </xsl:copy> > </xsl:template> > > </xsl:stylesheet> > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>