JHeadstart 10.1.2.1: NoSuchElementException in generated JSP

I have generated a jsp with table layout based on a viewobject. In this JSP I can add one new row. If I leave a mandatory field empty I get a message saying the field must have a value (which is correct) and I get a stacktrace in my JSP. This stacktrace only appears when inserting a new row with a invalid value.
Can someone tell me what is causing the stacktrace?
The stacktrace appears in the last cell of the last row (the newly added, invalid row).
java.util.NoSuchElementException
     at java.util.AbstractList$Itr.next(AbstractList.java:426)
     at org.apache.taglibs.standard.tag.common.core.ForEachSupport$SimpleForEachIterator.next(ForEachSupport.java:143)
     at org.apache.taglibs.standard.tag.common.core.ForEachSupport.next(ForEachSupport.java:165)
     at javax.servlet.jsp.jstl.core.LoopTagSupport.doAfterBody(LoopTagSupport.java:301)
     at web2d_inf._page._ReferentietabellenTable._jspService(ReferentietabellenTable.jsp:107)
     [SRC:/WEB-INF/page/ReferentietabellenTable.jsp:24]
     at com.orionserver[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
     at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:222)
     at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
     at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274)
     at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
     at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:320)
     at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
     at oracle.jheadstart.controller.strutsadf.JhsRequestProcessor.process(JhsRequestProcessor.java:385)
     at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
     at oracle.jheadstart.controller.strutsadf.JhsActionServlet.process(JhsActionServlet.java:130)
     at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
     at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
     at oracle.jheadstart.controller.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:176)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
     at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:659)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
     at java.lang.Thread.run(Thread.java:534)JSP code:
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ include file="/common/taglibs.jsp" %>
<html>
   <head>
      <link rel="stylesheet" type="text/css" href="<c:out value='${requestContextPath}/jheadstart/css/jspStyles.css'/>"/>
<style type="text/css">
        .invisible {display:none;}
        .visible {display:block;}
</style>
   </head>
   <body>
      <jsp:include page="/common/routerForm.jsp" flush="true">
         <jsp:param name="dataFormName" value="ReferentietabellenBean"/>
      </jsp:include>
      <jsp:include page="/common/header.jsp" flush="true"/>
      <jsp:include page="RBSReferentieServiceTabBar.jsp" flush="true">
   <jsp:param name="current" value="Referentietabellen"/>
</jsp:include>
      <jsp:include page="/common/breadcrumbs.jsp" flush="true"/>
      <jsp:include page="/common/jhsInfo.jsp" flush="true"/>
      <html:form name="ReferentietabellenBean" action="ReferentietabellenTable.do"
           type="oracle.jheadstart.view.strutsadf.JhsBindingContainerActionForm" scope="session">
         <jsp:include page="/common/hiddenFormFields.jsp" flush="true"/>
         <jsp:include page="/common/timestamp.jsp" flush="true"/>
         <input type="hidden" name="<c:out value='${bindings.statetokenid}'/>" value="<c:out value='${bindings.statetoken}'/>"/>
       <br>
<jsp:include page="/common/heading1.jsp" flush="true">
   <jsp:param name="key" value="TABLE_TITLE_REFERENTIETABELLEN"/>
</jsp:include>
<c:if test="${bindings.ReferentietabellenIterator.findMode!='true'}">
<table id="tgTable" width="50%">
  <c:set var="rangeStart" scope="request" value="${bindings.ReferentietabellenIterator.rangeStart}"/>
<c:set var="rangeSize" scope="request" value="${bindings.ReferentietabellenIterator.rangeSize}"/>
<c:set var="rowCount" scope="request" value="${bindings.ReferentietabellenIterator.estimatedRowCount}"/>
<jsp:include page="/common/tableScrollButtons.jsp" flush="true"/>
  <tr>
   <td>
     <table id="tgItemsTable" cellpadding="1" cellspacing="0" class="tableForm" width="100%">
      <tr class="header">
   <th id="NaamHeader" class="data">
      <bean:message key="REFERENTIETABELLEN_TABLE_NAAM"/>
   </th>
   <th id="SoortHeader" class="data">
      <bean:message key="REFERENTIETABELLEN_TABLE_SOORT"/>
   </th>
   <th id="OmschrijvingHeader" class="data">
      <bean:message key="REFERENTIETABELLEN_TABLE_OMSCHRIJVING"/>
   </th>
   <th class="fixed">
      <bean:message key="DELETE_COLUMN_HEADER"/>
   </th>
   <th class="fixed"/>
</tr>
<c:set var="ReferentietabellenView1NewRows" value="1" scope="request"/>
<c:forEach var="ReferentietabellenView1" varStatus="status" items="${jhsTableBindings.ReferentietabellenView1.rangeSet}">
   <html:hidden name="ReferentietabellenView1" property="rowKeyStr" indexed="true"/>
   <c:set var="editMode" scope="request" value="${!(status.index ge bindings.ReferentietabellenIterator.rangeSize or status.index ge bindings.ReferentietabellenIterator.estimatedRowCount-bindings.ReferentietabellenIterator.rangeStart) and bindings.ReferentietabellenIterator.currentRowIndexInRange!=-1}"/>
        <tr class="altRow<c:out value="${status.index % 2 + 1 }"/>">
      <c:set var="rowKeyStr" scope="request" value="${ReferentietabellenView1.rowKeyStr}"/>
   <html:hidden name="ReferentietabellenView1" property="ReferentietabellenId" indexed="true"/>
   <td nowrap="nowrap">
      <font class="required">*</font>
      <html:text name="ReferentietabellenView1" property="ReferentietabellenNaam" size="25" maxlength="64" indexed="true"/>
   </td>
   <td nowrap="nowrap">
      <font class="required">*</font>
      <html:select name="ReferentietabellenView1" property="ReferentietabellenSoort" indexed="true">
         <option/>
         <html:option value="G">
            <bean:message key="DOMAIN_REFERENTIETABELLENSOORTDOMAIN_G"/>
         </html:option>
         <html:option value="S">
            <bean:message key="DOMAIN_REFERENTIETABELLENSOORTDOMAIN_S"/>
         </html:option>
      </html:select>
   </td>
   <td nowrap="nowrap">
      <html:text name="ReferentietabellenView1" property="ReferentietabellenOmschrijving" size="50" maxlength="256" indexed="true"/>
   </td>
   <td class="fixed">
      <html:checkbox name="ReferentietabellenView1" property="deleteRow" indexed="true"/>
   </td>
   <td class="fixed" nowrap="true">
      <c:if test="${editMode}">
         <jsp:include page="/common/masterToDetailButton.jsp" flush="true">
            <jsp:param name="key" value="REFERENTIETABELLEN_TO_KOLOMMEN_BUTTON"/>
            <jsp:param name="eventValue" value="Kolommen"/>
         </jsp:include>
         <jsp:include page="/common/masterToDetailButton.jsp" flush="true">
            <jsp:param name="key" value="REFERENTIETABELLEN_TO_RIJEN_BUTTON"/>
            <jsp:param name="eventValue" value="Rijen"/>
         </jsp:include>
      </c:if>
   </td>
        </tr>
      </c:forEach>  
     </table>
    </td>
   </tr>
</table>
</c:if> 
        <table id="fbTable">
          <tr>
            <td align="center" valign="bottom" height="40px">
              <jsp:include page="/common/saveButton.jsp" flush="true">
   <jsp:param name="saveKey" value="SAVE_BUTTON_LABEL_REFERENTIETABELLEN"/>
</jsp:include>
            </td>
          </tr>
        </table>        
      </html:form>
      <jsp:include page="/common/footer.jsp" flush="true"/>
   </body>
</html>

I am now getting this issue also in another JSP. It occurs in this JSP when I fill in a wrong value so that a exception is raised on the backend (database) which is catched on the middletier. There a JBO exception is raised. That's all okay, but at the end of the forEach loop in my JSP suddenly the stacktrace appears!
It looks like the iterator contains a invalid element which is created (or not cleared correctly?) when an error occurred.
I have also tried to catch this exception in the JSP and ignore it (dirty, I know), but in that case the next navigation in the page leads to a classcastException in the routerform.jsp and this one could only be solved by restarting OC4J! So that's not really a workaround.
Does anyone else have a suggestion I can try?
Hint: Maybe related with this problem: I also see that sometimes a row is shown twice in the jsp. This only happens after entering a wrong value at creation time, then fill in the right value and commit and only in certain occasions. Then navigate back via the breadcrumbs and voila, two rows instead of one. After a requery the correct rows are shown.

Similar Messages

  • No JavaScript libraries seem to be included in generated JSP pages

    JHeadstart 10g (9.0.4)
    Struts/JSP
    It seems that the generated JSP files do no longer contain the necessary runtime JavaScript libraries.
    Pages generated with 9.0.4Beta 3 contained the statements:
    <script language="javascript" src="jheadstart/form.js"> </script>
    <script language="javascript" src="jheadstart/messages.js"> </script>
    <script language="javascript" src="jheadstart/calendar/calendar.js"> </script>
    Is this intentional? I get JavaScript errors so I have the feeling at least something is wrong.
    thanks and best regards
    Lucas

    Lucas,
    These javascript libs are now defined in routerForm.jsp which is generated as an include in your page.
    When upgrading from an older jheadstart version, make sure you delete all your jsp includes (and uix templates), so the JAG will copy the latest version to your file system.
    Steven.

  • How to edit generated JSPs

    Hi:
    I have created the BC4J components and have generated the JSPs.
    Questions:
    1. How can I edit the generated JSP to change the look and feel of UI. Where is it stored. Is it HTML or it is dynamically generated?. For example I want to hide
    Primary Key form fields from user view.
    2. How do I add List of Values (LOV) functionality to a field in the JSP screen.
    Thanks.
    Ravi

    Hi.
    The wizard generates a JSP with a very basic layout. You can customize the fields that appear on screen by calling methods on the bean that is used (i.e. RowSetBrowser, ViewCurrentRecord).
    For the first question, there usually is a method called setDisplayAttributes().
    regarding the second question, the EditCurrentRecord bean has some method to define the kind of control that is used to display the field (they start with use..., ie useLovField or something like that).
    You should take a look at the documentation for the webbean classes.
    null

  • Auto generated jsps

    Hi,
    when we develop a human task in jdeveloper, we get to automatically generate a jsp.The jsp that gets generated is a oracle made jsp.
    Is there a api or something using which we can make jdev to generate jsp the way we want,
    Please help
    Regards

    Hi,
    Have you tried section 16.5 (Customizing the Worklist Application) in the BPEL Developers Guide (http://download-west.oracle.com/docs/cd/B31017_01/integrate.1013/b28981/worklist.htm#sthref2926)?
    Regards,
    Mathias

  • Template missing for generated JSP ISR form

    Hi all,
    I'm trying to use a generated JSP iView as the input form for an ISR scenario. Here's what I have done:
    <u>1. Scenario definition</u>
    - copied standard scenario SPSP to ZPSP
    - copied additional info SPSP to ZPSP
    - selected scenario entry type as I (Entry using JSP iView)
    - put in Internet link as http://<portal server>:<port>/irj
    <u>2. iView creation</u>
    - defined portal component isr_test2 in scenario, generated -> par file found on local hard drive
    - uploaded par file to portal
    - created iView with par template in portal
    <u>3. iView assignment</u>
    - for the scenario additional info, assigned pcd:portal_content/../<iView ID> as the portal component (I tried this with isr_test2.default, too)
    Unfortunately when I try to display the form, I get an error that the template can't be found. I probably have the portal server or the iView ID setup incorrectly but since I have tried so many combinations already without luck, I thought someone could shed some light to this.
    Best regards,
    Mikko

    Updated the struts build I was using, and this solved the problem. Thanks for taking the time if you read this post.
    Dev

  • Table Generator JSp

    Hi ALL
    I have a question about Table Generator JSP.
    How to work with with Table Generator JSP. I have to create one table generator JSP. With the help of this jsp i have to show data on other JSPs.
    Every Help Will Be Appreciated !

    Not an easy for sure.
    Hints:
    1. Write a custom tag to generate table. Include this tag in any JSP page of your application.
    2. A table is two dimensional view having multiple rows and columns.
    3. You can use a list of value objects to render data in your table.
    4. You can take list (probably a java.util.List) name column names and data source for each column (perhaps method name of your value object) as input to the tag.
    5. In your tag get the list object from session/pageContext. Then iterate through this list and using java reflection obtain column values & render rows.
    You can replace step 3, 4 and 5 by:
    Take two dimensional array of objects (like javax.swing.JTable) as input to the tag to render table data. Also, take a String array to render table header.
    Whatever approach you follow, pass object names as tag attribute and make original object available as attribute in session or page scope.
    Thanks,
    Mrityunjoy

  • Generating Jsp Page On Runtime

    I have a problem regarding generating jsp page on the run time.according to the prefrence the user selects i have to generate a jsp page.suppose 25 feilds are there to be displayed for User A then these 25 feild will be equally divide in two column one column will contain 13 row and one colunm will have 12 rows.these values come from the database and according to that value i have to make the rows and column in the jsp page.the value can be different for different users.can anyone please let me know how this is done.if there is an code example please let me know.
    Regards
    Ved

    you don't need to generate the JSP, but simply generate the HTML according to the user settings (I don't know if this was clear or not, so I have made it explicit)
    Obviusly how to achieve this could be quite complex, but you can try to generate html table according to user preferences (#columns, #rows or try to find out these infos from #total elements)
    Sorry, I've no examples for yuo
    --=> Ivan

  • Generate JSPs from SQL query

    Hello all,
    I am currently creating a web application that will allow a user to create a homepage from a template that is displayed to them. If the user is logging into the system for the first time, the template to create their homepage is displayed to them. However, if the user is logging in and has already used the template to set their homepage options, they are then forwarded to their homepage.
    The users options for their homepage are stored in a database. The problem I am having is trying to generate the jsp page ( with HTML inside also ) using SQL statements that query the table that store the users options.
    Eg. an SQL query queries the DB to see wht options the user has selected. Can anyone help me / advise me how to use these queries to generate the homepage. Thanks in advance!

    Hi aniseed,
    Thanks for a prompt reply.
    So for example can you tell me if the following sample approach is ok.
    <html>
    <head>
    <body>
    <sql:query name="query">
    SELECT * FROM SettingsTable WHERE links == "yes"
    </sql:query>
    <%-- Then to use this query result to insert selected hyperlinks that the user wants in their homepage, I would do the following ....... ? --%>
    <% if (query.size() == 0)
    <table>
    <td>
    <tr>
    </tr>
    </td>
    </table>
    %>
    Thanks again

  • Generating JSP/HTML on the fly

    Hi all,
    The requirement is to be able to generate HTML files (for UI display) on the fly depending on the database table structure. (Consider an EMPLOYEE table for example, an output HTML file needs to be generated based on the fields present in this table).
    To store data (config data) regarding this HTML file (in terms of field names, field types, attributes, etc.) what is suggested is to use an XML file which would have these, then a java file would read these from the XML and give out an other XML which would contain the actual data that will go in to the HTML (such as if the original XML conf. file contained a select statement for a LOV field, then the java file would fetch these and put them inthe final XML file) and so on.. and then have an other XSLT file with the appropriate layout to generate the final HTML.
    Could any one else suggest an alternative technique?
    Thanks and much appreciated.

    read your XML file to a "org.w3c.dom.Document" structure (see the example: http://www.developerfusion.com/show/2064/), then use an XSLT to show the Document in HTML frormat.
    // doc is an instance object of org.w3c.dom.Document
    File stylesheet = new File("style.xsl");
    StreamSource stylesource = new StreamSource(stylesheet);
    File datafile = new File("results.html");
    try {
    // Use a Transformer for output
    TransformerFactory tFactory = TransformerFactory.newInstance();
    Transformer transformer = tFactory.newTransformer(stylesource);
    DOMSource source = new DOMSource(doc);
    StreamResult result = new StreamResult(datafile);
    transformer.transform(source, result);
    catch (TransformerConfigurationException tce) {
    // Error generated by the parser
    System.out.println ("\n** Transformer Factory error");
    System.out.println(" " + tce.getMessage() );
    // Use the contained exception, if any
    Throwable x = tce;
    if (tce.getException() != null)
    x = tce.getException();
    x.printStackTrace();
    catch (TransformerException te) {
    // Error generated by the parser
    System.out.println ("\n** Transformation error");
    System.out.println(" " + te.getMessage() );
    // Use the contained exception, if any
    Throwable x = te;
    if (te.getException() != null)
    x = te.getException();
    x.printStackTrace();

  • Save generated jsp in specific location

    Hi everyone!
    I have an editor to write formatted text and then to preview it in a jsp page. I need to save the generated page in a word document. Can you help me on this?
    How can I save it in a certain location (as jsp or html)? After that, I can tranform it into word, I just need the spacific path.
    Thank you,
    maria

    I have a time sheet form named Timesheet Paperless.pdf I send this form to an employee and tell them to fill their name and employee number in the form. I then ask them to go to File>Save As and name the form INTIALS_TS.pdf . I now would like to a have button with in the form that will open a Save As dialog with the filename INITIALS_TS CurrentDate.pdf under My Documents/Work Files/Time Sheets/. So every new pay period they would click the save button on the form to save the file under the time sheets folder with their intials and the current date the button was pushed. How can I do this in JavaScript?

  • Generate jsp from database table

    Does anyone know of a utility that will take a database table as input and generate a generic maintenance app (jsp) that will allow add/change/delete functionality to the table?
    I tried a utility called JSPMaker, however the code generated is horrid and I'm afraid it will not be maintainable.
    I also loaded Workshop Studio and was hoping that the dbXplorer had that functionality, but have not been successful.
    Thanks in advance!
    Rob

    I think the answer for the first question is JSTL. :)

  • How submit opener window from a PDF generating jsp

    Hi All
    I have a parent JSP & onclick button, need to open a child window, which generate's PDF. Once successfully generated PDF, may be child or parent should display a message stating STATUS, if user select YES / NO, (according to user selection) database tables will be updated/inserted.
    Currently I can see the PDF but message is not generated either in child or parent, I do understand the reason also. Is there any way that I can dispaly a status message once PDF is generated?
    I just want is a small Idea will be appriciated....
    thanks in advance
    balmiki

    HI Ceci
    Sorry that you could not understand... again I shall explain to you
    1) I have a main window... & on click of button in it, open's a popup wndow.
    popup_win('ChildWindow.jsp?'+sQry,600,650)2) this popup wnidow calls java API's & generates PDF in the browser. Though it generates PDF in the browser so no javascript works.
    isPrinted = bizPassbookTrxn.printPassbookTrxn(response, sAcctNo, sClientNo,sPassbookNo, sFundId, iRowCount, sFormNarrative, sUserName, isPrinted); if(isPrinted){
    out.println("<SCRIPT>");
    out.println(" var sQry = 'acctno="+sAcctNo + "&clientno="+ sClientNo +"&passbookno="+sPassbookNo+"&fundid="+sFundId+"&formnarrative="+sFormNarrative+"&rowcount="+iRowCount+"&userName="+sUserName+"&isPrinted="+isPrinted+"&mode="+sMode+"&opMode=print';");
    out.println("opener.document.passbookTrxnForm.action='ParentWindow.jsp?'+sQry;");
    out.println("opener.document.passbookTrxnForm.submit();");
    out.println("</SCRIPT>");
    3) Peoblem is... I want to diplay a confirmation message to the user whenever he generates the PDF.
    4) I know display message is not possible in popup window ...so I tried submiting parent window as above... but no result...
    how can I display message in parent window?
    hope u can understand now...
    regards
    balmiki

  • No Compiler found for generated JSP source

    I am trying to deploy a web application JSP with J2EE implementation server on windows XP. I used autodeply but i get the following error on my browser. I already tried to copy tools.jar from D:\j2sdk1.4.2_07\lib to D:\Sun\AppServer\lib and restarted the server but i'm still getting the following error.
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    No Java compiler was found to compile the generated source for the JSP.
    This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK
    to the common/lib directory of the Tomcat server, followed by a Tomcat restart.
    If using an alternate Java compiler, please check its installation and access path.
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:87)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:311)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:378)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:421)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:402)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:512)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:262)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:263)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:210)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
         sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:324)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
    note The full stack trace of the root cause is available in the Sun-Java-System/Application-Server-PE-8.0 logs.

    I checked my server.log file and it is looks like the following but it is suggesting the same thing reported in my browser window i.e tools.jar
    No Java compiler was found to compile the generated source for the JSP.
    This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK
    to the common/lib directory of the Tomcat server, followed by a Tomcat restart.
    If using an alternate Java compiler, please check its installation and access path.
         at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:87)
         at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:311)
         at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:378)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:421)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:402)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:512)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:262)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:263)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:210)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
         at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:236)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:145)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:141)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:214)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:168)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:144)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:133)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:539)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
         at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
         at com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:254)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
         at com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:114)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
         at com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:166)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:936)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:165)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:683)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:604)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:542)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:647)
         at java.lang.Thread.run(Thread.java:534)
    |#]

  • Generated JSP reports and context-param in web.xml

    I have what I believe to be a problem when using .jsp files generated from reports builder (actually, it looks as if the problem is in the reports tag library. When adding a context-param to web.xml, I get an error when compiling the following line:
    <%@ taglib uri="/WEB-INF/lib/reports_tld.jar" prefix="rw" %>
    Error(1): oracle.xml.parser.v2.XMLParseException: Invalid element 'context-param' in content of 'web-app', expected elements '[taglib, resource-ref, security-constraint, login-config, security-role, env-entry, ejb-ref]'.
    Note that I can read the context param and no other JSP pages seem to care, just those with the Reports Tag library.
    Regards,
    Jeff

    Ben -
    There can be init params for the servlet or for the servlet context. For the servlet, this looks like:
    <servlet>
    <servlet-name>InitServlet</servlet-name>
    <servlet-class>package1.InitServlet</servlet-class>
    <init-param>
    <param-name>message</param-name>
    <param-value>Hello From Initialization Parameter</param-value>
    </init-param>
    </servlet>
    in the web.xml file, and is accessed using:
    public void init(ServletConfig config) throws ServletException
    super.init(config);
    message = config.getInitParameter("message");
    For a servlet context init param, you define it as you did using the web.xml settings editor:
    <context-param>
    <param-name>hello</param-name>
    <param-value>hi</param-value>
    </context-param>
    This is accessed using:
    public void init(ServletConfig config) throws ServletException
    super.init(config);
    message1 = config.getServletContext().getInitParameter("hello");
    Hope this helps,
    Lynn
    Java Tools Team

  • Out of Memory Error when generating JSP

    Hi,
    I have a bit of a problem. I?m trying to generate quite a large JSP file (a table with about 1500 rows). The problem is that I get an out of memory error when the JSP is being generated. And it is definitely that the JSP is too large, or rather the HTML being generated from it. Now I was under the impression that the JSP page was flush now and again, but I tried to set all the different flush options and I have also tried to manually flush the page. Nothing of this made any difference except for displaying a white page instead of an error page since the header was already sent. Now this suggests to me that the page is being cached internally by the server and then sent to the client. So is there anything I can do about this?
    Regards
    Hertz

    You are building an HTML table with 1500 rows? That is definitely a lot. And I assume you are also putting some styling on that table...
    These days programmers resource to [url en.wikipedia.org/wiki/AJAX]AJAX techniques for things like that.
    You can, for example, send the table data as a list of comma separated values, and then use Javascript on the browser to create a partial table with options to browse through the different pages of data.
    If you need to show all that data in one single page, you can still try sending just the data as CSV or XML and then building the table on the browser via a Javascript loop. Use CSS for the styling so you don't overload the HTML code with styling information.
    Marcos Broc
    Hi,
    I have a bit of a problem. I?m trying to generate
    quite a large JSP file (a table with about 1500
    rows). The problem is that I get an out of memory
    error when the JSP is being generated. And it is
    definitely that the JSP is too large, or rather the
    HTML being generated from it. Now I was under the
    impression that the JSP page was flush now and again,
    but I tried to set all the different flush options
    and I have also tried to manually flush the page.
    Nothing of this made any difference except for
    displaying a white page instead of an error page
    since the header was already sent. Now this suggests
    to me that the page is being cached internally by the
    server and then sent to the client. So is there
    anything I can do about this?
    Regards
    Hertz

Maybe you are looking for

  • Global Temp Table vs. PL/SQL Table

    Hi, I'm trying to find out which better (efficient) to use in coding, a Global Temporary Table or PL/SQL table. The process requires evaluation to what data stored in the tbale. Thanks in advance.

  • Premiere Elements 9 Project Media View List & Icon Icons Gone

    Today at another forum that I frequent, a Premiere Elements 9 user was distressed because he could not find the List (Ctrl + Page Up) & Icon (Ctrl _ Page Down) icons that were found in the prior version of the Project Media View. The Icon view was pa

  • Error encountered while running Reprots 9i

    Hi, I am getting following error on runninf reports 9i on Solaris machine . Please help. An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0xfe991918 Function name=Java_oracle_reports_engin

  • Dialog help

    When i press the calculate button it will calculate a price depending on the options chosen and show the results in an OptionDialog. I need help with the two buttons (New Quote and Close), I want it so that if i press New Quote it will return to the

  • SAP EP 7.0 Error in accessing Import function of CustomizedTranport role.

    Hi All, I have a business requirement of Creating Transport role which should access only Transport Navigational Tab in EP 7.0. For that, I have created a role and added Standard System admin role as role to role and i hide the Navigational tabs exce