Solved

org.apache.jasper.JasperException

Posted on 2006-06-23
1
175 Views
Last Modified: 2010-04-01
Guys I included a right column in all my pages of the website

It works fine with all the pages but somehow it doesn't work with one of the webpage and gves this error

org.apache.jasper.JasperException

does anyone know what can be the problem and is there any way I can find ot


the code of the right column is

----------------------------------------------------------------------------------------------------------------------------

<!-- Start Right Column -->
            <%
            ArrayList add_collection = (ArrayList)request.getAttribute("Adds");
            Iterator add_iterator    = add_collection.iterator();
            %>
        <td width="140" align="right" valign="top">
               
                  <table width="130">
                  <tr>
                        <td><img src="images/button_sponsors.gif" width="125" height="41"></td>
                  </tr>
                  <% while(add_iterator.hasNext()) {
                        ChapterSponsor chapter_add = (ChapterSponsor) add_iterator.next();
                              %>
                  <tr>
                        <td><img src="/chapters/attachments/sponsors/<%=chapter_ID%><%=chapter_add.getSponsor_ID()%>" width="120" height="60"></td>
                  </tr>
                  <%}%>
                  </table>
            </td>
<!-- End of Right column -->

-------------------------------------------------------------------------------------------------------------------------------------------------------------
0
Comment
Question by:royalcyber
1 Comment
 
LVL 23

Accepted Solution

by:
Siva Prasanna Kumar earned 500 total points
Comment Utility
Nothing seems to be wrong but i doudt that your collection object is null.
try this

 <!-- Start Right Column -->
          <%
          try{
          ArrayList add_collection = (ArrayList)request.getAttribute("Adds");
          Iterator add_iterator    = add_collection.iterator();
          %>
        <td width="140" align="right" valign="top">
             
               <table width="130">
               <tr>
                   <td><img src="images/button_sponsors.gif" width="125" height="41"></td>
               </tr>
               <% while(add_iterator.hasNext()) {
                    ChapterSponsor chapter_add = (ChapterSponsor) add_iterator.next();
                         %>
               <tr>
                    <td><img src="/chapters/attachments/sponsors/<%=chapter_ID%><%=chapter_add.getSponsor_ID()%>" width="120" height="60"></td>
               </tr>
               <%
                 }
                } catch(Exception e)
                  {
                        e.printStackTrace();
                  }
%>
               </table>
          </td>
<!-- End of Right column -->

and put forward the exception if any.

More On with jasper exception, it will give extra details (stack trace) please put forward those details too so that we can help better.

Thank Yoy
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

In this step by step tutorial with screenshots, we will show you HOW TO: Enable SSH Remote Access on a VMware vSphere Hypervisor 6.5 (ESXi 6.5). This is important if you need to enable SSH remote access for additional troubleshooting of the ESXi hos…
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
This video discusses moving either the default database or any database to a new volume.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now