?
Solved

org.apache.jasper.JasperException

Posted on 2006-06-23
1
Medium Priority
?
188 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 1500 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Currently, there is an issue with being able to copy values from an external application to a dropdown list in Project Web Access (PWA).  The standard copy and paste methods don't seem to work properly. Here is a way to accomplish this task to s…
Social messanging services like WhatsApp and Facebook can help businesses in ways that many owners don't even imagine, giving new opportunities to connect with customers. Discover some of the most innovative things they can do for your company.
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

864 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