[opencms-dev] finding the cause for this backtrace

Alberto Gallardo argrico at gmail.com
Thu May 7 13:50:45 CEST 2015


>
> It could have to do with an email launching from a jsp, but I have no idea
> at the moment
> how to interpret the traceback.
>

The error is triggered by OpenCms when initializing the "formatter" taglet
of your published "/system/modules/org.my.template/formatters/footer widget
formatter.jsp". In Java, the stacktraces are written from the innermost
invokation to the outtermost:

This is the error message:

>
> May 07, 2015 10:50:41 AM org.apache.catalina.core.ApplicationDispatcher
> invoke
> SEVERE: Servlet.service() for servlet jsp threw exception
> org.opencms.main.CmsException: Error while reading element bean from
> request
>

Triggered by:

        at
> org.opencms.ade.configuration.CmsADEManager.getCurrentElement(CmsADEManager.java:337)
>

...that was called here:

        at
> org.opencms.jsp.CmsJspTagFormatter.init(CmsJspTagFormatter.java:230)
>

..and 'init' was invoked here:


>         at
> org.opencms.jsp.CmsJspTagFormatter.doStartTag(CmsJspTagFormatter.java:128)
>

...and this was invoked by your jsp code:

        at
> org.apache.jsp.WEB_002dINF.jsp.online.system.modules.org_my_template.
>
> formatters.footer_002dwidget_002dformatter_jsp._jspx_meth_cms_005fformatter_005f0(footer_002dwidget_002dformatter_jsp.java:109)


Apache Tomcat compiles the jsps into classes in a predefined directory,
usually resulting in the namespace prefix 'org.apache.jsp.WEB_002dINF.jsp'.
The rest of the namespace identifies where is the jsp stored.

In this case:
   online -> online version
   system.modules.org_my_template.formatters ->
system/modules/org.my.template/formatters
   footer_002dwidget_002dformatter_jsp -> "footer widget formatter.jsp"

Regards,


Alberto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20150507/09cca32a/attachment.htm>


More information about the opencms-dev mailing list