Marc-André GROSY wrote:

Good. It's great !!

cool. Did you apply it as I sent it, or did you do some modifications?

Thanks

Michi

Thanks


-----Message d'origine-----
De : Michael Wechner [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 14 octobre 2005 00:05
À : [email protected]
Objet : Re: Lenya 1.2.2 Error on asset.xsp


IIRC there was some similar problem quite some time ago and
the attached patch might help, but I might be way off.

HTH

Michi


Marc-André GROSY wrote:

Hi,
I use getElementsByTagNameNS method in assets.xsp file. Like that :
try{ ...
subject = 
metaDoc.getElementsByTagNameNS("http://purl.org/dc/elements/1.1/","subject";).item(0).getChildNodes().item(0).getNodeValue();
} catch ....

But if <dc:subject/> element in .meta file is empty (like <dc:subject></dc:subject>) I obtain this error :
ServerPagesGenerator.generate()
cause: java.lang.NullPointerException

Original Exception: java.lang.NullPointerException
        at 
org.apache.cocoon.www.lenya.content.info.assets_xsp.generate(org.apache.cocoon.www.lenya.content.info.assets_xsp:306)
        at 
org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenerator.java:263)
        at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:581)
        at 
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:196)
        at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:525)

Anyone can explain me how solve this problem ?

Thanks a lot

Marc

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








--
Michael Wechner
Wyona      -   Open Source Content Management   -    Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
[EMAIL PROTECTED]                        [EMAIL PROTECTED]


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

Reply via email to