forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vincent Hardy <vincent.ha...@sun.com>
Subject Re: (NullPointerException) Re: Linking to javadoc output from a Forrest site
Date Tue, 08 Apr 2003 19:03:32 GMT
Hello,

I tried to look at the Cocoon source to see where the exception is 
happening, but I am probably looking in the wrong place. Still: the 
forrest trace says:

------------------------------------------------------------------------
cocoon 2.1-dev
Copyright (c) 1999-2003 Apache Software Foundation. All rights reserved.
------------------------------------------------------------------------

but I do not see an HTMLGenerator.java at:

http://cvs.apache.org/viewcvs.cgi/cocoon-2.1/src/java/org/apache/cocoon/generation/

what am I missing?
Vincent.

Vincent Hardy wrote:
> Hello Jeff, Bojan,
> 
> Thanks for your responses. However, I consistently get a 
> NullPointerException. To make sure this is not due to my particular 
> configuration and to describe something reproducable, I have tested with 
> a 'forrest seed' and then edited site.xml to add:
> 
>     <test label="Test 1" href="test1.html" />
> 
> in the <about> menu.
> 
> I added the stack trace at the end. Note that before the exception, the 
> content is indeed copied as Jeff described to the build/site directory.
> 
> This is happening with the CVS version (I just did a CVS update and 
> tested again with the same result).
> 
> Thanks in advance for any help/suggestion,
> Vincent.
> 
> java.lang.NullPointerException
>         at 
> org.apache.cocoon.generation.HTMLGenerator.setup(HTMLGenerator.java:225)
>         at 
> org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeline(AbstractProcessingPipeline.jav

> 
> a:378)
>         at 
> org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setupPipeline(AbstractCachingPro

> 
> cessingPipeline.java:596)
>         at 
> org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.preparePipeline(AbstractProcessingPipeline.j

> 
> ava:505)
>         at 
> org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:467)

> 
> 
>         at 
> org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:145)

> 
>         at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingN

> 
> ode.java:84)
>         at 
> org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)

> 
>         at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingN

> 
> ode.java:84)
>         at 
> org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:158)

> 
>         at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingN

> 
> ode.java:84)
>         at 
> org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)

> 
>         at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingN

> 
> ode.java:108)
>         at 
> org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153)

> 
>         at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingN

> 
> ode.java:108)
>         at 
> org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143)

> 
>         at 
> org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:317)

> 
>         at 
> org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:299)

> 
>         at 
> org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:131)

> 
>         at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingN

> 
> ode.java:84)
>         at 
> org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:158)

> 
>         at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingN

> 
> ode.java:84)
>         at 
> org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)

> 
>         at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingN

> 
> ode.java:108)
>         at 
> org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153)

> 
>         at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingN

> 
> ode.java:108)
>         at 
> org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143)

> 
>         at 
> org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:317)

> 
>         at 
> org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:299)

> 
>         at org.apache.cocoon.Cocoon.process(Cocoon.java:600)
>         at 
> org.apache.cocoon.bean.CocoonBean.processLenient(CocoonBean.java:834)
>         at org.apache.cocoon.bean.CocoonBean.getType(CocoonBean.java:821)
>         at 
> org.apache.cocoon.bean.CocoonBean.translateURI(CocoonBean.java:697)
>         at 
> org.apache.cocoon.bean.CocoonBean.processURI(CocoonBean.java:630)
>         at org.apache.cocoon.bean.CocoonBean.process(CocoonBean.java:468)
>         at org.apache.cocoon.bean.CocoonBean.process(CocoonBean.java:417)
>         at org.apache.cocoon.Main.main(Main.java:340)
> Exception in thread "main"
>  *
> 
> BUILD FAILED
> Bojan Mihelac wrote:
> 
>> Thanks Jeff,
>>
>> saved my day, and as long i can see it works with webapp in the same way.
>>
>> Bojan Mihelac
>>
>>
>>
>> ----- Original Message -----
>> From: "Jeff Turner" <jefft@apache.org>
>> To: <forrest-dev@xml.apache.org>
>> Sent: Tuesday, April 08, 2003 3:59 PM
>> Subject: Re: Linking to javadoc output from a Forrest site
>>
>>
>>
>>> On Tue, Apr 08, 2003 at 03:07:27PM +0200, Bojan Mihelac wrote:
>>>
>>>> Hi Vincent,
>>>>
>>>> I'm having similiar problem and so far I didn't make any solution.
>>>
>>>
>> However
>>
>>>> when i changed Forrest to build webapp, and added following line into
>>>> sitemap.xmap :
>>>>
>>>>             <map:match pattern="res/*.*">
>>>>                <map:read src="resources/res/{1}.{2}" />
>>>>             </map:match>
>>>>
>>>> then everything work good (i would add link lin xml file like <link
>>>> href="res/example.zip">Download zip</link> or link to some html).
>>>> When i try to hack that in to be builded website i always get an
>>>
>>>
>> "Resource
>>
>>>> not exist" error.
>>>>
>>>> Maybe someone else know the working solution for static sites.
>>>
>>>
>>> In 0.4 and CVS, you should be able to have
>>> src/documentation/content/example.zip, linked to with <link
>>> href="example.zip">.  All non-xdocs content (example.zip) is copied
>>> across in parallel to the Cocoon rendering of xdocs/*
>>>
>>> --Jeff
>>>
>>>
>>>
>>>> bye
>>>> Bojan Mihelac
>>>
>>>
>>
> 
> 



Mime
View raw message