Solved

org.apache.jasper.JasperException

Posted on 2006-06-23
1
177 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
ID: 16970882
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

How do we balance the user experience (UX) with reasonable security measures? It can be done, if you keep these fundamentals in mind.
An article on effective troubleshooting
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

776 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