cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <>
Subject Re: SQL XSP Taglib problem
Date Fri, 04 Aug 2000 05:27:43 GMT
On Fri, 4 Aug 2000, Mariusz Nowostawski wrote:

> I have very simple xsp page which suppose to update something in the
> database using SQL query, and than be processed by XSLT stylesheet. 
> However, if I put:
> <?xml version="1.0" encoding="ISO-8859-1"?> 
> <?cocoon-process type="xsp"?>
> <?cocoon-process type="xslt"?>
> <?xml-stylesheet href="register.xsl" type="text/xsl" ?>
> <xsp:page language="java" 
>           xmlns:xsp=""
> 	  xmlns:sql="">
> Cocoon is producing:
> Cocoon 1.8-dev  Error found handling the request.
> java.lang.NullPointerException: 
> at org.apache.cocoon.processor.xsp.XSPProcessor.process(
> at org.apache.cocoon.Engine.handle(
> at org.apache.cocoon.Cocoon.service(
> at javax.servlet.http.HttpServlet.service(
> at
> at
> It seems that the problem is just by declaring the SQL namespace, because
> inside the xml source it does not matter if I do nothing or something
> with the execute-query. Also, error appears before my XSP processor will 
> generate java source.  If I remove the namespace declaration, all
> seems to work, but, of course, on the resulting (after xslt) document
> I have raw stuff with my sql query which was not processed by sql
> processor.

it would seem that you haven't updated your file to
conform to the latest revision in cvs. stefano moved the sql logicsheet's
location, along with a couple of other things (hence the move to 1.8). i'd
redo your from scratch.

i think robin green had a suggestion or two for patching xsp processor to
give better errors when this sort of thing happens. robin, do you mind
sending a cvs diff of your suggested change(s)?

- donald

View raw message