hello everybody again!
when using the component with tacos (in my case the
ajax-tree), problems occour when ajax-requests are made.
the following exception occours:
java.lang.NullPointerException
at
java.util.regex.Matcher.getTextLength(Matcher.java:1127)
at java.util.regex.Matcher.reset(Matcher.java:284)
at java.util.regex.Matcher.<init>(Matcher.java:205)
at java.util.regex.Pattern.matcher(Pattern.java:879)
at
net.sourceforge.tapestry_jsmenu.JSCookMenu.renderIcon(Unknown
Source)
at
net.sourceforge.tapestry_jsmenu.JSCookMenu.renderItem(Unknown
Source)
at
net.sourceforge.tapestry_jsmenu.JSCookMenu.renderComponent(Unknown
Source)
at $JSCookMenu_6.renderComponent($JSCookMenu_6.java)
at
org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617)
at
org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java:92)
at
org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617)
at
org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:434)
at
org.apache.tapestry.html.Body.renderComponent(Body.java:129)
at $Body_3.renderComponent($Body_3.java)
at
org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617)
at
org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:434)
at
org.apache.tapestry.html.Shell.renderComponent(Shell.java:114)
at $Shell_2.renderComponent($Shell_2.java)
at
org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617)
at
org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java:92)
at
org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617)
at
org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java:92)
at
org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617)
at
org.apache.tapestry.AbstractPage.renderPage(AbstractPage.java:275)
at
org.apache.tapestry.engine.RequestCycle.renderPage(RequestCycle.java:366)
at
net.sf.tacos.ajax.contrib.DojoResponseBuilder.renderResponse(DojoResponseBuilder.java:190)
at
net.sf.tacos.ajax.impl.AjaxDirectServiceImpl.renderAjaxResponse(AjaxDirectServiceImpl.java:344)
at
net.sf.tacos.ajax.impl.AjaxDirectServiceImpl.service(AjaxDirectServiceImpl.java:265)
at
$AjaxDirectService_10a742dffdb.service($AjaxDirectService_10a742dffdb.java)
...
with a bit debugging i realized, that the
"NestedMarkupWriter" in "renderIcon()" is a "NullWriter".
"NullWriter.getBuffer()" returns "null" and the
"Pattern" pEOL hates getting null as parameter.
i'm not sure wheather it is really a bug ( because of
the freaky ajax stuff ) and whether it can be fixed ...
thanks so far!
Florian Dütsch
batzenchef@web.de
Logged In: NO
i have done a quick hack for that problem. i don't know
wheater it works in all cases, but maybe the author could
integrate something in this way.
thanks!
Florian Dütsch
batzenchef@web.de
-->
363a364,373
> // florian.duetsch@gefasoft.com:
> // fixed error in combination with tacos
> // -->
> if(context.markupWriter.getNestedWriter() instanceof
NullWriter) {
> return false;
> }
> // <--
>
>
>