Tim Williams schrieb:
>
> On Thu, Feb 26, 2009 at 4:07 AM, EMMEL Thomas <thomas.em...@3ds.com>
> wrote:
> > David,
> >
> > finally I solved my problem with the location of the locationmap.
> > I had something like this in my locationmap.xml:
> >
> >     <match pattern="pdf.transform.*.*">
> >       <select>
> >       <location
> src="{properties:skins-dir}/myskin/xslt/fo/{1}-to-{2}.xsl"/>
> >       </select>
> >     </match>
> >
> > but had to remove the <select> to get it working since otherwise
> > I get a java exception in my locationmap.log which is not very helpful
> > to find the problem...
>
> I would think a 'select' is fine there, can you post the stack trace?
> Thanks,
> --tim
>
Here it is:
...
DEBUG   (2009-02-26) 12:51.51:484   [core.modules.mapper.lm.ctx]
(/howto/ac-like.fo):
Current Sitemap Parameters:
LEVEL 1
PARAM: 'hint' VALUE: 'plugin.xmap.output'

DEBUG   (2009-02-26) 12:51.51:497   [core.modules.mapper.lm]
(/howto/ac-like.fo): loading mounted location map at
cocoon://locationmap-project.xml
ERROR   (2009-02-26) 12:51.51:515   [core.modules.mapper.lm]
(/howto/ac-like.fo): Failure processing LocationMap.
java.lang.NullPointerException
        at
org.apache.avalon.framework.service.DefaultServiceSelector.select(DefaultServiceSelector.java:77)
        at
org.apache.forrest.locationmap.lm.SelectNode.build(SelectNode.java:78)
        at
org.apache.forrest.locationmap.lm.MatchNode.build(MatchNode.java:114)
        at
org.apache.forrest.locationmap.lm.LocatorNode.build(LocatorNode.java:98)
        at
org.apache.forrest.locationmap.lm.LocationMap.build(LocationMap.java:204)
        at
org.apache.forrest.locationmap.lm.MountNode.getLocationMap(MountNode.java:92)
        at
org.apache.forrest.locationmap.lm.MountNode.locate(MountNode.java:162)
        at
org.apache.forrest.locationmap.lm.SelectNode.locate(SelectNode.java:124)
        at
org.apache.forrest.locationmap.lm.LocatorNode.locate(LocatorNode.java:122)
        at
org.apache.forrest.locationmap.lm.LocationMap.locate(LocationMap.java:275)
        at
org.apache.forrest.locationmap.LocationMapModule.getFreshResult(LocationMapModule.java:254)
        at
org.apache.forrest.locationmap.LocationMapModule.getAttribute(LocationMapModule.java:217)
        at
org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolver.processModule(PreparedVariableResolver.java:258)
        at
org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolver.resolve(PreparedVariableResolver.java:209)
        at
org.apache.cocoon.components.treeprocessor.sitemap.SelectNode.invoke(SelectNode.java:94)
        at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
        at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
        at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
        at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
        at
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235)
        at
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177)
        at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254)
        at org.apache.cocoon.Cocoon.process(Cocoon.java:699)
        at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1154)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:354)
        at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
        at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1808)
        at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1758)
        at org.mortbay.http.HttpServer.service(HttpServer.java:879)
        at org.mortbay.http.HttpConnection.service(HttpConnection.java:790)
        at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:952)
        at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
        at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:197)
        at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
        at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:501)
DEBUG   (2009-02-26) 12:51.51:531   [core.modules.mapper.lm]
(/howto/ac-like.fo): Not selected: null
...