Sreekanth Vasireddy

Greenhorn
+ Follow
since Oct 23, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Sreekanth Vasireddy

Hey everyone,

I am a EL and java newbie and had this frustrating error. Thought would post it here hoping somebody might have a look at this.

Context: I am setting an ArrayList in the page context in the back-end like this. This is tag which I declared in a tld.


. This contains AgentMessage Objects which contain some information such as, name, text, date, etc.....
I am trying to access this ArrayList in the jsp. I tried different approaches but it is throwing different kind of errors. Some of the approaches I tried

<c:set var="messageList" value="${pageContext.attribute['messageList']}"></c:set>

I tried the above line to see if i could get the object from pageContext instead of the tag mentioned below...but it throws this error

[10/23/10 11:34:31:257 IST] 0000006f ServletWrappe E SRVE0014E: Uncaught service() exception root cause /jsp/toolbar/defaultToolBar.jsp: javax.servlet.jsp.JspException: An error occurred while evaluating custom action attribute "value" with value "${pageContext.attribute['messageList']}": Unable to find a value for "attribute" in object of class "org.apache.jasper.runtime.PageContextImpl" using operator "." (null)


<c:set var="messageList">
<saratoga:getMessageList portletRequest="<%=portletRequest%>" />
</c:set>

The above lines return a string...and the exception is shown below....


THE EXAMPLE.TLD WHERE THE TAG IS DECLARED:

<tag>
<name>getMessageList</name>
<tag-class>com.starwood.saratoga.taglib.GetAgentMessageListTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>portletRequest</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>



THE BEAN: AGENTMESSAGE.

public class AgentMessage implements Serializable {
public String msgText;
public String msgFromDate;
public String msgToDate;
public String userId;
public String msgCallSessionId;
public String msgCallCenterId;
public String userRole;
public String msgId;
public String msgUserGroup;
public String locId;



public String getMsgFromDate() {
return msgFromDate;
}
public void setMsgFromDate(String msgFromDate) {
this.msgFromDate = msgFromDate;
}
public String getMsgId() {
return msgId;
}
public void setMsgId(String msgId) {
this.msgId = msgId;
}
public String getMsgText() {
return msgText;
}
public void setMsgText(String msgText) {
this.msgText = msgText;
}
public String getMsgToDate() {
return msgToDate;
}
public void setMsgToDate(String msgToDate) {
this.msgToDate = msgToDate;
}
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}

}

}

THE TAG SOURCE:


public class GetAgentMessageListTag extends BodyTagSupport{

private PortletRequest portletRequest;
private String str = null;






private List getMessageList(PortletRequest req) {

int iCount = 0;
ArrayList result = null;
System.out.println("Inside getMessageList()");
try {



logger.debug(" ldapId = " + ldapId + "role = " + role + "loc = " + loc);

// AgentMessage Changes
result =(ArrayList) messagesDelegate.findValidAgentMessagesByUser(ldapId,role,loc);

logger.debug("Message Count from GetAgentMessageListTag " + iCount);


}
catch(Exception ex){
ex.printStackTrace();
}

logger.debug("getMessageCount:" + iCount);
System.out.println("result " + result);
return result;
}





/**
* @param string
*/
public void setStr(String string) {
str = string;
}

/**
* Release any acquired resources.
*/
public void release() {
super.release();
str = null;
portletRequest = null;
}

/**
* Save any body content of this tag, which will generally be the
* option(s) representing the values displayed to the user.
*
* @exception JspException if a JSP exception has occurred
*/
public int doAfterBody() throws JspException {
if (bodyContent != null) {
String value = bodyContent.getString();
if (value == null)
value = "";
str = value.trim();
}
return (SKIP_BODY);
}

public int doStartTag() throws JspException {
return (SKIP_BODY);
}



/**
* Render the end of this form.
*
* @exception JspException if a JSP exception has occurred
*/
public int doEndTag() throws JspException {
if (portletRequest != null) {
write( getMessageList(portletRequest) );
} else {
logger.debug("getMessageList-------------->:erite -1");
write(null);
}
return (EVAL_PAGE);
}

protected void write( List results) throws JspException {
JspWriter writer = pageContext.getOut();
try {
pageContext.setAttribute("messageList", results);
//writer.print
writer.print(results);
//getMessage//Count:erite -1
} catch (Exception e) {
throw new JspException
( e.toString());
}
}

/**
* @return Returns the portletRequest.
*/
public PortletRequest getPortletRequest() {
return portletRequest;
}
/**
* @param portletRequest The portletRequest to set.
*/
public void setPortletRequest(PortletRequest portletRequest) {
this.portletRequest = portletRequest;
}
}


JSP FILE WHERE I AM TRYING TO ACCESS THIS:

<c:set var="messageCount">
<saratoga:GetAgentMessageCount portletRequest="<%=portletRequest%>" />
</c:set>

<c:if test="${not empty messageList}">
<div id="messageCase_agentMessages">
<div class="messageBox_agentMessages">
<div class="messageHeader_agentMessages">
<div>
<h3>Saratoga Messages</h3>
</div>
</div>

    <c:forEach var="agentMessages" items="${messageList}">

  • <div class="messageBody_messageList lastMessage_messageList">
    <div title="<c:out value="${agentMessages.msgText}" escapeXml="false"/>"><c:out value="${agentMessages.msgText}" escapeXml="false"/></div>
    <span class="fromDate">From : <c:out value="${agentMessages.msgFromDate}" escapeXml="false"/></span><span class="toDate">To : <c:out value="${agentMessages.msgToDate}" escapeXml="false"/></span>
    <span class="clearDiv"></span>
    </div>

  • </c:forEach>

</div>
</div>
</c:if>

THE EXCEPTION:


[10/23/10 11:26:57:395 IST] 0000006e ServletWrappe E SRVE0014E: Uncaught service() exception root cause /jsp/toolbar/defaultToolBar.jsp: javax.servlet.jsp.JspException: An error occurred while evaluating custom action attribute "value" with value "${agentMessages.msgText}": Unable to find a value for "msgText" in object of class "java.lang.String" using operator "." (null)
at org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Unknown Source)
at org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Unknown Source)
at org.apache.taglibs.standard.lang.support.ExpressionEvaluatorManager.evaluate(Unknown Source)
at org.apache.taglibs.standard.tag.el.core.ExpressionUtil.evalNotNull(Unknown Source)
at org.apache.taglibs.standard.tag.el.core.OutTag.evaluateExpressions(Unknown Source)
at org.apache.taglibs.standard.tag.el.core.OutTag.doStartTag(Unknown Source)
at com.ibm._jsp._defaultToolBar._jspx_meth_c_out_0(_defaultToolBar.java:729)
at com.ibm._jsp._defaultToolBar._jspx_meth_c_forEach_0(_defaultToolBar.java:808)
at com.ibm._jsp._defaultToolBar._jspx_meth_c_if_0(_defaultToolBar.java:851)
at com.ibm._jsp._defaultToolBar._jspService(_defaultToolBar.java:394)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:93)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1585)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:775)
at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)
at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:215)
at com.ibm.ws.jsp.webcontainerext.JSPExtensionProcessor.handleRequest(JSPExtensionProcessor.java:255)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:670)
at com.ibm.wps.pe.pc.legacy.impl.PortletContextImpl.includeDirect(PortletContextImpl.java:245)
at com.ibm.wps.pe.pc.legacy.impl.PortletContextImpl.include(PortletContextImpl.java:197)
at com.ibm.wps.portlets.struts.WpsStrutsUtil.include(WpsStrutsUtil.java:2179)
at com.ibm.wps.portlets.struts.WpsStrutsViewJspCommand.includeURL(WpsStrutsViewJspCommand.java:189)
at com.ibm.wps.portlets.struts.WpsStrutsViewJspCommand.execute(WpsStrutsViewJspCommand.java:162)
at com.ibm.wps.portlets.struts.WpsStrutsUtil.executeCommand(WpsStrutsUtil.java:1414)
at com.ibm.wps.portlets.struts.WpsStrutsUtil.executeCommand(WpsStrutsUtil.java:1322)
at com.ibm.wps.portlets.struts.WpsStrutsUtil.executeSavedCommand(WpsStrutsUtil.java:1240)
at com.ibm.wps.portlets.struts.WpsStrutsUtil.forward(WpsStrutsUtil.java:1056)
at com.ibm.wps.portlets.struts.PortletApiUtilsImpl.forward(PortletApiUtilsImpl.java:612)
at com.ibm.struts.taglib.logic.ForwardTag.doEndTag(ForwardTag.java:95)
at com.ibm._jsp._portalIndex._jspService(_portalIndex.java:109)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:93)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1585)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:775)
at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)
at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:215)
at com.ibm.ws.jsp.webcontainerext.JSPExtensionProcessor.handleRequest(JSPExtensionProcessor.java:255)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:670)
at com.ibm.wps.pe.pc.legacy.impl.PortletContextImpl.includeDirect(PortletContextImpl.java:245)
at com.ibm.wps.pe.pc.legacy.impl.PortletContextImpl.include(PortletContextImpl.java:197)
at com.ibm.wps.portlets.struts.WpsStrutsUtil.include(WpsStrutsUtil.java:2179)
at com.ibm.wps.portlets.struts.WpsStrutsViewJspCommand.includeURL(WpsStrutsViewJspCommand.java:189)
at com.ibm.wps.portlets.struts.WpsStrutsViewJspCommand.execute(WpsStrutsViewJspCommand.java:162)
at com.ibm.wps.portlets.struts.WpsStrutsUtil.executeCommand(WpsStrutsUtil.java:1414)
at com.ibm.wps.portlets.struts.WpsStrutsUtil.executeCommand(WpsStrutsUtil.java:1322)
at com.ibm.wps.portlets.struts.WpsStrutsUtil.executeSavedCommand(WpsStrutsUtil.java:1240)
at com.ibm.wps.portlets.struts.WpsStrutsPortlet.doService(WpsStrutsPortlet.java:1325)
at com.ibm.wps.portlets.struts.WpsStrutsPortlet.doView(WpsStrutsPortlet.java:1368)
at org.apache.jetspeed.portlet.PortletAdapter.service(PortletAdapter.java:158)
at com.ibm.wps.pe.pc.legacy.invoker.impl.PortletDelegateImpl._dispatch(PortletDelegateImpl.java:343)
at com.ibm.wps.pe.pc.legacy.invoker.impl.PortletDelegateImpl.access$200(PortletDelegateImpl.java:61)
at com.ibm.wps.pe.pc.legacy.invoker.impl.PortletDelegateImpl$Context.callPortlet(PortletDelegateImpl.java:492)
at com.ibm.wps.pe.pc.legacy.services.PortletFilterServiceImpl.doFilter(PortletFilterServiceImpl.java:367)
at com.ibm.wps.pe.pc.legacy.services.PortletFilter.doFilter(PortletFilter.java:42)
at com.ibm.wps.pe.pc.legacy.invoker.impl.PortletDelegateImpl.dispatch(PortletDelegateImpl.java:132)
at org.apache.jetspeed.portlet.Portlet.doGet(Portlet.java:499)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at com.ibm.wps.pe.pc.legacy.cache.CacheablePortlet.service(CacheablePortlet.java:120)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at org.apache.jetspeed.portlet.Portlet.service(Portlet.java:493)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1585)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:775)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:670)
at com.ibm.wps.pe.om.definition.impl.ServletDefinitionImpl$RDWrapper.include(ServletDefinitionImpl.java:419)
at com.ibm.wps.pe.pc.legacy.invoker.impl.PortletInvokerImpl.callMethod(PortletInvokerImpl.java:377)
at com.ibm.wps.pe.pc.legacy.invoker.impl.PortletInvokerImpl.render(PortletInvokerImpl.java:104)
at com.ibm.wps.pe.pc.legacy.PortletContainerImpl.callPortletMethod(PortletContainerImpl.java:1260)
at com.ibm.wps.pe.pc.legacy.PortletContainerImpl.renderPortlet(PortletContainerImpl.java:457)
at com.ibm.wps.pe.pc.PortletContainerImpl.doRenderPortlet(PortletContainerImpl.java:595)
at com.ibm.wps.pe.ext.render.AbstractRenderManager.performService(AbstractRenderManager.java:264)
at com.ibm.wps.pe.pc.PortletContainerImpl.renderPortlet(PortletContainerImpl.java:115)
at com.ibm.wps.engine.tags.PortletRenderTag.doStartTag(PortletRenderTag.java:161)
at com.ibm._jsp._Control._jspx_meth_portal$1skin_portletRender_0(_Control.java:149)
at com.ibm._jsp._Control._jspx_meth_portal$1logic_if_1(_Control.java:181)
at com.ibm._jsp._Control._jspService(_Control.java:108)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:93)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1585)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1534)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:113)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:82)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:772)
at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)
at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:215)
at com.ibm.ws.jsp.webcontainerext.JSPExtensionProcessor.handleRequest(JSPExtensionProcessor.java:255)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:670)
at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.handleRequest(DispatcherServiceImpl.java:87)
at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.include(DispatcherServiceImpl.java:52)
at com.ibm.wps.services.dispatcher.Dispatcher.include(Dispatcher.java:45)
at com.ibm.wps.engine.templates.skins.Default.render(Default.java:118)
at com.ibm.wps.engine.templates.SkinTemplate.render(SkinTemplate.java:71)
at com.ibm.wps.composition.elements.Component.render(Component.java:782)
at com.ibm.wps.composition.elements.Control.render(Control.java:132)
at com.ibm.wps.composition.Composition.render(Composition.java:2586)
at com.ibm.websphere.personalization.transformation.PznTransformationLayoutModel.render(PznTransformationLayoutModel.java:70)
at com.ibm.wps.model.wrappers.LayoutModelWrapperFactoryImpl$LayoutModelWrapperImpl.render(LayoutModelWrapperFactoryImpl.java:218)
at com.ibm.wps.model.ModelUtil$WrappedCompositionModel.render(ModelUtil.java:911)
at com.ibm._jsp._UnlayeredContainer_2D_H._jspService(_UnlayeredContainer_2D_H.java:100)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:93)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1585)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1534)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:113)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:82)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:772)
at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)
at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:215)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:670)
at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.handleRequest(DispatcherServiceImpl.java:87)
at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.include(DispatcherServiceImpl.java:52)
at com.ibm.wps.services.dispatcher.Dispatcher.include(Dispatcher.java:45)
at com.ibm.wps.engine.templates.skins.Default.render(Default.java:118)
at com.ibm.wps.engine.templates.SkinTemplate.render(SkinTemplate.java:71)
at com.ibm.wps.composition.elements.Component.render(Component.java:782)
at com.ibm.wps.composition.Composition.render(Composition.java:2586)
at com.ibm.websphere.personalization.transformation.PznTransformationLayoutModel.render(PznTransformationLayoutModel.java:70)
at com.ibm.wps.model.wrappers.LayoutModelWrapperFactoryImpl$LayoutModelWrapperImpl.render(LayoutModelWrapperFactoryImpl.java:218)
at com.ibm.wps.model.ModelUtil$WrappedCompositionModel.render(ModelUtil.java:911)
at com.ibm._jsp._UnlayeredContainer_2D_V._jspService(_UnlayeredContainer_2D_V.java:89)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:93)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1585)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1534)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:113)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:82)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:772)
at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)
at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:215)
at com.ibm.ws.jsp.webcontainerext.JSPExtensionProcessor.handleRequest(JSPExtensionProcessor.java:255)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:670)
at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.handleRequest(DispatcherServiceImpl.java:87)
at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.include(DispatcherServiceImpl.java:52)
at com.ibm.wps.services.dispatcher.Dispatcher.include(Dispatcher.java:45)
at com.ibm.wps.engine.templates.skins.Default.render(Default.java:118)
at com.ibm.wps.engine.templates.SkinTemplate.render(SkinTemplate.java:71)
at com.ibm.wps.composition.elements.Component.render(Component.java:782)
at com.ibm.wps.composition.Composition.render(Composition.java:2586)
at com.ibm.websphere.personalization.transformation.PznTransformationLayoutModel.render(PznTransformationLayoutModel.java:70)
at com.ibm.wps.model.wrappers.LayoutModelWrapperFactoryImpl$LayoutModelWrapperImpl.render(LayoutModelWrapperFactoryImpl.java:218)
at com.ibm.wps.model.ModelUtil$WrappedCompositionModel.render(ModelUtil.java:911)
at com.ibm._jsp._UnlayeredContainer_2D_H._jspService(_UnlayeredContainer_2D_H.java:100)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:93)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1585)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1534)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:113)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:82)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:772)
at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)
at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:215)
at com.ibm.ws.jsp.webcontainerext.JSPExtensionProcessor.handleRequest(JSPExtensionProcessor.java:255)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:670)
at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.handleRequest(DispatcherServiceImpl.java:87)
at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.include(DispatcherServiceImpl.java:52)
at com.ibm.wps.services.dispatcher.Dispatcher.include(Dispatcher.java:45)
at com.ibm.wps.engine.templates.skins.Default.render(Default.java:118)
at com.ibm.wps.engine.templates.SkinTemplate.render(SkinTemplate.java:71)
at com.ibm.wps.composition.elements.Component.render(Component.java:782)
at com.ibm.wps.composition.Composition.render(Composition.java:2586)
at com.ibm.websphere.personalization.transformation.PznTransformationLayoutModel.render(PznTransformationLayoutModel.java:70)
at com.ibm.wps.model.wrappers.LayoutModelWrapperFactoryImpl$LayoutModelWrapperImpl.render(LayoutModelWrapperFactoryImpl.java:218)
at com.ibm.wps.engine.tags2.PageRenderTag.doStartTag(PageRenderTag.java:396)
at com.ibm._jsp._Home._jspService(_Home.java:82)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:93)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1585)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1534)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:113)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:82)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:772)
at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)
at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:215)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:670)
at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.handleRequest(DispatcherServiceImpl.java:87)
at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.include(DispatcherServiceImpl.java:52)
at com.ibm.wps.services.dispatcher.Dispatcher.include(Dispatcher.java:54)
at com.ibm.wps.engine.templates.screens.Default.render(Default.java:91)
at com.ibm.wps.engine.templates.ScreenTemplate.render(ScreenTemplate.java:61)
at com.ibm.wps.engine.tags2.ScreenRenderTag.doStartTag(ScreenRenderTag.java:89)
at com.ibm._jsp._Default._jspx_meth_wps_screenRender_0(_Default.java:483)
at com.ibm._jsp._Default._jspService(_Default.java:324)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:93)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1585)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1534)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:113)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:82)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:772)
at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)
at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:215)
at com.ibm.ws.jsp.webcontainerext.JSPExtensionProcessor.handleRequest(JSPExtensionProcessor.java:255)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:670)
at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.handleRequest(DispatcherServiceImpl.java:87)
at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.include(DispatcherServiceImpl.java:52)
at com.ibm.wps.services.dispatcher.Dispatcher.include(Dispatcher.java:45)
at com.ibm.wps.engine.templates.themes.Default.doDispatch(Default.java:190)
at com.ibm.wps.engine.templates.themes.Default.render(Default.java:152)
at com.ibm.wps.engine.templates.ThemeTemplate.render(ThemeTemplate.java:67)
at com.ibm.wps.engine.phases.WPRenderPhase.processRendering(WPRenderPhase.java:225)
at com.ibm.wps.engine.phases.WPBaseRenderPhase.execute(WPBaseRenderPhase.java:159)
at com.ibm.wps.state.phases.AbstractRenderPhase.next(AbstractRenderPhase.java:106)
at com.ibm.wps.engine.phases.WPAbstractRenderPhase.next(WPAbstractRenderPhase.java:97)
at com.ibm.wps.engine.Servlet.callPortal(Servlet.java:782)
at com.ibm.wps.engine.Servlet.doGet(Servlet.java:620)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1585)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1534)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:136)
at com.ibm.wps.state.filter.StateCleanup.doFilter(StateCleanup.java:86)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:121)
at com.ibm.wps.mappingurl.impl.URLAnalyzer.doFilter(URLAnalyzer.java:263)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:121)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:82)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:772)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3177)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:253)
at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:229)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1970)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:114)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:472)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:411)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:101)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))


PLEASE NOTE: IMPORTANT:
The arrayList and objects are fine...because i am able to print it using scriptlet tags... like this....

<saratoga:GetAgentMessageList portletRequest="<%=portletRequest%>" />





<%
List al = (List)pageContext.getAttribute("messageList");
System.out.println("Hello 2123432 "+al.size());


Iterator it = al.iterator();

while(it.hasNext())
{
AgentMessage am = (AgentMessage) it.next();

System.out.println("Msg Id 1" + am.getMsgId());
System.out.println("Msg Text ----" + am.getMsgText());
System.out.println(" " + am.getMsgFromDate());
System.out.println("" + am.getMsgToDate());
}



System.out.println("Hello777" + pageContext.getAttribute("messageList"));

%>
14 years ago
JSP