in the sitemap.log I found:
org.apache.cocoon.ProcessingException: 
        Could not read resource
file:/C:/tomcat/webapps/cocoon/chiba/sapdb.xml:
java.lang.NullPointerException
        at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:115)
        at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:209)
        at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:355)
        at
org.apache.cocoon.www.chiba.sitemap_xmap.matchN1002B(sitemap_xmap.java:461)
        at
org.apache.cocoon.www.chiba.sitemap_xmap.process(sitemap_xmap.java:369)
        at
org.apache.cocoon.www.chiba.sitemap_xmap.process(sitemap_xmap.java:312)
        at org.apache.cocoon.sitemap.Handler.process(Handler.java:180)
        at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:127)
        at
org.apache.cocoon.www.sitemap_xmap.matchN102CF(sitemap_xmap.java:3617)
        at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2626)
        at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2432)
        at org.apache.cocoon.sitemap.Handler.process(Handler.java:180)
        at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:127)
        at
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:144)
        at org.apache.cocoon.Cocoon.process(Cocoon.java:582)

-----Ursprüngliche Nachricht-----
Von: Thorsten Mauch [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 7. Februar 2002 23:30
An: '[EMAIL PROTECTED]'
Betreff: can't extend AbstractDOMTransformer, was Could not read
resource file


Hi all 
You may seen my previous messages. Now I
can explain my exact environment.
Under win2000 I installed
a new version from
Tomcat 4.01
and Cocoon 2.0.1
jdk1.3.1

I wrote a simple Transformer that extends AbstractDOMTransformer:

public class XFormTrans extends AbstractDOMTransformer {
  protected Document transform(Document doc) {
    return doc;
  }
}

if i add this transformer to the sitemap:

<map:match pattern="**.view">
        <map:generate src="{1}.xml"/>
        <map:transform type="XFormTrans"/>
        <map:serialize/>
</map:match>

the sitemap is setuped correctly, but if I access the the pipe
I get a error message:

type fatal
message Could not read resource
file:/C:/tomcat/webapps/cocoon/chiba/buglet.xml
description org.apache.cocoon.ProcessingException: Could not read resource
file:/C:/tomcat/webapps/cocoon/chiba/buglet.xml:
java.lang.NullPointerException
sender org.apache.cocoon.servlet.CocoonServlet

If I exchange the domtransfomer with the xslt-transformer 
no error occour.

I tried also Tomcat 4.0 and jdk 1.3, 1.4 beta3 
with the same result.

At least any ideas in what where I can seek
this error ?

thanx thorsten


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to