Thanks !!<br><br><div class="gmail_quote">On Thu, Jun 30, 2011 at 10:53 AM, Michael Wechner <span dir="ltr"><<a href="mailto:michael.wechner@wyona.com">michael.wechner@wyona.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<u></u>
<div bgcolor="#ffffff" text="#000000">
Am 30.06.11 09:45, schrieb basZero:
<div class="im"><blockquote type="cite">Hi Michi,
<div><br>
</div>
<div>we just had a little incident where for a certain unknown
reason the header section of the page (Navigation) could not be
rendered.</div>
<div><br>
</div>
<div>In the log, I see this Nullpointer:</div>
<div>
<div>
<div>65195001 2011-06-30 09:27:28,215 [http-80-103] ERROR
org.wyona.yanel.impl.resources.navigation.NavigationResource.getView():220
- java.lang.NullPointerException (/de/header.yanel, Name:
Zwischengas, ID: zwischengas, Mount-Point: /, No reverse
proxy set)</div>
<div>java.lang.NullPointerException</div>
<div><span style="white-space:pre-wrap"> </span>at
org.wyona.yanel.impl.resources.navigation.NavigationResource.getOS(NavigationResource.java:374)</div>
</div>
</div>
</blockquote>
<br>
<br></div>
we can make this method more fail safe inside<br>
<br>
src/resources/navigation/src/java/org/wyona/yanel/impl/resources/navigation/NavigationResource.java<br>
<br>
by checking first if the userAgent is not null, whereas it is odd
that it is null. <br>
<br>
Anyway this should be improved now:<br>
<br>
Sending
src/resources/navigation/src/java/org/wyona/yanel/impl/resources/navigation/NavigationResource.java<br>
Transmitting file data .<br>
Committed revision 59043.<br>
<br>
HTH<br><font color="#888888">
<br>
Michael</font><div class="im"><br>
<br>
<blockquote type="cite">
<div>
<div>
<div><span style="white-space:pre-wrap"> </span>at
org.wyona.yanel.impl.resources.navigation.NavigationResource.getView(NavigationResource.java:173)</div>
<div><span style="white-space:pre-wrap"> </span>at
org.wyona.yanel.impl.resources.navigation.NavigationResource.getView(NavigationResource.java:98)</div>
<div><span style="white-space:pre-wrap"> </span>at
org.wyona.yanel.core.source.ResourceResolver.resolve(ResourceResolver.java:75)</div>
<div><span style="white-space:pre-wrap"> </span>at
org.wyona.yanel.core.source.SourceResolver.resolve(SourceResolver.java:67)</div>
<div><span style="white-space:pre-wrap"> </span>at
org.wyona.yanel.core.transformation.XIncludeTransformer.startElement(XIncludeTransformer.java:67)</div>
<div><span style="white-space:pre-wrap"> </span>at
org.apache.xml.serializer.ToXMLSAXHandler.closeStartTag(ToXMLSAXHandler.java:204)</div>
<div><span style="white-space:pre-wrap"> </span>at
org.apache.xml.serializer.ToSAXHandler.flushPending(ToSAXHandler.java:277)</div>
<div><span style="white-space:pre-wrap"> </span>at
org.apache.xml.serializer.ToXMLSAXHandler.endElement(ToXMLSAXHandler.java:243)</div>
<div><span style="white-space:pre-wrap"> </span>at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1399)</div>
<div><span style="white-space:pre-wrap"> </span>at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)</div>
<div><span style="white-space:pre-wrap"> </span>at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)</div>
<div><span style="white-space:pre-wrap"> </span>at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)</div>
<div><span style="white-space:pre-wrap"> </span>at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)</div>
<div><span style="white-space:pre-wrap"> </span>at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)</div>
<div><span style="white-space:pre-wrap"> </span>at
org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:392)</div>
</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>My opinion is: there can't be a Nullpointer Exception at that
location when the getOS() method is called from the getView()
method, because getView() makes sure that no null is passed into
getOS(). </div>
<div><br>
</div>
<div>How do you explain this? Any idea?</div>
<div><br>
</div>
<div>However, the system gets halted due to this error for some
seconds (in the case today for 10 seconds), recovers and
continues to work fine.</div>
<div><br>
</div>
<div>Cheers</div>
<div>Balz</div>
</blockquote>
<br>
</div></div>
<br>--<br>
Yanel-development mailing list <a href="mailto:Yanel-development@wyona.com">Yanel-development@wyona.com</a><br>
<a href="http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development" target="_blank">http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development</a><br></blockquote></div><br>