Fail to view pages and encounter http status 500

Hi,
I am student of some university in malaysia. I encounter final year project in this semester. So i intend to use JSP to develop my project. Today after my lecturer brief about JSP, so i come back and try JSP in my PC immediately. What tools I had installed into my PC are:
JDK/JRE 1.6.0
Tomcat 5.5.9
Netbean 1.6
The JSP page contain such coding:
<%
String name = request.getParameter("nm");
String age = request.getParameter("age");
int int_age = Integer.parseInt(age);
int_age = int_age * 3;
%>
Thank you for submitting the data <br>
<%=name%>, your new age is <%=int_age%>
This pages can view in my lecturer's computer, but when i copy back and view in my computer, it encounter http status 500. What is the problem? any solutions?
I am JSP newbie, and start to learn JSP from beginner, thank you for everyone who can help me in this.

Nanikawa wrote:
it encounter http status 500.This generally indicates an uncatched exception in the code. Read the application server logs, find the exception, read the stacktrace and fix your code accordingly.

Similar Messages

  • Channel.Call.Failed NetConnection.Call.Failed: HTTP: Status 500 with amfphp php and mysql

    I have been scripting a simple database connection to check login credentials and am comming accross these errors:
    Channel.Call.Failed
    NetConnection.Call.Failed:
    HTTP: Status 500
    Any PHP code I run that is not connecting to MYSQL runs fine. But if I try to connect to the database thats what I get.
    Here is my mxml:
    <s:RemoteObject id="LogInService"
                                 source="Novus.NovusUser.getLogIn"
                                 destination="AMFPHP"
                                                                fault="faultHandler(event)"
                                 showBusyCursor="true">
                                  <s:method name="getLogIn" result="onResult(event)" fault="faultHandler(event)"/>
    </s:RemoteObject>
    Which calls this actionscript:
    private function btn(event:Event):void
                                                 switch(event.target.id)
                                                           case "LogInSubmit":
                                                                          LogInService.getLogIn(UserName.text, PW.text)
                  break;
                                  private function onResult(result:ResultEvent):void
                                                 Alert.show("Result " + result.token.result);
                                                 if(result.token.result == true)
                                                                currentState = "Main";
                                                 else
                                                           Alert.show(String(result.token.result));
                                  private function faultHandler(fault:FaultEvent):void
                                                 CursorManager.removeBusyCursor();
            var errorMessage:String = "code:\n" + fault.fault.faultCode + "\n\nMessage:\n" + fault.fault.faultString + "\n\nDetail:\n" + fault.fault.faultDetail;
                                                 Alert.show(errorMessage);
    and calls this PHP:
    If I comment out the database connection it returns a false value to me just fine but with it there it throws an error
    <?php
    class GetLogIn
                   private $_db;
                   public function getLogIn($U, $P)
                             //Connect To Database
                             $hostname='127.0.0.1';
                             $username='root';
                             $password='*********';    //not realy ***** blocked it out
                             $dbname='mydatabase';
                             try
                                            mysql_connect($hostname,$username, $password) OR DIE ('Unable to connect to database! Please try again later.');
                                            mysql_select_db($dbname);
                                            $sql = "Select * FROM empusr WHERE UserName = '$U' and Password = '$P'";
                                            mysql_close();
                                            if ($sql)
                                                           return true;
                                            else
                                                           return false;
                             catch
                                            return 'Unable to connect to database! Please try again later.';
    ?>
    I have a crossdomain.xml but I am unsure if I have it placed right.
    I also have a services.conf but am unsure if that also needs to be altered to adjust for MySQL.
    Any help would be appreciated. 

    Found the problum
    The connection string had to be placed in the public _constructor function of the class.
    <?php
    class EmployeeService
              public function __construct()
                        $hostname='127.0.0.1';
                        $username='root';
                        $password='*********';
                        $dbname='myDatabase';
                        mysql_connect($hostname,$username, $password);
                        mysql_select_db($dbname);
              public function logIn($N, $P)
                        $query = "SELECT * FROM EmpUsr WHERE UserName = '$N' AND Password = '$P'";
                        $result = mysql_query($query);
                          if ($result)
                                    return true;
                          else
                                    return false;
    ?>

  • The server encountered an internal error () - HTTP status 500

    Hi
    I am working with the Tomcat 5.5 on Eclipse, and is getting the error when my servlet calls the jsp using request dispatcher, the error is:
    HTTP status 500
    The server encountered an internal error () that prevented it from fulfilling this request.
    and the log of the exception is:
    Oct 27, 2008 9:41:15 AM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet Controller threw exception
    java.lang.NullPointerException
    at Controller.doGet(Controller.java:46)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:627)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:729)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:269)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:188)
    at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:172)
    at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:117)
    at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:108)
    at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:174)
    at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:875)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11 ConnectionHandler.processConnection(Http11BaseProt ocol.java:665)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(PoolTcpEndpoint.java:528)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThr ead.runIt(LeaderFollowerWorkerThread.java:81)
    at org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:689)
    at java.lang.Thread.run(Unknown Source)
    and when I go to the line in the controller.java which is giving me the exception, I do not find anything wrong with it, this is the line:
    RequestDispatcher dispatcher = getServletConfig().getServletContext().getRequestD ispatcher("/view.jsp");
    dispatcher.forward(request, response);
    Any clarifications highly appreciated.
    When I debug my code, I find that the config is null just before the RequestDispatcher line. What does that mean ?
    thanks.

    Looks like you have a space in "D ispatcher"?
    RequestDispatcher dispatcher = getServletConfig().getServletContext().getRequestD ispatcher("/view.jsp");If that's not the solution than going by your error you need to check your variable because somehow you're pointing to nothing:
    java.lang.NullPointerException

  • Glassfish and Listener error : HTTP Status 500 - System Unavailable.

    Hello,
    I 've some problem. When i'm working in workspace and develope my application everything fine, but when i try to run it , i have this :
    HTTP Status 500 - System Unavailable. Please try again later.
    type Status report
    messageSystem Unavailable. Please try again later.
    descriptionThe server encountered an internal error (System Unavailable. Please try again later.) that prevented it from fulfilling this request.
    Oracle GlassFish Server 3.1
    After refreshing, page work fine , but every actions in application have this problem. Well, users can't work normaly with my application.
    Please help me with this problem.
    I use Oracle 10g , Apex 4.0 , Glassfish 3.1, redhat 5
    Sorry for my bad english.
    Egor Karmanov.
    Edited by: 843328 on 07.06.2011 1:58

    Hello Egor,
    <ol><li>I see one error that seems to occur often on your server:
    ORA-20867: ORA-12705: invalid or unknown NLS parameter value specified
    ORA-02063: preceding line from WWW
    ORA-06512: at "SYS.DBMS_SESSION", line 153
    ORA-06512: at "APEX_040000.WWV_FLOW_LANG", line 387
    ORA-06512: at "APEX_040000.WWV_FLOW", line 9328
    ORA-06512: at "APEX_040000.F", line 267
    ORA-06512: at "APEX_040000.F", line 294
    ORA-06512: at line 2Probably you have some unsupported language or characterset configured for your application or APEX instance as default, which is not taken when you login to your application builder.
    </li>
    <li>What I see from your log as well: You still use APEX Listener version : 1.1.0.60.10.38, I'd recommend to update to the current 1.1.2 release.
    </li>
    <li>I see some other errors and warnings in your log, e.g.
    WARNING|oracle-glassfish3.1|org.apache.catalina.connector.Request|_ThreadID=20;_ThreadName=Thread-1;|PWC4011: Unable to set request character encoding to UTF-8 from context /apex, because request parameters have already been read, or ServletRequest.getReader() has already been calledand
    SEVERE|oracle-glassfish3.1|org.apache.tomcat.util.digester.Digester|_ThreadID=10;_ThreadName=Thread-1;|Digester.getParser:
    javax.xml.parsers.ParserConfigurationException: The XDK supports only namespace-aware parsers.
    [...]The warning can easily be ignored. I'd recommend to disable it to make keep your log file smaller and clear. See the [url http://wiki.glassfish.java.net/Wiki.jsp?page=FaqWebAppUnableToSetRequestCharEncoding]GlassFish FAQ for that warning.
    The severe error is more interesting. There seems to be a problem concerning the XML parser, probably due to a library conflict. There was a thread on a similar issue concerning Tomcat ({thread:id=2174509}), but possibly such things can happen on GlassFish as well, especially when you have installed some global libraries. As you can see in the Tomcat-Thread, removing xmlparserv2-11.2.0.jar from +\apex\WEB-INF\lib+ solved the problem there.
    </li>
    </ol>
    I hope these points help you to solve your problem. If not, can you post some additional information about your NLS/LC settings in GlassFish/Java/APEX environments?
    -Udo

  • Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 500

    I get the following error when trying to connect to my BlazeDS Java server from Flex application. Flex application is on localhost:80, blazeDS on tomcat localhost:8080. Please help!
    createUser();faultHandler():(mx.messaging.messages::ErrorMessage)#0
      body = (Object)#1
      clientId = (null)
      correlationId = "9FFDEBE8-EAD0-F3D9-8E9B-E3D7D7F5AE79"
      destination = ""
      extendedData = (null)
      faultCode = "Client.Error.MessageSend"
      faultDetail = "Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 500: url: 'http://77.93.202.150:8080/QuizDS/messagebroker/amf'"
      faultString = "Send failed"
      headers = (Object)#2
      messageId = "98F54E19-7B0D-DCB9-4B86-E3D7D84E484F"
      rootCause = (mx.messaging.events::ChannelFaultEvent)#3
        bubbles = false
        cancelable = false
        channel = (mx.messaging.channels::AMFChannel)#4
          authenticated = false
          channelSets = (Array)#5
          connected = false
          connectTimeout = -1
          enableSmallMessages = true
          endpoint = "http://77.93.202.150:8080/QuizDS/messagebroker/amf"
          failoverURIs = (Array)#6
          id = (null)
          mpiEnabled = false
          netConnection = (flash.net::NetConnection)#7
            client = (mx.messaging.channels::AMFChannel)#4
            connected = false
            maxPeerConnections = 8
            objectEncoding = 3
            proxyType = "none"
            uri = "http://77.93.202.150:8080/QuizDS/messagebroker/amf"
          piggybackingEnabled = false
          polling = false
          pollingEnabled = true
          pollingInterval = 3000
          protocol = "http"
          reconnecting = false
          recordMessageSizes = false
          recordMessageTimes = false
          requestTimeout = -1
          uri = "http://77.93.202.150:8080/QuizDS/messagebroker/amf"
          url = "http://77.93.202.150:8080/QuizDS/messagebroker/amf"
          useSmallMessages = false
        channelId = (null)
        connected = false
        currentTarget = (mx.messaging.channels::AMFChannel)#4
        eventPhase = 2
        faultCode = "Channel.Connect.Failed"
        faultDetail = "NetConnection.Call.Failed: HTTP: Status 500: url: 'http://77.93.202.150:8080/QuizDS/messagebroker/amf'"
        faultString = "error"
        reconnecting = false
        rejected = false
        rootCause = (Object)#8
          code = "NetConnection.Call.Failed"
          description = "HTTP: Status 500"
          details = "http://77.93.202.150:8080/QuizDS/messagebroker/amf"
          level = "error"
        target = (mx.messaging.channels::AMFChannel)#4
        type = "channelFault"
      timestamp = 0
      timeToLive = 0

    halodev:
    I made a CF/Flex site based on the Flexstore sample app,
    using a database instead of XML as the data source; in case you
    want to see it:
    http://www.timos.com/dg/flex/DilemmaGames.html
    At first I had troubles similar to what you describe;
    initially, part of the problem was that my hosting company had not
    yet upgraded to CF 7.02. One other thing I had to correct: when you
    upload to your server, upload the entire ‘bin’ (or
    whatever your output folder is) minus the debug SWF.
    If it would help with other issues, contact me and I will be
    glad to make my project code available to you. Good luck.
    Carlos
    [email protected]

  • Trouble to access one website (HTTP Status 500) and to find Apache Tomcat/6.0.20 logs

    Hi to you all!
    It is impossible for me to access one website only for a couple of days, the Yell.com UK phone directory. I asked them to help me with this trouble, but one of the technicians answered «I have had no problems in accessing Yell.com online here and neither have my colleagues. There may have been a temporary bug with the system, but all is fine now. If you are still experiencing problems, I would suggest that it is an issue with your system.»
    It does not help because the trouble persists, whatever the solution I tried to find (clearing history and cache, bookmarking anew, changing slightly the URL). When trying to access to their website, it says:
    «HTTP Status 500 -
    «type Exception report
    «message
    «description The server encountered an internal error () that prevented it from fulfilling this request.
    «exception
    «… (Here are 13 lines about javax.servlet, com.yell.ucs.responder, org.apache.struts.action and 50 lines under achapter titled “root cause”) — then:
    «note The full stack trace of the root cause is available in the Apache Tomcat/6.0.20 logs.
    «Apache Tomcat/6.0.20»
    QUESTIONS —
    1. I have access without any problem to Yell.com with the Safari (after having selected “Safari browser”), but there is no result with Firefox with the Safari browser! How is this possible?
    2. I don't understand anything about what the “Apache Tomcat/6.0.20” - Error report means…
    3. What and where can I find the “Apache Tomcat/6.0.20 logs” on a Mac OS X 10.4 and how can this be solved?
    Many thanks forward for your help (please use ordinary words, I don't understand anything about computer and Web things).
    Cordially
    == URL of affected sites ==
    http://www.yell.com/

    Now, some goblin somewhere put things right and this Yell.com works again, ''without doing anything''… Hope it'll keep on going like this!

  • Login to LMS4 failed with HTTP Status 500

    Hello,
    I've done an upgrade from LMS 3.1 to LMS 4.01. I installed all updates and I changed the logon security to https.
    Evrything was working fine until the last deviceupdate and restart of the deamon manager.
    Now I can insert usernam and password and then I get an HTTP Status error 500:
    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: Servlet execution threw an exception
         org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1758)
         com.cisco.nm.uii.UIIController.processActionForward(UIIController.java:380)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1595)
         org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
         com.cisco.nm.cmf.util.AjaxAccessFilter.doFilter(AjaxAccessFilter.java:189)
         com.cisco.nm.cmf.util.AccessLogFilter.doFilter(AccessLogFilter.java:128)
    root cause
    java.lang.NoClassDefFoundError: Could not initialize class com.cisco.nm.gs.ui.helper.GSHelper
         com.cisco.nm.gs.ui.actions.GSInterceptor.perform(GSInterceptor.java:112)
         org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1786)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1585)
         org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
         org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1758)
         com.cisco.nm.uii.UIIController.processActionForward(UIIController.java:380)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1595)
         org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
         com.cisco.nm.cmf.util.AjaxAccessFilter.doFilter(AjaxAccessFilter.java:189)
         com.cisco.nm.cmf.util.AccessLogFilter.doFilter(AccessLogFilter.java:128)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.29 logs.
    What can I do to solve the problem?
    Kind regards
    Ludwig

    Hi Afroj,
    it didn't work.
    Error HTTP status 500
    But the error text is shorter:
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Servlet execution threw an exception
         com.cisco.nm.cmf.util.AjaxAccessFilter.doFilter(AjaxAccessFilter.java:189)
         com.cisco.nm.cmf.util.AccessLogFilter.doFilter(AccessLogFilter.java:128)
    root cause
    java.lang.NoClassDefFoundError: Could not initialize class com.cisco.nm.xms.psu.conf.Conf
         com.cisco.nm.xms.psu.util.PsuLibrary.getCurrentVersion(PsuLibrary.java:513)
         com.cisco.nm.cmf.home.util.CSHPUtil.getCSVersion(CSHPUtil.java:534)
         com.cisco.nm.cmf.home.uii.action.CSHPAction.perform(CSHPAction.java:63)
         org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1786)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1585)
         org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
         com.cisco.nm.cmf.util.AjaxAccessFilter.doFilter(AjaxAccessFilter.java:189)
         com.cisco.nm.cmf.util.AccessLogFilter.doFilter(AccessLogFilter.java:128)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.29 logs.
    Apache Tomcat/5.5.29
    Kind regards Ludwig

  • Error HTTP Status 500 after installing DS Management Console and IPS Services on BI Enterprise Server

    The following error
    HTTP Status 500 - while trying to invoke the method java.util.Properties.entrySet() of an object loaded from local variable 'globalProperties'
    occurred after installing DS Management Console and IPS Services on BI Enterprise Server
    BI Enterprise Edition 4.1 SP1 and BODS 4.1 SP1

    Hi,
    If you can't see the login screen of the CMC then it's a problem of webapps and not EIM services.
    Try cleaning the Tomcat cache for the BOE webapps and let Tomcat re cache it.  Often it does the job.
    - Stop Tomcat
    - Rename the BOE folder to BOE-OLD in C:\Program Files (x86)\SAP BusinessObjects\tomcat\work\Catalina\localhost\
    - Start Tomcat
    When the Tomcat process in task manager is done working (it can take 10-20 min+) then try again.
    When you're done, you can delete the BOE-OLD folder.
    Let me know!

  • HTTP status 500 error using OpenSSO, policy agent 3 and glassfish

    Hello,
    I have created a simple secure web app following the agentsample app. When I first start up the server that opensso is deployed on, I can log in to the app and everything works fine. Then when I log into again I get a HTTP status 500 error. I have to restart the server to make it work again. Everything about it is very unpredictable - sometimes it works, sometimes it doesn't.
    I found this in the server logs:
    Exception starting filter Agent
    java.lang.ClassNotFoundException: com.sun.identity.agents.filter.AmAgentFilter
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1498)
         at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:235)
         at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:369)
         at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:103)
         at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4389)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:5189)
         at com.sun.enterprise.web.WebModule.start(WebModule.java:326)
         at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
         at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
         at com.sun.appserv.management.util.misc.RunnableBase.run(RunnableBase.java:341)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
         at java.util.concurrent.FutureTask.run(FutureTask.java:123)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
         at java.lang.Thread.run(Thread.java:595)
    Thanks
    AT

    Set the log level to mesaage and look into the amFilter 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

  • ** Tomcat JSF App Timeout  ---HTTP Status 500 -could not be restored.

    ** Tomcat JSF App Timeout ---------------HTTP Status 500 -----javax.servlet.ServletException: viewId:/welcome.jsf - View /welcome.jsf could not be restored.
    Hi Guys,
    I have a JSF app running under Tomcat 6. It works great...fast and Stable...
    I have a problem with session timeouts..
    I get this error when I leave the browser open to a page and try to use any links..
    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: viewId:/welcome.jsf - View /welcome.jsf could not be restored.
          javax.faces.webapp.FacesServlet.service(FacesServlet.java:270)
          org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:154)
          org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:265)
          org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:376)
          org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:503)
    I have this in my web.xml
    <error-page>
    <error-code>500</error-code>
    <location>/error500.jsp</location>
    <error-code>404</error-code>
    <location>/error500.jsp</location>
    <error-code>400</error-code>
    <location>/error500.jsp</location>
    <error-code>403</error-code>
    <location>/error500.jsp</location>
    </error-page>Any help out there??
    Thanks
    Phil

    Thanks BalusC,
    I have added
    <error-page>
         <exception-type>javax.faces.application.ViewExpiredException</exception-type>
         <location>/errorTimeOut.jsp</location>
    </error-page>
    <error-page>
         <exception-type>java.lang.Exception</exception-type>
         <location>/errorTimeOut.jsp</location>
    </error-page>and
    <context-param>
            <param-name>com.sun.faces.enableRestoreView11Compatibility</param-name>
            <param-value>true</param-value>
    </context-param>It now seems to work without any timeout.
    Have a great weekend and thanks for your help again.
    Phil

  • HTTP Status 500 - System Unavailable Error

    Hi all,
    I am facing a problem while accessing Oracle Apex. While i am working with application in apex suddenly it starts popping the error message "HTTP Status 500 - System Unavailable. Please try again later."
    After getting this error my application becomes inaccessible. I need to refresh the entire db to run it again.
    Can somebody please tell me why is this error coming again and again? Is there some problem with installation or some other problem.
    Please reply me as soon as possible.
    Thanks in advance,
    Anjali.

    Hi,
    I'm working on APEX 4.0, Oracle XE 10g on Windows 7, Access via ApexListener, actual version, installed into Tomcat 6.0.26.
    I'm experiencing the same error. I was able to work out two scenarios which lead to this error:
    1. Every now and then the error pops up when using the Application Builder. Catalina.log says:
    <pre>
    ***********ERROR***********
    init: # headers=45
    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:20
    CALL:
    begin
    f(p=>?,
    success_msg=>?);
    commit;
    end;
    BINDS
    p:4000:4050:3884752980922490::NO:::
    success_msg:Action processed.Action processed./1F544BBDB12EC89A7CC66B768B6446C7/PAGE CALL:
    declare
    nlns number := 999999;
    l_clob CLOB;
    lines htp.htbuf_arr;
    l_buff varchar2(32676);
    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))) > 32676) 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;
    ? := sys_context('USERENV','SID');
    end;
    get_page FAILED:ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at line 32
    ^^^^^^^^^^^^ERROR^^^^^^^^
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at line 32
    </pre>
    2. I'm using JQuery.dataTables. When I branch to a page that renders a table with that extension and click on a tab (apex.submit()), this error is shown in Catalina.log:
    <pre>
    init: # headers=47
    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:20
    CALL:
    begin
    wwv_flow.accept(p_page_submission_id=>?,
    p_flow_id=>?,
    R3984050879052451_length=>?,
    p_flow_step_id=>?,
    p_arg_values=>?,
    p_request=>?,
    p_instance=>?,
    p_t03=>?,
    p_t02=>?,
    p_t01=>?,
    p_md5_checksum=>?,
    p_arg_names=>?);
    commit;
    end;
    BINDS
    p_page_submission_id:1778791093984791
    p_flow_id:101
    R3984050879052451_length:10
    p_flow_step_id:300
    p_arg_values: {F649821837B56200BDC0DEA81D682D1255137C7CE39BC71EA178625107B6988E}
    p_request:T_STATISTIKEN
    p_instance:3452696935674912
    p_t03:389
    p_t02:'Verweildauer gesamt abgelaufenes Jahr'
    p_t01:15
    p_md5_checksum:
    p_arg_names: {327865687985686539141271640403183871035117271840}
    p_page_submission_id:1778791093984791
    p_flow_id:101
    R3984050879052451_length:10
    p_flow_step_id:300
    p_arg_values: {F649821837B56200BDC0DEA81D682D1255137C7CE39BC71EA178625107B6988E}
    p_request:T_STATISTIKEN
    p_instance:3452696935674912
    p_t03:389
    p_t02:'Verweildauer gesamt abgelaufenes Jahr'
    p_t01:15
    p_md5_checksum:
    p_arg_names: {327865687985686539141271640403183871035117271840}
    EXEC FAILED:ORA-06550: Zeile 2, Spalte 2:
    PLS-00306: Falsche Anzahl oder Typen von Argumenten in Aufruf von 'ACCEPT'
    ORA-06550: Zeile 2, Spalte 2:
    PL/SQL: Statement ignored
    ORA-06550: Zeile 2, Spalte 2:
    PLS-00306: Falsche Anzahl oder Typen von Argumenten in Aufruf von 'ACCEPT'
    ORA-06550: Zeile 2, Spalte 2:
    PL/SQL: Statement ignored
    </pre>
    I can reproduce this error. To me, p_arg_names and p_arg_values look a bit funny, but I'm not sure.
    Did anybody encounter similar problems?
    Best regards,
    Jürgen

  • 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

Maybe you are looking for

  • View Link between two query views

    Hi is it possible to create a view link between two views having the where clause bind variables. How you set the bind variables at the run time for the View objects. It is giving hard time for me to use the Master view in the XmlData bean to generat

  • Formula's at Universe level

    Hi All, I want to create objects at universe level for the following : Ver:- BOXIR2, Database is Oracle.      Monthly averages for the last 12 months u2013 Balances for last 12 months are shown in the report. These are previous 12 months, starting f

  • Open .csv file in excel via Labwindows

    Hello After writing all my data in a .csv and closing it (using fclose), I would like to open this .csv file using Excel via a Labwindows command so that the user can see all the data. Is that possible? If yes, which function should I use? Thanks

  • Alerters in Webi 4.1 Sp2 patch 3

    hi, i have a requirement of creating a webi report which needs alerts (like red , green , yellow in color) to be displayed whenever a particular condition is met. like : for ex: i have sales object . if my sales revenue is less than 100000 then it sh

  • Latest update of SwagBucks has hijacked my Open New Tab and uninstalling does not fix... so what now?

    The latest auto update of SwagBucks now locks the Open New Tab page into swagbucks.com. I've lost my TILES page. My HOME page is still correctly set and regardless of what that is, the Open New Tab page always goes to SwagBucks.com. I've removed ever