cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <lgaw...@mobilebox.pl>
Subject Re: NPE in JXTemplate
Date Tue, 10 May 2005 13:39:15 GMT
Leszek Gawron wrote:
> Reinhard Poetz wrote:
> 
>> Leszek Gawron wrote:
>>
>>> fixed. thanks for reporting.
>>
>>
>>
>> thanks for fixing it!
>>
>> in the meantime I found another problem :-( in 
>> http://localhost:8888/samples/blocks/forms/form2simpleXML.flow when I 
>> want to show the form as XML:
>>
>> java.lang.NullPointerException
>>     at 
>> org.apache.cocoon.components.expression.jxpath.JXPathExpression.setProperty(JXPathExpression.java:99)

>>
>>     at 
>> org.apache.cocoon.template.jxtg.expression.JXTExpression.setLenient(JXTExpression.java:257)

>>
>>     at 
>> org.apache.cocoon.template.jxtg.instruction.StartOut.<init>(StartOut.java:51)

> 
> 
> I fixed the problem with expression leniency - we've just lost a null 
> check during the refactoring.
> 
> Bad news is that there is still a NPE in this example:
> 
>> java.lang.NullPointerException
>>     at 
>> org.apache.xml.serializer.NamespaceMappings.pushNamespace(NamespaceMappings.java:208)

>>
>>     at 
>> org.apache.xml.serializer.ToStream.startPrefixMapping(ToStream.java:2106)
>>     at 
>> org.apache.xml.serializer.ToStream.startPrefixMapping(ToStream.java:2056)
>>     at 
>> org.apache.xalan.transformer.TransformerIdentityImpl.startPrefixMapping(TransformerIdentityImpl.java:932)

>>
>>     at 
>> org.apache.cocoon.xml.AbstractXMLPipe.startPrefixMapping(AbstractXMLPipe.java:66)

>>
>>     at 
>> org.apache.cocoon.xml.AbstractXMLPipe.startPrefixMapping(AbstractXMLPipe.java:66)

>>
>>     at 
>> org.apache.cocoon.xml.RedundantNamespacesFilter.startElement(RedundantNamespacesFilter.java:69)

>>
>>     at 
>> org.apache.cocoon.xml.AttributeAwareXMLConsumerImpl$StartElement.send(AttributeAwareXMLConsumerImpl.java:187)

>>
>>     at 
>> org.apache.cocoon.xml.AttributeAwareXMLConsumerImpl.playCache(AttributeAwareXMLConsumerImpl.java:225)

>>
>>     at 
>> org.apache.cocoon.xml.AttributeAwareXMLConsumerImpl.startElement(AttributeAwareXMLConsumerImpl.java:71)

>>
>>     at 
>> org.apache.cocoon.xml.IncludeXMLConsumer.startElement(IncludeXMLConsumer.java:162)

>>
>>     at org.apache.cocoon.forms.util.XMLAdapter.start(XMLAdapter.java:363)
>>     at 
>> org.apache.cocoon.forms.util.XMLAdapter.generateSAX(XMLAdapter.java:322)
>>     at 
>> org.apache.cocoon.forms.util.XMLAdapter.generateSAX(XMLAdapter.java:305)
>>     at 
>> org.apache.cocoon.forms.util.XMLAdapter.generateSAX(XMLAdapter.java:347)
>>     at 
>> org.apache.cocoon.forms.util.XMLAdapter.generateSAX(XMLAdapter.java:305)
>>     at org.apache.cocoon.forms.util.XMLAdapter.toSAX(XMLAdapter.java:294)
>>     at 
>> org.apache.cocoon.template.jxtg.script.Invoker.executeNode(Invoker.java:97) 
>>
>>     at 
>> org.apache.cocoon.template.jxtg.instruction.StartOut.execute(StartOut.java:66) 
>>
>>     at 
>> org.apache.cocoon.template.jxtg.script.Invoker.execute(Invoker.java:72)
>>     at 
>> org.apache.cocoon.template.jxtg.JXTemplateGenerator.performGeneration(JXTemplateGenerator.java:122)

>>
>>     at 
>> org.apache.cocoon.template.jxtg.JXTemplateGenerator.generate(JXTemplateGenerator.java:111)

>>
> 
> 
> I'm checking that out right now.
> 
I am not able to diagnose it properly. Sylvain, could you help?

-- 
Leszek Gawron                                      lgawron@mobilebox.pl
IT Manager                                         MobileBox sp. z o.o.
+48 (61) 855 06 67                              http://www.mobilebox.pl
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65

Mime
View raw message