Solved

org.apache.jasper.JasperException

Posted on 2006-06-23
1
179 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
J2SE 5.0 metadata 1 67
error when compiling my project in eclipse luna 30 505
tomcat startup error 5 136
batch vs regular insert in spring DAO 2 24
Always backup Domain, SYSVOL etc.using processes according to Microsoft Best Practices. This is meant as a disaster recovery process for small environments that did not implement backup processes and did not run a secondary domain controller that ne…
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

733 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