Newsletter template gets IndexOutOfBoundsException for the actionstoolbar.jsp | Community
Skip to main content
Level 3
October 16, 2015
Solved

Newsletter template gets IndexOutOfBoundsException for the actionstoolbar.jsp

Hi, 

I want to create a custom newsletter template and use the available email emulator and toolbar. 

My setup: 

- newsletter template with sling:resourceType="myproject/renderers/newsletter"

-newsletter renderer with sling:resourceSuperType="/libs/mcm/components/newsletter/page" and a body.jsp with the same content as the geometrixx newsletter component (/apps/geometrixx/components/newsletterpage), I've only adjusted the paths of the includes. 

With all of this I get the following error message:

Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
    at java.util.LinkedList.checkElementIndex(Unknown Source)
    at java.util.LinkedList.remove(Unknown Source)
    at com.day.cq.wcm.api.components.Toolbar.remove(Toolbar.java:273)
    at org.apache.jsp.libs.mcm.components.newsletter.page.actionstoolbar_jsp._jspService(actionstoolbar_jsp.java:162)
    at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:502)
    ... 137 more

 

If I remove the include for the actionstoolbar.jsp , everything seems fine. 

Anybody experience this before? Or have an idea how I can make the actionstoolbar work (seems to be the only way to test, send and publish a newsletter)

Thanks, Alex

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

The fact that it works without the include for actionstoolbar.jsp seems to suggest that you have discoverd a bug. I have not heard about this issue. Please open a ticket at: 

http://helpx.adobe.com/marketing-cloud/contact-support.html

1 reply

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

The fact that it works without the include for actionstoolbar.jsp seems to suggest that you have discoverd a bug. I have not heard about this issue. Please open a ticket at: 

http://helpx.adobe.com/marketing-cloud/contact-support.html

Translate