I've had this problem before as well, in my case it was related to a Label component trying to render a label for a RadioGroup. Inside beginRender of the Label component, it does this:
labelElement.forceAttributes("for", fieldId, "id", fieldId + ":label"); In my case, fieldId was null (as RadioGroup implements ClientElement but its getClientId() method returns null). In 5.1.0.1, a change meant that an attribute with a null value was saved in the Element, so when the Attribute.render() method was called, a null was passed as the value to encodeQuoted() on the markup model. In my case, the solution was to not use the Label component for the RadioGroup, but just have a normal <label> tag in my template. Ciaran On 23/03/2009 6:37pm, "Ville Virtanen" <ville.virta...@cerion.fi> wrote: > > Ok, now I had time to look it little closer: > > In the particular view I'm generating lazy initialization exp and observe > T5: > > The String content is null and thus of course generates npe at that point. > the last encoded string (or one of those) is t-omitted-frame, so it actually > crashes somewhere when rendering the own T5 error page? > > Anyway, I don't have the required insight to trace the T5 rendering > mechanisms quickly, and unfortunately just now I don't even have the time to > make a view that reproduces it. (This does not happen under all > circumstances.) > > I'll be back when I have time (if it is not solved yet) but atm my work is > too crazy... > > - Ville > > Code that crashes: (AbstractMarkupModel, 94) > public void encodeQuoted(String content, StringBuilder builder) > { > int length = content.length(); <------- > > > > Ville Virtanen wrote: >> >> Hi, >> >> We are constantly getting this stacktrace on some of our views. Nothing, >> and I mean nothing else is visible. The normal T5 error page doesn't come >> up etc. Only this stacktrace. Using 5.1.0.1-20090305.090208-13 everything >> works ok. >> >> Does anyone know how to trace this or dig deeper? >> >> - Ville >> >> java.lang.NullPointerException >> at >> org.apache.tapestry5.dom.AbstractMarkupModel.encodeQuoted(AbstractMarkupModel >> .java:94) >> at >> org.apache.tapestry5.dom.Element$Attribute.render(Element.java:60) >> >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org