[opencms-dev] NullPointerException - could not be rendered with formatter
Tobias Herrmann
t.herrmann at alkacon.com
Thu Jun 29 08:40:14 CEST 2017
Hi Arno,
the exception is caused within the JSP meta-singlelistentry.jsp. There
you are using a cms:contentaccess tag which throws the null-pointer
exception. Check how you are using the tag there and verify that all
attributes have the expected values.
This is not related to the way the formatter is called or the collector.
From the stacktrace you can see, that the issue happens when rendering
a single list entry. So the formatter is called properly and your
collector is returning at least one result item.
Kind regards,
Tobias
-------------------
Tobias Herrmann
Alkacon Software GmbH & Co. KG - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org
Am 28.06.2017 um 17:30 schrieb Arno Nym:
> Hi,
> we made a OpenCMS migration from 8.5 to 10.5.1 (we imported some 8.5
> modules, too), but now we have error messages like this (after calling
> the index.html):
> <<
> 27 Jun 2017 17:03:49,133 ERROR [opencms.jsp.CmsJspTagContainer:1656]
> Container-page element "/.content/lists/list_0122.html" could not be
> rendered with formatter
> "/system/modules/dev.partv/formatters/meta-list.jsp".
> javax.servlet.jsp.JspException: javax.servlet.ServletException:
> javax.servlet.jsp.JspException: java.lang.NullPointerException
> at
> org.opencms.jsp.CmsJspTagInclude.includeActionNoCache(CmsJspTagInclude.java:339)
> at
> org.opencms.jsp.CmsJspTagInclude.includeTagAction(CmsJspTagInclude.java:247)
> ...
> Caused by: javax.servlet.ServletException:
> javax.servlet.jsp.JspException: java.lang.NullPointerException
> at
> org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:913)
> at
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:845)
> at
> org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.dev_partv.formatters.meta_002dlist_jsp._jspService(meta_002dlist_jsp.java:368)
> ...
> Caused by: java.lang.NullPointerException
> at
> org.opencms.jsp.util.CmsJspContentAccessBean.<init>(CmsJspContentAccessBean.java:505)
> at
> org.opencms.jsp.CmsJspTagContentAccess.doStartTag(CmsJspTagContentAccess.java:112)
> at
> org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.dev_partv.elements.meta_005fsinglelistentry_jsp._jspService(meta_005fsinglelistentry_jsp.java:262)
> >>
> In index.html, the content element "/.content/lists/list_0122.html" and
> the formatter "/system/modules/dev.partv/formatters/meta-list.jsp" is
> registered (name = centercontainer + type = center). Apparently the old
> formatter is no longer used properly in OpenCMS 10 => A bug?
> We added this line to
> /system/modules/com.alkacon.opencms.v8.list/schemas/list.xsd:
> <formatter
> uri="/system/modules/dev.partv/formatters/meta-list.jsp" type="center"
> searchcontent="false" />
> But with no luck.
> The list uses a collector: byQuery.
> Thanks
> Arno
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>
More information about the opencms-dev
mailing list