Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

org.apache.jasper.JasperException

Posted on 2006-06-23
1
Medium Priority
?
185 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

This month, Experts Exchange sat down with resident SQL expert, Jim Horn, for an in-depth look into the makings of a successful career in SQL.
Tech spooks aren't just for those who are tech savvy, it also happens to those of us running a business. Check out the top tech spooks for business owners.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

636 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