You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Volkm@r" <pl...@arcor.de> on 2005/03/29 15:54:12 UTC
NullPointerException with Directorygenerator
Just upgraded from 2.1.5.1 to 2.1.7, and now I'm having problems with
DirectoryGenerator. Scanning a subdirectory using
<map:match pattern="">
<map:generate type="directory" src="AnySubdirectory">
<map:parameter name="depth" value="1"/>
</map:generate>
<map:serialize type="xml"/>
</map:match>
works perfectly. But I'm getting NullPointerException when trying to
generate the actual directory using
<map:generate type="directory" src=".">
I have no experience evaluating the error messages. So I put it on a
server hoping that someone else knows how to read it:
<http://home.arcor.de/plsdontreply/NullPointerException.html>
Does somebody have a solution?
--
Volkm@r
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: NullPointerException with Directorygenerator
Posted by "Volkm@r" <pl...@arcor.de>.
Jorg Heymans wrote:
> [...]
> I just tested it on an SVN version very close to 2.1.7 and it works
> (absolute, "." or "./")
>
> Do you have any sort of exotic setup? (symlinked subsitemaps or thelike?)
>
> Regards
> Jorg
Thanks for your attention. The problem must have been caused by some
other stuff in my "sitemap.xmap". With a minimalized and cleaned sitemap
it works.
Thanks again
--
Volkm@r
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: NullPointerException with Directorygenerator
Posted by Geert Josten <Ge...@daidalos.nl>.
Hi Volkm@r,
Could it be the case that you are running Cocoon 'straight' from the war file? I could imagine that
the servlet engine has trouble providing a 'directory' object to the directory generator if a
physical directory is actually missing.
Running Cocoon in Tomcat orso? You might want to try whether Jetty (Cocoon standalone) gives the
same results...
HTH,
Geert
Volkm@r wrote:
> Jorg Heymans wrote:
>
>> [...]
>>
>> I just tested it on an SVN version very close to 2.1.7 and it works
>> (absolute, "." or "./")
>>
>> Do you have any sort of exotic setup? (symlinked subsitemaps or thelike?)
>>
>> Regards
>> Jorg
>
>
> No symlinked sitemaps. It's a SuSE 9.1, utf-8, reiserfs. But I remember
> when I built Cocoon, I ran "build.sh" as a non-root user. Should I have
> run the buildscript as root? I'll try it again.
>
--
Geert.Josten@Daidalos.nl
IT-consultant at Daidalos BV, Zoetermeer (NL)
http://www.daidalos.nl/
tel:+31-(0)79-3316961
fax:+31-(0)79-3316464
GPG: 1024D/12DEBB50
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: NullPointerException with Directorygenerator
Posted by "Volkm@r" <pl...@arcor.de>.
Jorg Heymans wrote:
> [...]
>
> I just tested it on an SVN version very close to 2.1.7 and it works
> (absolute, "." or "./")
>
> Do you have any sort of exotic setup? (symlinked subsitemaps or thelike?)
>
> Regards
> Jorg
No symlinked sitemaps. It's a SuSE 9.1, utf-8, reiserfs. But I remember
when I built Cocoon, I ran "build.sh" as a non-root user. Should I have
run the buildscript as root? I'll try it again.
--
Volkm@r
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: NullPointerException with Directorygenerator
Posted by Jorg Heymans <jh...@domek.be>.
Volkm@r wrote:
> The intention is to point to the same directory that also contains
> "sitemap.xmap". I just again tested with 2.1.5.1 and "." works as well
> as "./".
>
> How else would you suggest to point to "active directory"?
> BTW, even if I put an absolut path, it wouldn't work in 2.1.7
I just tested it on an SVN version very close to 2.1.7 and it works
(absolute, "." or "./")
Do you have any sort of exotic setup? (symlinked subsitemaps or thelike?)
Regards
Jorg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: NullPointerException with Directorygenerator
Posted by "Volkm@r" <pl...@arcor.de>.
Jorg Heymans wrote:
>
>
> What do you expect "." to point at ? Are your sure "." worked on 2.1.5 ?
>
>
> Jorg
The intention is to point to the same directory that also contains
"sitemap.xmap". I just again tested with 2.1.5.1 and "." works as well
as "./".
How else would you suggest to point to "active directory"?
BTW, even if I put an absolut path, it wouldn't work in 2.1.7
--
Volkm@r
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: NullPointerException with Directorygenerator
Posted by Jorg Heymans <jh...@domek.be>.
Volkm@r wrote:
> Just upgraded from 2.1.5.1 to 2.1.7, and now I'm having problems with
> DirectoryGenerator. Scanning a subdirectory using
>
> <map:match pattern="">
> <map:generate type="directory" src="AnySubdirectory">
> <map:parameter name="depth" value="1"/>
> </map:generate>
> <map:serialize type="xml"/>
> </map:match>
>
> works perfectly. But I'm getting NullPointerException when trying to
> generate the actual directory using
>
> <map:generate type="directory" src=".">
What do you expect "." to point at ? Are your sure "." worked on 2.1.5 ?
Jorg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org