cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Russell <p...@luminas.co.uk>
Subject [Patch] Re: [C2] NullPointerException (command line operation)
Date Wed, 29 Nov 2000 21:00:05 GMT
On Wed, Nov 29, 2000 at 02:28:39PM -0500, Berin Loritsch wrote:
> I get this from the command line.  It happens when you try
> to get a Cocoon.RESPONSE_OBJECT from the Map objectModel
> passed to the browserSelector.  During servlet execution,
> the browserSelector works fine.

Hrm. Strange - it's definately set. Can you send me your generated
sitemap?

> This also happens during xsp/simple.xsp execution.
> 
> C:\projects\xml-cocoon\dist\cocoon-2.0a3>run -l logs/cocoon.log -u DEBUG -c D:\WebSphere\AppServer\hosts\default_host\ePos\web
> xsp/simple.xsp
> java.lang.NullPointerException
> java.lang.NullPointerException
>         at org.apache.cocoon.transformation.XalanTransformer.setup(XalanTransformer.java:182)
>         at org.apache.cocoon.sitemap.ResourcePipeline.process(ResourcePipeline.java:181)
>         at _D_._WebSphere._AppServer._hosts._default_host._ePos._web._sitemap_xmap.error_process_1(_sitemap_xmap.java:1893)
>         at _D_._WebSphere._AppServer._hosts._default_host._ePos._web._sitemap_xmap.process(_sitemap_xmap.java:1858)
>         at org.apache.cocoon.sitemap.Handler.process(Handler.java:132)
>         at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:87)
>         at org.apache.cocoon.Cocoon.process(Cocoon.java:239)
>         at org.apache.cocoon.Main.warmup(Main.java:287)
>         at org.apache.cocoon.Main.main(Main.java:192)

Patch attached.

> The error page generated has this exception:
> 
> java.lang.RuntimeException: org.apache.cocoon.environment.commandline.CommandLineRequest.getParameterValues(String
name) method not
> yet implemented!
>  at org.apache.cocoon.environment.commandline.CommandLineRequest.getParameterValues(CommandLineRequest.java:115)
>  at org.apache.cocoon.components.language.markup.xsp.XSPRequestHelper.getParameterValues(XSPRequestHelper.java:121)
>  at _D_._WebSphere._AppServer._hosts._default_host._ePos._web._docs._samples._xsp._simple_xsp.generate(_simple_xsp.java:470)
>  at org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenerator.java:143)
>  at org.apache.cocoon.sitemap.ResourcePipeline.process(ResourcePipeline.java:201)
>  at _D_._WebSphere._AppServer._hosts._default_host._ePos._web._sitemap_xmap.process(_sitemap_xmap.java:1581)
>  at org.apache.cocoon.sitemap.Handler.process(Handler.java:132)
>  at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:87)
>  at org.apache.cocoon.Cocoon.process(Cocoon.java:239)
>  at org.apache.cocoon.Main.getPage(Main.java:409)
>  at org.apache.cocoon.Main.processURI(Main.java:338)
>  at org.apache.cocoon.Main.processURI(Main.java:330)
>  at org.apache.cocoon.Main.process(Main.java:297)
>  at org.apache.cocoon.Main.main(Main.java:193)

... Which is fair enough as far as I can see -- the command line
environment doesn't support parameters, and that page specifically
uses them.


Paul

-- 
Paul Russell                               <paul@luminas.co.uk>
Technical Director,                   http://www.luminas.co.uk
Luminas Ltd.

Mime
View raw message