html:submit causes HTTP Status 500

Hi guys,
I did some modification to my struts project and apparently I am getting the notorious message below. I removed the tags:
<html:submit> and </html:submit>
And the project works! What is the reason this is happening and how can I use those tags?
* I checked to verify and my struts-html-el.tld is located under the /WEB-INF
Thanks
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Exception in JSP: /login.jsp:50
47:                           </tr>     
48:                           <tr>
49:                               <td colspan="2" align="center">
50:                                    <html:submit>
51:                                         <fmt:message key="login.button.signon"/>
52:                                    </html:submit>
53:                                    
Stacktrace:
     org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
     sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     java.lang.reflect.Method.invoke(Unknown Source)
     org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
     java.security.AccessController.doPrivileged(Native Method)
     javax.security.auth.Subject.doAsPrivileged(Unknown Source)
     org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)

oh...i forgot...the root cause:
root cause
java.lang.NoClassDefFoundError
     org.apache.jasper.runtime.PageContextImpl.pushBody(PageContextImpl.java:722)
     org.apache.jasper.runtime.PageContextImpl.pushBody(PageContextImpl.java:712)
     org.apache.jsp.login_jsp._jspx_meth_html_submit_0(login_jsp.java:431)
     org.apache.jsp.login_jsp._jspx_meth_html_form_0(login_jsp.java:262)
     org.apache.jsp.login_jsp._jspService(login_jsp.java:110)
     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
     sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     java.lang.reflect.Method.invoke(Unknown Source)
     org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
     java.security.AccessController.doPrivileged(Native Method)
     javax.security.auth.Subject.doAsPrivileged(Unknown Source)
     org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
     org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)

Similar Messages

  • HTTP Status 500 -

    Add_Product.java
    import java.io.*;
    import java.net.*;
    import java.sql.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import mysql.daofactory.DaoFactory;
    import mysql.daoqueryclass.DaoQueryClass;
    import mysql.daoqueryinterface.DaoQueryInterface;
    public class Add_Product extends HttpServlet
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    response.setContentType("text/html;charset=UTF-8");
    PrintWriter out = response.getWriter();
    try {
    String product_code=request.getParameter("product_code");
    String product_name=request.getParameter("product_name");
    String quantity=request.getParameter("quantity");
    String dom=request.getParameter("dom");
    String uom=request.getParameter("uom");
    String packag=request.getParameter("packag");
    DaoFactory dao=new DaoFactory();
    Connection con1=dao.getConnection();
    DaoQueryInterface daoi=(DaoQueryInterface) new DaoQueryClass();
    Connection con2=dao.getConnection();
    // int rs=daoi.addproduct(con2, product_code, product_name, quantity, dom, uom, packag);
    int add=daoi.addproduct(con2, product_code, product_name, quantity, dom, uom, packag);
    // if(rs.next())
    if(add!=0)
    request.setAttribute("SUCCESS", "new product addess");
    RequestDispatcher rd=getServletContext().getRequestDispatcher("/Product_details.jsp");
    rd.forward(request, response);
    else
    catch (Exception ex) {
    request.setAttribute("ERROR","Error While Loading the Form..Now Go ahead...");
    RequestDispatcher rd = getServletContext ( ) .getRequestDispatcher ( "/Product_details.jsp" ) ;
    rd.forward ( request, response ) ;
    ex.printStackTrace();
    out.close();
    Product_details.jsp
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@page import="mysql.daofactory.DaoFactory,mysql.daoqueryclass.DaoQueryClass,mysql.daoqueryinterface.DaoQueryInterface"%>
    <%@page import="java.sql.*"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <script language="javascript" src="JSCRIPTcalendar\calenda.js" type="text/javascript"></script>
    <link href="JSCRIPTcalendar\calendar.css" rel="stylesheet" type="text/css"></link>
    <SCRIPT src="JSCRIPTcalendar\check.js"></SCRIPT>
    <title>JSP Page</title>
    </head>
    <body>
    <form method=post action= "/src/java/Add_Product">
    <p> </p>
    <center>
    <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="77%" id="AutoNumber1">
    <tr>
    <td width="50%">Product Code</td>
    <td width="50%"><input type="text" name="product_code" size="20"></td>
    </tr>
    <tr>
    <td width="50%">Product Name</td>
    <td width="50%"><input type="text" name="product_name" size="20"></td>
    </tr>
    <tr>
    <td width="50%">Quantity</td>
    <td width="50%"><input type="text" name="quantity" size="20"></td>
    </tr>
    <tr>
    <td width="50%">Date of Manufacture</td>
    <td width="50%"><input type="text" name="dom" size="20"></td>
    </tr>
    <tr>
    <td width="50%">Unit of Manufacture</td>
    <td width="50%"><input type="text" name="uom" size="20"></td>
    </tr>
    <tr>
    <td width="50%">Package Type</td>
    <td width="50%"><input type="text" name="package" size="20"></td>
    </tr>
    </table></center>
    <p> </p>
    <p align="center"><input type="submit" value="Submit" name="B1" onclick="javascript:return check();" style="color: #FFFFFF; font-weight: bold; border: 1px solid #FFFFFF; background-color: #003366; width:100; height:30; font-family:Arialsans-serif; font-size:12pt"> <input type="reset" value="Reset" name="B2"></p>
    <p align="center"> </p>
    </form>
    <% if(request.getAttribute("SUCCESS")!=null){%>
    <%= request.getAttribute("SUCCESS")%>
    </body>
    </html>
    <script language ="javascript" type="text/javascript">
    function check()
    if(
    isBlank('AddingProject','product_code') && isNumber('AddingProject','product_name') && isNumber('AddingProject','quantity') && isNumber('AddingProject','dom') && isNumber('AddingProject','uom') && isBlank('AddingProject','package')
    { return true; }
    else { return false; }
    </script>
    I have the following error
    HTTP Status 500 -
    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
    An error occurred at line: -1 in the jsp file: null
    Generated servlet error:
    [javac] Compiling 1 source file
    C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\Logistics\org\apache\jsp\Product_005fdetails_jsp.java:123: 'catch' without 'try'
    } catch (Throwable t) {
    ^
    C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\Logistics\org\apache\jsp\Product_005fdetails_jsp.java:34: 'try' without 'catch' or 'finally'
    try {
    ^
    C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\Logistics\org\apache\jsp\Product_005fdetails_jsp.java:135: '}' expected
    ^
    3 errors
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:127)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:351)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:553)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         Add_Product.doGet(Add_Product.java:53)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    note The full stack trace of the root cause is available in the Tomcat logs.
    Apache Tomcat/5.0.19
    please help me.....
    Edited by: GeethaKaliyamoorthy on Aug 9, 2008 2:49 AM
    Edited by: GeethaKaliyamoorthy on Aug 9, 2008 2:50 AM

    hi Mam,
    A simple mistake done in your code i.e in jsp code(product_details.jsp)
    you open the bracket for jsp code but not closed thats why error coming
    just close the bracket after the condition error will be solved

  • Connection - HTTP Status 500 error

    Hi, getting the following error??
    HTTP Status 500 -
    type Exception report
    message
    descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP
    PWC6197: An error occurred at line: 43 in the jsp file: /index.jsp
    PWC6199: Generated servlet error:
    string:///index_jsp.java:104: ')' expected
    PWC6197: An error occurred at line: 43 in the jsp file: /index.jsp
    PWC6199: Generated servlet error:
    string:///index_jsp.java:104: not a statement
    PWC6197: An error occurred at line: 43 in the jsp file: /index.jsp
    PWC6199: Generated servlet error:
    string:///index_jsp.java:104: ';' expected
    PWC6199: Generated servlet error:
    string:///index_jsp.java:122: 'catch' without 'try'
    PWC6199: Generated servlet error:
    string:///index_jsp.java:122: ')' expected
    PWC6199: Generated servlet error:
    string:///index_jsp.java:122: not a statement
    PWC6199: Generated servlet error:
    string:///index_jsp.java:122: ';' expected
    PWC6199: Generated servlet error:
    string:///index_jsp.java:130: 'finally' without 'try'
    PWC6199: Generated servlet error:
    string:///index_jsp.java:33: 'try' without 'catch' or 'finally'
    PWC6199: Generated servlet error:
    string:///index_jsp.java:134: reached end of file while parsing
    The code below+
    +*>>>*+
    <%--
    Document : index
    Created on : Mar 9, 2010, 3:26:07 PM
    Author : Administrator
    --%>
    <%@ page language="java" import="java.sql.*" %>
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <% Class.forName("oracle.jdbc.OracleDriver"); %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <HTML>
    <HEAD>
    <TITLE>Fetching Data From a Database</TITLE>
    </HEAD>
    <BODY>
    <H1>Database Lookup</H1>
    <FORM ACTION="index.jsp" METHOD="POST">
    Please enter the ID of the publisher you want to find:
    <BR>
    <INPUT TYPE="TEXT" NAME="id">
    <BR>
    <INPUT TYPE="SUBMIT" value="Submit">
    </FORM>
    <H1>Fetching Data From a Database</H1>
    <%
    Connection connection = DriverManager.getConnection(
    "jdbc:oracle:thin:@localhost:1521:orcl","test","test");
    Statement statement = connection.createStatement();
    String id = request.getParameter("id");
    ResultSet resultset =
    statement.executeQuery("select * from tableName where id = '" id "'") ;
    if(!resultset.next()) {
    out.println("Sorry,could not find that publisher. Please <A HREF='tryAgain.html'>try again</A>.");
    } else {
    %>
    </BODY>
    </HTML>

    The braces seemed to have sorted out??
    The Oracle driver is called oracle.jdbc.OracleDriver is throwing up an error??
    Should it have the path and jar name??
    HTTP Status 500 -
    type Exception report
    message
    descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver
    root cause
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver

  • HTTP Status 500 Bug might be difficult.

    form action="myGroupRegistration" method="post" name="GroupRegistration" id="GroupRegistration">
    the web.xml file in WEB-INF is the following
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
         <servlet>
              <servlet-name>GroupRegistration</servlet-name>
              <servlet-class>GroupRegistration</servlet-class>
         </servlet>
         <servlet-mapping>
              <servlet-name>GroupRegistration</servlet-name>
              <url-pattern>/Activities/myGroupRegistration</url-pattern>
         </servlet-mapping>
    </web-app>
    The source code of the GroupRegistration.java file is the following:
    package mypackage;
    import java.sql.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class GroupRegistration extends HttpServlet
    Connection con;
    public void doPost (HttpServletRequest req, HttpServletResponse res)
                             throws ServletException, java.io.IOException
         handleForm(req, res);
    public void init() throws ServletException {
         try{
         /* Loading the driver for the database */
         Class.forName("com.mysql.jdbc.Driver");
         Connection Con = DriverManager.getConnection("jdbc:mysql://localhost/se?user=luser&password=");
         catch (ClassNotFoundException e) {
         throw new UnavailableException("Couldn't load JdbcOdbcDriver");
         catch (SQLException e) {
         throw new UnavailableException("Couldn't get db connection");
         private void handleForm(HttpServletRequest req, HttpServletResponse res)
         throws ServletException {
         //ServletOutputStream out = res.OutputStream();
         //res.setContentType("text/html");
         //Extract the form Data Here
         String group = req.getParameter("GroupNo");
         String Name1 = req.getParameter("Name1");
         String LoginID1 = req.getParameter("LoginID1");
         String Name2 = req.getParameter("Name2");
         String LoginID2 = req.getParameter("LoginID2");
         String Name3 = req.getParameter("Name3");
         String LoginID3 = req.getParameter("LoginID3");
         String Name4 = req.getParameter("Name4");
         String LoginID4 = req.getParameter("LoginID4");
         String URL = req.getParameter("URL");
         String Title2 = req.getParameter("Title2");
         String date = req.getParameter("date");
         String INSERT = "INSERT INTO registration (groupno, name1, loginid1, name2, loginid2, name3, loginid3, name4, loginid4, url, topic, date) VALUES (" + group + "," + Name1 + "," + LoginID2 + "," + Name2 + "," + LoginID2 + "," + Name3 + "," + LoginID3 + "," + Name4 + "," + LoginID4 + "," + URL + "," + Title2 + "," + date + ")";
         PreparedStatement pstmt = null;
         try{
         pstmt = con.prepareStatement(INSERT);
         pstmt.executeUpdate();
         catch (SQLException e) {
         throw new ServletException(e);
         finally {
         try {
         if (pstmt != null)pstmt.close();
         catch (SQLException ignored){
    I have the class file in \WEB-INF\classes\mypackage directory
    And when i press the submit button it moutputs the following:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Wrapper cannot find servlet class GroupRegistration or a class it depends on
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:891)
         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:668)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
         at java.lang.Thread.run(Thread.java:534)
    root cause
    java.lang.ClassNotFoundException: GroupRegistration
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1443)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1289)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:885)
         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:668)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
         at java.lang.Thread.run(Thread.java:534)
    CAN SOMEBODY HELP ME PLEASE?

    That did the work ....
    I actually found it before your comment but THANKS ANYWAY.
    I hope your comment will help others.
    The program now has another problem in my 69th line of my servlet code
         PreparedStatement pstmt = null;
         try{
    Here*     pstmt = con.prepareStatement(INSERT);
         pstmt.executeUpdate();
         catch (SQLException e) {
         throw new ServletException(e);
         finally {
         try {
         if (pstmt != null)pstmt.close();
         catch (SQLException ignored){
    the output from the Server is
    java.lang.NullPointerException
         at mypackage.GroupRegistration.handleForm(GroupRegistration.java:69)
    It somethink about the connectivity?
    But if it it why?
    It initialises correct with the database in the init() method...
    :( Weird stuff

  • Error message - HTTP Status 500 -

    sir,
    i deployed my struts application using simple form bean and am getting the error message HTTP Status 500- . please guide me to solve this problem. im presenting you the source code i had written. please kindly check this and give the solution.
    this is the login.html
    <html>
    <body bgcolor=#23533234>
    <center>
    <pre>
    <form action=login.do>
    <font size=10 color=pink>welcome</font>
    <font size=5 color=pink>
    username:<input type=text name=un>
    <br><br>
    password:<input type=password name=pw>
    <br><br>
    <input type=submit value=G e t    I n>
    </font>
    </form>
    </pre>
    </center>
    </body>
    </html>
    this is the AdminHome.jsp
    Response from AdminHome page
    this is the UserHome.jsp
    Response from UserHome.jsp
    this is the LoginModel.java
    package com.nit.struts;
    public class LoginModel
    public String validate(String name,String pass)
    if(name.equals("user1")&&pass.equals("pass1"))
    return "admin";
    this is the LoginAction.java
    package com.nit.struts;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import org.apache.struts.action.*;
    public class LoginAction extends Action
    public ActionForward execute(ActionMapping am, ActionForm af, HttpServletRequest req, HttpServletResponse res)throws Exception
    UserDetails ud=(UserDetails)af;
    String uname=ud.getName();
    String upass=ud.getPass();
    // String uname=req.getParameter("un");
    // String upass=req.getParameter("pw");
    LoginModel lm=new LoginModel();
    String user_type=lm.validate(uname,upass);
    if(user_type==null)
    return am.findForward("fail");
    return am.findForward(user_type);
    this is the UserDetails.java
    package com.nit.struts;
    import org.apache.struts.action.*;
    public class UserDetails extends ActionForm
    public void setName(String s)
    un=s;
    public void setPass(String s)
    pw=s;
    public String getName()
    return un;
    public String getPass()
    return pw;
    String un,pw;
    this is the struts-config.xml
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE struts-config PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
    "http://struts.apache.org/dtds/struts-config_1_3.dtd">
    <struts-config>
    <form-beans>
    <form-bean name="userform" type="com.nit.struts.UserDetails"/>
    </form-beans>
    <action-mappings>
    <action name="userform" scope="session" path="/login" type="com.nit.struts.LoginAction">
    <forward name="fail" path="/login.html"/>
    <forward name="admin" path="/AdminHome.jsp"/>
    <forward name="user" path="/UserHome.jsp"/>
    </action>
    </action-mappings>
    </struts-config>
    this is the web.xml
    <web-app>
    <servlet>
    <servlet-name>first</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <load-on-startup>0</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>first</servlet-name>
    <url-pattern>*.do</url-pattern>
    </servlet-mapping>
    <welcome-file-list>
    <welcome-file>login.html</welcome-file>
    </welcome-file-list>
    </web-app>
    if(name.equals("user2")&&pass.equals("pass2"))
    return "user";
    return null;
    *this is the                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: java.lang.NullPointerException
         org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:545)
         org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:486)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    java.lang.NullPointerException
         com.nit.struts.LoginModel.validate(LoginModel.java:7)
         com.nit.struts.LoginAction.execute(LoginAction.java:18)
         org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

  • HTTP Status 500 message when attempting to open Financial Report.

    In a new 9.3.1 installation (BI, Essbase, HFM, Planning) I am unable to run Financial Reports in Workspace. As a test, I have created a simple report, using Studio, which has only boilerplate text - no grids or anything else that requires a DB connection. The report previews fine from the Studio client but when I attempt an HTML preview or when I attempt to run the report from within Workspace, I receive an HTTP Status 500 error in the right panel in Workspace. Below is the text of the error. I am using IIS 6 with Tomcat. My troubleshooting effort have been around IIS and BI configuration. I am able to open Web Analysis documents without any trouble. Any suggestions you may have would be appreciated.
    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
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         com.hyperion.reporting.webviewer.HRLocaleFilter.doFilter(Unknown Source)
    root cause
    Compile failed; see the compiler error output for details.
         org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:944)
         org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         com.hyperion.reporting.webviewer.HRLocaleFilter.doFilter(Unknown Source)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.
    I have re-registed with HSS repeatedly as well as scrubbed the logs.

    Hi again Ramana,
    Did you try any of the following:
    1.) Delete Tomcat cache with the following steps
    Stop Tomcat.
    Remove the folders from <Tomcat\work\Catalina\localhost> directory.
    Start Tomcat. (it will delay a few minutes)
    The cache will be recreated automatically.
    2.) Redeploy Explorer application with wdeploy tool (Location: <install_dir>\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\wdeploy)
    Syntax
    wdeploy <WEB_APP_SERVER> [-D<PROPERTY>=<value>] <ACTION>
    Example
    -- Undeploy
    wdeploy tomcat7 -DAPP=explorer undeploy
    -- Deploy
    wdeploy tomcat7 -DAPP=explorer deploy
    Regards,
    Ilias

  • Flickr Server Error - HTTP Status 500 - how to fix?

    Hi,
    Just upgraded to Photoshop Elements 11 on a x64 Dell running Win7. When trying to share photos using Flickr (which worked previously), I get the following:
    Any idea what I can do to fix this? I've tried resetting accounts in Adobe Partner Services, Clearing Online Service Data, and refreshing the list of services - but makes no difference.
    Any help very much appreciated,
    Dan.
    (Here's the text from the above, for search engines to chew on:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    java.lang.NullPointerException org.apache.jsp.csp.error_jsp._jspService(error_jsp.java:197) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.adobe.ols.service.pseflickr.SessionFilter.doFilter(SessionFilter.java:80) com.adobe.ols.service.pseflickr.NoCacheFilter.doFilter(NoCacheFilter.java:56) com.adobe.ols.service.pseflickr.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:48)
    note The full stack trace of the root cause is available in the Apache Tomcat/6.0.28 logs.

    Hi,
    Thanks - I've cleared my browser cache, and tried all the other things available here too, a couple of days ago:
    http://kb2.adobe.com/cps/403/kb403064.html
    When I tried it, it made no difference. Ironically, just using the Flickr service today 'just works'. Server side, as you say, so maybe something got restarted / fixed?
    Given the entire forum web site wasn't accessible yesterday (and that appears to run on Tomcat, too) - perhaps the restart of the one is linked with the restart of the other.
    Anyhow - problem solved - thanks for your support!
    Dan.

  • My First servlet error-HTTP Status 500

    Recently Installed apache-tomcat-5.5.27 ,I followed one documentation when i googled for a while like is here [http://linux-sxs.org/internet_serving/c292.html]
    when i try to access from web-browser ,it came up with errors like
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Error allocating a servlet instance
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
         org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
         org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
         org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
         org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
         java.lang.Thread.run(Thread.java:595)
    root cause
    java.lang.UnsupportedClassVersionError: Bad version number in .class file
         java.lang.ClassLoader.defineClass1(Native Method)
         java.lang.ClassLoader.defineClass(ClassLoader.java:620)
         java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1876)
         org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:889)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1353)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1232)
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
         org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
         org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
         org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
         org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
         java.lang.Thread.run(Thread.java:595)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.27 logs.Here is the directory structure
    #/opt/apache-tomcat-5.5.27/webapps/MyFirst
    #/opt/apache-tomcat-5.5.27/webapps/MyFirst/WEB-INF
    #/opt/apache-tomcat-5.5.27/webapps/MyFirst/WEB-INF/classes
    #/opt/apache-tomcat-5.5.27/webapps/MyFirst/WEB-INF/libI placed web.xml file in WEB-INF directory and HelloWorld.class in WEB-INF/classes and MyFirst.xml in /opt/apache-tomcat-5.5.27/conf/Catalina/localhost/
    the files typically contains
    web.xml
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
        PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
        "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <servlet>
            <servlet-name>HelloWorld</servlet-name>
            <servlet-class>HelloWorld</servlet-class>
    </servlet>
    <servlet-mapping>
            <servlet-name>HelloWorld</servlet-name>
            <url-pattern>/HelloWorld</url-pattern>
    </servlet-mapping>
    </web-app>
    HelloWorld.java
    // Filename : HelloWorld.java                                                                                                                               
    // Description : This servlet merely says hello!                                                                                                            
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class HelloWorld extends HttpServlet {
        public void doGet ( HttpServletRequest request, HttpServletResponse response )
            throws ServletException, IOException    {
            response.setContentType("text/html");
            PrintWriter out = response.getWriter();
            out.println("<html>");
            out.println("<head><title>Hello, Cruel World!</title></head>");
            out.println("<body>");
            out.println("<h1>Hello, Cruel World !</h1>");
            out.println("This is my first servlet.");
            out.println("</body>");
        }// end doGet                                                                                                                                           
    }///:~
    MyFirst.xml
    <!-- MyFirst Context -->
    <Context path="/MyFirst" docBase="MyFirst" debug="0" reloadable="true"/>anybody have idea about this error...

    miriyalasrinivas wrote:
    java.lang.UnsupportedClassVersionError: Bad version number in .class fileThe class is compiled with a JDK version which is newer than the JRE version used to run the class. To solve this, just clean up your Java environment and align the versions. You can get version information of the Java compiler using javac -version and of the Java runtime using java -version.
    That said, this problem is actually not related to servlets. You didn't get a root exception of javax.servlet package. You just got a root exception of java.lang package, which basically makes it a Java SE problem. Questions related to those actually belongs in the 'New to Java' forum.

  • HTTP Status 500 error

    We have a form in Form Manager that sends us back to the login page after clicking on the submit button. This usually happens when it takes us more than 1 hour to complete the form.
    When I try to login again and click on the link to open the form, I get this message on the right side of Form Manager:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    java.lang.NullPointerException
    com.adobe.fm.filter.TimeoutFilter.doFilter(TimeoutFilter.java:214)
    com.adobe.fm.filter.PortalSSOFilter.doFilter(PortalSSOFilter.java:125)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.0.26 logs.
    We suspect that this is a timeout issue. We already changed the web.xml file and increased the session-timeout to 5 hours but the error still occurs. Please help. Thanks.

    Hi Melissa
    I have asked Adobe numerous times about how to modify the default timeout in Form Manager. The response has always been that there is no way to do this.
    I'm not trying to dissuade you from trying, and it would be great to find a solution, but I wouldn't hold out too much hope :-)
    This comes down to a training issue - if the user is going to leave the form for any length of time, they should save the form as a draft.
    Good luck...
    Howard
    http://www.avoka.com
    PS. I haven't tried this yet, but I suspect that this will be much easier to tweak in LiveCycle ES. So another option is to consider upgrading.

  • Hi, My first question -HelloWorld  HTTP Status 500 -

    I am a new fish in this field.
    My problem is
    web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
    <display-name>HelloWorld</display-name>
    <welcome-file-list>
    <welcome-file>HelloWorld</welcome-file>
    </welcome-file-list>
    <servlet>
    <description></description>
    <display-name>HelloWorld</display-name>
    <servlet-name>HelloWorld</servlet-name>
    <servlet-class>Hello.HelloWorld</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>HelloWorld</servlet-name>
    <url-pattern>/HelloWorld</url-pattern>
    </servlet-mapping>
    </web-app>
    package Hello;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class HelloWorld extends HttpServlet {
         private static final long serialVersionUID = 1L;
         public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws IOException, ServletException
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    out.println("<html>");
    out.println("<head>");
    out.println("<title>Hello World!</title>");
    out.println("</head>");
    out.println("<body>");
    out.println("<h1>Hello World!</h1>");
    out.println("</body>");
    out.println("</html>");
    }

    I fellow the steps listed on book, but When I run Tomcat, the response is below " HTTP Status 500 "
    Can anybody tell me why happen this ?? Cheers
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Wrapper cannot find servlet class Hello.HelloWorld or a class it depends on
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
         org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
         org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
         java.lang.Thread.run(Unknown Source)
    root cause
    java.lang.ClassNotFoundException: Hello.HelloWorld
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1516)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1361)
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
         org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
         org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
         java.lang.Thread.run(Unknown Source)
    note The full stack trace of the root cause is available in the Apache Tomcat/6.0.26 logs.
    --------------------------------------------------------------------------------

  • Tomcat - HTTP Status 500 - System Unavailable. Please try again later.

    HI,
    I installed ORACLE XE + TOMCAT 7 + ORACLE XE on windows XP.
    All seems to work under debug session but on normal session I found the following message only when I put a specific parameter on my query.
    The same query with the same parameter runs in the sqldev client whitout errors
    Here below the massages:
    HTTP Status 500 - System Unavailable. Please try again later.
    type Status report
    message System Unavailable. Please try again later.
    description The server encountered an internal error (System Unavailable. Please try again later.) that prevented it from fulfilling this request.
    Apache Tomcat/7.0.2
    and in the log file:
    2011-02-23 18:04:19 Commons Daemon procrun stdout initialized
    APEX Listener version : 1.0.2.238.15.24
    APEX Listener server info: Apache Tomcat/7.0.2
    Using Config file:C:\Programmi\Apache Software Foundation\Tomcat 7.0\temp\apex\apex-config.xml
    -- listing properties --
    PropertyCheckInterval=60
    ValidateConnection=true
    MinLimit=1
    MaxLimit=10
    InitialLimit=3
    AbandonedConnectionTimeout=900
    MaxStatementsLimit=10
    InactivityTimeout=1800
    MaxConnectionReuseCount=50000
    ***********ERROR***********
    init: # headers=46
    declare nm owa.vc_arr := ?;
         vl owa.vc_arr := ?;
    begin
    owa.init_cgi_env( ?, nm, vl );
    htp.init; htp.HTBUF_LEN := 63;
    ? := sys_context('USERENV','SID');
    end;
    SID:18
    CALL:
    begin
    f(p=>?);
    commit;
    end;
    BINDS
    p:106:3:4503262208013405:::::PAGE CALL:
    declare
    nlns number := 999999;
    l_clob CLOB;
    lines htp.htbuf_arr;
    l_buff varchar2(32767);
    l_clob_init boolean:= false;
    l_file varchar2(5);
    begin
    OWA.GET_PAGE(lines, nlns);
    if (nlns > 1) then
    for i in 1..nlns loop
    if ( length(lines(i)) > 0 ) then
    if ( ( lengthb(l_buff) + lengthb(lines(i))) > 32767) then
                   if (NOT l_clob_init) then
                        dbms_lob.createtemporary(l_clob, TRUE);
                        dbms_lob.open(l_clob, dbms_lob.lob_readwrite);
                        l_clob_init:=true;
                   end if;
    dbms_lob.writeappend(l_clob,length(l_buff),l_buff);
    l_buff := lines(i);
    else
    l_buff := l_buff || lines(i);
    end if;
    end if;
    end loop;
    end if;
    if (l_clob_init) then
    dbms_lob.writeappend(l_clob,length(l_buff),l_buff);
    l_buff := '';
    end if;
    ? := l_clob;
    ? := l_buff;
    if (wpg_docload.is_file_download) then l_file:='TRUE'; else l_file := 'FALSE'; end if; ? := l_file;
    end;
    get_page FAILED:ORA-06502: PL/SQL: errore : buffer della stringa di caratteri troppo piccolo di numero o valore
    ORA-06512: a line 32
    ^^^^^^^^^^^^ERROR^^^^^^^^
    ORA-06502: PL/SQL: errore : buffer della stringa di caratteri troppo piccolo di numero o valore
    ORA-06512: a line 32
    ***********ERROR***********
    init: # headers=46
    declare nm owa.vc_arr := ?;
         vl owa.vc_arr := ?;
    begin
    owa.init_cgi_env( ?, nm, vl );
    htp.init; htp.HTBUF_LEN := 63;
    ? := sys_context('USERENV','SID');
    end;
    SID:18
    CALL:
    begin
    f(p=>?);
    commit;
    end;
    BINDS
    p:106:3:3777982020408238:::::PAGE CALL:
    declare
    nlns number := 999999;
    l_clob CLOB;
    lines htp.htbuf_arr;
    l_buff varchar2(32767);
    l_clob_init boolean:= false;
    l_file varchar2(5);
    begin
    OWA.GET_PAGE(lines, nlns);
    if (nlns > 1) then
    for i in 1..nlns loop
    if ( length(lines(i)) > 0 ) then
    if ( ( lengthb(l_buff) + lengthb(lines(i))) > 32767) then
                   if (NOT l_clob_init) then
                        dbms_lob.createtemporary(l_clob, TRUE);
                        dbms_lob.open(l_clob, dbms_lob.lob_readwrite);
                        l_clob_init:=true;
                   end if;
    dbms_lob.writeappend(l_clob,length(l_buff),l_buff);
    l_buff := lines(i);
    else
    l_buff := l_buff || lines(i);
    end if;
    end if;
    end loop;
    end if;
    if (l_clob_init) then
    dbms_lob.writeappend(l_clob,length(l_buff),l_buff);
    l_buff := '';
    end if;
    ? := l_clob;
    ? := l_buff;
    if (wpg_docload.is_file_download) then l_file:='TRUE'; else l_file := 'FALSE'; end if; ? := l_file;
    end;
    get_page FAILED:ORA-06502: PL/SQL: errore : buffer della stringa di caratteri troppo piccolo di numero o valore
    ORA-06512: a line 32
    ^^^^^^^^^^^^ERROR^^^^^^^^
    ORA-06502: PL/SQL: errore : buffer della stringa di caratteri troppo piccolo di numero o valore
    ORA-06512: a line 32
    Could you kindly help me.
    Thanks in advance for your help
    Best Regards

    Hi Paolo,
    which APEX version do you use?
    There are only a few reasons that might lead to the behaviour you describe. These are
    - configured header size for Tomcat Connector is too small
    - configured character encoding for Tomcat Connector doesn't fit for APEX (you need UTF-8)
    - you don't have the required version of OWA_UTIL in your XE if you upgraded to a more recent APEX release (e.g. APEX 4.0)
    Have you configured the Tomcat's HTTP Connector to use the appropriate header size and character encoding?
    (see {thread:id=2174509})
    If you've upgraded your XEs APEX, e.g. to 4.0, you also have to update the OWA_UTIL in your XE. APEX versions from 3.0 onwards require at least 10.1.2.0.6, which is the version provided in the installation package. You may just update to that version by changing to the subdirectory owa of your APEX installation package and running
    @owainst.sqlas sys (just like in the steps before).
    You can check if you have the appropriate version of OWA_UTIL installed by running
    select owa_util.get_version from dual;In addition you may also want to check if you performed all steps of this small [url http://www.oracle.com/technetwork/developer-tools/apex/upgrade-apex-for-xe-154969.html]HowTo for the upgrade of APEX in XE databases.
    -Udo

  • What can I do about http status 500 error report?

    I have Windows and want to log in to a bank website. I click the Log In button and get this message:
    "Http status 500" and that "The server encountered an internal error () that prevented it from fulfilling this request." and "Path webClient.passmark.login does not start with a "/" character" and "he full stack trace of the root cause is available in the Apache Tomcat/5.5.23 logs."
    I have tried the "secure Connection failed" troubleshooting without luck. What can I do?

    Does a direct link to the login page work?
    *https://secure.ally.com/allyWebClient/login.do
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • 2 users can't login - HTTP Status 500 - on Teaming 2.0

    I have 2 user that can't login to Teaming 2.0. They get this error: "HTTP Status 500". Even if I enter a bogus password for them the "HTTP Status 500" error occurs. I use LDAP authentication to eDirectory. These users DON'T have duplicate objects in my tree. In eDirectory they have first name, last name, full name, phone number and email address entries. All other users can login. Where are the Apache Tomcat/6.0.18 logs on a SLES 10 install of Teaming 2.0? There are log files in /opt/novell/teaming/
    Browser screen content:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.springframework.dao.IncorrectResultSizeDataAcc essException: Incorrect result size: expected 1, actual 2
    org.springframework.security.ldap.SpringSecurityLd apTemplate$3.executeWithContext(SpringSecurityLdap Template.java:204)
    org.springframework.ldap.core.LdapTemplate.execute WithContext(LdapTemplate.java:807)
    org.springframework.ldap.core.LdapTemplate.execute ReadOnly(LdapTemplate.java:793)
    org.springframework.security.ldap.SpringSecurityLd apTemplate.searchForSingleEntry(SpringSecurityLdap Template.java:190)
    org.springframework.security.ldap.search.FilterBas edLdapUserSearch.searchForUser(FilterBasedLdapUser Search.java:118)
    org.springframework.security.providers.ldap.authen ticator.BindAuthenticator.authenticate(BindAuthent icator.java:82)
    org.springframework.security.providers.ldap.LdapAu thenticationProvider.authenticate(LdapAuthenticati onProvider.java:229)
    org.springframework.security.providers.ProviderMan ager.doAuthentication(ProviderManager.java:195)
    org.springframework.security.AbstractAuthenticatio nManager.authenticate(AbstractAuthenticationManage r.java:46)
    org.kablink.teaming.module.authentication.impl.Aut henticationModuleImpl.doAuthenticate(Authenticatio nModuleImpl.java:280)
    org.kablink.teaming.module.authentication.impl.Aut henticationModuleImpl.authenticate(AuthenticationM oduleImpl.java:245)
    sun.reflect.GeneratedMethodAccessor660.invoke(Unkn own Source)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:585)
    org.springframework.aop.support.AopUtils.invokeJoi npointUsingReflection(AopUtils.java:307)
    org.springframework.aop.framework.ReflectiveMethod Invocation.invokeJoinpoint(ReflectiveMethodInvocat ion.java:182)
    org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :149)
    org.kablink.teaming.search.interceptor.IndexSynchr onizationManagerInterceptor.invoke(IndexSynchroniz ationManagerInterceptor.java:67)
    org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :171)
    org.springframework.aop.interceptor.AbstractTraceI nterceptor.invoke(AbstractTraceInterceptor.java:11 3)
    org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :171)
    org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:204)
    $Proxy21.authenticate(Unknown Source)
    org.springframework.security.providers.ProviderMan ager.doAuthentication(ProviderManager.java:195)
    org.springframework.security.AbstractAuthenticatio nManager.authenticate(AbstractAuthenticationManage r.java:46)
    org.springframework.security.ui.webapp.Authenticat ionProcessingFilter.attemptAuthentication(Authenti cationProcessingFilter.java:82)
    org.springframework.security.ui.AbstractProcessing Filter.doFilterHttp(AbstractProcessingFilter.java: 252)
    org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
    org.springframework.security.ui.logout.LogoutFilte r.doFilterHttp(LogoutFilter.java:89)
    org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
    org.springframework.security.context.HttpSessionCo ntextIntegrationFilter.doFilterHttp(HttpSessionCon textIntegrationFilter.java:235)
    org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
    org.kablink.teaming.spring.security.ZoneGrabbingFi lter.doFilterHttp(ZoneGrabbingFilter.java:58)
    org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :371)
    org.springframework.security.util.FilterChainProxy .doFilter(FilterChainProxy.java:174)
    org.springframework.web.filter.DelegatingFilterPro xy.invokeDelegate(DelegatingFilterProxy.java:236)
    org.springframework.web.filter.DelegatingFilterPro xy.doFilter(DelegatingFilterProxy.java:167)
    note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.

    You need to be sure that it is not an LDAP problem... the best way is to start from LDAP to investigate. Enable the LDAP trace on eDir with imonitor, during the teaming login. Also you can use ldapsearch to have full details on the accounts in order to compare them with a working user (a space somewhere, an additional attribute, etc...).

  • HTTP Status 500 - Exception report

    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.Exception: findByKey failed: Index: 0, Size: 0
    org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:472)
    org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:415)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:119)
    com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:55)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265)
    org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
    org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:110)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149)
    org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
    root cause
    java.lang.Exception: findByKey failed: Index: 0, Size: 0
    com.ncr.enterprisereporting.service.ConfigurationService.findByKey(ConfigurationService.java:103)
    com.ncr.enterprisereporting.domain.SessionData.addStandardPageFeatures(SessionData.java:183)
    com.ncr.enterprisereporting.controller.AdminController.dashboard(AdminController.java:161)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    java.lang.reflect.Method.invoke(Unknown Source)
    org.springframework.web.servlet.mvc.multiaction.MultiActionController.invokeNamedMethod(MultiActionController.java:428)
    org.springframework.web.servlet.mvc.multiaction.MultiActionController.handleRequestInternal(MultiActionController.java:366)
    org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
    org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
    org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:857)
    org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:792)
    org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:460)
    org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:415)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:119)
    com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:55)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265)
    org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
    org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:110)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149)
    org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
    note The full stack trace of the root cause is available in the Apache Tomcat/6.0.14 logs.
    please help me out, i have a release to QA today

    findbykey method failed because it tried to access 0'th element of the array/list with size 0?
    maybe acegi filters out elements to be returned so it returns empty collection and some logic knows that there should be elements returned so tries to access first element on array/list but there is nothing since acegi has filtered data out?

  • HTTP Status 500 Error java.lang.NullPointerException on BO 4.0 SP2

    Hello,
    we installed BO 4.0 SP2 with Tomcat 6 on Windows Server 2008 R2 64 Bit.
    After installation it is not possible to open the CMC, BI-Launchpad or LCM in a browser. It presents the following error page:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    java.lang.NullPointerException
         com.businessobjects.servletbridge.customconfig.Config.<init>(Config.java:37)
         com.businessobjects.servletbridge.customconfig.ConfigReader.getConfig(ConfigReader.java:274)
         com.businessobjects.pinger.TimeoutManagerFilter.getSessionState(TimeoutManagerFilter.java:192)
         com.businessobjects.pinger.TimeoutManagerFilter.doFilter(TimeoutManagerFilter.java:75)
    note The full stack trace of the root cause is available in the Apache Tomcat/6.0.24 logs.
    Apache Tomcat/6.0.24
    This is the error message from Tomcat log:
    28.09.2011 08:56:46 org.apache.catalina.core.StandardWrapperValve invoke
    SCHWERWIEGEND: Servlet.service() for servlet equinoxbridgeservlet threw exception
    java.lang.NullPointerException
         at com.businessobjects.servletbridge.customconfig.Config.<init>(Config.java:37)
         at com.businessobjects.servletbridge.customconfig.ConfigReader.getConfig(ConfigReader.java:274)
         at com.businessobjects.pinger.TimeoutManagerFilter.getSessionState(TimeoutManagerFilter.java:192)
         at com.businessobjects.pinger.TimeoutManagerFilter.doFilter(TimeoutManagerFilter.java:75)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
         at java.lang.Thread.run(Thread.java:619)
    The installation of 'SBOP BI Platform Servers 4.0 SP02 Patch 5' didn't affect this problem, it still has the same error.
    BusinessObjects XI 3.1 is running without problems on that server.
    Any help would be very appreciated!
    Thanks in advance.

    Hello together,
    I could fix this issue without any reinstalling of tomcat. I had the same problem after installtion of Patch 9 of SP2 for BOE 4.0.
    Directly after the installation  I changed the session-timeout parameter in some web.xml's because it was requested by our customer. Because I wanted to have a good documentation of those changes in the web.xml's I created a bigger comment in these files.
    First I got 404 errors after that - to solve this I followed Knowledgebase article [1639813|https://websmp230.sap-ag.de/sap/support/notes/1639813] but first it didn't help.
    So the before mentioned bigger comments seemed to be a problem (or maybe the special characters in there) because after shortening these comments and restarting SIA and Tomcat the 404 error disappeared and suddenly the above described 500 error occured.
    After that I changed the Tomcat's localhost directory to localhost.old during downtime of Tomcat (as recommended by Lukas Kostrab). localhost was newly created but it didn't help either.
    So last but not least I redeployed tomcat following article [1639813|https://websmp230.sap-ag.de/sap/support/notes/1639813] (wdeploy.bat tomcat6 u2013DAPP=BOE deploy) and started Tomcat and SIA again. I decided to wait a little bit longer with trying to start CMC - maybe 15min - and suddenly it worked.
    So in conclusion I would say:
    - check any changes you made in any config-files (like e.g. web.xml) and shorten them or remove special characters
    - stop SIA and Tomcat
    - rename localhost directory (or copy and remove) so it will be recreated at startup of Tomcat
    - if that doesn't help check tomcat config according to article [1639813|https://websmp230.sap-ag.de/sap/support/notes/1639813] and redeploy tomcat as mentioned in that arcitle and be a little bit patient
    Hope this might help some of you.
    Best wishes
    Marie

Maybe you are looking for

  • Call an 8.2 dll in Labview 7.0

    Hello, I have a bunch of applications written in Labview 7.0.  I need to add a small update to these apps, that uses some of the features of 8.2.1.  I have compiled the features into a dll and want to call this in my labview 7.0 application.  I have

  • How to remove the colors of tab?

    In fact,I was confused with that I couldn't catch which tab was actived in Firefox14.0.1 . How can I close the tab I'd browsed? The tabs were colorful ,but I wish a uncomplicated view.

  • Usage not calculating correctly.  Cannot load apps.

    Ipad2.  16Gb. ios7.1.2.  Am using under 2Gb on my apps (according) to General: Usage.  Says over 13Gb used.  What is is the size of iOS ?  Cannot load needed apps.  Have upgraded from ios7.1.1 to. iOS 7.1.2.  Have one video.  May  be just a purchase

  • Best equation tool to use in Adobe Indesign CS6

    Hi, Can anyone tell me which is the best built in equation tool to use for Adobe Indesign CS6? I would like to be able to create the equation within my document and NOT save the equation as a file and then paste the equation into the document.  The e

  • Sync without computer

    Can I sync my contacts between my iPhone and my iPad through iCloud WITHOUT having them sync with my MacBook Pro? The pictures asnd the custom ringtones always get messed up when I sync them thru iTunes? Sass